Linear-optical simulation of the cooling of a cluster-state Hamiltonian system.