Hamiltonian oracle model