The NV center: an atom-sized compass
In diamond, every carbon atom sits at the centre of a tetrahedron formed by its four nearest neighbours. A nitrogen-vacancy (NV) center forms when one carbon is replaced by a nitrogen atom and an adjacent lattice site is left empty (the vacancy). The line joining N and V is the NV axis. It always points along one of the four bond directions of the lattice, the ⟨111⟩ crystal directions.

In its negatively charged form, NV⁻, the center holds six electrons. Two of them pair into a spin-1 (triplet) ground state with three sublevels, \(m_s = 0, \pm1\). This spin is our sensor. Its levels shift in a magnetic field, it can be prepared and read out with light, and it keeps its quantum coherence for milliseconds at room temperature.
Want to see the lattice in 3D? The Interactive NV Lab lets you rotate the crystal and zoom into an NV center.
Reading a spin with light: ODMR
The NV center turns a spin state into a brightness signal, a process called optically detected magnetic resonance (ODMR):
- Pump. Green light (typically 532 nm) excites the NV. Most excitation cycles return it to the ground state with red fluorescence (637–800 nm).
- Polarise. From the \(m_s = \pm1\) excited states, the NV can also take a non-radiative detour through singlet states that ends mostly in \(m_s = 0\). After a few cycles the spin is pumped into \(m_s = 0\).
- Read. That detour is dark, so an NV in \(m_s = \pm1\) fluoresces up to about 30% less than one in \(m_s = 0\).
- Drive. Microwaves at the resonance frequency move population from \(m_s = 0\) to \(\pm1\), and the fluorescence dips.
Sweep the microwave frequency and record the red light: every dip in that curve is a spin resonance. With no magnetic field there is one dip at the zero-field splitting \(D \approx 2.87\) GHz. A magnetic field splits and shifts the dips, and measuring those shifts is NV magnetometry.
The spin Hamiltonian
Take the NV axis as the \(z\) axis. The ground-state spin is then described by
- \(D = 2.87\) GHz: the zero-field splitting between \(m_s = 0\) and \(m_s = \pm1\), caused by the spin–spin interaction of the two electrons.
- \(\gamma = 28.0\) GHz/T, or 28 MHz per mT: the electron gyromagnetic ratio. This is the Zeeman term, and it carries the magnetic information.
- \(E\): crystal strain, usually a few MHz or less. It mixes \(m_s = \pm1\) and matters most near zero field.
For a weak field along the NV axis, the two ODMR lines move apart linearly:
A transverse field \(B_\perp\) mixes the spin states instead. It shifts both lines upward quadratically, by an amount of order \(\gamma^2 B_\perp^2 / D\), and weakens the transitions. The simulator below diagonalises the full Hamiltonian, so you can see where the simple formula holds and where it fails.
Simulator 1 · One NV in a magnetic field
- With β = 0°, the "ODMR lines" view shows two straight lines that open out by 56 MHz per mT: \(f_\pm = D \pm \gamma B\).
- Set β = 90°. The splitting now grows only quadratically, so the NV is almost blind to fields perpendicular to its axis.
- Choose 0–150 mT with β = 0°. Near 102 mT the \(m_s = 0\) and \(m_s = -1\) levels cross: this is the ground-state level anticrossing, where \(\gamma B = D\).
- Set B = 0 and raise the strain. The single zero-field line splits into two lines \(2E\) apart, and small fields now shift them only quadratically. This is why sensing near zero field needs special techniques.
Four orientations, eight dips
A diamond with many NV centers (an ensemble) contains all four orientations in roughly equal numbers. Each orientation \(\hat n_i\) sees its own projection of the same field, \(B_{\parallel,i} = \mathbf{B}\cdot\hat n_i\), and so gives its own pair of dips. A general field direction therefore produces eight dips, two per orientation. Special directions make some projections equal, and their dips merge.
Simulator 2 · ODMR spectrum of an NV ensemble
| Orientation | B∥ (mT) | Angle β | f₋ (GHz) | f₊ (GHz) |
|---|
- B ∥ [001]: the field makes the same angle (54.7°) with all four axes, so all eight dips merge into two.
- B ∥ [111]: NV1 is aligned with the field and gives the outermost pair. The other three share the same projection (−⅓ of the field), so their dips overlap into one deeper pair.
- Linewidth: widen it until neighbouring dips blur together. Resolving all eight lines needs narrow lines or a larger field.
Vector magnetometry: recovering the full field
Each orientation measures one projection of \(\mathbf B\). Four projections onto four known directions are more than enough to solve for the three field components. For the tetrahedral NV axes, the sum of the outer products \(\hat n_i \hat n_i^{\mathsf T}\) is \(\tfrac43\) times the identity matrix, which gives a remarkably simple inversion:
There is one catch. A splitting only tells you the magnitude \(|B_{\parallel,i}|\), not its sign. The standard fix is a bias field: a known field, a few mT, from permanent magnets or coils. It is chosen so that every orientation has a different, non-zero projection. The bias fixes the signs and separates the eight dips. The unknown field is then the reconstructed total minus the known bias.
Simulator 3 · Find the mystery field
A known 3 mT bias field plus an unknown field of up to 0.4 mT per component acts on the ensemble. Look at the spectrum, try to estimate each pair's splitting, then click Reconstruct it to follow the full calculation.
How sensitive can it be?
The smallest field change you can detect is set by how sharp the dip is, how deep it is and how many photons you collect. For continuous-wave ODMR limited by photon shot noise:
Here \(\Delta\nu\) is the linewidth, \(C\) the dip contrast and \(R\) the detected photon rate. The sensitivity \(\eta\), in T/√Hz, is the field you can resolve in one second of averaging. Narrow lines, high contrast and bright collection all help, and the photon rate only helps as its square root.
Simulator 4 · Sensitivity calculator
For comparison: a single NV gives about 10⁵ photons/s at roughly 30% contrast. Dense ensembles can reach 10¹¹ photons/s or more at about 1% contrast. Our fibre-coupled steel-imaging setup reaches about 2 nT/√Hz.
Sensing fields in real time: lock-in detection
Sweeping the whole ODMR spectrum is slow and wastes most of the measurement time far from resonance. To track a changing field, real magnetometers park the microwave frequency on the steepest part of a resonance and use a lock-in amplifier:
- Modulate. The microwave frequency is wobbled around the set point, \(f(t) = f_c + \delta \sin(2\pi f_\text{mod} t)\). \(\delta\) is the modulation depth and \(f_\text{mod}\) the modulation frequency.
- Demodulate. The lock-in multiplies the fluorescence by a reference at \(f_\text{mod}\) and averages. Its output \(X\) is close to the derivative of the ODMR dip: a dispersive error signal that is zero exactly on resonance and changes sign on either side.
- Use the zero crossing and the slope. Near the zero crossing, \(X\) is linear in detuning. A field change \(\Delta B\) shifts the resonance by \(\gamma\Delta B\), so \(\Delta B = X / (\gamma\, \mathrm dX/\mathrm df)\). A steeper slope means a larger signal per nanotesla.
- Filter. A low-pass filter with time constant \(\tau\) and order \(n\) (6 dB/octave per order) removes the \(2f_\text{mod}\) ripple and sets the measurement bandwidth. A longer \(\tau\) gives less noise but a slower response, and a higher order gives a sharper cut-off for the same \(\tau\).
The sensitivity follows from the slope and the noise: \(\eta \approx \dfrac{\text{noise density}}{\gamma\,|\mathrm dX/\mathrm df|}\). The noise you actually see in the output is \(\eta\sqrt{\text{ENBW}}\), where the equivalent noise bandwidth is \(\text{ENBW} = 1/4\tau\) for a first-order filter and \(1/8\tau\) for second order.
Simulator 5 · Lock-in magnetometer
Resonance
Modulation
Lock-in filter
Test field
- Modulation depth: slide δ and watch the slope readout. It peaks at δ ≈ 0.35 Γ (that is, Γ/2√2). Smaller δ gives too little signal; larger δ smears the dip, widening the linear range at the cost of slope.
- Time constant: raise τ and the noise on the step trace falls as \(1/\sqrt\tau\), but the step takes longer to settle. The sensitivity η in nT/√Hz doesn't change, because η is a property of the sensor and τ only decides how much of it you use.
- Filter order: at the same τ, a higher order cuts off more sharply in the spectrum and suppresses ripple better, but settles more slowly.
- Modulation frequency: drop fmod below ~2 kHz and technical 1/f noise degrades η. Push it above ~30 kHz and the NV ensemble can't follow, so the signal shrinks.
- Mains pickup: enable 50 Hz interference. The peaks at 50, 100 and 150 Hz look exactly like the ones in real lab spectra, and a long τ filters them away.
- Dynamic range: make ΔB larger than the linear range and the measured step comes out smaller than the true field, because the error signal saturates.
Model assumptions: a single Lorentzian line (no hyperfine structure), first-harmonic in-phase detection, photon shot noise plus a 1/f technical-noise knee at 2 kHz, an NV optical response bandwidth of 30 kHz, and a low-frequency drift corner at 0.5 Hz. Real instruments add laser and microwave noise, so treat the numbers as a guide, not a specification.
From sensor to instrument
The same physics supports very different instruments, depending on how many NVs you read out and how you collect their light:
Confocal microscopy
A focused laser addresses one NV, or a small spot, at a time. Scanning the sample maps fluorescence and spin properties at sub-micron resolution, which is ideal for characterising diamond and studying single spins.
Our confocal microscope →Wide-field imaging
A thin NV layer under a camera turns every pixel into its own magnetometer. One ODMR sweep then produces a full magnetic image, for example of currents flowing in a chip.
Our IGZO current-imaging work →Fibre-coupled scanning
A diamond on the tip of an optical fibre becomes a robust sensor head. Moving it over a part maps stray fields, the basis of non-destructive testing of steel.
Our steel-imaging setup →Do these experiments on real hardware
Our NV-based education setup lets students record ODMR spectra, watch Zeeman splitting and measure magnetic fields in a teaching lab, using the same physics as this course.
- 1NV fluorescence
- 2ODMR spectrum
- 3Zeeman splitting
- 4NV orientations
- 5Magnetic-field sensing
Test your understanding
1. With no magnetic field and no strain, how many ODMR dips does an NV ensemble show, and where?
One dip, at \(D \approx 2.87\) GHz. The \(m_s = 0 \to +1\) and \(m_s = 0 \to -1\) transitions have the same energy, and all four orientations behave identically.
2. A 1 mT field points along an NV axis. How far apart are that orientation's two dips?
\(2\gamma B = 2 \times 28\ \text{MHz/mT} \times 1\ \text{mT} \approx 56\) MHz.
3. A field along the [001] crystal direction gives only two dips for the whole ensemble. Why?
[001] makes the same angle (54.7°) with all four ⟨111⟩ NV axes, so every orientation sees the same projection and their dips coincide.
4. Why does vector magnetometry need a bias field?
A splitting gives only \(|B_{\parallel,i}|\). A known bias field, chosen so that all projections are distinct and non-zero, sets the sign of each projection and separates the eight lines. The unknown field is then the total minus the bias.
5. You halve the linewidth and keep everything else fixed. What happens to the sensitivity?
It improves by a factor of 2, because \(\eta\) is proportional to \(\Delta\nu\). Doubling the photon rate would improve it by only \(\sqrt2\).
6. Your lock-in output is too noisy. You increase the time constant from 10 ms to 160 ms. What happens to the noise, and what do you give up?
The output noise falls by \(\sqrt{16} = 4\), since the noise bandwidth scales as \(1/\tau\). The price is speed: the output now needs about 16 times longer to settle after a field change. The sensitivity \(\eta\) itself does not change.
Where to go next
- S. Rochester and D. Budker, Nitrogen-Vacancy Centers in Diamond, an interactive tutorial (UC Berkeley). It inspired this course and derives the energy levels, transition frequencies and transition strengths in detail.
- J. F. Barry et al., "Sensitivity optimization for NV-diamond magnetometry", Rev. Mod. Phys. 92, 015004 (2020).
- M. W. Doherty et al., "The nitrogen-vacancy colour centre in diamond", Phys. Rep. 528, 1 (2013).
- L. Rondin et al., "Magnetometry with nitrogen-vacancy defects in diamond", Rep. Prog. Phys. 77, 056503 (2014).
- P. Dubey et al., "Magnetic field orientation dependence of continuous-wave optically detected magnetic resonance with nitrogen-vacancy ensembles", Appl. Magn. Reson. 57, 6 (2026): our own study of the orientation effects simulated in Module 4.
The simulators use \(D = 2.870\) GHz and \(\gamma = 28.025\) GHz/T, and diagonalise the full ground-state Hamiltonian. Line strengths account for spin mixing by transverse fields. Excited-state mixing, hyperfine structure and power broadening are left out to keep things simple.