netket.experimental.operator.fermion.number

Contents

netket.experimental.operator.fermion.number#

class netket.experimental.operator.fermion.number[source]#

Bases:

Builds the number operator \(\hat{a}^\dagger\hat{a}\) acting on the site-th of the Hilbert space hilbert.

Parameters:
  • hilbert (AbstractHilbert) – The hilbert space

  • site (int) – the site on which this operator acts

  • site – the site on which this operator acts

  • sz (Optional[int]) – 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 (Optional[Any]) – The datatype to use for the matrix elements.

Returns:

The resulting FermionOperator2nd