netket.experimental.operator.fermion.number
netket.experimental.operator.fermion.number#
- 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