Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 1.02 KB

README.md

File metadata and controls

22 lines (17 loc) · 1.02 KB

Ising model on Tensorflow

The notebook can simulate Ising model on a chain/square/cube/N-d hypercubic lattice. The Ising model consists of +/-1 at each lattice site. A clean model at a finite temperature can be simulated using Metropolis-Hashtings algorithm. The update can be parallelized using a checkerboard lattice, since it has nearest-neighbor interactions only. As a result, it can be simulated on a GPU very efficiently. Tensorflow library is used to demonstrate this on a square lattice Ising model with uniform Ferromagnetic interaction and a uniform field at a non-zero temperature.

Requirement

  • tensorflow 2.x
  • numpy
  • matplotlib
  • ipywidgets

Try in Binder

Binder

Try in Colab

Open In Colab

Disclaimer