How T1 and T2 are measured: T1 decay, Ramsey, echo and Rabi
The four standard experiments, the formulas behind them, and how the lab fits simulated data.
9 min read · reviewed December 2026
The four experiments
| Experiment | Pulse sequence | What it measures | P(reading 1) |
|---|---|---|---|
| T1 decay | π, wait t, read | Energy relaxation time T1 | e^(−t/T1) |
| Ramsey | π/2, wait t, π/2, read | Dephasing time T2* and the qubit frequency | ½(1 − e^(−t/T2*) cos δt) |
| Spin echo | π/2, wait, π, wait, π/2 | T2 with slow frequency drift cancelled | ½(1 − e^(−t/T2)) |
| Rabi | drive for t, read | Pulse calibration; decay of the oscillation | ½(1 − e^(−t/T) cos Ωt) in this lab’s model |
Why each is done
- T1 decay measures how long energy lasts.
- Ramsey measures how long phase stays coherent in a single run, including slow drifts, and finds the qubit frequency from the oscillation.
- Spin echo cancels slow drifts and gives T2.
- Rabi drives are used to calibrate the pulse that makes a π or π/2 rotation.
Shot noise
Each run ends in 0 or 1, so each data point is an average over many shots. With n shots the scatter of a probability p is about √(p(1−p)/n). The lab lets you change the shots per point and re-run to see how the fitted time scatters around the true value. In a test of 30 random seeds on the T1 experiment, 4000 shots per point gave fits within 1 percent of the true value, while 20 shots gave a typical error of about 4 percent and a worst case of about 14 percent.
Fitting
The lab fits by trying a grid of about 600 trial decay times and keeping the one with the smallest sum of squared differences. Real labs use nonlinear least-squares fits with more parameters, including offsets and amplitude, because real readout is imperfect. This lab’s data are ideal, so the simple fit is enough.
The Rabi curve here is a simple decaying cosine, used as a model. Real Rabi decay can have a different shape.
Try it
Questions
Why does the Ramsey curve oscillate?
The drive is slightly off the qubit’s frequency. During the wait, the qubit’s phase advances relative to the drive, and the second π/2 pulse converts that phase into a population.
Why does the echo help?
The π pulse in the middle reverses the phase accumulated so far, so any constant frequency error cancels at the end.
How many points are needed?
A few dozen points spread over a few times T1 or T2 are usual. The lab uses 40.
Read next
Sources and further reading
- M. Nielsen and I. Chuang, Quantum Computation and Quantum Information, chapter 8
- J. Preskill, “Quantum computing in the NISQ era and beyond” (2018)
- P. Krantz et al., “A quantum engineer’s guide to superconducting qubits” (2019)
- Dictionary: T1 and T2 times
- Coherence and gate error calculator
Check the original sources for exact citations.