netket.operator.ContinuousOperator#
- class netket.operator.ContinuousOperator[source]#
Bases:
AbstractOperator
,Pytree
This class is the abstract base class for operators defined on a continuous Hilbert space. Users interested in implementing new quantum Operators for continuous Hilbert spaces should subclass ContinuousOperator and implement its interface.
- Inheritance
- __init__(hilbert, dtype=None)[source]#
Constructs the continuous operator acting on the given hilbert space and with a certain data type.
- Attributes
- H#
Returns the Conjugate-Transposed operator
- T#
Returns the transposed operator
- dtype#
- hilbert#
The hilbert space associated to this observable.
- is_hermitian#
Returns true if this operator is hermitian.
- Methods
- collect()[source]#
Returns a guaranteed concrete instance of an operator.
As some operations on operators return lazy wrappers (such as transpose, hermitian conjugate…), this is used to obtain a guaranteed non-lazy operator.
- Return type:
- conjugate(*, concrete=False)[source]#
Returns the complex-conjugate of this operator.
- Parameters:
concrete – if True returns a concrete operator and not a lazy wrapper
- Return type:
- Returns:
if concrete is not True, self or a lazy wrapper; the complex-conjugated operator otherwise
- replace(**kwargs)[source]#
Replace the values of the fields of the object with the values of the keyword arguments. If the object is a dataclass, dataclasses.replace will be used. Otherwise, a new object will be created with the same type as the original object.