Heisenberg hamiltonian