netket.hilbert.constraint.SumOnPartitionConstraint#
- class netket.hilbert.constraint.SumOnPartitionConstraint[source]#
Bases:
DiscreteHilbertConstraint
Constraint of an Hilbert space enforcing a total sum of all the values in partitions of different sizes.
Constructed by specifying the tuples of sums on every partition and the length of every partition.
This can be used to represent tensor products of Spin subsystems with different total magnetizations, or constraint on the number of fermions on different parts.
- Inheritance