Main

So far, the magnetic fields from single electron spins have been imaged only under extreme conditions (ultralow temperatures and high vacuum)9. Magnetometers based on negatively charged nitrogen-vacancy (NV) centres in diamond have been proposed as sensors capable of measuring individual spins10,11,12,13 because they can be initialized and read-out optically14 and have long coherence times15, even under ambient conditions. Moreover, because NV centres are atomic in size, they offer significant advantages in magnetic resolution and sensing capabilities if they can be brought in close proximity of targets to be measured. Recent advances in diamond nanofabrication have allowed for the creation of robust scanning probes that host individual NV centres within roughly 25 nm of their tips16. Here, we employ such a scanning NV centre to image the magnetic dipole field of a single target electron spin.

Our scanning NV magnetometer (Fig. 1a) consists of a combined confocal and atomic force microscope as previously described17, which hosts a sensing NV centre embedded in a diamond nanopillar scanning probe tip16. The sensor NV’s spin state is initialized optically and read out through spin-dependent fluorescence, and its position relative to the sample is controlled through atomic-force feedback between the tip and sample. Microwaves are used to coherently manipulate the sensor NV spin. Magnetic sensing is achieved by measuring the NV spin’s optically detected electron spin resonance (ESR), either by continuously applying near-resonant microwave radiation (Fig. 1b) or through pulsed spin-manipulation schemes12,13 (Fig. 1c), where the sensor NV spin precesses under the influence of its local magnetic field (projected along the NV centre’s crystallographic orientation). We measure the contribution of the magnetic field from a target electron spin to this precession. The entire system, including both the scanning NV magnetometer and the target sample, operates under ambient conditions.

Figure 1: Scanning NV magnetometer.
figure 1

a, Conceptual schematic of the scanning NV magnetometer. The sensor NV is hosted within a scanning diamond nanopillar16, where its spin is initialized and read out optically from above (532 nm excitation laser spot shown). Coherent NV spin manipulations are performed by a nearby microwave (MW) coil, in this work operating near resonance with the |0〉 to |−1〉 transition, in the presence of a static applied magnetic field (not shown). The sensor NV is scanned over target spins of interest to construct magnetic field images. b, By continuously applying the excitation and sweeping the microwaves across the |0〉 to |−1〉 transition, optically detected magnetic resonance provides a measure of the static magnetic field at the NV centre, with a d.c. sensitivity of 2 μT Hz−1/2. c, By dynamically decoupling the sensor NV spin from its environment, the sensor’s magnetic field sensitivity is markedly improved for a.c. magnetic fields. Plotted are a spin-echo (1-pulse) magnetometry sequence with a 40-μs total evolution time, and a 512-pulse XY8 (ref. 21) magnetometry sequence (see Supplementary Discussion) with 330-μs total evolution time, which achieve magnetic field sensitivities of 56 nT Hz−1/2 and 18 nT Hz−1/2, respectively.

To verify the single-spin detection and imaging, we choose our target to be the spin associated with another negatively charged NV centre in a separate diamond crystal (so that the sensor and target NV centres can be scanned relative to one another). The advantage of using an NV target is that both its location and spin state can be independently determined by its optical fluorescence. As discussed below, we can thus compare the target NV’s magnetically measured location to its optically measured location and ensure that the magnetic image is from a single targeted spin. Furthermore, we can guarantee that the target spin is initialized and properly modulated, as is useful for optimizing a.c. magnetic sensing.

To isolate single NV targets for imaging, NV centres are created in a shallow (<25 nm) layer of a bulk diamond through established implantation and annealing techniques, as used in previous work17. The target diamond surface is structured to create nanoscale mesas, whose diameters ( 200 nm) are chosen to contain, on average, a single NV spin. Mesas with single NV centres (as determined through photon auto-correlation experiments, Supplementary Fig. S1) are chosen for our measurements. To individually control the target and sensor NV spins, we choose a target NV centre with a different crystallographic orientation (which determines the spin quantization axis) from the sensor NV, so that their spin transitions can be spectrally separated in ESR measurements by applying a uniform static magnetic field.

Spatial features in the collected fluorescence from scanning the NV magnetometer over target diamond mesas allow us to independently determine the relative positions of the sensor and target NV spins (Fig. 2). First, the scanning diamond nanopillar acts as a waveguide18 that, when centred precisely above the target NV, provides efficient collection of fluorescence from the target NV (in addition to the sensor NV). In addition, the sensor NV’s fluorescence is efficiently coupled into the target bulk diamond when it is centred on a mesa, owing to the diamond’s high refractive index. The intersection of these two near-field fluorescence features indicates where the sensor NV spin is closest to the target NV spin. This spatial location is later used to confirm the location of the magnetically imaged target NV spin.

Figure 2: Independent determination of a target spin’s location.
figure 2

The sensor NV’s diamond nanopillar is scanned over a target nanostructure (‘mesa’) containing a single target NV centre. The combined NV fluorescence is recorded as a function of position (top, centre panel). The fluorescence has a strong spatial dependence because sensor NV fluorescence can partially couple into the target bulk diamond when the sensor NV is close to the sample surface, and target NV fluorescence can couple into the nanopillar waveguide when the nanopillar is located above the target NV. When the nanopillar is located away from the target NV, only fluorescence from the sensor NV is collected, as indicated by ESR measurements showing two spectral peaks corresponding to the sensor NV spin mS = 0/±1 transitions (bottom, left panel). For ESR measurements taken with the nanopillars located above the target NV (bottom, right panel) there are four observable spectral peaks that correspond to both the sensor and target NV spin transitions (blue and red, respectively), with reduced ESR contrast owing to collecting fluorescence from both NV spins. The centre of the target-coupling circle (red dashed circle around bright fluorescence spot) indicates the lateral location of the target NV spin relative to the centre of the nanopillar. Similarly, the centre of the sensor-quenching circle (blue dashed circle around dark fluorescence spot) indicates the lateral location of the sensor NV spin. With both NV spins’ lateral locations known, the position of the sensor–target closest approach can be ascertained (green dot).

Near the expected location of the target, the local magnetic field is measured with a magnetometry pulse sequence performed on the sensor NV using a combination of dynamic decoupling19 and double electron–electron resonance20. The sensor NV spin is prepared in a superposition of spin states, where it accumulates phase proportional to the local magnetic field, including contributions from the target NV spin. To optimize magnetic field sensitivity, the sensor NV is dynamically decoupled from fluctuating magnetic fields in its environment (Fig. 3, upper panel) through the repeated application of microwave π-pulses. Normally, this pulse sequence would also remove any magnetic signal from a static target spin, but we also simultaneously invert the target NV spin in phase with the π-pulses applied to the sensor NV spin (Fig. 3, lower panel) to maintain the sign of phase accumulation by the sensor spin due to the target NV spin. The total acquired phase is converted to a population difference, which is measured by means of NV spin-dependent fluorescence.

Figure 3: Single-spin detection scheme and target spin modulation verification.
figure 3

To detect the magnetic field from the target NV spin, the sensor NV spin (top panel, blue arrow) is placed in a superposition of spin states with a microwave π/2 pulse (around the x axis). It then evolves under the influence of the magnetic field from the target spin (red arrow), accumulating phase (shaded blue region, whose extent is visually exaggerated for visibility). To optimize the sensor spin’s magnetic sensitivity, it is dynamically decoupled from its environment (see Supplementary Discussion)19 by the repeated application of microwave π-pulses using an XY8 sequence21. To magnetically measure the target NV spin, it is inverted, synchronously with the π-pulses applied to the sensor NV, so that phase shifts induced on the sensor by the target spin constructively accumulate. (The target NV spin is modulated between the mS = 0 and mS = −1 states to isolate an effective spin-1/2 system from the target NV’s spin triplet.) To invert the target NV spin with high fidelity, we employ adiabatic fast passages (see Supplementary Discussion). Plotted is the measured target NV fluorescence for pulses 1, 2, 127 and 128, indicating that the target NV spin can be modulated many times without substantial polarization decay. The sensor NV’s accumulated phase is converted to a population difference using a final π/2 pulse, whose axis (y) is chosen to maximize sensitivity to small magnetic fields.

With the sensor NV in close proximity to the target diamond surface, the field sensitivity of the sensor NV is reduced, because sensor NV fluorescence is partially emitted into the target bulk diamond (owing to its high refractive index), and the target NV adds background fluorescence to magnetic measurements. Owing to these effects, our sensor NV’s magnetic field sensitivity at the closest approach to the target NV is reduced to approximately 96 nT Hz−1/2 (with a 32- π-pulse XY8 (ref. 21) decoupling scheme and a 40-μs total phase accumulation time; Supplementary Fig. S5). As the target NV is embedded in bulk diamond, the sensor-to-target vertical separation is roughly twice the distance between the sensor NV and the diamond surface. Thus, for our magnetic field imaging of a single target NV spin, we expect a 50-nm sensor–target vertical separation, which results in a magnetic field of about 10 nT at the sensor NV location.

A magnetic field image centred at the expected target spin location is acquired by averaging the sensor’s NV fluorescence in multiple scans of the NV magnetometer across a 200×200-nm field-of-view (taken using a lateral drift correction scheme detailed in Supplementary Fig. S3). A normalization scheme is applied to the magnetometry, where we alternately initialize the target NV spin in the |0〉 state and the |−1〉 state and measure the equal and opposite phase shifts induced during the sensor NV’s magnetometry sequence (Supplementary Fig. S2). We subtract the measured NV fluorescence rates for these two initial target NV spin polarizations, which isolates the magnetic field signal from the target spin (Supplementary Fig. S4).

Near the centre of the magnetometry scan, we observe a drop in the normalized fluorescence from the magnetometry sequence that is well beyond the uncertainty set by the measurement’s noise level and is consistent with the effect of a single target NV spin’s magnetic field on the sensor NV. The complete magnetic field image clearly indicates the presence and location of the target NV spin (Fig. 4a). This single electron spin detection is confirmed by repeating the measurement with a spatial linecut of magnetometry measurements (Fig. 4b), with a resulting magnetic response that fits well to a vertical separation of 51.1±2.0 nm between the sensor and target NV centres. (Errors are determined from the χ2 of the fit as a function of distance, where the sensor-to-target displacement is the only free parameter and the orientations of both NV spins are independently measured using ESR.) The measured fluorescence difference is converted to a magnetic field at the sensor NV (peak value of 8.6 nT, Fig. 4b) by using the sensor NV spin’s independently calibrated magnetic field response and fluorescence rate. Both scanning magnetometry measurements are in good agreement with simulations of the sensor NV’s response to the magnetic field from a single electron spin at a vertical distance of 51 nm (Fig. 4c). Thus, the above measurements are consistent and confirm the detection and nanoscale imaging of the single target spin.

Figure 4: Single-spin magnetic imaging.
figure 4

a, Magnetic field image of a target NV spin near the surface of a diamond mesa, acquired with the scanning NV magnetometer. While repeatedly running an a.c. magnetometry pulse sequence (here with a 32-pulse XY8 sequence, with 40 μs of total evolution time), the sensor NV is laterally scanned over the target, and the fluorescence rates for the target spin starting in the |0〉 state as well as the |−1〉 state are independently recorded. Plotted is the difference between these measurements, which depends only on the sensor NV’s magnetic interaction with the target spin and not on background fluorescence variations (see Supplementary Information). The pronounced drop in fluorescence near the centre of the image indicates a detected single electron spin. b, An independent magnetometry linecut taken along the green arrow confirms the single-spin imaging, which has an intensity and width consistent with the recorded image. The measured fluorescence difference is converted to the measured magnetic field using the sensor NV’s calibrated field sensitivity and fluorescence rate (see Supplementary Fig. S5). c, Simulated fluorescence due to a target spin. With only the sensor–target displacement as a free parameter, the spin signal is simulated, which agrees well with both the spin image and the linecut for a vertical distance of 51 nm (the fit in b and the image in c have the same parameters). d, If the sensor–target vertical distance can be moderately reduced, the quality of single-spin imaging will be markedly improved. Plotted are simulated lateral magnetic field contours from a single target electron spin for different sensor–target vertical separations where each contour indicates an increase of signal-to-noise by one for a 100 s integration time. At 50 nm (the current condition), there is only one contour, indicating single-spin imaging with a signal-to-noise of one; however, at 10 nm, a signal-to-noise of roughly 100 is possible, such that many contours and the dipole lobes of the target spin are clearly observable. c.p.s., counts per shot.

In the demonstrated magnetic field imaging, single-spin measurements with a signal-to-noise ratio (SNR) of one can be acquired in 2.3 min. The data for both single-spin measurements presented in Fig. 4 have been integrated for a total time of 42 min per point, yielding an SNR of 4.3, which we note is more than a 15-fold reduction as compared with previous single-spin imaging performed at low temperatures9. This integration time is consistent with the measured target NV spin magnetic field (8.6 nT) and sensor NV magnetic field sensitivity calculated by assuming the noise is dominated by photon shot noise (96 nT Hz−1/2). We note that the SNR for imaging individual spins increases markedly with decreasing sensor-to-target distance (Fig. 4d), because dipolar fields decay as 1/r3, and thus only modest improvements in distance will be required to reduce data integration times to the order of seconds.

By successfully measuring the magnetic field from a single target NV spin, we have demonstrated that imaging of individual, initialized electron spins is possible under ambient conditions. At room temperature, spins are generally unpolarized; however there are numerous problems of great interest for which spins are polarized out of thermal equilibrium, and can in principle be magnetically detected. Examples include spin-polarized currents in the spin-Hall effect22 or in topological insulators23, spin-injected carriers through ferromagnetic tunnel contacts24, ferromagnetic point defects in graphene25,26 and optically pumped carriers and defects27; all of which can be (or are predicted to be) manifested at room temperature. These systems have attracted significant attention for both their underlying physics as well as their application to spintronics and quantum computation. So far such polarized spin systems have been challenging to study because their magnetic fields have been too weak to image. With single-spin sensitivity and nanoscale resolution, our magnetometer will enable magnetic measurements of these initialized spin systems.

We note that the demonstrated a.c. magnetometry techniques are generally applicable to such systems with initialized spins as various methods exist to obtain time-varying magnetic fields from a target at the sensor position. First, as was done in this work, conventional ESR can be used to flip isolated spins with long spin-relaxation times. Alternatively, many mechanisms for spin polarization can be modulated, such as currents for spin-polarized currents22,23,24, gate voltages for manipulating electron density in screening-dependent ferromagnetism25, or optical polarization27. Finally, the sensor-to-target distance can be periodically varied, which allows for the conversion of static field gradients on the sample to time-varying signals at the sensor position28.

During magnetic phase accumulation, if an appreciable amount of phase can be acquired on the sensor NV from a target spin, then a single non-initialized spin could in principle also be detected sensitively by measuring its variance (Supplementary Fig. S6). If the coherent sensor–target coupling is strong enough for more than 2π of sensor NV phase to be accumulated during magnetic field measurements, then phase-estimation techniques can be employed, thus allowing the measurement noise to decrease linearly in time29,30 and potentially offering a great boost in speed to magnetic imaging. Moreover, if an initialized target spin has a coherence time as long as the sensor NV, then the target and sensor spins could be entangled. Combined with long-lived storage techniques for quantum states31, the ability to entangle a scanning sensor and target spins could allow for mechanical transfer of quantum information between solid-state spins.