netket_foundation.operator.ParametrizedOperator#

class netket_foundation.operator.ParametrizedOperator[source]#

Bases: AbstractOperator

Operator wrapper that evaluates a physical operator from parameters carried in the sample.

Attributes
dtype[source]#
function[source]#
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:

AbstractOperator

conj(*, concrete=False)[source]#
Return type:

AbstractOperator

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:

AbstractOperator

Returns:

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

get_conn_padded(x)#
transpose(*, concrete=False)[source]#

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

tree_flatten()[source]#
classmethod tree_unflatten(metadata, data)[source]#
with_params(params)[source]#