sampler#

Main classes#

Sampler

Abstract class for samplers

Samples

The samples generated by the sampler.

Exact samplers#

ExactSampler(state, nsamples[, reweight, symm])

Generate samples directly from exact probability

RandomSampler(state, nsamples)

Generate random samples with equal probability for all possible spin configurations.

Metropolis samplers#

Metropolis(state, nsamples[, reweight, ...])

Abstract class for metropolis samplers.

LocalFlip(state, nsamples[, reweight, ...])

Generate Monte Carlo samples by locally flipping spins.

NeighborExchange(state, nsamples[, ...])

Generate Monte Carlo samples by exchanging neighbor spins or fermions.

ParticleHop(state, nsamples[, reweight, ...])

Generate Monte Carlo samples by hopping random particles to neighbor sites.

SiteExchange(state, nsamples[, reweight, ...])

Generate Monte Carlo samples by exchanging the spinful fermions on neighbor sites.

MixSampler(samplers[, reweight, ...])

A mixture of several metropolis samplers.