netket.experimental.operator.fermion.number#
- netket.experimental.operator.fermion.number(hilbert, site, sz=None, cutoff=1e-10, dtype=None)[source]#
Builds the number operator \(\hat{a}^\dagger\hat{a}\) acting on the site-th of the Hilbert space hilbert.
- Parameters:
hilbert (
SpinOrbitalFermions
) – The hilbert spacesite (
int
) – the site on which this operator actssite – the site on which this operator acts
sz (
int
|None
) – spin projection quantum number. This is the eigenvalue of the corresponding spin-Z Pauli operator (e.g. sz = ±1 for a spin-1/2, sz ∈ [-2, -1, 1, 2] for a spin-3/2 and in general sz ∈ [-2S, -2S + 2, … 2S-2, 2S] for a spin-S )dtype (
Any
|None
) – The datatype to use for the matrix elements.cutoff (float)
- Returns:
The resulting FermionOperator2nd