---
title: "Atomic spectra and Ramsey frequency measurement | Sandbox Physics"
description: "Find a photon frequency from an atomic energy gap. Use the phase accumulated between two pulses to explain the width of Ramsey fringes."
canonical_url: "https://sandboxphysics.com/learn/quantum-physics/atomic-spectra-and-ramsey/"
language: "en"
page_type: "story"
alternate_languages:
  zh-CN: "https://sandboxphysics.com/zh/learn/quantum-physics/atomic-spectra-and-ramsey/"
last_modified: "2026-11-24"
---

[Volume 6 · Quantum Physics](https://sandboxphysics.com/learn/quantum-physics/)

# How do atoms turn energy gaps into frequency measurements?

Find a photon frequency from an atomic energy gap. Use the phase accumulated between two pulses to explain the width of Ramsey fringes.

Before you start: [Chapter 3](https://sandboxphysics.com/learn/quantum-physics/quantum-state-evolution/) on relative phase and [Chapter 5](https://sandboxphysics.com/learn/quantum-physics/two-level-systems-and-measurement/) on two-state measurement.

After this chapter you can: Predict a hydrogen line from its energy gap and relate the width of Ramsey fringes to the free evolution time.

An atom absorbs light efficiently at a frequency set by the energy gap and the transition it can make. Ramsey spectroscopy measures such a transition against a reference oscillator. Two pulses convert the phase gained between them into an excited-state population. The longer the interval, the more phase a given frequency difference accumulates.

## 6.1 The gap sets the line position

An atom prepared in a lower state can absorb a photon and reach a higher state. For initial and final energies $E_i$ and $E_f>E_i$, the resonance frequency $\nu_0$ and associated vacuum wavelength $\lambda_0$ obey

$$
\Delta E=E_f-E_i=h\nu_0.
$$

The speed of light then relates the resonant frequency to its vacuum wavelength.

$$
\lambda_0=\frac{c}{\nu_0}.
$$

Here $h$ is Planck's constant and $c$ is the speed of light in vacuum. Emission across the same gap gives a photon at the same frequency in this energy-level model. For hydrogen, the nonrelativistic Coulomb model gives

$$
E_n=-\frac{R_{\mathrm H}}{n^2},\qquad R_{\mathrm H}\simeq 13.5983\,\mathrm{eV}.
$$

The value of $R_{\mathrm H}$ accounts for the finite proton mass. The principal quantum number $n$ determines the model energy. From $n=1$ to $n=2$ the gap is about $10.1987\,\mathrm{eV}$ and the vacuum wavelength is about $121.568\,\mathrm{nm}$. From $n=2$ to $n=3$ they are about $1.8887\,\mathrm{eV}$ and $656.470\,\mathrm{nm}$. NIST tabulates average wavelengths of about $121.567\,\mathrm{nm}$ and $656.464\,\mathrm{nm}$ for the corresponding Lyman and Balmer lines. The Coulomb model leaves out shifts and splittings from fine structure and other smaller effects.

The line strength also depends on how the probe couples the two states. For weak light polarized along $z$, the electric dipole amplitude contains the overlap $\langle f|z|i\rangle$. Its squared magnitude enters the transition probability. The states $1s$ and $2s$ are both even under inversion, while $z$ changes sign. The integral cancels between opposite points in space. The $2p$ state with $m=0$ has odd parity, and its overlap with $z$ times the $1s$ state is nonzero. Thus a resonant $z$-polarized probe can drive $1s\to2p$ with $m=0$. The $1s\to2s$ electric dipole channel vanishes at the same model gap. Other transition mechanisms are outside this selection rule.

## 6.2 Two pulses make accumulated phase visible

A resonant $\pi/2$ pulse prepares a superposition of the two levels. The oscillator serves as a phase reference while the atom evolves freely. Define $\delta f$ as the signed frequency offset in the convention that it advances the atomic phase relative to the reference by $2\pi\delta f\,\tau$ during a dark interval $\tau$. A second $\pi/2$ pulse with phase $\phi$ relative to the first converts that relative phase into a population. With full coherence, matching phases make the pulses add to a full flip. A phase difference of $\pi$ makes the second pulse undo the first.

For instantaneous ideal pulses and exponential loss of coherence with time constant $T_2$, the excited-state probability is

$$
P_e(\phi)=\frac{1+C\cos(2\pi\delta f\,\tau-\phi)}{2},\qquad C=e^{-\tau/T_2}.
$$

The contrast $C=P_{\max}-P_{\min}$ measures how far the probability swings. A measured point is the excited fraction from repeated preparations at one phase. The model probability is the expectation of that fraction. For a fixed phase near a fringe midpoint, the magnitude of the frequency slope is $\pi\tau C$. A longer wait moves the phase farther per unit frequency, while loss of coherence reduces the population change it produces.

- 1-millisecond dark interval
- 4-millisecond dark interval

**Figure 6.1** Simulated Ramsey probabilities versus second-pulse phase for dark intervals of $1\,\mathrm{ms}$ and $4\,\mathrm{ms}$. Both curves use a frequency offset of $0.25\,\mathrm{kHz}$ and a coherence time of $8\,\mathrm{ms}$. The longer interval shifts the phase of the maximum and reduces the contrast. Acquired counts fluctuate around these curves.

## 6.3 A single fringe leaves a frequency ambiguity

At fixed $\phi$, the pattern repeats whenever the offset changes by $1/\tau$. A phase scan can determine where the maximum lies in one full turn. Adding an integer multiple of $1/\tau$ to the frequency offset leaves every point on that scan unchanged. An expected frequency range narrower than one fringe period can select a branch. Scans at suitably chosen additional dark intervals can also distinguish candidate branches.

At $0.25\,\mathrm{kHz}$, the phase advance is $\pi/2$ after $1\,\mathrm{ms}$ and $2\pi$ after $4\,\mathrm{ms}$. The second scan places the maximum at the same phase as zero offset. Its spacing in a frequency scan is $0.25\,\mathrm{kHz}$; the shorter interval gives $1.00\,\mathrm{kHz}$. Meanwhile, the model contrast falls from $0.882$ to $0.607$. A narrower fringe can help resolve small offsets within a known branch. Counting fluctuations, phase shifts due to the apparatus, and long-term oscillator drift each limit what the inferred frequency can establish.

## 6.4 Read a line and a fringe in the Labs

Open [Hydrogen Orbitals & Spectra](https://sandboxphysics.com/labs/hydrogen-orbitals-spectra/). Choose **Allowed: a bright line**, use **Scan the line**, and save the sample. Switch to **Same gap, forbidden transition** and scan again. Compare the two gap and vacuum wavelength readouts, then compare the excited-state fractions near zero probe detuning. The allowed model peak is about $0.0347$. The forbidden channel gives zero in this simulation. Check for both results in the count plot, where the saved scan supplies a comparison. The Lab uses a weak Gaussian spectral envelope and ideal final-state detection.

Open [Ramsey Frequency Measurement](https://sandboxphysics.com/labs/ramsey-frequency/). Use **Sensitive slope** and **Acquire scan**, then compare with **Long dark time**. Use the phase scan for the maximum and contrast, and the sampled frequency spectrum for an approximate fringe spacing. Under **Estimate a frequency from the counts**, the longer-interval estimate should lie near the zero branch even though **Frequency difference** remains at $0.25\,\mathrm{kHz}$. Compare the offset modulo the fringe spacing and allow for count fluctuations. This task uses the main workbench with instantaneous pulses and phase decay. The separate clock analysis uses its own data and models additional systematic shifts.

## 6.5 Exercises

1. For hydrogen, derive the $n=1$ to $n=2$ gap in terms of $R_{\mathrm H}$.
2. The vacuum wavelength at the gap in Exercise 1 is $121.568\,\mathrm{nm}$. Use $c=2.99792458\times10^8\,\mathrm{m/s}$ to find the light frequency.
3. Why does changing the $z$-polarized target from $2p$ with $m=0$ to $2s$ extinguish the line in the model?
4. With $\delta f=0.25\,\mathrm{kHz}$ and $\tau=1\,\mathrm{ms}$, what phase gives the largest excited fraction?
5. For $T_2=8\,\mathrm{ms}$, find the maximum excited probability at $\tau=1\,\mathrm{ms}$.
6. What is the frequency spacing between adjacent maxima at $\tau=4\,\mathrm{ms}$? Give two offsets indistinguishable from zero in that scan.
7. If the initial dark interval doubles from $1\,\mathrm{ms}$ to $2\,\mathrm{ms}$ at fixed $T_2=8\,\mathrm{ms}$, by what factor does the local midpoint slope change?
8. A single setting has $P_e=1/2$. Estimate the standard deviation of the excited fraction from $300$ independent shots. Will more shots at this setting resolve a whole-fringe ambiguity?

Exercise 1

$\Delta E=R_{\mathrm H}(1-1/4)=3R_{\mathrm H}/4$. The final state has the greater energy, so the atom absorbs energy.

Exercise 2

$\nu_0=c/\lambda_0\simeq 2.466\times10^{15}\,\mathrm{Hz}$.

Exercise 3

Both targets have $n=2$ and the same gap. The $2s$ dipole integrand is odd under inversion, so the spatial integral vanishes. The $2p$ integrand is even and has a nonzero integral for the specified polarization.

Exercise 4

The phase advance is $2\pi\delta f\,\tau=\pi/2$. Set $\phi=\pi/2$ modulo a full turn.

Exercise 5

$P_{\max}=(1+e^{-1/8})/2\simeq 0.941$. It occurs when the second pulse matches the accumulated phase.

Exercise 6

$1/\tau=0.25\,\mathrm{kHz}$. Both $+0.25\,\mathrm{kHz}$ and $-0.25\,\mathrm{kHz}$ give the same phase modulo a full turn.

Exercise 7

The slope ratio is $2e^{-(2-1)/8}\simeq 1.76$. The ratio combines the extra phase accumulation with the loss of coherence.

Exercise 8

The binomial standard deviation is $\sqrt{P_e(1-P_e)/300}\simeq 0.029$. More shots reduce this sampling noise. The candidate offsets separated by a whole fringe still yield identical probabilities.

## Test it in the Lab

Change one setting at a time, then compare what you see with the tables and answers in this chapter.

[Hydrogen Orbitals & Spectra → Prepare an orbital, sample where the electron is found, and scan a weak polarized probe. Compare an allowed transition with a forbidden one at exactly the same energy.](https://sandboxphysics.com/labs/hydrogen-orbitals-spectra/) [Ramsey Frequency Measurement → Record Ramsey spectra and phase counts, then test a clock correction at several dark times and effective densities, with the cavity phase in both directions. Infer the zero-density frequency from the recorded atoms, and see how aliases, weak contrast, a bad density calibration and a nonlinear collision law can mislead it.](https://sandboxphysics.com/labs/ramsey-frequency/)

## Sources and reading scope

1. [W. L. Wiese and J. R. Fuhr, Accurate Atomic Transition Probabilities for Hydrogen, Helium, and Lithium](https://www.nist.gov/system/files/documents/srd/jpcrd382009565p.pdf)

   Tables 3 and 4 give wavelengths and line strengths of neutral hydrogen transitions. The isotope entries identify which reference belongs to hydrogen.

2. [Norman F. Ramsey and H. B. Silsbee, Phase Shifts in the Molecular Beam Method of Separated Oscillating Fields](https://journals.aps.org/pr/abstract/10.1103/PhysRev.84.506)

   The experiment and analysis show how the relative phase of the separated oscillating fields shifts the frequency response.

3. [Norman F. Ramsey, Experiments with Separated Oscillatory Fields and Hydrogen Masers](https://harvest.aps.org/v2/journals/articles/10.1103/RevModPhys.62.541/fulltext)

   Ramsey describes the separated-field method and how the interval between interactions produces narrow frequency fringes.

[← Chapter 5 · How do we read out a two-state quantum system?](https://sandboxphysics.com/learn/quantum-physics/two-level-systems-and-measurement/) [Chapter 7 · How do two systems produce quantum correlations? →](https://sandboxphysics.com/learn/quantum-physics/entanglement-and-correlations/)

Chapters in this volume

- [1. How do single detections build up an interference pattern?](https://sandboxphysics.com/learn/quantum-physics/single-event-interference/)
- [2. How does a wave function predict position and momentum?](https://sandboxphysics.com/learn/quantum-physics/wave-functions-and-uncertainty/)
- [3. How does a prepared quantum state evolve?](https://sandboxphysics.com/learn/quantum-physics/quantum-state-evolution/)
- [4. Why does a quantum particle cross a barrier it cannot climb?](https://sandboxphysics.com/learn/quantum-physics/quantum-tunneling/)
- [5. How do we read out a two-state quantum system?](https://sandboxphysics.com/learn/quantum-physics/two-level-systems-and-measurement/)
- [6. How do atoms turn energy gaps into frequency measurements?](https://sandboxphysics.com/learn/quantum-physics/atomic-spectra-and-ramsey/)
- [7. How do two systems produce quantum correlations?](https://sandboxphysics.com/learn/quantum-physics/entanglement-and-correlations/)

## Keep reading

Interactive Physics Textbook · Reading path

### Quantum Physics

1. [Article **How do single detections build up an interference pattern?**](https://sandboxphysics.com/learn/quantum-physics/single-event-interference/)
2. [Article **How does a wave function predict position and momentum?**](https://sandboxphysics.com/learn/quantum-physics/wave-functions-and-uncertainty/)
3. [Article **How does a prepared quantum state evolve?**](https://sandboxphysics.com/learn/quantum-physics/quantum-state-evolution/)
4. [Article **Why does a quantum particle cross a barrier it cannot climb?**](https://sandboxphysics.com/learn/quantum-physics/quantum-tunneling/)
5. [Article **How do we read out a two-state quantum system?**](https://sandboxphysics.com/learn/quantum-physics/two-level-systems-and-measurement/)
6. [You are here **How do atoms turn energy gaps into frequency measurements?**](https://sandboxphysics.com/learn/quantum-physics/atomic-spectra-and-ramsey/)
7. [Article **How do two systems produce quantum correlations?**](https://sandboxphysics.com/learn/quantum-physics/entanglement-and-correlations/)

1 more group

### Other articles that use the same experiments

Each experiment from this article that another series also uses, followed by the articles there.

1. [Lab **Hydrogen Orbitals & Spectra**](https://sandboxphysics.com/labs/hydrogen-orbitals-spectra/)
2. [Article **Atomic spectra: evidence for states, not photographs of orbits**](https://sandboxphysics.com/stories/quantum-evidence/atomic-spectra-stationary-states/)
3. [Article **Franck–Hertz: what a drop in current can show**](https://sandboxphysics.com/stories/quantum-evidence/franck-hertz-discrete-excitation/)
4. [Article **de Broglie: a wavelength for matter, a speed for the packet**](https://sandboxphysics.com/stories/quantum-evidence/de-broglie-matter-waves-phase-packets/)
5. [Article **Matrices and waves: two routes to the same predictions**](https://sandboxphysics.com/stories/quantum-evidence/matrix-wave-mechanics-observables/)
6. [Article **Dirac’s electron: a successful equation with an unfinished story**](https://sandboxphysics.com/stories/quantum-evidence/dirac-electron-spin-relativity/)
7. [Article **How an electric field splits hydrogen’s spectral lines**](https://sandboxphysics.com/stories/quantum-evidence/stark-effect-electric-field-spectra/)
8. [Article **How missing hydrogen atoms revealed the Lamb shift**](https://sandboxphysics.com/stories/quantum-evidence/lamb-shift-microwave-evidence/)
9. [Lab **Ramsey Frequency Measurement**](https://sandboxphysics.com/labs/ramsey-frequency/)
10. [Article **How Ramsey and ion traps gave atoms more time**](https://sandboxphysics.com/stories/quantum-evidence/ramsey-ion-traps-measurement/)
11. [Article **Reading a cavity phase error in an atomic fountain**](https://sandboxphysics.com/stories/quantum-evidence/ramsey-cavity-phase-frequency-bias/)
12. [Article **Counting the quantum noise left by a perfect detector**](https://sandboxphysics.com/stories/quantum-evidence/quantum-projection-noise-population-counts/)
13. [Article **Following a fountain clock’s extrapolation to zero density**](https://sandboxphysics.com/stories/quantum-evidence/fountain-clock-collision-density-extrapolation/)
14. [Article **How one trapped ion switches its fluorescence off and on**](https://sandboxphysics.com/stories/quantum-evidence/electron-shelving-single-ion-jumps/)
15. [Article **Let a second ion read out a narrow transition**](https://sandboxphysics.com/stories/quantum-evidence/quantum-logic-spectroscopy-shared-motion/)
16. [Article **Counting stored photons one atom at a time**](https://sandboxphysics.com/stories/quantum-evidence/qnd-photon-counting-atomic-records/)
