- 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)[source]#
Constructs a tensor Hilbert space.
*hilb – An iterable object containing at least 1 hilbert space.
hilb_spaces (Iterable[AbstractHilbert]) –
Tuplec ontaining all the subspaces of this tensor product of Hilbert spaces.