netket.experimental.operator.fermion.numberΒΆ
-
class
netket.experimental.operator.fermion.
number
(hilbert, site, sz=None, dtype=None)[source]ΒΆ Builds the number operator \(\hat{a}^\dagger\hat{a}\) acting on the site-th of the Hilbert space hilbert.
- Parameters
hilbert (
AbstractHilbert
) β The hilbert spacesite (
int
) β the site on which this operator actssite β the site on which this operator acts
sz (
int
) β spin projection quantum number (e.g. sz=-0.5 for a spin-1/2 fermion with spin down)
- Returns
The resulting FermionOperator2nd