In general, in quantum mechanics we can prove probability current or the Schrodinger equation and other quantities are gauge invariant. However, the Hamiltonian isn't gauge invariant. Under a gauge transformation, the Hamiltonian operator changes(or have i understood wrong?) Does this mean that the Hamiltonian doesn't describes a true physical quantity like in classical mechanics?Closing, if the above are correct, do they have any affect on the principle of least action?
Thank you.
Note: The Hamiltonian is: $$H_f = {1 \over 2m} [P- qA(R,t)]^2 +qU(R,t) $$After a gauge transformation: $$H_g = {1 \over 2m} [P- qA'(R,t)]^2 +qU'(R,t) $$. Thus, we have $$H_f \neq H_g $$