A mathematical expression used in the Ising model to describe the energy of a given configuration of magnetic spins.