quantax.sampler.RandomSampler#
- class quantax.sampler.RandomSampler#
Bases:
Sampler
Generate random samples with equal probability for all possible spin configurations. The reweight factor is 0 because \(P \propto |\psi|^0\).
- __init__(state: State, nsamples: int)#
- Parameters:
state – The state used for computing the wave function and probability
nsamples – Number of samples generated per iteration
- property nsamples: int#
Number of samples generated per iteration
- property reweight: float#
The reweight factor n defining the sample probability \(|\psi|^n\)