A simple Ising model simulator written in Rust
This project lets you simulate the d-dimensional Ising model in two modes:
- mcmc: Computes an approximation of the energy and magnetization distributions using an MCMC cluster algorithm as described in https://arxiv.org/abs/cond-mat/0311623. In 2D, it also plots the resulting lattice.
- exact (small lattices only): Iterates over all possible states using a Gray code algorithm and plots the exact energy and magnetization distributions.
- Download a prebuilt binary from the releases section.
- Or, build from sources using Cargo (see documentation).
ising --beta 0.4407 -n 2500 mcmc --iter 1000
ising -d 3 --beta 0.24 -n 10 mcmc -i 50000
See here for more examples, use ising --help
, ising mcmc --help
, ising exact --help
for help.