hamiltonian map