The Swendsen-Wang algorithm is a cluster Markov chain Monte Carlo method that updates connected groups of variables together. For the ferromagnetic Ising model with no external field, let and , where and is inverse temperature. One step places a bond on each equal-spin edge independently with probability , leaves unequal-spin edges unbonded, then assigns each connected bond cluster an independent uniformly chosen sign.[ref]
Nonuniversal critical dynamics in Monte Carlo simulations by Robert H. Swendsen and Jian-Sheng Wang. 1987, cluster construction
The bond and spin updates are conditional draws from a joint spin-bond distribution. Summing out the bonds recovers the Boltzmann distribution, so alternating the two conditional draws preserves the intended equilibrium law.[ref]
Generalization of the Fortuin-Kasteleyn-Swendsen-Wang representation and Monte Carlo algorithm by R. G. Edwards and A. D. Sokal. Joint representation and alternating conditional updates
For two connected vertices initially carrying equal spins, the next spins agree with probability : a retained bond forces agreement, while an absent bond permits independent signs. Unlike a single-spin update, one step can reverse a large correlated region. This often reduces critical slowing down, although efficiency depends on the model and the observable. The Ising formula above should not be applied unchanged to a frustrated interaction or an external field.
Articles by others on the same topic
The Swendsen–Wang algorithm is a Monte Carlo method used for simulating systems with many interacting components, particularly in the context of statistical mechanics and lattice models like the Ising model. It is especially useful for studying phase transitions and critical phenomena in two-dimensional and higher-dimensional systems. The algorithm was introduced by Robert H. Swendsen and Jorge S. Wang in 1987 as an alternative to the traditional Metropolis algorithm.