Isingpy
Discription
A python implement for ising model and metropolis algorithm in the book introduction to computational materials science(Chapter 7)
Usage
- Install the nessary dependancies
- pytorch
- Config can be set in hparams.py
{
"points_number": 10,
"epochs": 1000,
"gpu": False,
}
- Run the code
python ./src/ising.py
Reference
- About the metropolis algorithm
- About the ising model