Challenges
Datasets
Workspaces
Papers
Discussions
Leaderboard
Log inSign up
Challenges
Datasets
Workspaces
Papers
Discussions
Leaderboard
Blog
Job Board
Q3AS

© 2026 Aqora Quantum S.A.S.

TermsPrivacyLegal Notice

Oxford University Press eBooks

Other Algorithms for the Using Model

Mark E. J. Newman, G. T. Barkema

Published Feb 11, 1999• 0 citations
Publisher

Abstract

In the last chapter we saw that the Metropolis algorithm with single-spin-flip dynamics is an excellent Monte Carlo algorithm for simulating the using model when we are interested in temperatures well away from the critical temperature Tc However, as we approach the critical temperature, the combination of large critical fluctuations and long correlation time makes the errors on measured quantities grow enormously. As we pointed out, there is little to be done about the critical fluctuations, since these are an intrinsic property of the model near its phase transition (and are, what’s more, precisely the kind of interesting physical effect that we want to study with our simulations). On the other hand, the increase in the correlation time close to the phase transition is a function of the particular algorithm we are using-the Metropolis algorithm in this case-and it turns out that by using different algorithms we can greatly reduce this undesirable effect. In the first part of this chapter we will study one of the most widely used and successful such algorithms, the Wolff algorithm. Before introducing the algorithm however, we need to define a few terms.

DOI
10.1093/oso/9780198517962.003.0004

Related papers

Cluster hybrid Monte Carlo simulation algorithms

J. A. Plascak, Alan M. Ferrenberg, David Paul Landau

We show that addition of Metropolis single spin flips to the Wolff cluster-flipping Monte Carlo procedure leads to a dramatic increase in performance for the spin-1/2 Ising model. We also show that adding Wolff cluster flipping to the Metropolis or heat bath algorithms in systems where just cluster flipping is not immediately obvious (such as the spin-3/2 Ising model) can substantially reduce the statistical errors of the simulations. A further advantage of these methods is that systematic errors introduced by the use of imperfect random-number generation may be largely healed by hybridizing single spin flips with cluster flipping.

arXiv:cond-mat/0205264•Physical review. E, Statistical physics, plasmas, fluids, and related interdisciplinary topics•Jun 13, 2002•41 citations

Numerical methods

Hidetoshi Nishimori, Gerardo Ortíz

This chapter introduces a few typical numerical methods used in modern studies of phase transitions and critical phenomena in spin systems. The first section describes the stochastic dynamics of a generic system with discrete degrees of freedom following the master equation. This section serves as a theoretical basis for the Monte Carlo method that includes the heat bath and Metropolis algorithms of configuration updates. Another useful numerical technique is the transfer matrix method, described in the last section, and which is applied for numerically exact evaluation of the free energy and related physical quantities.

Oxford University Press eBooks•Dec 2, 2010•1 citation

How much faster is Wolff than Metropolis at the critical point?

Musa Ahmad

I simulated the two-dimensional Ising model at its exact critical temperature with two Markov chain Monte Carlo methods, the single-spin Metropolis algorithm and the Wolff cluster algorithm, on periodic L×L lattices from L = 8 to L = 64. For each method I measured the integrated autocorrelation time of the energy and of the absolute magnetization, using four independent runs per lattice size. Both methods reproduce the exact finite-lattice energy within statistical error. For Metropolis, the autocorrelation time of |M| grows as L^z with z = 2.11(3) for L ≥ 16 and 2.16(5) for L ≥ 24, in line with the accepted value z ≈ 2.17 for local dynamics. For Wolff, measured in sweep-equivalent units, I get z = 0.29(1) from the energy and 0.15(1) from |M| for L ≥ 24, within the range of published values. In CPU time per statistically independent sample of |M|, Wolff was 5 times faster at L = 8 and 275 times faster at L = 64, and the gap grows roughly as L^2. All code and raw results are available, and the full study runs in under an hour on two CPU cores.

•Oct 30, 2026•0 citations

Comparison of Monte Carlo Metropolis, Swendsen-Wang, and Wolff Algorithms in the Critical Region for the 2-dimensional Ising Model

Eloi-Alain Kyimba

Comparison of Monte Carlo Metropolis, Swendsen-Wang, and Wolff Algorithms in the Critical Region for the 2-Dimensional Ising Model.(Under the direction of Dean J. Lee.)We measure the efficiency of the Metropolis, Swendsen-Wang, and Wolff algorithms in the critical region as characterized by the correlation timeτ .This correlation time τ is then used to determine the dynamical critical exponent z using τ = L with L representing the linear dimension of the 2-dimensional Ising model.

•Mar 22, 2008•1 citation

Algorithmic overlaps as thermodynamic variables: From local to cluster Monte Carlo dynamics in critical phenomena

Ian Pilé, Youjin Deng, Щур Лев Николаевич

We investigate the spatial overlap of successive spin configurations in Markov chain Monte Carlo simulations using the local Metropolis algorithm and the Swendsen-Wang and Wolff cluster algorithms. We examine the dynamics of these algorithms for models in different universality classes: Ising model, Potts model with three components, and four-state Potts model. The overlap of two successive Wolff clusters reflects critical behavior and can be used as an order parameter for the algorithm's dynamics. In the case of the Swendsen-Wang algorithm, similar behavior is demonstrated by the variance of the overlap of two consecutive lattice configurations, which behaves like an order parameter. Nothing similar is observed for the Metropolis algorithm, where the dynamics in the critical region are determined by the spin-flip frequency, which is equivalent to the acceptance rate. Thus, the critical behavior of the Wolff cluster overlap and of the variance of the configuration overlap in the Swendsen-Wang algorithm are naturally related to the critical behavior of geometric objects---Fortuin-Kasteleyn clusters. Interestingly, in all cases the geometric quantity---the configuration overlap or its variance---reflects the thermodynamics of the phase transition.

arXiv:2604.10254•Physical review. B./Physical review. B•Jul 6, 2026•1 citation

Numerical simulations

Michel Le Bellac, Fabrice Mortessagne, G. G. Batrouni

As we have seen on several occasions, a great many of the physical phenomena of interest concern collective behaviour or strongly correlated particles. While it is sometimes possible to obtain useful insight using approximation methods, such as perturbation theory, reliable controlled approximations do not exist. In such situations, numerical simulations have become an indispensable tool. We shall not attempt in this chapter to discuss computer programming nor shall we discuss many of the powerful methods, both algorithmic and in data analysis, that have been developed since numerical simulations have become an important research tool. Instead, we shall assume that the reader already has enough familiarity with computer programming to apply the notions which we discuss here. Our goal is to explain enough of the basics of the Monte Carlo method (classical and quantum) to allow the reader to apply it readily to interesting equilibrium statistical physics problems of the type discussed in this book. The problems in this chapter have been tailored with this in mind. The programs needed are relatively simple and the physics illustrates many of the phenomena already seen: phase transitions with and without spontaneous symmetry breaking, critical exponents, diverging susceptibilities, scaling, vortices, superfluids etc. Consequently, some of the problems are somewhat long and may be better considered as mini-projects. Markov chains, convergence and detailed balance Even relatively innocent looking models are impossible to solve exactly. The exact solution of the two-dimensional Ising model is known but not in the presence of an external magnetic field. In three dimensions, even in the absence of a magnetic field, the exact solution is not known. In fact, relatively few models can be solved exactly; see Reference [14] for an excellent review of the subject.

Cambridge University Press eBooks•Apr 8, 2004•0 citations
In the last chapter we saw that the Metropolis algorithm with single-spin-flip dynamics is an excellent Monte Carlo algorithm for simulating the using model when we are interested in temperatures well away from the critical temperature Tc However, as we approach the critical temperature, the combination of large critical fluctuations and long correlation time makes the errors on measured quantities grow enormously. As we pointed out, there is little to be done about the critical fluctuations, since these are an intrinsic property of the model near its phase transition (and are, what’s more, precisely the kind of interesting physical effect that we want to study with our simulations). On the other hand, the increase in the correlation time close to the phase transition is a function of the particular algorithm we are using-the Metropolis algorithm in this case-and it turns out that by using different algorithms we can greatly reduce this undesirable effect. In the first part of this chapter we will study one of the most widely used and successful such algorithms, the Wolff algorithm. Before introducing the algorithm however, we need to define a few terms.
We show that addition of Metropolis single spin flips to the Wolff cluster-flipping Monte Carlo procedure leads to a dramatic increase in performance for the spin-1/2 Ising model. We also show that adding Wolff cluster flipping to the Metropolis or heat bath algorithms in systems where just cluster flipping is not immediately obvious (such as the spin-3/2 Ising model) can substantially reduce the statistical errors of the simulations. A further advantage of these methods is that systematic errors introduced by the use of imperfect random-number generation may be largely healed by hybridizing single spin flips with cluster flipping.
This chapter introduces a few typical numerical methods used in modern studies of phase transitions and critical phenomena in spin systems. The first section describes the stochastic dynamics of a generic system with discrete degrees of freedom following the master equation. This section serves as a theoretical basis for the Monte Carlo method that includes the heat bath and Metropolis algorithms of configuration updates. Another useful numerical technique is the transfer matrix method, described in the last section, and which is applied for numerically exact evaluation of the free energy and related physical quantities.
I simulated the two-dimensional Ising model at its exact critical temperature with two Markov chain Monte Carlo methods, the single-spin Metropolis algorithm and the Wolff cluster algorithm, on periodic L×L lattices from L = 8 to L = 64. For each method I measured the integrated autocorrelation time of the energy and of the absolute magnetization, using four independent runs per lattice size. Both methods reproduce the exact finite-lattice energy within statistical error. For Metropolis, the autocorrelation time of |M| grows as L^z with z = 2.11(3) for L ≥ 16 and 2.16(5) for L ≥ 24, in line with the accepted value z ≈ 2.17 for local dynamics. For Wolff, measured in sweep-equivalent units, I get z = 0.29(1) from the energy and 0.15(1) from |M| for L ≥ 24, within the range of published values. In CPU time per statistically independent sample of |M|, Wolff was 5 times faster at L = 8 and 275 times faster at L = 64, and the gap grows roughly as L^2. All code and raw results are available, and the full study runs in under an hour on two CPU cores.
We investigate the spatial overlap of successive spin configurations in Markov chain Monte Carlo simulations using the local Metropolis algorithm and the Swendsen-Wang and Wolff cluster algorithms. We examine the dynamics of these algorithms for models in different universality classes: Ising model, Potts model with three components, and four-state Potts model. The overlap of two successive Wolff clusters reflects critical behavior and can be used as an order parameter for the algorithm's dynamics. In the case of the Swendsen-Wang algorithm, similar behavior is demonstrated by the variance of the overlap of two consecutive lattice configurations, which behaves like an order parameter. Nothing similar is observed for the Metropolis algorithm, where the dynamics in the critical region are determined by the spin-flip frequency, which is equivalent to the acceptance rate. Thus, the critical behavior of the Wolff cluster overlap and of the variance of the configuration overlap in the Swendsen-Wang algorithm are naturally related to the critical behavior of geometric objects---Fortuin-Kasteleyn clusters. Interestingly, in all cases the geometric quantity---the configuration overlap or its variance---reflects the thermodynamics of the phase transition.
As we have seen on several occasions, a great many of the physical phenomena of interest concern collective behaviour or strongly correlated particles. While it is sometimes possible to obtain useful insight using approximation methods, such as perturbation theory, reliable controlled approximations do not exist. In such situations, numerical simulations have become an indispensable tool. We shall not attempt in this chapter to discuss computer programming nor shall we discuss many of the powerful methods, both algorithmic and in data analysis, that have been developed since numerical simulations have become an important research tool. Instead, we shall assume that the reader already has enough familiarity with computer programming to apply the notions which we discuss here. Our goal is to explain enough of the basics of the Monte Carlo method (classical and quantum) to allow the reader to apply it readily to interesting equilibrium statistical physics problems of the type discussed in this book. The problems in this chapter have been tailored with this in mind. The programs needed are relatively simple and the physics illustrates many of the phenomena already seen: phase transitions with and without spontaneous symmetry breaking, critical exponents, diverging susceptibilities, scaling, vortices, superfluids etc. Consequently, some of the problems are somewhat long and may be better considered as mini-projects. Markov chains, convergence and detailed balance Even relatively innocent looking models are impossible to solve exactly. The exact solution of the two-dimensional Ising model is known but not in the presence of an external magnetic field. In three dimensions, even in the absence of a magnetic field, the exact solution is not known. In fact, relatively few models can be solved exactly; see Reference [14] for an excellent review of the subject.