
Ramsey Interferometry: Turning Qubit Phase into a Measurable Signal
A Ramsey sequence lets a qubit accumulate relative phase, then recombines its amplitudes so the phase appears as a measurable change in outcome probabilities.
How can a qubit reveal a phase that measurement cannot read directly? Ramsey interferometry answers by letting two amplitudes evolve, then recombining them so their relative phase changes the measurement statistics.
Split, let the phase build, recombine
Start in |0⟩ and apply a Hadamard gate H. The qubit becomes (|0⟩ + |1⟩)/√2. Next apply a phase rotation Rz(φ), which gives the two basis states opposite phases:
Rz(φ) = diag(e^(−iφ/2), e^(+iφ/2))
A second H mixes the amplitudes again. The final state is cos(φ/2)|0⟩ − i sin(φ/2)|1⟩, so an ideal computational-basis measurement has probabilities:
P(0) = cos²(φ/2), P(1) = sin²(φ/2)
The phase is visible because the last gate makes the two paths interfere. If we measured right after Rz, the probabilities would still be one half each, regardless of φ.
An idealized Ramsey sequence can be modeled with this small NumPy statevector calculation:
import numpy as np
H = np.array([[1, 1], [1, -1]], dtype=complex) / np.sqrt(2)
zero = np.array([1, 0], dtype=complex)
phi = np.pi / 3
Rz = np.diag([np.exp(-1j * phi / 2), np.exp(1j * phi / 2)])
final_state = H @ Rz @ H @ zero
probabilities = np.abs(final_state) ** 2
print(np.round(probabilities, 3))
The result is [0.75, 0.25]. These are ideal probabilities, not promised shot counts. A real run estimates them from repeated measurements, so finite sampling and hardware noise can shift the observed fractions.
From a circuit to a sensor
On hardware, Ramsey spectroscopy usually uses two π/2 pulses separated by a variable free-evolution delay. A small mismatch between the qubit frequency and the drive makes the relative phase grow during that delay. Repeating the experiment at different delays produces fringes; their oscillation frequency reveals the detuning, while fading contrast can reveal loss of coherence. Pulse axes and phase conventions vary, so the H-Rz-H circuit is best read as an idealized model of the same interference idea.
For experimental context, see the Qblox Ramsey spectroscopy guide and the Qruise Ramsey experiment guide. For a matrix-based explanation of interferometers, see Qubit Guide.