quantax.sampler.ExactSampler#
- class quantax.sampler.ExactSampler#
Bases:
Sampler
Generate samples directly from exact probability
- __init__(state: State, nsamples: int, reweight: float = 2.0, symm: Symmetry | None = None)#
- Parameters:
state – The state used for computing the wave function and probability
nsamples – Number of samples generated per iteration
reweight – The reweight factor n defining the sample probability \(|\psi|^n\), default to 2.0
symm – The symmetry for computing the full wave function, default to the symmetry of the
state
.
- property nsamples: int#
Number of samples generated per iteration
- property reweight: float#
The reweight factor n defining the sample probability \(|\psi|^n\)