Canonical momentum parallel to a uniform magnetic field
= Canonical momentum parallel to a uniform magnetic field
For a constant uniform magnetic field $B$, choose the symmetric gauge $A=\tfrac12B\times r$. The coordinate parallel to $B$ is cyclic, so its canonical momentum is conserved. Since $A\cdot B=0$, this component is also the mechanical momentum $m\dot r\cdot\widehat B$.