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.

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

A mixture of several metropolis samplers.

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

Generate Monte Carlo samples by locally flipping spins.

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

Generate Monte Carlo samples by exchanging neighbor spins in spin systems.

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

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

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

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

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

Generate Monte Carlo samples by flipping spins of spinful fermions locally.