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 space

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

  • site – 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