Measuring Distance with the Phase of Light
Light is a wave, and two waves that meet add up. If their crests line up, they reinforce each other into bright light; if the crests of one meet the troughs of the other, they cancel. An interferometer uses this to measure changes in distance much smaller than the wavelength of light, by sending two beams along slightly different paths and watching how bright they are when they meet again.
How it works
The laser's beam is split in two by a half-silvered mirror. One half bounces off a fixed mirror, the other off a mirror that can move, and the beam splitter brings the two back together at the detector. If the moving mirror moves away by a distance $d$, its beam travels $d$ farther out and $d$ farther back, so its path is $2d$ longer. That delays it by a fraction $2d/\lambda$ of a wave, a phase shift of $$ \Delta\phi = 2\pi \cdot \frac{2d}{\lambda} = \frac{4\pi d}{\lambda}, $$ where $\lambda$ is the wavelength. The two waves then add to a brightness of $$ \frac{1 + \cos \Delta\phi}{2} $$ of the brightest possible. So moving the mirror a quarter wavelength (158 nm for red light) puts the waves exactly out of step, and the detector goes dark; moving it half a wavelength puts them back in step, and it is bright again.
Why phase, and not timing?
You might think of measuring the distance by timing the light: a longer path takes longer. But for small changes, the difference in time is hopelessly small. Moving a mirror by 1 nm lengthens the round trip by 2 nm, which delays the light by $2\,\text{nm} / c \approx 7 \times 10^{-18}$ seconds. The fastest electronics can time events to around $10^{-11}$ seconds, a million times too coarse.
Phase sidesteps this, because the light itself is the clock. Its waves pass by about $5 \times 10^{14}$ times per second (for red light), so a delay of even a tiny fraction of one wave is a measurable change in how the two waves line up. The same 1 nm shifts the phase of red light by $4\pi \cdot 1/633 \approx 0.02$ radians, and careful interferometers detect phase shifts of thousandths of a radian, so they can sense motions well below a nanometer. The gravitational-wave detector LIGO, a Michelson interferometer with arms 4 km long, measures changes in length about ten thousand times smaller than a proton.
What phase can't tell you on its own
The brightness repeats every half wavelength, so a single brightness reading can't distinguish a mirror moved by 10 nm from one moved by 10 nm plus any number of half wavelengths. It also can't tell which way the mirror moved, since the brightness is the same for $+d$ and $-d$. Real instruments get around both: they follow the phase continuously, counting each full cycle as it passes (as the "Move back and forth" button shows), and they measure two versions of the signal, a quarter cycle apart, to tell which way the phase is turning.
How distributed acoustic sensing uses this
Distributed acoustic sensing (DAS) measures vibrations along an optical fiber with the same physics, but with no mirrors. A laser pulse travels down the fiber, and tiny random flaws in the glass scatter a little of its light back. Two of those scatterers, one gauge length $G$ apart, play the part of the two mirrors. When the section of fiber between them stretches by $\Delta L$, the light from the farther one travels $2n\Delta L$ farther through glass of refractive index $n \approx 1.47$, and its phase shifts by $$ \Delta\phi = \frac{4\pi n \xi\, \Delta L}{\lambda}, $$ where $\xi \approx 0.78$ accounts for stretching also changing the glass's refractive index. The light from both scatterers comes back along the same fiber, so a DAS interrogator needs a way to compare them. There are two common designs.
An imbalanced interferometer
In the first design, the returning light passes through an interferometer whose two arms have different lengths. The long arm includes extra fiber that delays light by exactly the time light takes to cross the gauge and back, $2nG/c$. So light that scattered at $z$ and went through the long arm meets light that scattered at $z + G$ and went through the short arm: the two scatterers' light interferes, just like the two mirrors' light above. To tell which way the phase moved, the arms recombine in a 3×3 coupler, whose three outputs see the phase difference with extra shifts of 0°, 120°, and 240°. Each output peaks at a different phase, so together they pin down the phase difference and its direction.
Coherent detection
In the second design, the returning light is combined with a copy of the laser's own light, shifted in frequency by a few tens of megahertz. Two waves of slightly different frequencies make a slow beat, which the detector records; the beat's phase follows the phase of the returning light. The interrogator measures the beat phase for every point along the fiber, then subtracts the phases of points one gauge length apart. Because the subtraction is done in software, the gauge length can be changed after the data is recorded.
Either way, the resting phase difference between two scatterers is random, because the scatterers are; it is the change in phase that reveals the strain. And because the light must stay a coherent wave across these delays, DAS uses lasers with an exceptionally narrow range of frequencies.