2D Ising Model using Metropolis Algorithm
- Python 3.9 or higher
- Poetry
Clone the repository and navigate to the project root directory.
Install dependencies
Run poetry install to install dependencies.
Run python setup.py build_ext --inplace if using Cython to build the module. Recommended
Activate the virtual environment: Ensure you're in the poetry shell:
poetry shell
Execute the simulation:
python monte-carlo/simulation.py
To stop the simulation, press ⌘+C on macOS or Ctrl+C on Windows/Linux.
Install Homebrew (for macOS):
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"