A new representation of the solution of the Ising model