netket.operator.boson.numberΒΆ
-
netket.operator.boson.
number
(hilbert, site, dtype=<class 'float'>)[source]ΒΆ Builds the number operator \(\hat{a}^\dagger\hat{a}\) acting on the site-th of the Hilbert space hilbert.
If hilbert is a non-Bosonic space of local dimension M, it is considered as a bosonic space of local dimension M.
- Parameters
hilbert (
AbstractHilbert
) β The hilbert spacesite (
int
) β the site on which this operator actsdtype (Any) β
- Return type
- Returns
The resulting Local Operator