Ising model
The energy of the Ising model is defined to be: