added gpu hamiltonian