Gauge invariance and Bohm-Aharonov effect I am confused with the Bohm-Aharonov effect: though quantum mechanics is said to be gauge invariant, the presence of a solenoid imposes a gauge. I used to think that a phase shift did not change anything in the physical interpretation, though here the phase shift changes the double slit experiment.
I realise after reading books and articles that I must be wrong somewhere but am unable to find out.
 A: The change of the overall phase of the wave function, $\left|\Phi \right> \to e^{i\phi}\left|\Phi \right>$  is unphysical since they give the same expectation value for any observable operator. So, they represent the same physical state: indeed the space of physical states is not the Hilbert space, but rather it is the space of equivalence classes of Hilbert space vectors (this is the so-called projective Hilbert space).
Yet, the geometric phase is a physically relevant (and experimentally observable) quantity in the following sense: 
Suppose you prepare your system in a certain quantum state, then split it iton 2 components. For example this is what is done when you pass a beam of spin-polarized atoms through a Stern-Gerlach apparatus. You can then let one of the 2 components acquire a geometric phase, and then recombine them. The resulting quantum superposition depends on the geometric phase, and this can be detected experimentally. This should be thought of as an interference experiment, in which the pase of one of the components is modified, whereas the other one only serves as a reference phase. So, strictly speaking, one can never measure a geometric phase, but only a difference of geometric phases.
A: The change of the overall phase of the wave function 
$$ |\psi \rangle \to e^{i\phi} |\psi\rangle $$
has no physical implications. However, the change of the relative phase of two terms in the wave function always has physical consequences. In particular, in the Bohm-Aharonov effect, the particle may avoid the solenoid on the left side or the right side – the analogy of two slits in a double-slit experiment. The relative phase $\phi_R-\phi_L$ between the two components of the wave function influence the interference pattern.
