Demand that the phase of the electron field can be chosen freely at every point, and the photon is forced on you. Twist the phases, thread a flux nobody can touch, and compute the most precise prediction in science
The phase of an electron’s wavefunction cannot be observed, so you may rotate it. Insist on rotating it by a different amount at every point of spacetime and the equations break, unless there is another field that soaks up the difference. That field is the electromagnetic field. Light exists so that a phase can be a private matter.
Turn the dial, then drag across the lattice to rotate some phases and not others, and watch the energy. Switch on the connection and paint again; then twist a single link to see what a real change looks like.
Lattice units (spacing 1), natural units ħ = c = 1, and a charge of 1. Each disc is a complex number ψ of size 1; its colour and needle show its phase (the colour key is in the corner of the chart). Each tick on a link is the phase A of U = eiA carried by that link, in the same colours. The heat map is the flux through each square reduced to between −π and π: amber positive, blue negative. The lattice is a torus: the faded row and column repeat the opposite edge, and because every link borders two squares in opposite senses the fluxes always sum to zero. The energy here is only the matter field’s hopping energy; the field’s own energy, which depends on the flux alone, is left out.
The energy of a matter field depends on how ψ differs between neighbouring points, and a difference ψ(y) − ψ(x) has no meaning once the phases at x and y can be chosen separately. The repair is a rule for carrying a phase from one point to the next: a number U = eiA on each link, with the difference replaced by ψ(y) − U ψ(x). In the continuum the link becomes a vector field Aμ and the derivative becomes the covariant derivative Dμ = ∂μ − ieAμ. Under ψ → eiα(x)ψ the field shifts by Aμ → Aμ + ∂μα/e, which is the painted rule U → eiα(y) U e−iα(x), and Dμψ rotates exactly as ψ does.
What survives every such change is the product of the links round a closed loop. For one small square of side a it is exp(i e a2 Fμν), where Fμν = ∂μAν − ∂νAμ is the field strength: the electric and magnetic fields. So demanding the freedom to rephase ψ locally brings in a vector field whose only physical content is Fμν, and whose coupling to matter is the one electromagnetism has. A mass term m2AμAμ is not invariant, so the same demand forbids a photon mass. This is the gauge principle. It is an argument for the simplest theory with the symmetry, not a derivation of electromagnetism from nothing: terms such as a magnetic moment coupled directly to Fμν are also invariant, and are excluded on other grounds (See also: Infinities and Renormalisation).
Hermann Weyl introduced the idea in 1918 with a change of length scale in place of a phase, which is where the word gauge comes from; that version failed. After quantum mechanics arrived, Vladimir Fock (1926) and Fritz London (1927) saw that the scale should be a phase, and Weyl put the principle in its modern form in 1929. In 1954 Chen Ning Yang and Robert Mills replaced the phase by a matrix, and the links by matrices that do not commute; those theories describe the strong and weak forces (See also: Confinement on a Lattice; Lie Groups).
The word symmetry is misleading here. A global rotation of the phase is a symmetry in the ordinary sense: it relates different states, and it gives a conserved charge (See also: Symmetry and Its Breaking). A gauge transformation relates two descriptions of one state. It is a redundancy of the description, accepted because it is the price of writing a theory of a massless spin-one particle with local fields. The demo is a toy: a classical field on a two-dimensional torus with the group U(1), and only the matter field’s energy.
Slide the flux in the hidden solenoid and watch the fringes move, returning exactly when a whole flux quantum has been added. Then switch between the two vector potentials, on the screen and on the ring: the arrows change completely and no number does.
The magnetic field is confined to the solenoid; along both paths it is zero. Slide the flux and watch the fringes move under a fixed envelope, then change the potential and watch nothing move. Drag on the plot to move the point on the screen.
One electron hopping round a ring of sites that encloses the solenoid. The energy levels are found by diagonalising the hopping matrix at 41 values of the flux, and the current is the slope of the lowest level.
Natural units ħ = c = 1; flux is in units of the flux quantum Φ0 = h/e, so one unit is a phase of 2π for a charge e. Panel 1 is schematic and not to scale: the pattern is computed for slits 8 wavelengths apart and 2.5 wavelengths wide, on a screen far away. Amber and blue lines are the two paths; violet arrows are the vector potential A; the emerald curve is the pattern in the chosen gauge and the white dots are the other gauge; the grey curve is the pattern with no flux and the dashed curve the single-slit envelope. In the second gauge A is zero except on a line running up from the solenoid, where it is concentrated. Panel 2: energies are in units of the hopping amplitude, the current in hopping amplitudes per flux quantum; emerald is the formula and lime dots are numerical (eigenvalues, and a central difference of the lowest one with step 10−4). The ring is capped at 40 sites.
A charged particle carried along a path collects the phase (e/ħ) ∫ A · dl. For a single path that number depends on the gauge and means nothing. For two paths that start and end together the difference is the integral round a closed loop, which by Stokes’ theorem is the magnetic flux Φ through it: Δφ = eΦ/ħ = 2πΦ/Φ0, with Φ0 = h/e ≈ 4.14 × 10−15 weber. The flux can sit entirely where the particle never goes. Werner Ehrenberg and Raymond Siday pointed this out in 1949 in a paper on electron optics, and Yakir Aharonov and David Bohm made it famous in 1959.
Robert Chambers saw the fringe shift in 1960 using a magnetised iron whisker, but some field leaked from the whisker’s ends and the result was disputed for years. Akira Tonomura and colleagues at Hitachi settled it in 1986 with a ring-shaped magnet a few micrometres across, wrapped in superconducting niobium so that no field escaped: electron waves passing through the hole and outside the ring arrived with a relative phase set by the trapped flux.
The lesson is about what is real. The field strength alone is too little: it is zero along both paths, yet the pattern moves. The potential is too much: it changes with the gauge and the pattern does not. What is observable is eie∮A for closed loops, the loop integral modulo a flux quantum. It is gauge invariant and it is not local: it belongs to the loop, not to any point on it. This object is called a Wilson loop, and in theories where the phase is a matrix it becomes the test for confinement (See also: Confinement on a Lattice).
The ring shows the same thing without any interference pattern. Its levels are −2 cos((2πn + 2πΦ/Φ0)/N), they repeat when Φ grows by Φ0, and the slope of the lowest one is a current that flows for ever without a battery. Such persistent currents were predicted for ordinary metal rings by Markus Büttiker, Yoseph Imry and Rolf Landauer in 1983 and have since been measured in rings about a micrometre across. In a superconductor the carriers are pairs of charge 2e, and the flux through a superconducting ring is quantised in units of h/2e, as experiments found in 1961.
Slide the order from zero to five and watch the digits of the electron’s magnetic moment turn emerald one group at a time. Then switch which measurement of α feeds the theory and see the prediction jump from one side of the experiment to the other.
a = (g − 2)/2 for the electron. Emerald digits agree with the measurement; the first that does not is rose.
Nothing in this demo is simulated: it adds up published coefficients. Coefficients one to four are known exactly or to hundreds of digits; the fifth is a numerical integral with an error.
The series is a = C1(α/π) + C2(α/π)2 + … + C5(α/π)5, with α/π ≈ 0.00232. Violet bars are terms included, rose is the next one, teal the contribution of other particles (added from order 2, where it first arises). Lime is a measurement and emerald a prediction; the orange line is the error the input α puts on the prediction; bars are one standard deviation, and the σ quoted combines the errors of the prediction and the measurement in quadrature. The Aoyama et al. 2025 coefficient is the sum of two published parts, added here. Checked against the sources on 22 November 2026.
Dirac’s equation gives the electron a magnetic moment with g exactly 2. In 1947 Polykarp Kusch and Henry Foley measured atomic spectra precisely enough to find g a little larger, and within months Julian Schwinger computed the first correction from the gauge theory of the first demo quantised: a = α/2π, a formula engraved on his tombstone. Each further order is a perturbative result with more loops: 7 diagrams at two loops (Petermann and Sommerfield, 1957), 72 at three (finished analytically by Laporta and Remiddi in 1996), 891 at four (Laporta, 2017, to 1100 digits), and 12 672 at five, which no one can do analytically. Toichiro Kinoshita’s group spent decades integrating them numerically.
The five-loop coefficient is the one place where the theory has had to be checked the hard way. Sergey Volkov recomputed it independently, and for the 6354 diagrams with no fermion loops his value disagreed with the published one by about five standard deviations. In work published in 2025, Aoyama, Hayakawa, Hirayama and Nio traced the difference to 98 of their integrals that had been sampled too thinly, re-ran them, and now agree with Volkov. The whole dispute moved the prediction by 0.06 × 10−12, less than half the error of the measurement.
The measurement holds a single electron in a cold Penning trap. In the trap’s magnetic field the electron circles at the cyclotron frequency and its spin precesses at a slightly higher one; their ratio is g/2, and it is found by detecting single quantum jumps of the cyclotron motion. Fan, Myers, Sukra and Gabrielse reported g/2 = 1.001 159 652 180 59 (13) in 2023, an uncertainty of 1.3 parts in 1013.
The level of agreement, as checked on 22 November 2026: the prediction needs α as an input, and the two best independent measurements of α, from the recoil of caesium atoms (Berkeley, 2018) and rubidium atoms (Paris, 2020), disagree with each other by 5.5 standard deviations, for reasons not yet understood. With the current five-loop coefficient the theory lies about 0.4 × 10−12 below the measured a using rubidium (roughly 2.5 standard deviations) and about 1.0 × 10−12 above it using caesium (roughly 3.6); the experimenters, using the earlier coefficient, quoted 2.1 and 3.9. So theory and experiment agree to about one part in 1012 of g, and the test is limited by α, not by the diagrams or the trap. The series itself is not expected to converge: Freeman Dyson argued in 1952 that it is asymptotic (See also: A Field Theory in One Integral). That does not matter here, because the terms of such a series shrink until the order is of the size of 1/α, about 137, and five is a long way short of that. The muon’s magnetic moment has its own story (See also: What Is a Quantum Field Theory?).
Spot a mistake or have an idea?