Hamiltonian quantum dynamics with separability constraints