Gapped two-body Hamiltonian for continuous-variable quantum computation