- class netket.hilbert.TensorHilbert#
Abstract base class for the tensor product of several sub-spaces, representing the space.
This class can also be used to construct the correct type of TensorHilbert subclass given the input types: if all input types are Generic hilbert spaces, TensorGeneralHilbert will be constructed, while if they all are DiscreteHilbert a TensorDiscreteHilbert will be created.
In general you should not construct this object directly, but you should simply multiply different hilbert spaces together. In this case, Python’s * operator will be interpreted as a tensor product.
This is an abstract mixing class that should be inherited from, together with another class that inherits from AbstractHilbert.
- __init__(hilb_spaces, *args, **kwargs)#
Constructs a tensor Hilbert space.
Tuplec ontaining all the subspaces of this tensor product of Hilbert spaces.