Monte Carlo Simulation of Spins

Similar documents
4. Cluster update algorithms

dxf (x) Δxf (x n M dxf (x) M f (r ) ,, x N f (x 1 dx N

Hanoi 7/11/2018. Ngo Van Thanh, Institute of Physics, Hanoi, Vietnam.

Classical Monte Carlo Simulations

Cluster Algorithms to Reduce Critical Slowing Down

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

Monte Carlo Basics. Aiichiro Nakano

Phase transitions and finite-size scaling

Critical Dynamics of Two-Replica Cluster Algorithms

Monte Caro simulations

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

VSOP19, Quy Nhon 3-18/08/2013. Ngo Van Thanh, Institute of Physics, Hanoi, Vietnam.

Monte Carlo and cold gases. Lode Pollet.

LECTURE 10: Monte Carlo Methods II

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

Statistical description of magnetic domains in the Ising model

Exchange-Correlation Functional

Graphical Representations and Cluster Algorithms

A = {(x, u) : 0 u f(x)},

Metropolis Monte Carlo simulation of the Ising Model

Any live cell with less than 2 live neighbours dies. Any live cell with 2 or 3 live neighbours lives on to the next step.

Massively parallel Monte Carlo simulation of a possible topological phase transition in two-dimensional frustrated spin systems

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

Monte Carlo Simulation of the Ising Model. Abstract

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

ABSTRACT. We measure the efficiency of the Metropolis, Swendsen-Wang, and Wolff algorithms in

VSOP19, Quy Nhon 3-18/08/2013. Ngo Van Thanh, Institute of Physics, Hanoi, Vietnam.

Monte Carlo Simulations of the Hyaluronan-Aggrecan Complex in the Pericellular Matrix

arxiv: v1 [cond-mat.dis-nn] 12 Nov 2014

Invaded cluster dynamics for frustrated models

Kinetic Monte Carlo (KMC) Kinetic Monte Carlo (KMC)

Parallel Tempering Algorithm in Monte Carlo Simulation

Janus: FPGA Based System for Scientific Computing Filippo Mantovani

Advanced Monte Carlo Methods Problems

Monte Carlo Simulation of the 2D Ising model

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

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

Computational Physics. J. M. Thijssen

A Monte Carlo Implementation of the Ising Model in Python

Markov Chain Monte Carlo The Metropolis-Hastings Algorithm

Monte Carlo simulation calculation of the critical coupling constant for two-dimensional continuum 4 theory

The Phase Transition of the 2D-Ising Model

3.320 Lecture 18 (4/12/05)

arxiv:cond-mat/ v4 [cond-mat.dis-nn] 23 May 2001

Monte Carlo Study of Planar Rotator Model with Weak Dzyaloshinsky Moriya Interaction

Metastability and finite-size effects in magnetization switching

Complex Systems Methods 9. Critical Phenomena: The Renormalization Group

Markov Chain Monte Carlo Simulations and Their Statistical Analysis An Overview

Computational Physics (6810): Session 13

Numerical diagonalization studies of quantum spin chains

GPU-based computation of the Monte Carlo simulation of classical spin systems

arxiv:cond-mat/ v1 16 Nov 1992

Phase transitions in the Potts spin-glass model

Domain magnetization approach to the isothermal critical exponent

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

arxiv:cond-mat/ v1 19 Sep 1995

Crystal Polymorphism in Hydrophobically Nanoconfined Water. O. Vilanova, G. Franzese Universitat de Barcelona

Computer Vision Group Prof. Daniel Cremers. 11. Sampling Methods: Markov Chain Monte Carlo

General Construction of Irreversible Kernel in Markov Chain Monte Carlo

LECTURE 11: Monte Carlo Methods III

Renormalization group maps for Ising models in lattice gas variables

Temperature-dependence of magnetism of free Fe clusters

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

Introduction to the Renormalization Group

Physics 127b: Statistical Mechanics. Renormalization Group: 1d Ising Model. Perturbation expansion

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

Metropolis, 2D Ising model

REVIEW: Derivation of the Mean Field Result

Lecture 8: Computer Simulations of Generalized Ensembles

8.334: Statistical Mechanics II Problem Set # 4 Due: 4/9/14 Transfer Matrices & Position space renormalization

Optimized statistical ensembles for slowly equilibrating classical and quantum systems

Guiding Monte Carlo Simulations with Machine Learning

Generalized geometric cluster algorithm for fluid simulation

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

Physics 115/242 Monte Carlo simulations in Statistical Physics

arxiv: v1 [cond-mat.str-el] 22 Sep 2016

A Monte Carlo Study of the Specific Heat of Diluted Antiferromagnets

A6523 Signal Modeling, Statistical Inference and Data Mining in Astrophysics Spring

The Particle Filter. PD Dr. Rudolph Triebel Computer Vision Group. Machine Learning for Computer Vision

There are self-avoiding walks of steps on Z 3

Clusters and Percolation

Monte Carlo simulation of thin-film growth on a surface with a triangular lattice

Markov Chain Monte Carlo Method

Probabilistic Graphical Models Lecture Notes Fall 2009

reversed chain is ergodic and has the same equilibrium probabilities (check that π j =

arxiv: v1 [cond-mat.stat-mech] 9 Feb 2012

Stat 8501 Lecture Notes Spatial Lattice Processes Charles J. Geyer November 16, Introduction

Binder Cumulants for the Ising Model using Worm algorithms

The Ising model Summary of L12

Phase Transitions in Networks: Giant Components, Dynamic Networks, Combinatoric Solvability

Equilibrium, out of equilibrium and consequences

Computational Statistical Physics

arxiv: v1 [physics.comp-ph] 27 Sep 2018

Monte Carlo importance sampling and Markov chain

Renormalization Group analysis of 2D Ising model

The mixed-spins 1/2 and 3/2 Blume Capel model with a random crystal field

Phase Transitions of an Epidemic Spreading Model in Small-World Networks

Quantum Molecular Dynamics Basics

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

Self-learning Monte Carlo Method

Transcription:

Monte Carlo Simulation of Spins Aiichiro Nakano Collaboratory for Advanced Computing & Simulations Department of Computer Science Department of Physics & Astronomy Department of Chemical Engineering & Materials Science Department of Biological Sciences University of Southern California Email: anakano@usc.edu

Markov Chains for Complex Dynamics Hidden Markov model Viterbi algorithm Perron-Frobenius eigenvalue cluster analysis Int l J. Comput. Sci. 4, 352 ( 0) Proc. IEEE, 77, 257 ( 89)! IEEE Signal Processing Mag., 2(5), 42 ( 95)!

Ising Model Ising model: A collection of spins on a lattice, {s k s k = ±} Potential energy V (s N ) = J s k s l H s k, s k = ± (k,l) where J is the exchange coupling, H is the magnetic field, & (k, l) are nearest-neighbor pairs of lattice sites Curie temperature k +J! +H! -H! +J! +J! -J! Ernst Ising Periodic boundary condition: Wrapping around the lattice

Exotic Magnets

3D Ising Problem Is NP-Complete

MC Algorithm for 2D Ising Model initialize the spins, s[i][j] (0 i,j L-)" Sum_A = 0" for step = to maximum_step" randomly select a grid point, (i,j)" compute the change in potential energy, dv, with a single spin" flip, s i,j -s i,j " if dv 0 accept the flip, s i,j -s i,j " else if random() exp(-dv/kbt) then // 0 < random() < " accept the flip, s i,j -s i,j " endif" Sum_A = Sum_A + A(s N )" endfor" Average_A = Sum_A/maximum_step" δv = V (!, s ʹ k,!) V (!,s k,!) = J ( s ʹ k s k )s l l n.n.(k) = 2s ʹ k J s l + H l n.n.(k) H ( s ʹ k s k ) i = L*(rand()/(double)RAND_MAX);" j = L*(rand()/(double)RAND_MAX);" i = rand()%l;" j = rand()%l;" V (s N ) = J s k s l H s k, s k = ± (k,l) k

State Transition Spin flip: s k s ʹ k = s k double exp_dv[2][5]:" exp δv /k B T ( ) = exp 2 ʹ s k J k B T s l + H l n.n.(k) k B T Neighbor spins Sum - - - - - - - - - - -4-2 0 2 4

Data Structures "#define L 20 //Lattice size " "int s[l][l]; //Spins s[i][j] = ±" Periodic boundary condition: The west, east, south, north neighbors of site (i, j) are (im, j), (ip, j), (i, jm), (i, jp), where im = (i + L - ) % L ip = (i + ) % L " "jm = (j + L - ) % L jp = (j + ) % L Transition probability: double exp_dv[2][5]" exp_ dv[k][l] = exp δv = exp 2s J k B T k B T where" S " "k = ( + s)/2 (k = 0,; s = -,) l = (4 + S)/2 (l = 0,,2,3,4; S = Σ neighbor sʹ = -4,-2,0,2,4)" Ising model parameters " "double JdivT = J/k B T double HdivT = H/k B T s' s ' n.n.(s) + H k B T k=(+s)/2 0 l=(4+s)/2 0 2 3 4 s - S -4-2 0 2 4

Physical Quantities double runm;" "> " Running value of magnetization, >!To update, M + = 2 ʹ s k M = k s k "double summ = 0.0, summ2 = 0.0;" > To calculate the mean & variance of the magnetization at the end > After each MC step summ += runm; summ2 += runm*runm; int Sta_step; > # of MC steps to be performed > Mean & standard deviation of the magnetization avgm = summ Sta _ step sigm = summ 2 Sta _ step avgm 2 double avgm, sigm;"

Magnetization & Its Fluctuation L = 20! Note: it s an absolute value Histogram for 2 million MC steps!

Energy & Its Fluctuation L = 20! Potential energy: V (s N ) = J s k s l H s k, s k = ± (k,l) k

Cluster MC Algorithms Cluster MC: Speed up the convergence of MC simulations by introducing collective motions of the degrees-of-freedom, e.g., flipping a cluster of spins at a time Correlation time, τ: The number of MC steps before two states become uncorrelated Dynamic critical exponent, z: Near the critical temperature for magneticto-nonmagnetic phase transition, τ ~ L z (L: system size) > z = 2.25 for 2D Ising model > z = 0.35 for Swendsen-Wang cluster MC ( 87) > z ~ 0 for multigrid (hierarchical cluster) MC (Kandel et al., 88) L=8 L=4 L=2 L=

Cluster MC Algorithm Wolff Algorithm: Single step of Wolff s cluster flip. Choose a seed spin at random from the lattice. 2. Look in turn at each of the neighbors of that spin. If they are pointing in the same direction as the seed spin, add them to the cluster with probability P add = - exp(-2j/k B T). 3. For each spin that was added in step 2, examine each of its neighbors to find the ones pointing in the same direction & add each of them to the cluster with probability P add. Repeat this step as many times as necessary until there are no spins left in the cluster whose neighbors have not been considered for inclusion in the cluster. 4. Flip the cluster U. Wolff, Phys. Rev. Lett. 62, 36 ( 89)!

Detailed Balance in Wolff Algorithm Key to detailed balance, π mn ρ n = π nm ρ m : P add = - exp(-2j/k B T) Detailed balance for a cluster flip: µ ν (m bonds broken); ν µ (n bonds broken) ( - P add ) m P(µ) = ( - P add ) n P(ν) or ( - P add ) m-n = P(ν)/P(µ) ( - P add ) m-n = exp(-2j[m-n]/k B T) = exp(-[e ν - E µ ]/k B T) = P(ν)/P(µ)

Wolff Cluster MC Program Initiate a cluster-flip step using a stack /* Put a random seed spin site onto a stack */" i = rand()%l; j = rand()%l; " stack[0] = i*l + j; // D site index put in a stack" sp = ;" /* Flip the seed and remember the old & new spins */" oldspin = s[i][j]; newspin = -s[i][j];" s[i][j] = newspin; "

Cluster Flip while (sp) {" /* Pop a site off the stack */" current = stack[--sp]; i = current/l; j = current%l;" /* Check the neighbors */" if ((nn=i+) >= L) nn -= L; /* South neighbor */" if (s[nn][j] == oldspin)" if (rand()/(double)rand_max < padd) {" stack[sp++] = nn*l + j; s[nn][j] = newspin;" }" if ((nn=i-) < 0) nn += L; /* North neighbor */" if (s[nn][j] == oldspin)" if (rand()/(double)rand_max < padd) {" stack[sp++] = nn*l + j; s[nn][j] = newspin;" }" if ((nn=j+) >= L) nn -= L; /* East neighbor */" if (s[i][nn] == oldspin)" if (rand()/(double)rand_max < padd) {" stack[sp++] = i*l + nn; s[i][nn] = newspin;" }" if ((nn=j-) < 0) nn += L; /* West neighbor */" if (s[i][nn] == oldspin)" if (rand()/(double)rand_max < padd) {" stack[sp++] = i*l + nn; s[i][nn] = newspin;" }" } /* End while stack is not empty */" padd = exp( 2J /k B T )

Sample Run