In quantum mechanics the same particle can travel between two points by a variety of paths. Therefore, this phase difference can be observed by placing a solenoid between the slits of a double-slit experiment (or equivalent). An ideal solenoid (i.e. infinitely long and with a perfectly uniform current distribution) encloses a magnetic field B , but does not produce any magnetic field outside of its cylinder, and thus the charged particle (e.g. an electron) passing outside experiences no magnetic field B . (This idealization simplifies the analysis but it's important to realize that the Aharonov-Bohm effect does not rely on it, provided the magnetic flux returns outside the electron paths, for example if one path goes through a toroidal solenoid and the other around it, and the solenoid is shielded so that it produces no external magnetic field.) However, there is a (curl -free) vector potential A outside the solenoid with an enclosed flux, and so the relative phase of particles passing through one slit or the other is altered by whether the solenoid current is turned on or off. This corresponds to an observable shift of the interference fringes on the observation plane.