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

Transactions on Machine Intelligence

Phase Transition of the Two-Dimensional Ising Model in a Homogeneous Magnetic Field Using the Metropolis Monte Carlo Algorithm and Separation of Different Phases via CNN

R. Rastgar Poor, N. Majd

Published Feb 25, 2025• 0 citations
Publisher

Abstract

Quantum spin networks represent configurations of spins arranged on a topological lattice, where the spin interactions are governed by the system's Hamiltonian. These networks are critical for understanding magnetic materials, as the arrangement of spins and the type of interaction between neighboring spins determine the macroscopic behavior of the system. The behavior of these systems is further influenced by the presence of external magnetic fields. In this paper, we first investigate the various phases of the two-dimensional Ising lattice with periodic boundary conditions under the influence of a uniform external magnetic field. The exploration of these phases is performed using the Metropolis Monte Carlo (MP-MN) algorithm, a well-established statistical method for simulating spin systems. Subsequently, we explore the potential of deep learning, specifically convolutional neural networks (CNN), in identifying and predicting these phases of spin lattices. The CNN's ability to classify different phases of the two-dimensional Ising model in the presence of a homogeneous magnetic field at a constant temperature is examined. The study aims to demonstrate how machine learning models, particularly CNNs, can effectively detect phase transitions and predict the system's behavior, which traditionally requires extensive computational methods. Finally, the performance of the CNN algorithm is evaluated by assessing its accuracy in predicting different phases of the Ising model.

DOI
10.47176/tmi.2025.17

Related papers

Phase Transition of the 2D Square Ising Model in a Homogeneous Magnetic Field Using the Metropolis Monte Carlo Algorithm and Separation of Different Phases via CNN Method

R. Rastgarpour, N. Majd

Quantum spin networks represent systems in which quantum spins are arranged on a topological lattice, where the nature of spin interactions and the influence of external magnetic fields can lead to complex collective behaviors. The Hamiltonian governing such systems determines the energy landscape and phase transitions under various thermodynamic conditions. In this paper, we focus on the two-dimensional Ising spin model with periodic boundary conditions subjected to a uniform external magnetic field. Initially, we employ the Metropolis Monte Carlo (MP-MN) algorithm to simulate the system and identify its phase transitions at different magnetic field strengths. The emergence of ordered and disordered phases in response to thermal fluctuations and magnetic interactions is systematically analyzed. Subsequently, we explore the application of convolutional neural networks (CNNs), a powerful class of deep learning models, to detect and classify the phases of the Ising model based on spin configurations generated at a fixed temperature. The CNN is trained using labeled data representing different magnetic field values, and its performance in phase prediction is quantitatively evaluated. The results demonstrate that CNNs can successfully learn complex spin patterns and provide accurate classification of spin phases, highlighting their potential for analyzing phase transitions in statistical physics models.

Transactions on Machine Intelligence•Nov 25, 2024•0 citations

Machine Learning of Nonequilibrium Phase Transition in an Ising Model on Square Lattice

Dagne Wordofa Tola, Mulugeta Bekele

This paper presents the investigation of convolutional neural network (CNN) prediction successfully recognizing the temperature of the nonequilibrium phase transitions in two-dimensional (2D) Ising spins on a square lattice. The model uses image snapshots of ferromagnetic 2D spin configurations as an input shape to provide the average output predictions. By considering supervised machine learning techniques, we perform Metropolis Monte Carlo (MC) simulations to generate the configurations. In the equilibrium Ising model, the Metropolis algorithm respects detailed balance condition (DBC), while its nonequilibrium version violates DBC. Violating the DBC of the algorithm is characterized by a parameter −8<ε<8. We find the exact result of the transition temperature Tc(ε) in terms of ε. If we set ε=0, the usual single spin-flip algorithm can be restored, and the equilibrium configurations generated with such a set up are used to train our model. For ε≠0, the system attains the nonequilibrium steady states (NESS), and the modified algorithm generates NESS configurations (test dataset). The trained model is successfully tested on the test dataset. Our result shows that CNN can determine Tc(ε≠0) for various ε values, consistent with the exact result.

arXiv:2307.11901•Condensed Matter•Sep 15, 2023•10 citations

Monte Carlo-Based Modeling of 2-D Ising Systems Using Metropolis Algorithm, Simulation Techniques, Thermodynamic Behavior and Magnetization Patterns

Adama Gaye, Omolola Dorcas Atanda

This study presents a comprehensive Monte Carlo simulation of the two-dimensional (2-D) Ising model using the Metropolis algorithm to investigate critical phenomena and thermodynamic behavior in spin-lattice systems. The model, implemented in MATLAB with periodic boundary conditions, explores equilibrium properties such as magnetization, internal energy, specific heat, and susceptibility across a range of temperatures. By employing various initial spin configurations—ordered and random—the simulations demonstrate the system's ergodicity and convergence to thermal equilibrium. Key results include a sharp decline in magnetization and a pronounced peak in specific heat near the critical temperature, consistent with second-order phase transition behavior. The simulation captures microscopic domain evolution, highlighting the transition from ferromagnetic to paramagnetic phases as thermal fluctuations increase. The study further evaluates algorithmic efficiency, discusses the impact of lattice size on statistical accuracy, and proposes improvements using advanced cluster algorithms and parallel computing frameworks. The findings validate theoretical predictions from Onsager's solution and underscore the versatility of Monte Carlo techniques in modeling collective behavior in magnetic systems. The simulation framework offers a robust foundation for analyzing critical dynamics and extends its relevance to broader applications in material science, computational physics, and complex systems modeling.

•May 20, 2025•1 citation

Deep learning study of nonequilibrium phase transitions in ferromagnetic systems under effective interactions

Dagne Wordofa Tola, Mulugeta Bekele

Abstract Phase transitions play a central role in statistical physics and are well understood in systems at thermal equilibrium. However, their nonequilibrium counterparts remain less explored because of the lack of a unified theoretical framework. In this study, we examine the potential of deep learning, specially convolutional neural networks (CNN), to detect nonequilibrium phase transitions (NEPT) in a 2D Ising model-like square lattice ferromagnetic system under effective parameter h . Without this parameter ( h = 0 ), we generate equilibrium spin configurations using the standard Metropolis algorithm as usual. With h ≠ 0 , we generate nonequilibrium spin configurations using an effective Glauber update rule which breaks detailed balance. While the former is used to train CNN, the later is not subsequently described by the usual Boltzmann-Gibbs distribution rather used to test the model. The study shows that the trained CNN can distinguish between ordered and disordered nonequilibrium steady states and accurately predict the critical temperature of the system undergoing NEPT. Finite size scaling analysis of the model’s output (perdition) reproduces critical exponents that agree with theoretical expectations, indicating that this method provides a strong, data driven approach for examining nonequilibrium critical phenomena.

Journal of Physics Communications•Aug 21, 2026•0 citations

Monte Carlo Investigation of Magnetic Phase Transitions in the Two-Dimensional Ising Model

Satyendra Lohar, Neha Srivas, Akhilesh Dwivedi

Many problems in statistical physics resist exact solution once the number of interacting particles becomes large, and the two-dimensional Ising model is a classic case where numerical simulation fills that gap. This paper reports a Monte Carlo study of the two-dimensional Ising model using the Metropolis algorithm, undertaken to examine how magnetization, internal energy, specific heat, and magnetic susceptibility change with temperature. Spin configurations were generated on a square lattice under periodic boundary conditions, with each proposed spin flip accepted or rejected according to the Boltzmann weight of the resulting energy change. The simulation reproduces the expected transition from an ordered ferromagnetic state at low temperature to a disordered paramagnetic state at high temperature, with magnetization falling sharply and both specific heat and susceptibility peaking near a critical temperature of Tc ≈ 2.3–2.4 (in units of J/kB), consistent with the exact value obtained analytically for this system. These results confirm that the Metropolis algorithm, despite its simplicity, remains a dependable tool for locating second-order phase transitions and extracting thermodynamic quantities in lattice spin systems, and the same computational framework can be adapted to more elaborate models used in condensed matter and materials research.

•Aug 14, 2026•0 citations

Magnetic Properties of a Square Lattice Ising Ferromagnetic System for Different Spins with Monte Carlo Simulation

A. Azdouh, Said Harir, Anouar Elidrysy +3 more

Using the Monte Carlo Simulation (MCS) method combined with the Metropolis algorithm, we explore the magnetic properties of a two-dimensional (2D) spin system with spins 1, 2 and 3. The adapted simulation to the Ising model aims to study the impact of the correction term a of the interaction with second neighbors and the crystal field D on the critical temperature [Formula: see text] of the 2D anisotropic square lattice for different integer values of spins. The obtained results demonstrate that the critical temperature [Formula: see text] is significantly affected by the competing interactions between the anisotropy parameter, second-neighbor interaction and the crystal field. The considered model exhibits a critical phase transition regardless of the spin S value where the critical temperature increases with the value of S. Note that this phase transition occurs under the condition [Formula: see text]. Moreover, the obtained results show that the complex interactions give rise to a variety of phase diagrams, thereby revealing the richness of possible magnetic behaviors in the studied system.

SPIN•Feb 12, 2025•1 citation
Quantum spin networks represent configurations of spins arranged on a topological lattice, where the spin interactions are governed by the system's Hamiltonian. These networks are critical for understanding magnetic materials, as the arrangement of spins and the type of interaction between neighboring spins determine the macroscopic behavior of the system. The behavior of these systems is further influenced by the presence of external magnetic fields. In this paper, we first investigate the various phases of the two-dimensional Ising lattice with periodic boundary conditions under the influence of a uniform external magnetic field. The exploration of these phases is performed using the Metropolis Monte Carlo (MP-MN) algorithm, a well-established statistical method for simulating spin systems. Subsequently, we explore the potential of deep learning, specifically convolutional neural networks (CNN), in identifying and predicting these phases of spin lattices. The CNN's ability to classify different phases of the two-dimensional Ising model in the presence of a homogeneous magnetic field at a constant temperature is examined. The study aims to demonstrate how machine learning models, particularly CNNs, can effectively detect phase transitions and predict the system's behavior, which traditionally requires extensive computational methods. Finally, the performance of the CNN algorithm is evaluated by assessing its accuracy in predicting different phases of the Ising model.
Quantum spin networks represent systems in which quantum spins are arranged on a topological lattice, where the nature of spin interactions and the influence of external magnetic fields can lead to complex collective behaviors. The Hamiltonian governing such systems determines the energy landscape and phase transitions under various thermodynamic conditions. In this paper, we focus on the two-dimensional Ising spin model with periodic boundary conditions subjected to a uniform external magnetic field. Initially, we employ the Metropolis Monte Carlo (MP-MN) algorithm to simulate the system and identify its phase transitions at different magnetic field strengths. The emergence of ordered and disordered phases in response to thermal fluctuations and magnetic interactions is systematically analyzed. Subsequently, we explore the application of convolutional neural networks (CNNs), a powerful class of deep learning models, to detect and classify the phases of the Ising model based on spin configurations generated at a fixed temperature. The CNN is trained using labeled data representing different magnetic field values, and its performance in phase prediction is quantitatively evaluated. The results demonstrate that CNNs can successfully learn complex spin patterns and provide accurate classification of spin phases, highlighting their potential for analyzing phase transitions in statistical physics models.
This paper presents the investigation of convolutional neural network (CNN) prediction successfully recognizing the temperature of the nonequilibrium phase transitions in two-dimensional (2D) Ising spins on a square lattice. The model uses image snapshots of ferromagnetic 2D spin configurations as an input shape to provide the average output predictions. By considering supervised machine learning techniques, we perform Metropolis Monte Carlo (MC) simulations to generate the configurations. In the equilibrium Ising model, the Metropolis algorithm respects detailed balance condition (DBC), while its nonequilibrium version violates DBC. Violating the DBC of the algorithm is characterized by a parameter −8<ε<8. We find the exact result of the transition temperature Tc(ε) in terms of ε. If we set ε=0, the usual single spin-flip algorithm can be restored, and the equilibrium configurations generated with such a set up are used to train our model. For ε≠0, the system attains the nonequilibrium steady states (NESS), and the modified algorithm generates NESS configurations (test dataset). The trained model is successfully tested on the test dataset. Our result shows that CNN can determine Tc(ε≠0) for various ε values, consistent with the exact result.
This study presents a comprehensive Monte Carlo simulation of the two-dimensional (2-D) Ising model using the Metropolis algorithm to investigate critical phenomena and thermodynamic behavior in spin-lattice systems. The model, implemented in MATLAB with periodic boundary conditions, explores equilibrium properties such as magnetization, internal energy, specific heat, and susceptibility across a range of temperatures. By employing various initial spin configurations—ordered and random—the simulations demonstrate the system's ergodicity and convergence to thermal equilibrium. Key results include a sharp decline in magnetization and a pronounced peak in specific heat near the critical temperature, consistent with second-order phase transition behavior. The simulation captures microscopic domain evolution, highlighting the transition from ferromagnetic to paramagnetic phases as thermal fluctuations increase. The study further evaluates algorithmic efficiency, discusses the impact of lattice size on statistical accuracy, and proposes improvements using advanced cluster algorithms and parallel computing frameworks. The findings validate theoretical predictions from Onsager's solution and underscore the versatility of Monte Carlo techniques in modeling collective behavior in magnetic systems. The simulation framework offers a robust foundation for analyzing critical dynamics and extends its relevance to broader applications in material science, computational physics, and complex systems modeling.
Abstract Phase transitions play a central role in statistical physics and are well understood in systems at thermal equilibrium. However, their nonequilibrium counterparts remain less explored because of the lack of a unified theoretical framework. In this study, we examine the potential of deep learning, specially convolutional neural networks (CNN), to detect nonequilibrium phase transitions (NEPT) in a 2D Ising model-like square lattice ferromagnetic system under effective parameter h . Without this parameter ( h = 0 ), we generate equilibrium spin configurations using the standard Metropolis algorithm as usual. With h ≠ 0 , we generate nonequilibrium spin configurations using an effective Glauber update rule which breaks detailed balance. While the former is used to train CNN, the later is not subsequently described by the usual Boltzmann-Gibbs distribution rather used to test the model. The study shows that the trained CNN can distinguish between ordered and disordered nonequilibrium steady states and accurately predict the critical temperature of the system undergoing NEPT. Finite size scaling analysis of the model’s output (perdition) reproduces critical exponents that agree with theoretical expectations, indicating that this method provides a strong, data driven approach for examining nonequilibrium critical phenomena.
Many problems in statistical physics resist exact solution once the number of interacting particles becomes large, and the two-dimensional Ising model is a classic case where numerical simulation fills that gap. This paper reports a Monte Carlo study of the two-dimensional Ising model using the Metropolis algorithm, undertaken to examine how magnetization, internal energy, specific heat, and magnetic susceptibility change with temperature. Spin configurations were generated on a square lattice under periodic boundary conditions, with each proposed spin flip accepted or rejected according to the Boltzmann weight of the resulting energy change. The simulation reproduces the expected transition from an ordered ferromagnetic state at low temperature to a disordered paramagnetic state at high temperature, with magnetization falling sharply and both specific heat and susceptibility peaking near a critical temperature of Tc ≈ 2.3–2.4 (in units of J/kB), consistent with the exact value obtained analytically for this system. These results confirm that the Metropolis algorithm, despite its simplicity, remains a dependable tool for locating second-order phase transitions and extracting thermodynamic quantities in lattice spin systems, and the same computational framework can be adapted to more elaborate models used in condensed matter and materials research.
Using the Monte Carlo Simulation (MCS) method combined with the Metropolis algorithm, we explore the magnetic properties of a two-dimensional (2D) spin system with spins 1, 2 and 3. The adapted simulation to the Ising model aims to study the impact of the correction term a of the interaction with second neighbors and the crystal field D on the critical temperature [Formula: see text] of the 2D anisotropic square lattice for different integer values of spins. The obtained results demonstrate that the critical temperature [Formula: see text] is significantly affected by the competing interactions between the anisotropy parameter, second-neighbor interaction and the crystal field. The considered model exhibits a critical phase transition regardless of the spin S value where the critical temperature increases with the value of S. Note that this phase transition occurs under the condition [Formula: see text]. Moreover, the obtained results show that the complex interactions give rise to a variety of phase diagrams, thereby revealing the richness of possible magnetic behaviors in the studied system.