Is the canonical momentum conserved when a particle moves in magnetic field? Here is a question about the canonical momentum that I had asked some days ago, but I still have one point that I am not understand.
Considering a particle moves in a magnetic field with charge $q$ and mass $m$, its hamiltonian is $$H=\frac{\vec{P}^2}{2m}=\frac{(\vec{p}+q\vec{A})^2}{2m}$$
where $\vec{p}$ is the momentum of the particle, $\vec{A}$ is the vector potential of the magnetic field and $\vec{P}$ is the canonical momentum of the particle.
I think, because of the expression of the hamiltonian, the canonical momentum $\vec{P}$ is a conserved quantity.
But by the answer in the previous link, it seems that the canonical momentum is not conserved even in a simple example that a particle moves in a homogeneous magnetic field.
I am confused about this question. Is the canonical momentum conserved when a particle moves in magnetic field? 
 A: As Jan noted, the Hamiltonian should have a minus sign:
$H=\frac{(p-qA)^2}{2m}$
where $p$ is the canonical momentum, and the expression $p-qA$ is the kinetic momentum $P$.
A homogenous magnetic field is an interesting case, because the vector potential in a given gauge does not exhibit translation invariance, but the physical system clearly does. The solution to this dilemma is that you can preserve translational invariance by changing the gauge as you move the coordinates.
There is a conserved quantity associated with this symmetry, but it turns out not to be the canonical momentum (or the kinetic momentum, either). I don't know if it has a particular name, and since it is gauge-dependent there is no universal expression you can write for it. But, for example, in the gauge where $A=\frac{B}{2}(-y,x)$, it is just $(p+qA)$. If anyone has an insight into any physical interpretation of this quantity I would be interested to hear it.
There is a very nice example of all this, worked out concretely, in these notes.
A: Maybe an example helps. Let $B$ be a constant magnetic field. Then we can take $A=\frac12B×x$. Now 
$$\frac{(p+qA)^2}{2m}=\frac{p^2}{2m}+\frac{q}{2m}(p⋅A+A⋅p)+\frac{q^2A^2}{2m},$$ and $$p⋅A+A⋅p=l⋅B$$
where $l=x×p$. Thus
$$\frac{(p+qA)^2}{2m}=\frac{p^2}{2m}+\frac{q}{2m}l⋅B+\frac{q^2A^2}{2m}.$$
Here we recognise the $l⋅B$-term as the Zeeman term.
If we now calculate the derivative of $p$ according to 
$$\frac{dp}{dt}=i[p,H],$$
 then we obtain the Lorentz force.
This is the quantum version. In the classical case the commutator is replaced by the Poisson bracket.
A: This question is well answered, however, let me add one more point.
Newton's equation of motion can be written in the following form:
$$
\frac{d}{dt}(\vec p + q\vec A) = -q\nabla(\phi - \vec v\cdot\vec A)
$$
Here $\vec p = \gamma m \vec v$ is the kinetic momentum. $\phi$ is the electric potential. $\vec P \equiv \vec p + q \vec A$ is the canonical momentum. It is clear from this equation that the canonical momentum is only conserved if the gradient of the generalized potential $\phi - \vec v\cdot\vec A$ is zero.
As the previous answers pointed out, in the uniform magnetic field, there is a conserved quantity, owing to the translational invariance of the system. This quantity is known in the literature as the pseudo-momentum:
$$
\vec K = \vec p + 2q\vec A = \vec P + q \vec A 
$$
You can check this by taking the time derivative of $\vec K$.
A: Hint: $P$ is conserved if it is not explicitly time-dependent and if its Poisson bracket with the Hamiltonian is zero. 
So you just neet to check that:
  $$ \{P,H \}=0$$
A: Hamilton's equations state $\dot{P_i} = -\frac{\partial H}{\partial q^i}.$In this case, this is
$\dot{P_i} = -\frac{\partial H}{\partial q^i} = -\frac{\vec{P}}{m} \cdot \frac{\partial \vec{A}}{\partial q^i}.$
So the canonical momentum is not conserved.
A: The canonical (total) momentum is the sum of the kinetic (mechanical) momentum and the potential momentum. Potential momentum occurs only if the potential energy depends explicitly on velocity.
Look at a much more simple case: A particle falls down in constant gravity. The potential energy depends only on height. There is no potential momentum. The canonical momentum is just the mechanical momentum, which obviously is not constant. It increases as the particle falls.
