Monte Carlo Simulation of the 2D Ising model

Similar documents
The Phase Transition of the 2D-Ising Model

Numerical Analysis of 2-D Ising Model. Ishita Agarwal Masters in Physics (University of Bonn) 17 th March 2011

8.3.2 The finite size scaling method

Metropolis Monte Carlo simulation of the Ising Model

4. Cluster update algorithms

Simulation of the two-dimensional square-lattice Lenz-Ising model in Python

Phase transitions and finite-size scaling

Monte Carlo Simulation of the Ising Model. Abstract

ground state degeneracy ground state energy

Markov Chain Monte Carlo The Metropolis-Hastings Algorithm

A Monte Carlo Implementation of the Ising Model in Python

Copyright 2001 University of Cambridge. Not to be quoted or copied without permission.

Physics 115/242 Monte Carlo simulations in Statistical Physics

Progress toward a Monte Carlo Simulation of the Ice VI-VII Phase Transition

Monte Carlo study of the Baxter-Wu model

Introduction to the Renormalization Group

MONTE CARLO METHODS IN SEQUENTIAL AND PARALLEL COMPUTING OF 2D AND 3D ISING MODEL

Critical Dynamics of Two-Replica Cluster Algorithms

Monte-Carlo simulation of small 2D Ising lattice with Metropolis dynamics

Monte Carlo simulations of harmonic and anharmonic oscillators in discrete Euclidean time

The Ising model Summary of L12

1 Introduction Duality transformations have provided a useful tool for investigating many theories both in the continuum and on the lattice. The term

Ising Model. Ising Lattice. E. J. Maginn, J. K. Shah

Intro. Each particle has energy that we assume to be an integer E i. Any single-particle energy is equally probable for exchange, except zero, assume

Learning About Spin Glasses Enzo Marinari (Cagliari, Italy) I thank the organizers... I am thrilled since... (Realistic) Spin Glasses: a debated, inte

Ensemble equivalence for non-extensive thermostatistics

c 2007 by Harvey Gould and Jan Tobochnik 28 May 2007

v n,t n

[4] L. F. Cugliandolo, J. Kurchan and G. Parisi,O equilibrium dynamics and aging in

Fig. 1 Cluster flip: before. The region inside the dotted line is flipped in one Wolff move. Let this configuration be A.

The XY-Model. David-Alexander Robinson Sch th January 2012

Scaling Theory. Roger Herrigel Advisor: Helmut Katzgraber

Advanced Monte Carlo Methods Problems

3. General properties of phase transitions and the Landau theory

E = <ij> N 2. (0.3) (so that k BT

Fractal Geometries and their Nonequillibrium Behaviour in Two Dimensional Ising Magnets

Efficiency of Parallel Tempering for Ising Systems

Finite-temperature magnetism of ultrathin lms and nanoclusters PhD Thesis Booklet. Levente Rózsa Supervisor: László Udvardi

The critical behaviour of the long-range Potts chain from the largest cluster probability distribution

Spontaneous Symmetry Breaking

and B. Taglienti (b) (a): Dipartimento di Fisica and Infn, Universita di Cagliari (c): Dipartimento di Fisica and Infn, Universita di Roma La Sapienza

8 Error analysis: jackknife & bootstrap

Classical Monte Carlo Simulations

Phase Transitions of Random Binary Magnetic Square Lattice Ising Systems

J ij S i S j B i S i (1)

Cluster Algorithms to Reduce Critical Slowing Down

Dual Monte Carlo and Cluster Algorithms. N. Kawashima and J.E. Gubernatis. Abstract. theory and not from the usual viewpoint of a particular model.

Improvement of Monte Carlo estimates with covariance-optimized finite-size scaling at fixed phenomenological coupling

3.320 Lecture 18 (4/12/05)

Markov Chain Monte Carlo Simulations and Their Statistical Analysis An Overview

PY 502, Computational Physics, Fall 2017 Monte Carlo simulations in classical statistical physics

Invaded cluster dynamics for frustrated models

Monte Caro simulations

Brazilian Journal of Physics, vol. 26, no. 4, december, P. M.C.deOliveira,T.J.P.Penna. Instituto de Fsica, Universidade Federal Fluminense

LECTURE 10: Monte Carlo Methods II

Classical and Quantum Monte Carlo Algorithms and Exact Diagonalization. Matthias Troyer, ETH Zürich

Physics 127b: Statistical Mechanics. Second Order Phase Transitions. The Ising Ferromagnet

1. Introductory Examples

Microscopic Deterministic Dynamics and Persistence Exponent arxiv:cond-mat/ v1 [cond-mat.stat-mech] 22 Sep 1999

Their Statistical Analvsis. With Web-Based Fortran Code. Berg

End-to-end length of a stiff polymer

Quantum Annealing in spin glasses and quantum computing Anders W Sandvik, Boston University

ICCP Project 2 - Advanced Monte Carlo Methods Choose one of the three options below

hep-lat/ Apr 1994

Numerical methods for lattice field theory

Computational Statistical Physics

Lab 70 in TFFM08. Curie & Ising

Simulating graphene impurities using the worm algorithm

arxiv:cond-mat/ v1 22 Sep 1998

Renormalization Group analysis of 2D Ising model

Complex Systems Methods 9. Critical Phenomena: The Renormalization Group

3.320: Lecture 19 (4/14/05) Free Energies and physical Coarse-graining. ,T) + < σ > dµ

S i J <ij> h mf = h + Jzm (4) and m, the magnetisation per spin, is just the mean value of any given spin. S i = S k k (5) N.

Computational Laboratory: Monte Carlo for Phase Stability Calculations

The Monte Carlo Method of Random Sampling in Statistical Physics

S j H o = gµ o H o. j=1

arxiv:cond-mat/ v1 7 Sep 1995

Lecture V: Multicanonical Simulations.

Binder Cumulants for the Ising Model using Worm algorithms

Introduction to Phase Transitions in Statistical Physics and Field Theory

Critical Behaviors and Finite-Size Scaling of Principal Fluctuation Modes in Complex Systems

Phase Transition & Approximate Partition Function In Ising Model and Percolation In Two Dimension: Specifically For Square Lattices

Optimized statistical ensembles for slowly equilibrating classical and quantum systems

Computational Physics (6810): Session 13

Expectations, Markov chains, and the Metropolis algorithm

Topological defects and its role in the phase transition of a dense defect system

Real-Space Renormalisation

REVIEW: Derivation of the Mean Field Result

Directional Ordering in the Classical Compass Model in Two and Three Dimensions

Phase transitions in the Ising model with random gap defects using the Monte Carlo method

Markov Chain Monte Carlo Method

0.1. CORRELATION LENGTH

Physics 562: Statistical Mechanics Spring 2003, James P. Sethna Homework 5, due Wednesday, April 2 Latest revision: April 4, 2003, 8:53 am

Phase Transitions in Spin Glasses

Statistical Thermodynamics Solution Exercise 8 HS Solution Exercise 8

Solving the Schrödinger equation for the Sherrington Kirkpatrick model in a transverse field

CRITICAL EXPONENTS OF SMALL ONE-DIMENSIONAL ISING MAGNETIC D. V. Spirin, V. N. Udodov

[7] M. Falcioni, E. Marinari, M.L. Paciello, G. Parisi and B. Taglienti, Phys. Lett. B 108

Is There Quantum Gravity in Two Dimensions? 1

Coarsening process in the 2d voter model

Transcription:

Monte Carlo Simulation of the 2D Ising model Emanuel Schmidt, F44 April 6, 2 Introduction Monte Carlo methods are a powerful tool to solve problems numerically which are dicult to be handled analytically. Nevertheless, these methods are applied to one of the best studied models in statistical physics in the following: The Ising model, which was invented by Wilhelm Lenz and investigated by his student Ernst Ising in the 92ies. In particular, the two-dimensional case with interactions between next neighbours only is considered. Setting the coupling constant to, the Hamiltonian used here reads H = ij σ i σ j where ij denotes all neighbouring pairs and σ i {, } characterizes the spins on the lattice. This model exhibts a second order phase transition, and Onsager found an exact solution in 944. In this report, implementations of the Ising model by means of two dierent algorithms are discussed. First, the single-spin ip Metropolis algorithm is used to investigate thermalization processes and autocorrelation times as well as for making a rst measurement of the magnetization and susceptibility in the critical region. Next, measurements at dierent lattice sizes are performed by means of the Wol algorithm. Using these results, values for the critical temperature T C and the critical exponents γ, ν are determined which can be compared to the known theoretical values. The implementation was done in C under Scientic Linux and Originlab OriginPro was used for evaluating and plotting the data. A necessary condition for a Monte Carlo algorithm based on a Markov process is ergodicity, which means that the time average is equal to the average over multiple systems. Equivalently, any state of the system can be reached from any other state. This turns out to be obvious for both algorithms, except for the very special case T = we are not interested in. To ensure that the algorithm works properly, the additional condition of detailed balance is sucient, that is, p A T (A B) A(A B) = p B T (B A) A(B A) A, B where T (A B) is the probability to propose moving from A to B and A(A B) is the probability to accept a move from A to B, and accordingly for B A. The probabilities p A and p B have to satisfy p A p B = Z e βe A Z e βe B = e β E where E = E A E B in order to sample the Boltzman distribution. From this latter condition, constraints on the algorithms can be derived. 2 The Metropolis algorithm The single-spin ip Metropolis algorithm randomly chooses a spin from an L L lattice and determines the energy dierence to the state where this spin is ipped. In order to get detailed balance, the probabilty of accepting the new conguration is set to { } A(A B) = Min, e +β(e AE B ). This procedure is repeated for a predetermined number of time steps, where it is convenient to count the time t in time steps per lattice site. To avoid treating the boundaries of the lattice dierently, periodic boundary conditions are imposed. For all simulations in this section, a 4 4 lattice was used.

2. Thermalization process One may choose from two initial states of the lattice, either equally distributed spins corresponding to an inverse temperature of β = or all spins aligned in the same direction corresponding to β =. It is rst determined how long the algorithm takes to reach an equilibrium at a given inverse temperature β, starting from these initial states......5.5.5.5 energy per site E. -.5 -..3. -.5 -. magnetization per site m energy per site E. -.5 -..5. -.5 -. magnetization per site m -2. -2. 2 3 4 5-2. -2. 2 3 4 5 Figure : Thermalization processes of m and E outside the critical region. Figure shows the thermalization process of the magnetization m and the energy E for β =.3 and β =.5, respectively, constituting the borders of the interval we are interested in. Such measurements were performed for dierent values of β in this interval. Since measurements with dierent initial states stabilize at the same values, one can conclude that indeed an equilibrium is reached. Furthermore, it is apparent that the thermalization time increases with β and that an equilibrium is reached much faster when starting from a polarized state....5.5 energy per site E. -.5 -..44. -.5 -. magnetization per site m -2. -2. 2 4 6 8 Figure 2: Thermalization process at β c. The scale on the x-axis is times longer than in Figure. In the critical region close to the theoretical value of the critical inverse temperatur, β C.44, the situation changes drastically as shown in Figure 2. In particular, the magnetization uctuates heavily and it is not easy to determine when an equilibrium is reached. This phenomenon is known as critical uctuations. It is pointed out that the time axis in Figure 2 is twenty times longer than in Figure. As the further measurements have to be performed on equilibrated data, the results of this section are carefully taken into account in the next sections. 2

2.2 Autocorrelation functions A typical feature of Monte-Carlo methods is that a large number of samples is necessary to obtain accurate results. The correlations between samples should be as small as possible. Therefore, the autocorrelation time has to be calculated before performing any further measurements. When dealing with discrete measurements over a bounded time interval, the exact autocorrelation function cannot be determined. For a discrete variable X k containing N measurements labeled by k = N, the following discrete version is used instead ( ) c(k) = N k X i+k X i N k X j N k N k i= where the measurements have to be equally spaced in time, such that t = k t. These functions were determined for the energy E and the absolute value of the magnetization m at dierent values of the inverse temperature β =.3....5 in steps of.. i= autocorrelation c E (t)/c E () /e /e2 2 =.3 =.35 =.4 =.45 =.5 autocorrelation time [steps per site] 35 3 25 2 5 5 for the energy for the magnetization 5 5 2 25 3 35.3.4.5 inverse temperature Figure 3: Left: Some autocorrelation functions for E for dierent values of β. For each curve an average was taken over measurements, each consisting of 2 4 samples taken after equilibration. Right: Autocorrelation times for E and m as a function of β. The left graph in Figure 3 shows several measurements of the autocorrelation function for the energy normalized to c E () = on a logarithmic scale. In the range below /e 3 not depicted here, the data gets more and more noisy. Analogous curves were found corresponding to m. Since the data behaves approximately linear at least within a certain range, the autocorrelation may be approximated through c(t) c() e t τ. The autocorrelation time τ (in steps per lattice site) is then found from the inverse function of the autocorrelation function via (n )τ = c (e n ) c (e ). The result is shown in the right graph in Figure 3. The autocorrelation times reach a maximal value around β c (critical slowing down) and rapidly decrease outside that area. The values obtained for the two functions are within the same order of magnitude. In order to obtain proper results, all further measurements maintain a period of at least 3τ between two consecutive samples taken. An interesting theoretical property of the autocorrelation time gives a reason for the limitations of the Metropolis algorithm when it comes to larger lattices. It can be shown that τ L z in the critical region, where z 2.2 is the dynamic exponent for this algorithm. Since the number of single Monte-Carlo steps forming one step per site is L 2, the computation time can be estimated to scale at least with L 4, so that computations slow down signicantly for larger L. 3

2.3 Magnetization and magnetic susceptibility Armed with the results of the previous sections, the measurements for the absolute value of the magnetization m and the susceptibility χ are performed. Starting from a fully polarized state, β is successively lowered from.5 to.3, where the step size is. outside the critical region and.5 inside. For every value of β, 4 samples are taken after equilibration. The samples are separated by at least 3τ...8 3 25 magnetization m.6.4.2 susceptibility 2 5 5..3.35.4.45.5.3.35.4.45.5 Figure 4: Magnetization m per site and susceptibility χ as a function of β for L = 4, computed with the Metropolis algorithm. Each point corresponds to 4 samples. The computation lasted several hours, and the results are shown in Figure 4. Clearly, signs of a phase transition can be seen, since the magnetization increases rapidly in a region around β C.44. However, a nite-size system is considered here and the behaviour indeed diers from what the theory predicts for the thermodynamic limit. The magnetization does not drop to zero for β < β C, and the susceptibilty only reaches a maximum, but does not diverge. The location of this maximum cannot simply be associated with β C, what will become apparent in the next chapter. 3 The Wol algorithm The Metropolis algorithm considered in the previous chapter is easy to implement, but also quite slow. In particular, it can take considerable time at low temperatures until a cluster of spins directed opposite to the prevailing direction is ipped. This is because the Metropolis algorithm acts locally and does not know about these clusters. A faster alternative are cluster ipping algorithms, such as the Wol algorithm considered in this chapter. Starting from a randomly chosen seed of a cluster C, this algorithm looks at all neighboring links x, y with x C and y / C. The probability of adding this link to the cluster that is to be ipped is set to { if σ x σ y P act = e 2βJ if σ x = σ y in order to obtain detailed balance. The implementation used here is based on a FIFO-buer. 3. Magnetization and magnetic susceptibility Using the Wol algorithm, measurements of the magnetization m and the susceptibility χ were performed in the same manner as in Section 2.3, but now for dierent lattice sizes L {2, 3, 4, 5, 6, }. In Figure 5, some of these measurements that best illustrate the characteristic changes with L were plotted. Of course, the curves for L = 4 precisely coincide with the ones in Figure 4 as expected. The graph on the left clearly shows that the progression of m becomes more and more similar to the curve expected for an order parameter of a second order phase transition as L grows. As it can 4

. 7 6 magnetization m.5 L = 2 L = 4 L = susceptibility 5 4 3 2 L = 6 L = 4 L = 2..3.35.4.45.5.3.35.4.45.5 Figure 5: Magnetization m per site and susceptibility χ as a function of β for some dierent lattice sizes, computed with the Wol algorithm. Now, each point corresponds to 5 samples. be seen in the graph on the right, the maximum of the susceptibility gets increasingly pronounced and approaches β C with L becoming larger. 3.2 Data collapse for dierent lattice sizes The whole set of data obtained in the previous section can now be evaluated using nite-size scaling. In an innite-size system, many quantities diverge around the critical point. For example, in theory, the correlation length ξ and the susceptibility χ diverge like ξ t ν and χ t γ where ν and γ are the critical exponents, if the reduced temperature t = T T C T C a nite lattice, χ cannot become larger than L and it can be derived that approaches zero. But on χ = L γ ν χ(l /ν t) where χ is the scaling function which is independent of L. Thus, by plotting χ = L γ/ν χ as a function of L /ν t, the curves for dierent values of L should coincide at least near the critical region for an appropriate choice of T C, γ and ν..5 rescaled susceptibility L - /.4.3.2. L = 2 L = 3 L = 4 L = 5 L = 6 L =. -4-2 2 4 rescaled reduced temperature L / t Figure 6: The scaling functions χ for six dierent lattice sizes, with γ =.75, ν = and T C = 2.27 5

Figure 6 illustrates the results of this analysis. Trying to make the curves overlap simply by visual judgement, it turns out that the curves match best when choosing γ =.75 ±.2, ν = ±.2 and T C = 2.27±.. These values are in accordance with the theoretical values γ = 7 4, ν = and T C = 2.269. Evidently, the maximum of χ is quite close to. Hence, the shift of the maximum of the susceptibility for a lattice with a side length of L can be roughly estimated by L β max,l β C L + where the exact value ν = is used. This again illustrates the shift shown on the right-hand side in Figure 5. 4 Conclusions The simulations of the 2-dimensional Ising model with the Metropolis algorithm and the Wol algorithm verify that this model shows a second-order phase transition with m as order parameter. The Metropolis algorithm is easier to implement, but the Wol algorithm is much more ecient. It allows to increase the lattice size and to obtain more accurate results at the same time. The method of nite-size scaling oers an elegant way both to compare data from dierently sized lattices and to determine the relevant parameters γ, ν and T C. These turn out to be in line with the analytical solution. The accuracy of the results could be further improved by using larger lattices and taking more samples. However, to keep the computation times reasonably short, more elaborate techniques, such as parallel computing or multi-spin coding, would be necessary. References [] M. E. J. Newman and G. T. Barkema. Monte Carlo Methods in Statistical Physics. Oxford University Press, 999. [2] F. Schwabl. Statistical Mechanics. Springer, 26. 6