netket_foundation.ParameterSpace

netket_foundation.ParameterSpace#

class netket_foundation.ParameterSpace(N, min=-1, max=1)[source]#

Represents the vector space of a single parameter for the model.

Behaves as a standard Hilbert space, but there are no operators defined on it.

__init__(N, min=-1, max=1)[source]#

Methods

__init__(N[, min, max])

ptrace(sites)

Returns the hilbert space without the selected sites.

random_state([key, size, dtype])

Generates either a single or a batch of uniformly distributed random states.

Attributes

is_indexable

Whether the space can be indexed with an integer

size

The number number of degrees of freedom in the basis of this Hilbert space.