Crate ising_lib

Source
Expand description

Everything you need to run Ising model simulations on different networks (although, so far, only the classic 2d grid ising model has been implemented as the Ising2d type). Despite its simplicity, the simulation allows us to observe an interesting physical phenomenon - phase transition. Refer to the github repository for examples.

Modulesยง

lattice2d
The 2D Spin Lattice Type. This is the first (and, so far, the only) type of network (/graph) on which Monte-Carlo sampling can be done. You can use it with the built-in measurement and monte-carlo types (refer to examples), or you can just use the lattice.
measurement
The Measurement type calculates quantities on networks that can be measured instantaneously, (such as the magnetization at a given point in time), i.e. quantities that do not require averaging over multiple samples.
monte_carlo_measurement
The MonteCarlo type samples quantities on networks that are estimated over multiple runs, (such as the expected value of the magnetization squared)