netket.hilbert.constraint.SumConstraint#
- class netket.hilbert.constraint.SumConstraint[source]#
Bases:
DiscreteHilbertConstraint
Constraint of an Hilbert space enforcing a total sum of all the values in the degrees of freedom.
Constructed by specifying the total sum. For Fock-like spaces this is the total population, while for Spin-like spaces this is the magnetisation.
- Inheritance