netket.operator.PotentialEnergy

class netket.operator.PotentialEnergy(hilbert, afun, coefficient=1.0, dtype=<class 'float'>)

Bases: netket.operator.ContinuousOperator

Returns the local potential energy defined in afun

Inheritance
Inheritance diagram of netket.operator.PotentialEnergy
__init__(hilbert, afun, coefficient=1.0, dtype=<class 'float'>)[source]
Parameters
  • hilbert (AbstractHilbert) – The underlying Hilbert space on which the operator is defined

  • afun (Callable) – The potential energy as function of x

  • coefficients – A coefficient for the ContinuousOperator object

  • dtype (Optional[Any]) – Data type of the matrix elements. Defaults to np.float64

  • coefficient (float) –

Attributes
H

Returns the Conjugate-Transposed operator

Return type

AbstractOperator

T

Returns the transposed operator

Return type

AbstractOperator

dtype
Return type

Any

hilbert

The hilbert space associated to this operator.

Return type

AbstractHilbert

is_hermitian
size

The total number number of local degrees of freedom.

Return type

int

Methods
collect()

Returns a guranteed concrete instancce of an operator.

As some operations on operators return lazy wrapperes (such as transpose, hermitian conjugate…), this is used to obtain a guaranteed non-lazy operator.

Return type

AbstractOperator

conj(*, concrete=False)
Return type

AbstractOperator

conjugate(*, concrete=False)

Returns the complex-conjugate of this operator.

Parameters

concrete – if True returns a concrete operator and not a lazy wrapper

Return type

AbstractOperator

Returns

if concrete is not True, self or a lazy wrapper; the complex-conjugated operator otherwise

transpose(*, concrete=False)

Returns the transpose of this operator.

Parameters

concrete – if True returns a concrete operator and not a lazy wrapper

Return type

AbstractOperator

Returns

if concrete is not True, self or a lazy wrapper; the transposed operator otherwise