2次元 Ising 模型のモンテカルロシミュレーションMonte Carlo Simulation of the 2D Ising Model
正方格子上の Ising 模型を Metropolis 法でシミュレーションしています。 温度 \(T\) と結合定数 \(J\) を動かして遊んでみてください。
The Ising model on the square lattice, simulated with the Metropolis algorithm. Play with the temperature \(T\) and the coupling \(J\).
交替磁化Staggered magnetization \(|m_s|\) = 0.00
周期境界条件、Metropolis 法(1スイープ/フレーム) Periodic boundary conditions, Metropolis updates (1 sweep/frame)
解説About
このシミュレーションが扱うのは、正方格子上の Ising 模型です。各サイトの スピン \(s_i = \pm 1\)(赤が \(+1\)、青が \(-1\))が最近接どうしで相互作用します。
This simulation deals with the Ising model on the square lattice: spins \(s_i = \pm 1\) (red = \(+1\), blue = \(-1\)) interact between nearest neighbors.
\(J > 0\) なら隣どうし揃うのが得(強磁性)、\(J < 0\) なら反平行が得 (反強磁性)です。系は温度 \(T\) の熱浴に接しているとします(以下 \(k_B = 1\))。
For \(J > 0\) neighbors prefer to align (ferromagnet); for \(J < 0\) they prefer to anti-align (antiferromagnet). The system is coupled to a heat bath at temperature \(T\) (we set \(k_B = 1\) throughout).
更新は Metropolis 法です。ランダムにスピンを1つ選び、それを反転させたときの エネルギー変化 \(\Delta E\) を計算して、次の確率で反転を受け入れます。
The dynamics is the Metropolis algorithm: pick a spin at random, compute the energy change \(\Delta E\) for flipping it, and accept the flip with probability
この規則は詳細釣り合いを満たすので、十分時間が経つとスピン配置はボルツマン分布 \(\propto e^{-E/T}\) からのサンプルになります。画面の「1スイープ」は \(N = L^2\) 回の反転試行に対応します。
This rule satisfies detailed balance, so at long times the configurations are sampled from the Boltzmann distribution \(\propto e^{-E/T}\). One "sweep" corresponds to \(N = L^2\) flip attempts.
2次元 Ising 模型は、相転移を示す模型として最初に厳密に解かれた記念碑的な模型です (Onsager, 1944)。転移温度は
The 2D Ising model is the monumental first exactly solved model exhibiting a phase transition (Onsager, 1944). The transition temperature is
低温側 \(T < T_c\) では自発磁化が現れ、その厳密な表式 (Onsager–Yang)も知られています。
Below \(T_c\) a spontaneous magnetization appears, with the exact expression (Onsager–Yang)
ここから読み取れる臨界指数は \(\beta = \dfrac{1}{8}\) で、ほかに \(\gamma = \dfrac{7}{4}\)、\(\nu = 1\) などが厳密に 分かっています。臨界点はセントラルチャージ \(c = \dfrac{1}{2}\) の共形場理論——自由 Majorana フェルミオン——で記述されます。古典スピン模型の臨界点に Majorana フェルミオンが 現れるというのは、何度考えても味わい深い事実です。
The critical exponent read off here is \(\beta = \dfrac{1}{8}\), and others such as \(\gamma = \dfrac{7}{4}\) and \(\nu = 1\) are also known exactly. The critical point is described by a conformal field theory with central charge \(c = \dfrac{1}{2}\) — a free Majorana fermion. That a Majorana fermion emerges at the critical point of a classical spin model is a fact worth savoring, however many times one thinks about it.
\(J < 0\) の反強磁性の場合はどうでしょうか。正方格子は二部格子なので、 部分格子変換 \(s_i \to (-1)^{x+y} s_i\) によって \(J \to -J\) の系と厳密に移り合います。したがって転移温度は 強磁性の場合と同じで、秩序が一様磁化ではなく交替磁化(市松模様の Néel 秩序)に 変わるだけです。これはフラストレーションのない格子の特権で、例えば三角格子の 反強磁性 Ising 模型ではこの変換が使えず、基底状態がマクロに縮退する まったく別の物理になります。
What about the antiferromagnet, \(J < 0\)? The square lattice is bipartite, so the sublattice transformation \(s_i \to (-1)^{x+y} s_i\) maps it exactly onto the \(J \to -J\) system. The transition temperature is therefore identical, and only the order changes: staggered (checkerboard Néel) instead of uniform. This is the privilege of an unfrustrated lattice — on the triangular lattice the transformation fails, and the antiferromagnetic Ising model becomes an entirely different problem with macroscopic ground-state degeneracy.
遊び方のおすすめ:温度を \(T_c \approx 2.27\) に合わせると、 あらゆるスケールのドメインが現れては消える臨界揺らぎが見られます (相関長が発散した状態です)。高温から一気に低温へ下げると(クエンチ)、 ドメインがゆっくり合体していく粗大化の過程が観察できます。 また \(T_c\) 付近では、単一スピン反転の動的指数が \(z \approx 2.2\) と 大きいため緩和が極端に遅くなる「臨界減速」も体感できます——実際の研究では Wolff 法や Swendsen–Wang 法のようなクラスター更新でこれを回避します。
Suggestions for play: tune the temperature to \(T_c \approx 2.27\) and you will see critical fluctuations — domains of all sizes appearing and dissolving, the signature of a diverging correlation length. Quenching from high to low temperature shows slow domain coarsening. Near \(T_c\) you can also feel "critical slowing down": single-spin-flip dynamics has a large dynamical exponent \(z \approx 2.2\), which is why real studies use cluster updates such as the Wolff or Swendsen–Wang algorithms.
参考文献References
・L. Onsager, Phys. Rev. 65, 117 (1944)——2次元 Ising 模型の厳密解。
・N. Metropolis, A. W. Rosenbluth, M. N. Rosenbluth, A. H. Teller, and E. Teller, J. Chem. Phys. 21, 1087 (1953)——Metropolis 法の原論文。
・M. E. J. Newman and G. T. Barkema, Monte Carlo Methods in Statistical Physics (Oxford UP, 1999)——モンテカルロ法の定番教科書。
・L. Onsager, Phys. Rev. 65, 117 (1944) — the exact solution of the 2D Ising model.
・N. Metropolis, A. W. Rosenbluth, M. N. Rosenbluth, A. H. Teller, and E. Teller, J. Chem. Phys. 21, 1087 (1953) — the original Metropolis-algorithm paper.
・M. E. J. Newman and G. T. Barkema, Monte Carlo Methods in Statistical Physics (Oxford UP, 1999) — the standard Monte Carlo textbook.