netket.sampler.MetropolisSamplerState

class netket.sampler.MetropolisSamplerState(*args, __precompute_cached_properties=False, __skip_preprocess=False, **kwargs)

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_accepted_proc: int = 0
n_steps

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

Return type

int

n_steps_proc: int = 0
Methods
replace(**updates)

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