The main references of the study note are Monte Carlo simulation of classical Heisenberg model in three dimensions, Computational Quantum Physics and arXiv:0803.0217.
Ising Model is a mathematical model of ferromagnetism in statistical mechanics. The model consists of discrete variables that represent magnetic dipole moments of atomic ‘spins’ that can be in one of two states: +1 (up) or -1 (down). The spins are arranged in a graph, usually a lattice, allowing each spin to interact with its neighbors.
Mathematical definition of Ising Model
Consider a set of lattice sites. For each lattice site , its spin state is represented by . The energy of a spin configuration is given by the Hamiltonian function :
where and are spin states (+1 or -1) of two adjacent sites , respectively. is the interaction between site and site . indicates that the interaction is ferromagnetic, while indicates that the interaction is antiferromagnetic. Quantity is the magnetic moment and is the external magnetic field interacting with site . means the spin site desires to line up in the positive direction, while means the spin site desires to line up in the negative direction. The first sum is over pairs of adjacent spins (every pair is counted once). The notation indicates that sites and are nearest neighbors.
The configuration probability is given by the Boltzmann distribution with inverse temperature :
where is the Boltzmann constant, is the temperature of the system, and is the partition function. The configuration probabilities represent the probability that (in equilibrium) the system is in a state with configuration . Hence, implies that lower energy states are exponentially more probable than higher energy states, especially at low temperature. As a result, the system tends to evolve over time towards configurations that minimize the total energy.
Simplication
Ignore the external magnetic field , the corresponding Hamiltionian function of Ising Model becomes:
(Monte Carlo simulation of classical Heisenberg model in three dimensions) If the system is ferromagnetic, which means holds for all adjacent sites in this system; it is obvious that configurations with spins to same direction are less energetic and therefore are more probable in the lower temperatures.
Monte-Carlo simulation of 2D Ising model
Here assumes is the number of sites on the square lattice. Since every spin site has two possible states: +1 (up) or -1 (down), there are different states that are possible. Hence, it is difficult to evaluate the Ising Model numerically with a large value of , which motivates the reason for applying Monte Carlo Methods to simulate the Ising Model.
Metropolis-Hastings algorithm
In practice, Metropolis-Hastings algorithm with powerful versatility is the most commonly used Monte Carlo algorithm for the estimation of Ising Model. The main steps of Metropolis algorithm are:
- Initialize a spin configuration of spins.
- Choose a random site on lattice, and then flip the spin of (Here just let ). Finally record the spin configuration with flipped value of as .
- Caculate the change in energy (Here is just equivalent to ).
- If , keep the flipped value. Otherwise, keep the flipped value with probability .
- Repeat the step 2-4.
Implementation of the Ising Model simulations by Monte Carlo approach can be found in repository “Simulation”.