netket.hilbert.constraint.ExtraConstraint#
- class netket.hilbert.constraint.ExtraConstraint[source]#
Bases:
ExtraConstraintWraps a Constraint and its HilbertIndex into a second constraint (with a default lookup-based hilbert index).
The first argument is the base constraint while the second is the wrapping one.
- Inheritance

- Attributes
- base_constraint: DiscreteHilbertConstraint#
- extra_constraint: DiscreteHilbertConstraint#
- Methods
- __call__(x)[source]#
This function should take as input a matrix encoding a batch of configurations, and return a vector of booleans specifying whether they are valid configurations of the Hilbert space or not.
- Parameters:
x (
Array) – 2D matrix.- Return type:
Array