netket.operator.PotentialEnergy#
- class netket.operator.PotentialEnergy[source]#
Bases:
ContinuousOperator
Returns the local potential energy defined in afun
- Inheritance
- __init__(hilbert, afun, coefficient=1.0, dtype=None)[source]#
- Parameters:
hilbert (
AbstractHilbert
) – The underlying Hilbert space on which the operator is definedafun (
Callable
) – The potential energy as function of xcoefficient (
float
) – A coefficient for the ContinuousOperator object
- Attributes
- H#
Returns the Conjugate-Transposed operator
- T#
Returns the transposed operator
- coefficient#
- dtype#
- hilbert#
The hilbert space associated to this observable.
- 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