This repository contains algorithms based on the concept of 'Markov Chain Monte Carlo' for the extraction of thermal equilibrium properties of statistical systems. It contains codes for Monte Carlo simulations of well known statistical systems known as 'Ising model' and 'XY model'. Metropolis algorithm is applied for generating the the equilibrium configurations of these systems distributed according to Boltzmann distribution. The image below shows an example of a configuration of the Ising Model on a lattice of size 256x256, obtained after approximately a million Markov chain Monte Carlo steps.
- ising.py implements the metropolis algorithm on the Ising model.
- animation.py creates an animation of the Markov chain of the Ising model configurations.
- ising.ipynb is a jupyter notebook for better visualizations of the thermodynamic variables plotted as functions of Monte Carlo steps.
- xy.py implements the metropolis algorithm on the XY model.
