netket.sampler.MetropolisSamplerState#

class netket.sampler.MetropolisSamplerState#

Bases: netket.sampler.SamplerState

State for a Metropolis sampler.

Contains the current configuration, the RNG state and the (optional) state of the transition rule.

Inheritance
Inheritance diagram of netket.sampler.MetropolisSamplerState
Attributes
acceptance#

The fraction of accepted moves across all chains and MPI processes.

The rate is computed since the last reset of the sampler. Will return None if no sampling has been performed since then.

Return type

float

acceptance_ratio#

Please use the attribute .acceptance instead of .acceptance_ratio. The new attribute .acceptance returns the acceptance ratio ∈ [0,1], instead of the current acceptance_ratio returning a percentage, which is a bug.

The percentage of accepted moves across all chains and MPI processes.

The rate is computed since the last reset of the sampler. Will return None if no sampling has been performed since then.

Type

DEPRECATED

n_accepted#

Total number of moves accepted across all processes since the last reset.

Return type

int

n_steps#

Total number of moves performed across all processes since the last reset.

Return type

int

σ: jax._src.basearray.Array#
rng: jax._src.basearray.Array#
rule_state: Optional[Any]#
n_steps_proc: int#
n_accepted_proc: int#
Methods
replace(**updates)#

Returns a new object replacing the specified fields with new values.