Abstract
Quantum sensors based on spin defects in diamond have recently enabled detailed imaging of nanoscale magnetic patterns, such as chiral spin textures, twodimensional ferromagnets, or superconducting vortices, based on a measurement of the static magnetic stray field. Here, we demonstrate a gradiometry technique that significantly enhances the measurement sensitivity of such static fields, leading to new opportunities in the imaging of weakly magnetic systems. Our method relies on the mechanical oscillation of a single nitrogenvacancy center at the tip of a scanning diamond probe, which upconverts the local spatial gradients into ac magnetic fields enabling the use of sensitive ac quantum protocols. We show that gradiometry provides important advantages over static field imaging: (i) an orderofmagnitude better sensitivity, (ii) a more localized and sharper image, and (iii) a strong suppression of field drifts. We demonstrate the capabilities of gradiometry by imaging the nanotesla fields appearing above topographic defects and atomic steps in an antiferromagnet, direct currents in a graphene device, and para and diamagnetic metals.
Introduction
Nanoscale magnetic stray fields appearing at surfaces and interfaces of magnetically ordered materials provide important insight into the local spin structure. Such stray fields are present, for example, above magnetic domains and domain walls^{1}, magnetic vortices^{2}, spin spirals^{3}, skyrmions^{4}, or topographic steps and defects^{5}, and often accompany other types of ordering, like ferroelectricity^{6}. Similar stray fields also appear near flowing currents^{7,8} or materials with a magnetic susceptibility^{9}. Therefore, stray field measurements are a general and versatile tool to study local material or device properties.
While the magnetic imaging of ferromagnetic and ferrimagnetic textures is wellestablished^{10,11,12}, detection of the much weaker stray fields of, for example, antiferromagnets, multiferroics or nanoscale current distribution is a relatively new development. Quantum magnetometers based on single nitrogenvacancy (NV) centers have recently led to exciting advances in this direction^{13,14,15,16,17,18,19}. In their standard configuration, NV magnetometers image stray fields by scanning a sharp diamond probe over the sample surface and monitoring the static shift of the NV spin resonance frequency^{20,21}. Stateoftheart scanning NV magnetometers reach a sensitivity to static fields of a few \(\,\mu {{{{{{{\rm{T}}}}}}}}/\sqrt{{{{{{{{\rm{Hz}}}}}}}}}\)^{16,22}. This sensitivity is sufficient for imaging the domain structure of monolayer ferromagnets^{22,23,24} and uncompensated antiferromagnets^{14,15,16,17}, however, it remains challenging to detect the even weaker stray fields of isolated magnetic defects, spin chains, or ideally compensated antiferromagnets. While higher sensitivities, on the order of \(50\,{{{{{{{\rm{nT}}}}}}}}/\sqrt{{{{{{{{\rm{Hz}}}}}}}}}\), have been demonstrated using dynamic (ac) detection of fields^{25,26}, this approach is limited to the few systems whose magnetization can be modulated, like isolated spins^{27,28}.
Here, we demonstrate a gradiometry technique for highly sensitive imaging of static magnetization patterns. Our method relies on upconversion of the local spatial gradient into a timevarying magnetic field using mechanical oscillation of the sensor combined with sensitive ac quantum detection. This operating principle is well known from dynamic force microscopy^{29,30} and has recently been combined with scanning superconducting quantum interference devices^{31,32,33}. While mechanical oscillation has been explored with NV centers in various forms^{21,34,35,36,37,38}, it has not been realized for sensitive imaging of general twodimensional magnetic samples. As a striking demonstration, we show that scanning gradiometry is able to resolve the nanotesla magnetic stray fields appearing above single atomic terraces in antiferromagnetic Cr_{2}O_{3}. Imaging of nanoscale current patterns, magnetic susceptibility in metals, and reconstruction of field maps from gradiometry data is also demonstrated.
Results
Gradiometry technique
The operating principle of our gradiometry technique is shown in Fig. 1a. Our scanning magnetometer setup consists of a sample plate that is scanned underneath a diamond probe containing a single NV center at the tip apex formed by ion implantation^{39}. The diamond tip is attached to the prong of a quartz tuning fork (Fig. 1) providing atomic force microscopy (AFM) position feedback^{40}. The microscope apparatus additionally includes an objective to optically polarize and readout the NV center spin state and a bond wire acting as a microwave antenna for spin manipulation (see Methods for details). In the conventional mode of operation, we record a spin resonance spectrum at each pixel location to build up a map of the sample’s static stray field^{16}.
To implement the gradiometer, we mechanically oscillate the NV in a plane parallel to the sample (shearmode) by electrically driving the tuning fork at a fixed amplitude x_{osc} ~ 10–70 nm. The NV center now experiences a timedependent field given by
where B is the vector component of the sample’s stray field along the NV anisotropy axis (Methods), and where \(x(t)={x}_{0}+{x}_{{{{{{{{\rm{osc}}}}}}}}}\sin (2\pi {f}_{{{{{{{{\rm{TF}}}}}}}}}t)\) describes the mechanical oscillation around the center location x_{0} with frequency f_{TF}. The amplitudes of the 0f_{TF}, 1f_{TF}, and 2f_{TF} harmonics in leading orders of x_{osc} are given by
and are therefore proportional to the static field, gradient, and second derivative, respectively. The series expansion in Eq. (2) is accurate for oscillation amplitudes x_{osc} smaller than the scan height, typically d ~ 100 nm. Since the scan height sets the achievable spatial resolution^{7}, the oscillation does not impair imaging resolution.
To detect the harmonics of B(t), we synchronize the mechanical oscillation with a suitable ac quantum sensing sequence^{41,42}, shown in Fig. 2a. Quantum sensing sequences measure the quantum phase accumulated by the coherent precession of a superposition of spin states during an interaction time τ^{43}. To measure the nf_{TF} harmonic, we invert the spin precession n times during one mechanical oscillation period using microwave πpulses (CarrPurcellMeiboomGill (CPMGn) sequence^{43,44}). The pulse protocols for the first (CPMG1) and second (CPMG2) signal harmonics are shown in Fig. 2a. The quantum phase accumulated for the first harmonic is given by
where γ_{e} = 2π × 28 GHz/T is the gyromagnetic ratio of the NV electronic spin and t_{0} = T/2 (see Fig. 2a). The derivation of Eq. (3) and general expressions for higher harmonics and for sequences that are offcentered with respect to the tuning fork oscillation (t_{0} ≠ T/2) are given in Supplementary Note 1. To determine ϕ experimentally, we measure the photoluminescence (PL) intensity C_{Φ} as a function of the phase Φ = x, y, −x, −y of the last microwave π/2 pulse (Fig. 2a). From the four PL signals C_{Φ} we then extract the phase using the twoargument arc tangent (see Methods),
This fourphase readout technique has the advantage that the phase can be retrieved over the full 2π range with uniform sensitivity^{19,26}. From ϕ^{(measured)} and Eq. (3) we then compute the gradient field B_{1}. Since we can only measure ϕ modulo 2π, a phase unwrapping step is necessary for large signals that exceed the range [−π; π)^{26}. Additionally, the oscillation amplitude can be used as a control parameter (x_{osc} < d) to dynamically set the maximum gradient before phase wrapping occurs.
For NV centers with long coherence times (T_{2} ≫ T), the sensitivity can be improved further by accumulating phase over multiple oscillation periods using CPMG2n sequences (Fig. 2b). The simplest way to meet the T_{2} ≫ T condition is to use a mechanical oscillator with a higher resonance frequency. Alternatively, as demonstrated in this work, a higher mechanical mode of the tuning fork can be employed^{45}. Highfrequency detection has the added advantage that the interval between πpulses (given by 1/(2f_{TF})) becomes very short, which makes dynamical decoupling more efficient and in turn leads to improved sensitivity^{42,46}. We demonstrate single and multiperiod detection schemes with sensitivities of \(\sim \!\!120\,{{{{{{{\rm{nT}}}}}}}}/\sqrt{{{{{{{{\rm{Hz}}}}}}}}}\) and \(\sim\!\!100\,{{{{{{{\rm{nT}}}}}}}}/\sqrt{{{{{{{{\rm{Hz}}}}}}}}}\), respectively, that exceed our best dc sensitivities of \(\sim\!\!12\,\mu {{{{{{{\rm{T}}}}}}}}/\sqrt{{{{{{{{\rm{Hz}}}}}}}}}\) by one order of magnitude (Supplementary Notes 2 and 3).
Demonstration of scanning gradiometry
We begin measurements by calibrating the oscillation amplitude x_{osc} and verifying Eqs. (2, 3). We characterize the gradiometry phase detection by parking the tip over a fixed position on a magnetic test sample and measuring the B_{1} and B_{2} signals as a function of the oscillation amplitude x_{osc} (see Methods and Supplementary Note 4 for characterization and calibration details). Figure 3a confirms that the signals grow as B_{1} ∝ x_{osc} and \({B}_{2}\propto {x}_{{{{{{{{\rm{osc}}}}}}}}}^{2}\), as expected from the Taylor expansion (Eq. 2). Further, to avoid mixing of mechanical and field harmonic signals through surface interactions, we retract the tip by ~20 nm from the contact point while measuring (Supplementary Note 5).
We establish twodimensional imaging by detecting the stray field from a direct current flowing in a bilayer graphene device (Fig. 3b). This device provides an ideal test geometry because the magnetic stray field and gradient can be tuned and directly compared to the analytical model. Moreover, results can be benchmarked against those obtained by ac current driving^{26}. Figure 3c presents gradiometry maps B_{1} and B_{2} and, for comparison, a static field map B_{0} recorded using a standard dc technique^{47} with no tuning fork oscillation. Note that all images are recorded with the same imaging time and pixel size. The figure immediately highlights several advantages of gradiometry versus static field imaging: First, the signaltonoise ratio is strongly enhanced due to the more sensitive ac detection, despite a lower absolute signal. Second, magnetic drift throughout the imaging time (several hours) is present in the static image but suppressed in the gradiometry images. Magnetic drifts are suppressed for two reasons; they fluctuate at low frequencies far away from the detection frequency, and magnetic drift sources do not generate appreciable magnetic field gradients over the oscillation range (~100 nm). Numerically differentiating the static image to remove field drifts is not suitable as it introduces highfrequency noise (Supplementary Fig. 6c). Third, because gradient fields decay quickly with distance (B_{1} ∝ x^{−2} and B_{2} ∝ x^{−3} compared to B_{0} ∝ x^{−1}, see Fig. 3d and Supplementary Note 6), they offer a higher apparent image resolution and are thus easier to interpret.
Imaging of antiferromagnetic surface texture
We now turn our attention to the imaging of stray fields above antiferromagnetic materials, focusing on the archetypical model system Cr_{2}O_{3}. Antiferromagnets represent a general class of weakly magnetic materials that are both challenging to the image by existing techniques^{48,49,50} and of key importance for understanding multiferroicity and topological magnetism in the context of antiferromagnetic spintronics^{51}. Although antiferromagnets are nominally nonmagnetic, weak stray fields can appear due to uncompensated moments at domain walls^{14,15,16}, spin spirals^{13}, topographic steps^{17}, or surface roughness and defects. The latter is particularly difficult to detect, yet plays an important role in the pinning of domain walls^{17} and establishing an exchange bias at material interfaces^{52}. Careful study of these weaker fields is therefore an important avenue for quantifying the interplay between surface roughness, stray field structure, local magnetization, and domain wall behavior.
In Fig. 4a we show a gradiometry image of a polished Cr_{2}O_{3} singlecrystal^{16}. Cr_{2}O_{3} has a layered structure of outofplane Cr^{3+} moments at the (0001) surface^{53,54} that lead to stray fields at topographic steps^{16,17}. These stray fields are proportional to the step height. Indeed, Fig. 4a reveals a rich variety of magnetic anomalies on this surface, including two ~5 nm deep and ~200 nm wide topographic trenches introduced by polishing, a number of point defects, and general texture of the ~2 nmrms surface roughness (see Supplementary Fig. 11 for topographic characterization). A quantitative calculation of the expected stray field maxima shows that the magnetic anomalies are well explained by the surface topography (Supplementary Note 7). Except for the trenches, these surface defects are not visible in the static field image (Fig. 4b). Note that it is possible to convert the gradiometry map into an improved static field map through integration and weighted averaging in kspace (Fig. 4c and Methods). See Supplementary Fig. 6 for the reverse process, where a B_{0} image is converted into a B_{1} image.
Next, we show that gradiometry is sufficiently sensitive to detect single atomic surface steps of the layered Cr_{2}O_{3}(0001) surface. Figure 4d displays a gradiometry image from a second Cr_{2}O_{3} single crystal with an asgrown (unpolished) surface^{53}. We observe a striking pattern of regular stripes separated by a few hundred nanometers and an approximate amplitude of B_{1} ~ 250 nT. The pattern extends over the entire crystal surface with different stripe separations and directions in different regions of the sample (Supplementary Fig. 12). By converting B_{1} measurements into local gradients we deduce height changes <1 nm (Supplementary Note 7), suggesting that the repeating striped patterns are caused by single (h = 0.227 nm), or multiple atomic step edges. To corroborate, we correlate the magnetic features to the AFM topography of the sample (Supplementary Fig. 12). Figure 4e, f show line cuts perpendicular to the stripe direction in two regions of the sample surface, and reveal the presence of both mono and diatomic step edges. The gradiometry data (Fig. 4g, h), are well fitted by a simple model (see Methods), producing a fitted surface magnetization of σ_{z} = 2.1 ± 0.5 μ_{B}/nm^{2}, in good agreement with earlier data^{14,16}. Together, our findings unambiguously confirm the stepped growth of the Cr_{2}O_{3}(0001) surface^{54}. To our knowledge, our work reports the first magnetic stray field imaging of atomic steps on an antiferromagnet. It opens a complementary path to existing atomicscale techniques, such as spinpolarized scanning tunneling microscopy and magnetic exchange force microscopy^{55}, without sharing the need for an ultrahigh vacuum, a conducting surface, or cryogenic operation.
Imaging of magnetic susceptibility
We conclude our study by demonstrating nanoscale imaging of magnetic susceptibility. Susceptometry measurements are important for investigating, for example, the magnetic response of patterned metals and materials^{9,56}, superconductors^{57} as well as para and superparamagnetic nanoparticles^{58,59}. Figure 5a shows a gradiometry map of a 50nmthick disc made from paramagnetic Pd placed in a bias field of B_{ext} = 35 mT. Under the bias field, the disc develops a magnetization of M = χB_{ext}/μ_{0}, where χ_{Pd} is the magnetic susceptibility of the Pd film. A fit to the data (see Methods), shown in Fig. 5b, produces a susceptibility of χ_{Pd} = (6.6 ± 0.2) × 10^{−4}. This is slightly smaller than the value of pure Pd (χ_{Pd} = 7.66 × 10^{−4}^{60}). The decreased susceptibility may be attributed to either a finitesize effect^{61} or hydrogen adsorption^{62}. Repeating the same experiment with Bi, a diamagnetic sample, produces an experimental value of χ_{Bi} = −(1.7 ± 0.1) × 10^{−4}(Fig. 5c, d), which matches the accepted room temperature value of χ_{Bi} = − 1.67 × 10^{−4}^{60}. Despite the ~4 × weaker susceptibility, the magnetic pattern is clearly visible and its sign is inverted compared to the paramagnetic Pd disc. Additionally, the apparent local structure at the center of the disc is explained by a variation in the film thickness (Supplementary Fig. 13). Together, Fig. 4a–d demonstrate the feasibility of extending sensitive dc susceptometry to the nanometer scale.
Discussion
Our work demonstrates a simple yet powerful method for imaging static magnetization patterns with high sensitivity and spatial resolution. While we demonstrate scanning gradiometry on a layered antiferromagnet, extension to more challenging systems including perfectly compensated collinear antiferromagnets, screw and step dislocations^{5}, or isolated magnetic defects is natural. In particular, the magnetic signal from an atomic step edge is equivalent to that of a onedimensional spin chain with a linear magnetization density of σ_{z}h ≈ 0.5 μ_{B}/nm (Methods), demonstrating the feasibility of imaging generic 1D spin systems. Gradiometry is also wellpositioned for imaging the internal structure of domain walls and skyrmions, and in particular, for quantifying their size and chirality^{16,63,64,65} (Supplementary Fig. 14). Finally, while we demonstrate gradiometry on magnetic fields, the technique can be extended to electric fields by orienting the external bias magnetic field perpendicular to the NV axis^{66,67,68}. In particular, the dynamic mode of operation may alleviate charge screening that has previously limited scanning NV electrometry of dc electric field sources^{69}. With the ability to image both magnetic and electric fields, one could imagine correlating antiferromagnetic and ferroelectric order in multiferroics^{51}, providing a unique angle to investigate the magnetoelectric coupling in these fascinating and technologically important materials.
Methods
Experimental setup
All experiments were carried out at room temperature with two homebuilt scanning microscopes. Micropositioning was carried out by closedloop threeaxis piezo stages (Physik Instrumente) and AFM feedback control was carried out by a lockin amplifier (HF2LI, Zurich Instruments) and standard PID controls. PL of the NV centers was measured with avalanche photodiodes (APDs) (Excelitas) and data were collected by standard data acquisition cards (PCIe6353, National Instruments). Direct currents sent through the bilayer graphene were created with an arbitrary waveform generator (DN2.66304, Spectrum Instrumentation) and the current was measured with a transimpedance amplifier (HF2TA, Zurich Instruments). Microwave pulses and sequences were created with a signal generator (Quicksyn FSW0020, National Instruments) and modulated with an IQ mixer (Marki) and an arbitrary waveform generator (DN2.66304, Spectrum Instrumentation, and HDAWG, Zurich Instruments). NV centers were illuminated at < 100 μW by a customdesigned 520 nm pulsed diode laser. Scanning NV tips were purchased from QZabre AG^{39}. Three different NV tips were used throughout this study with standoff distances d between 70 and 130 nm (excluding the 20nm retract distance). When imaging our samples, we typically measured for 5 to 30 seconds per pixel to achieve good signaltonoise. We observed relatively small spatial drifts (typically <30nm per day). As a result, we did not employ any drift correction techniques and we do not expect drifts to affect our results or scientific claims.
Magnetic samples
Bilayer graphene device
Standard microfabrication processes were used, including mechanical exfoliation and a dry transfer process for generating the hBNbilayergraphenehBN stack, electron beam lithography, and plasma etching for creating the device geometry and physical vapor deposition for creating the metallic device contacts. Full details can be found in ref. ^{26}.
Cr_{2}O_{3} crystals
The mechanically polished and nonpolished Cr_{2}O_{3} bulk single crystals were provided by professor Manfred Fiebig. Both crystals have a (0001) surface orientation. Crystal growth and processing details can be found in refs. ^{16,53}.
Pd and Bi discs
Metallic microdiscs were created using standard microfabrication processes. Discs were defined through electron beam lithography on spincoated Si wafers. Chemical development of the spincoated resist, followed by metal deposition of either 50nm of Pd or Bi, and a liftoff process finished the fabrication.
Initialization and readout of NV spin state
A laser pulse of ~2 μs duration was used to polarize the NV center into the m_{S} = 0 state. Then, the dc or ac quantum sensing measurement occurred on the m_{S} = 0 to m_{S} = −1 transition (see below). The readout of the NV’s spin state was performed by another ~2 μs long laser pulse, during which the photons emitted from the NV center were collected with the APD, binned as a function of time, and summed over a window (~300 ns) that optimized spin statedependent PL contrast^{70}.
DC sensing protocol
DC magnetic images were acquired with the pulsed ODMR method^{47}. Measured magnetic resonance spectra were fitted for the center frequency f_{c} of a Lorentzian function, \(L(f)=1\epsilon {[(2\pi f2\pi {f}_{c})/{\omega }_{L}]}^{2}+1{\left.\right]}^{1}\), where ϵ is the spin contrast (in percent) and ω_{L} is the width of the Lorentzian dip. In a 2D scan the magnetic field projected along the axis of the NV could be determined at each pixel using B(x, y) = 2π[f_{c}(x, y) − f_{0}]/γ_{e} where f_{0} is the resonance frequency far from the surface. For our diamond probes, the NV anisotropy axis was at an θ ~ 55^{∘} angle with respect to the outofplane direction (zaxis in Fig. 1). Therefore, B(x, y) corresponded to the vector field projection along this tilted direction.
AC sensing protocol
AC sensing used either a spin echo or dynamical decoupling sequence^{41,42}. The NV spin state was initialized optically into the m_{S} = 0 state followed by a microwave π/2pulse to create a coherent superposition between the m_{S} = 0 and m_{S} = −1 states. The quantum phase ϕ accumulated between the two states during the coherent precession can be expressed as \(\phi =\int\nolimits_{0}^{\tau }{\gamma }_{{{{{{{{\rm{e}}}}}}}}}g(t)B(t)dt\) where g(t) is the modulation function^{43}, B(t) is the magnetic field, τ is the interaction time (the time in between the first and last π/2pulse), and where we use the rotating frame approximation. The modulation function alternates between ± 1 with each microwave πpulse during the pulse sequence. While imaging with the gradiometry pulse sequences, 3π/2pulses were sometimes used instead of the final π/2pulses for the projective spin readout to reduce pulse imperfections caused by (ca. ± 100 kHz) drifts in the NV resonance frequency.
Calibration of tuning fork oscillation
We estimated the oscillation amplitude x_{osc} and oscillation angle in the xyplane, denoted by α, of the tuning forks with two different insitu measurement techniques. The first method involved processing a static field map and a gradient field map acquired over the same region with a leastsquares minimization scheme. By minimizing a cost function proportional to the pixel value differences between the B_{1} and numerically differentiated B_{0} images, estimates for x_{osc} and α were determined. The second method involved stroboscopic imaging of the static field (B_{0}) synchronized to the tuning fork oscillation. By measuring the timetagged displacements of magnetic features recorded at different positions during the tuning fork oscillation, x_{osc} and α could be estimated by fitting to the path taken by the NV. We found that x_{osc} scaled linearly with the applied drive voltage for the voltages we used while imaging. Examples of these calibration methods are given in Supplementary Note 4.
Calibration of the trigger delay
In order to optimize the ac sensing sequences, and to distinguish between signals from the first and second derivatives (see Supplementary Note 1), a trigger delay (t_{0}) calibration measurement must be made. The calibration measurement consisted of measuring the phase ϕ at a stationary point on the sample, while varying t_{0}, thus producing a phase that oscillated as a function of t_{0}. The chosen value of t_{0} was the value that maximized the measured phase. Examples of this calibration measurement, as well as the characterization of PL oscillation caused by the tuning fork motion, are shown in Supplementary Note 4.
Reconstruction of the static field map from the gradient map
A gradient map B_{1} can be used to reduce the noise and improve the image of a (less sensitive) static field map B_{0}. While direct integration of B_{1} produces a B_{0} map^{32}, a combination approach using B_{0} and B_{1} provides the best noise suppression across all spatial wavelengths, with no need for adhoc boundary conditions. Letting B_{T} denote the true static magnetic field value, the experimentally measured B_{0} and B_{1} field maps are
where \(\frac{\partial }{\partial r}=\cos (\alpha )\frac{\partial }{\partial x}+\sin (\alpha )\frac{\partial }{\partial y}\) is the directional derivative and \({w}_{0} \sim {{{{{{{\mathcal{N}}}}}}}}(0,{\sigma }_{{B}_{0}}^{2})\) and \({w}_{1} \sim {{{{{{{\mathcal{N}}}}}}}}(0,{\sigma }_{{B}_{1}}^{2})\) are white noise added to each pixel (reflecting the Poissonian shot noise of the photodetection). In kspace these equations can be transformed into
where \(\hat{X}\) denotes the Fourier transform of X, \({k}_{r}={k}_{x}\cos \alpha +{k}_{y}\sin \alpha\) is the dot product between the oscillation direction and the kvector [k_{x}, k_{y}]. Integration in kspace introduces a kdependent noise term in the gradient field map. In particular, the integrated gradient map has noise amplification near the line \({k}_{y}=\cot (\alpha ){k}_{x}\) but has noise suppression far away from that line. Directional sensitivity could be avoided by oscillating the tuning fork in the zdirection (tapping mode), or by using an oscillator that supports orthogonal lateral modes. To circumvent this problem we average two kspace maps (Eq. (6)) with kvector dependent weights that reflect the noise added by the integration process. The use of inverse variance weights additionally results in an image with the lowest possible variance. Thus, the optimal reconstructed static field map can be computed by taking the inverse Fourier transform of
where \({k}_{0}^{2}={\sigma }_{{B}_{1}}^{2}/({x}_{{{{{{{{\rm{osc}}}}}}}}}^{2}{\sigma }_{{B}_{0}}^{2})\) defines a cutoff wave vector determined by the oscillation amplitude and the noise variances \({\sigma }_{{B}_{0}}^{2}\) and \({\sigma }_{{B}_{1}}^{2}\). The corresponding cutoff wavelength λ = 2π/k_{0} reflects the spatial wavelength above (below) which the B_{0} (B_{1}) field map is less noisy. It should also be noted that the kspace averaging process can be modified to include the B_{2} map, however, the B_{1} map provides the most significant improvement. Specifically, in Fig. 4c, x_{osc} = 23 nm and α = 180^{∘} were used as reconstruction parameters (determined by the calibration in Supplementary Note 4). Note, since the gradient and kspace averaging are directional, the noise reduction is also directional (approximately 22 × in the xdirection and 5.6 × in the ydirection).
Stray fields from atomic step edges
For an atomic step edge propagating along the ydirection the stray field is modeled by two outofplane magnetic samples with different heights. Taking the analytical form (see ref. ^{63}) for the stray fields above an edge at x = 0 as \({B}_{x}(x,z)=\frac{{\mu }_{0}{\sigma }_{z}}{2\pi }\frac{z}{{x}^{2}+{z}^{2}}\), B_{y} = 0, and \({B}_{z}(x,z)=\frac{{\mu }_{0}{\sigma }_{z}}{2\pi }\frac{x}{{x}^{2}+{z}^{2}}\), where σ_{z} is the surface magnetization, we define the stray field produced by a small change in the height h as
with \({B}_{y}^{{{{{{{{\rm{step}}}}}}}}}=0\). The expressions are simplified in the limit of h ≪ d since the subnanometer atomic step edges are much smaller than typical standoff distances of d ~ 50 − 100 nm. We measure the gradient of the stray field along the oscillation direction, taken as the xdirection for simplicity. This leads to field gradients of
The fits in Fig. 4g, h are produced by projecting the field gradients onto the NV axis defined by \({{{{{{{\bf{e}}}}}}}}=[\sin \theta \cos \varphi ,\sin \theta \sin \varphi ,\cos \theta ]\) and summing over multiple steps. The line cuts are produced by rotating and plane averaging a 2D image (Supplementary Fig. 12). We account for the rotation angle in the xyplane by introducing an additional image rotation angle \(\varphi ^{\prime}\). The experimentally measured B_{1} field is then fitted by
We set h = 0.227 nm and \(\varphi ^{\prime} =4{0}^{\circ }\) for the fit in Fig. 4g, h = 0.454 nm and \(\varphi ^{\prime} =2{3}^{\circ }\) for the fit in Fig. 4h and fixed x_{osc} = 46 nm (determined by the tip calibration) in both fits. The standoff distance d, the surface magnetization σ_{z}, angles θ and φ and step edge locations are free parameters in the fit. Collectively, the fitted line scans give d = 89 ± 12 nm (including the 20 nm retract distance) and σ_{z} = 2.1 ± 0.5 μ_{B}/nm^{2}, which is consistent with previous measurements on this sample^{16}.
Note, Eq. (8) is functionally equivalent to the magnetic field from a onedimensional ferromagnetic spin chain with a linear magnetization density of M^{1D} = σ_{z}h. To demonstrate this, we calculate the stray field produced by a infinite line of magnetic dipoles along the line x = 0 and pointing in the xdirection as:
where r^{2} = x^{2} + y^{2} + d^{2}.
Susceptibility fitting for Pd and Bi discs
Susceptibility fits followed the assumption that the stray field produced by a para or diamagnetic sample is identical to that of a homogeneously magnetized body with a magnetization magnitude of M = χ_{Pd/Bi}B_{ext}/μ_{0} and a magnetization vector that is parallel to the external polarizing field. The stray field produced by this magnetization is B(r) = − μ_{0} ∇ ϕ_{mag}(r) where ϕ_{mag}(r) is the magnetic potential. We computed the stray field using the kspace method of ref. ^{71} and fitted the gradient image to the numerically computed gradient fields. In the fitting procedure we fixed x_{osc} = 69 nm, α = 180^{∘} (determined by the tip calibration) and sample thickness t = 50 nm while the standoff distance d, magnetization magnitude M, angles θ and φ, circle radius and position are free parameters in the fit. The susceptibilities are computed as χ_{Pd/Bi} = μ_{0}M/B_{ext} and the fitted magnetizations were M_{Pd} = 18.6 ± 0.6 A/m and M_{Bi} = −4.4 ± 0.4 A/m.
Data availability
The data that support the findings of this study are available from the corresponding author upon request.
References
Rondin, L. et al. Nanoscale magnetic field mapping with a single spin scanning probe magnetometer. Appl. Phys. Lett. 100, 153118 (2012).
Shinjo, T., Okuno, T., Hassdorf, R., Shigeto, K. & Ono, T. Magnetic vortex core observation in circular dots of permalloy. Science 289, 930–932 (2000).
Cox, D., Takei, W. & Shirane, G. A magnetic and neutron diffraction study of the Cr_{2}O_{3}Fe_{2}O_{3} system. J. Phys. Chem. Solids 24, 405–423 (1963).
Yu, X. et al. Realspace observation of a twodimensional skyrmion crystal. Nature 465, 901–904 (2010).
Ravlić, R., Bode, M., Kubetzka, A. & Wiesendanger, R. Correlation of dislocation and domain structure of Cr(001) investigated by spinpolarized scanning tunneling microscopy. Phys. Rev. B 67, https://doi.org/10.1103/physrevb.67.174411 (2003).
Fiebig, M., Lottermoser, T., Frohlich, D., Goltsev, A. V. & Pisarev, R. V. Observation of coupled magnetic and electric domains. Nature 419, 818–820 (2002).
Chang, K., Eichler, A., Rhensius, J., Lorenzelli, L. & Degen, C. L. Nanoscale imaging of current density with a singlespin magnetometer. Nano Lett. 17, 2367 (2017).
Tetienne, J. P. et al. Quantum imaging of current flow in graphene. Sci. Adv. 3, e1602429 (2017).
Bluhm, H., Bert, J. A., Koshnick, N. C., Huber, M. E. & Moler, K. A. Spinlike susceptibility of metallic and insulating thin films at low temperature. Phys. Rev. Lett. 103, 026805 (2009).
Hopster, H. & (Eds.), H. P. O. Magnetic Microscopy of Nanostructures (Springer, Berlin, 2005).
Freeman, M. R. & Choi, B. C. Advances in magnetic microscopy. Science 294, 1484 (2001).
Hartmann, U. Magnetic force microscopy. Annu. Rev. Mater. Sci. 29, 53–87 (1999).
Gross, I. et al. Realspace imaging of noncollinear antiferromagnetic order with a singlespin magnetometer. Nature 549, 252 (2017).
Appel, P. et al. Nanomagnetism of magnetoelectric granular thinfilm antiferromagnets. Nano Lett. 19, 1682–1687 (2019).
Wornle, M. S. et al. Currentinduced fragmentation of antiferromagnetic domains. arXiv https://arxiv.org/abs/1912.05287 (2019).
Wornle, M. S. et al. Coexistence of Bloch and Neél walls in a collinear antiferromagnet. Phys. Rev. B 103, 094426 (2021).
Hedrich, N. et al. Nanoscale mechanics of antiferromagnetic domain walls. Nat. Phys. 17, 064007 (2021).
Jenkins, A. et al. Imaging the breakdown of ohmic transport in graphene. arXiv https://arxiv.org/abs/2002.05065 (2020).
Ku, M. J. H. et al. Imaging viscous flow of the Dirac fluid in graphene. Nature 583, 537–541 (2020).
Rondin, L. et al. Magnetometry with nitrogenvacancy defects in diamond. Rep. Prog. Phys. 77, 056503 (2014).
Degen, C. L. Scanning magnetic field microscope with a diamond singlespin sensor. Appl. Phys. Lett. 92, 243111 (2008).
Sun, Q. et al. Magnetic domains and domain wall pinning in atomically thin CrBr_{3} revealed by nanoscale imaging. Nat. Commun. 12, 1989 (2021).
Thiel, L. et al. Probing magnetism in 2D materials at the nanoscale with singlespin microscopy. Science 364, 973 (2019).
Fabre, F. et al. Characterization of roomtemperature inplane magnetization in thin flakes of CrTe_{2} with a singlespin magnetometer. Phys. Rev. Mater. 5, 034008 (2021).
Vool, U. et al. Imaging phononmediated hydrodynamic flow in WTe_{2}. Nat. Phys. 17, 1216 (2021).
Palm, M. et al. Imaging of submicroampere currents in bilayer graphene using a scanning diamond magnetometer. Phys. Rev. Appl. 17, https://doi.org/10.1103/physrevapplied.17.054008 (2022).
Rugar, D., Budakian, R., Mamin, H. J. & Chui, B. W. Single spin detection by magnetic resonance force microscopy. Nature 430, 329 (2004).
Grinolds, M. S. et al. Subnanometre resolution in threedimensional magnetic resonance imaging of individual dark spins. Nat. Nano. 9, 279–284 (2014).
Hillenbrand, R., Stark, M. & Guckenberger, R. Higherharmonics generation in tappingmode atomicforce microscopy: insights into the tipsample interaction. Appl. Phys. Lett. 76, 3478–3480 (2000).
Sahin, O., Quate, C., Solgaard, O. & Giessibl, F. Higherharmonic force detection in dynamic force microscopy. Springer Handbook of Nanotechnol. 717–736 https://doi.org/10.1007/9783540298571_26 (2007).
Uri, A. et al. Nanoscale imaging of equilibrium quantum Hall edge currents and of the magnetic monopole response in graphene. Nat. Phys. 16, 164–170 (2020).
Tschirhart, C. L. et al. Imaging orbital ferromagnetism in a Moiré chern insulator. Science 372, 1323–1327 (2021).
Wyss, M. et al. Magnetic thermal and topographic imaging with a nanometerscale squidonlever scanning probe. Phys. Rev. Appl. 17, 034002 (2022).
Hong, S. et al. Coherent mechanical control of a single electronic spin. Nano Lett. 12, 3920–3924 (2012).
Kolkowitz, S. et al. Coherent sensing of a mechanical resonator with a singlespin qubit. Science 335, 1603–1606 (2012).
Teissier, J., Barfuss, A., Appel, P., Neu, E. & Maletinsky, P. Strain coupling of a nitrogenvacancy center spin to a diamond mechanical oscillator. Phys. Rev. Lett. 113, 020503 (2014).
Esquinazi, P. D., Meijer, J. & Jelezko, F. Method and device for the determination of static electric and/or static magnetic fields and the topology of components by means of a sensor technology based on quantum effects. Patent Application DE102015016021A1 (2015).
Wood, A. A. et al. T_{2}limited sensing of static magnetic fields via fast rotation of quantum spins. Phys. Rev. B 98, 174114 (2018).
QZabre Ltd. https://qzabre.com.
Giessibl, F. J. Highspeed force sensor for force microscopy and profilometry utilizing a quartz tuning fork. Appl. Phys. Lett. 73, 3956–3958 (1998).
Taylor, J. M. et al. Highsensitivity diamond magnetometer with nanoscale resolution. Nat. Phys. 4, 810 (2008).
Lange, G. D., Riste, D., Dobrovitski, V. V. & Hanson, R. Singlespin magnetometry with multipulse sensing sequences. Phys. Rev. Lett. 106, 080802 (2011).
Degen, C., Reinhard, F. & Cappellaro, P. Quantum sensing. Rev. Mod. Phys. 89, 035002 (2017).
Meiboom, S. & Gill, D. Modified spinecho method for measuring nuclear relaxation times. Rev. Sci. Instr. 29, 688 (1958).
Zeltzer, G. et al. Scanning optical homodyne detection of highfrequency picoscale resonances in cantilever and tuning fork sensors. Appl. Phys. Lett. 91, 173124 (2007).
Ryan, C. A., Hodges, J. S. & Cory, D. G. Robust decoupling techniques to extend quantum coherence in diamond. Phys. Rev. Lett. 105, 200402 (2010).
Dreau, A. et al. Avoiding power broadening in optically detected magnetic resonance of single NV defects for enhanced dc magnetic field sensitivity. Phys. Rev. B 84, 195204 (2011).
Fiebig, M., Fröhlich, D., Sluyterman v. L., G. & Pisarev, R. V. Domain topography of antiferromagnetic Cr_{2}O_{3} by secondharmonic generation. Appl. Phys. Lett. 66, 2906–2908 (1995).
Scholl, A. et al. Observation of antiferromagnetic domains in epitaxial thin films. Science 287, 1014–1016 (2000).
Wu, N. et al. Imaging and control of surface magnetization domains in a magnetoelectric antiferromagnet. Phys. Rev. Lett. 106, https://doi.org/10.1103/physrevlett.106.087202 (2011).
Cheong, S. W., Fiebig, M., Wu, W., Chapon, L. & Kiryukhin, V. Seeing is believing: visualization of antiferromagnetic domains. npj Quantum Mater. 5, https://doi.org/10.1038/s415350190204x (2020).
Nogués, J., Moran, T. J., Lederman, D., Schuller, I. K. & Rao, K. V. Role of interfacial structure on exchangebiased FeF_{2}Fe. Phys. Rev. B 59, 6984–6993 (1999).
Fiebig, M. Nichtlineare spektroskopie und topografie an antiferromagnetischen domänen. PhD Thesis (1996).
He, X. et al. Robust isothermal electric control of exchange bias at room temperature. Nat. Mater. 9, 579–585 (2010).
Wiesendanger, R. Spin mapping at the nanoscale and atomic scale. Rev. Mod. Phys. 81, 1495–1550 (2009).
Gardner, B. W. et al. Scanning superconducting quantum interference device susceptometry. Rev. Sci. Instr. 72, 2361 (2001).
Low, D. et al. Scanning squid microscopy in a cryogenfree dilution refrigerator. Rev. Sci. Instr. 92, 083704 (2021).
Gould, M. et al. Roomtemperature detection of a single 19 nm superparamagnetic nanoparticle with an imaging magnetometer. Appl. Phys. Lett. 105, 072406 (2014).
Fescenko, I. et al. Diamond magnetic microscopy of malarial hemozoin nanocrystals. Phys. Rev. Appl. 11, 034029 (2019).
Lide, D. R. (ed.) CRC Handbook of Chemistry and Physics, 84th edn. J. Am. Chem. Soc. 126, 1586–1586 https://doi.org/10.1021/ja0336372 (2004).
Macfarlane, W. A. et al. Finitesize effects in the nuclear magnetic resonance of epitaxial palladium thin films. Phys. Rev. B 88, 144424 (2013).
Jamieson, H. C. & Manchester, F. D. The magnetic susceptibility of Pd, PdH and PdD between 4 and 300 K. J. Phys. F: Met. Phys. 2, 323–336 (1972).
Tetienne, J. P. et al. The nature of domain walls in ultrathin ferromagnets revealed by scanning nanomagnetometry. Nat. Commun. 6, 6733 (2015).
Dovzhenko, Y. et al. Magnetostatic twists in roomtemperature skyrmions explored by nitrogenvacancy center spin texture reconstruction. Nat. Commun. 9, 2712 (2018).
Velez, S. et al. Currentdriven dynamics and ratchet effect of skyrmion bubbles in a ferrimagnetic insulator. Nat. Nanotechnol., in press (2022).
Dolde, F. et al. Electricfield sensing using single diamond spins. Nat. Phys. 7, 459–463 (2011).
Barson, M. S. J. et al. Nanoscale vector electric field imaging using a single electron spin. Nano Lett. 21, 2962–2967 (2021).
Bian, K. et al. Nanoscale electricfield imaging based on a quantum sensor and its chargestate control under ambient condition. Nat. Commun. 12, 2457 (2021).
Oberg, L. et al. Solution to electric field screening in diamond quantum electrometers. Phys. Rev. Appl. 14, 014085 (2020).
Schirhagl, R., Chang, K., Loretz, M. & Degen, C. L. Nitrogenvacancy centers in diamond: nanoscale sensors for physics and biology. Annu. Rev. Phys. Chem. 65, 83 (2014).
Beardsley, I. A. Reconstruction of the magnetization in a thin film by a combination of Lorentz microscopy and external field measurements. IEEE Trans. Magn. 25, 671 (1989).
Acknowledgements
The authors thank P. Scheidegger, S. Diesch, S. Ernst, K. Herb, and M.S. Wörnle for fruitful discussions, J. Rhensius for help with the Pd and Bi microdisc fabrication, and for the scanning electron micrograph in Fig. 1c, M. Giraldo and M. Fiebig for providing the Cr_{2}O_{3} samples, P. Gambardella for helpful comments on the manuscript, and the staff of the FIRST lab cleanroom facility for technical support. This work was supported by the European Research Council through ERC CoG 817720 (IMAGINE), Swiss National Science Foundation (SNSF) Project Grant No. 200020_175600, the National Center of Competence in Research in Quantum Science and Technology (NCCR QSIT), and the Advancing Science and TEchnology thRough dIamond Quantum Sensing (ASTERIQS) program, Grant no. 820394, of the European Commission. M.T. acknowledges the Swiss National Science Foundation under Project no. 200021188414.
Author information
Authors and Affiliations
Contributions
C.L.D., W.S.H., and M.L.P. conceived the idea and developed the theory. W.S.H., M.L.D., and M.L.P. implemented the scanning gradiometry technique, carried out the magnetometry experiments, and performed the data analysis. P.W. provided technical support with the magnetometry experiments. M.T. performed the atomic force microscopy of the unpolished Cr_{2}O_{3} crystal. M.L.P. prepared the bilayer graphene sample. C.H.L. prepared the Pd and Bi microdiscs. C.L.D. supervised the work. W.S.H. and C.L.D. wrote the manuscript. All authors discussed the results.
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
Peer review
Peer review information
Nature Communications thanks the anonymous reviewers for their contribution to the peer review of this work.
Additional information
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary information
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Huxter, W.S., Palm, M.L., Davis, M.L. et al. Scanning gradiometry with a single spin quantum magnetometer. Nat Commun 13, 3761 (2022). https://doi.org/10.1038/s41467022314546
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41467022314546
This article is cited by

Nanoscale electric field imaging with an ambient scanning quantum sensor microscope
npj Quantum Information (2022)
Comments
By submitting a comment you agree to abide by our Terms and Community Guidelines. If you find something abusive or that does not comply with our terms or guidelines please flag it as inappropriate.