For a particle with mass m and charge q in an electromagnetic field, described by the scalar potential ϕ ϕ and vector potential A , there are two parts to the Hamiltonian to substitute for. The canonical momentum operator p ^ ^ , which includes a contribution from the A field and fulfils the canonical commutation relation, must be quantized;