Introduction

A quantum measurement induces back-action on the measured system, causing the system to collapse into different states determined by the random measurement outcome. When monitoring the dynamics of a quantum object by sequential measurements, the back-action induces inevitable disturbance. Weak measurements, as introduced theoretically1,2,3,4,5,6,7 and demonstrated experimentally with nitrogen-vacancy (NV) centers8,9, superconducting qubits10,11,12 and other systems13,14, are a potential solution to approach the limit of negligible disturbance of the system under study. However, this comes at the price of less information on the system.

NV centers in diamond have recently been shown to be exceptional sensors for nanoscale nuclear magnetic resonance (NMR)15,16,17,18,19,20,21,22. In these experiments, the NV center typically probes nuclear sample spins in a Ramsey-type experiment, i.e., a free evolution of the spins in between the preparation and readout steps. High-spectral resolution, necessary for chemical identification of molecules, requires long free evolution times. To avoid measurement back-action on the sample spins, these schemes usually avoid measurements during free evolution of the system18,23,24,25,26,27,28,29,30. On the other hand, long free evolution times leave the sensor idle and hence decrease sensitivity.

Here we show that, by interleaving sequential measurements and free evolution of the system, back-action can be mitigated while at the same time sensitivity can be increased drastically. In addition, if the measurement rate is larger than the hyperfine coupling to nuclear spins, an effective decoupling of the nuclear spin precession from electron spin decay can be achieved. Exploiting these features of sequential weak measurements, we devise theoretically and demonstrate experimentally a scheme to reconstruct the time evolution of a single nuclear spin from the random results of many subsequent measurements by carefully tuning the strength and timing of measurements. By analyzing the correlations in the measurement record we reach the limit where measurements on single quantum systems are nearly back-action free and reconstruct their dynamics far beyond the limits set by the sensor lifetime.

Results

Correlation signal of sequential weak measurements

Weak measurements are implemented as shown in Fig. 1a. The sensor spin is initially polarized along the x-axis, denoted as \(\left| {\mathrm{x}} \right\rangle\). Essentially, the measurement of the nuclear spin consists of a rotation of the electron spin conditional on the quantum state of the nuclear spin (controlled phase gate). The controlled phase gate \(e^{2{\mathrm{i}}\alpha \hat S_{\mathrm{z}}\hat I_{\mathrm{X}}}\) is based on the magnetic dipole interaction between the sensor spin \({\hat{\mathbf S}}\) and the target spin \({\hat{\mathbf I}}\), with interaction strength α (see Methods). As shown in Fig. 1b, the controlled phase gate causes the sensor spin to rotate about the z-axis by an angle ±α for the target spin state \(\left| { \pm {\mathrm{X}}} \right\rangle\) (i.e., polarized parallel or anti-parallel to the X-axis). The evolution of the sensor spin for a certain initial state of the target is \(\left| {\mathrm{x}} \right\rangle \otimes \left( {a\left| { + {\mathrm{X}}} \right\rangle + b\left| { - {\mathrm{X}}} \right\rangle } \right)\)\(a\left| { + \alpha } \right\rangle \otimes \left| { + {\mathrm{X}}} \right\rangle + b\left| { - \alpha } \right\rangle \oplus \left| { - {\mathrm{X}}} \right\rangle\) with \(\left| { \pm \alpha } \right\rangle\) denoting the sensor state rotated away from the x-axis by ±α. The sensor spin is then measured along the y-axis. The probabilities of the two outcomes, \(m_k = \pm 1\) depend on the initial target state \(\left| { \pm {\mathrm{X}}} \right\rangle\). The projective measurement of the sensor therefore constitutes a measurement of the target spin I, with a strength depending on the value of α. In particular, a projective (strong) measurement is found for \(\alpha = \frac{{\mathrm{\pi }}}{2}\). Weak measurements can also be used for heralded initialization of the target spin along the X-axis upon post-selecting one of the outcomes of the sensor measurement9.

Fig. 1
figure 1

Sequential weak measurement of a target spin via projective measurement of a sensor spin. a The target spin is partially polarized along X or −X depending on the k-th measurement result of the sensor spin, then undergoes free precession about the Z-axis. If the measurement result is discarded, the target spin experiences measurement-induced dephasing along the X-axis. The correlation between different measurements on the sensor, e.g., the k-th and the (k+N)-th ones, reflects the spin dynamics. b The sensor-assisted weak measurement (\(\hat {\cal M}\)) of the target spin. The sensor is initialized along the x-axis. By the control-phase gate, the sensor spin precesses about the z-axis by opposite angles for opposite target states \(\left| { \pm {\mathrm{X}}} \right\rangle\). A projective measurement on the sensor along the y-axis constitutes a weak measurement of the target spin. c, d Precession by an angle Φ (left column) and the measurement-induced dephasing (right column), shown as evolution from dotted arrows to solid ones. c The effective precession \({\mathrm{\Phi }}_{{\mathrm{eff}}}\) is slowed down/sped up for Φ greater/less than \(\frac{{\mathrm{\pi }}}{2}\). d For Φ close to 0 or π, the spin is coherently trapped along an axis (\({\mathrm{\Phi }}_{{\mathrm{eff}}} = 0\)) or alternatively along opposite directions (\({\mathrm{\Phi }}_{{\mathrm{eff}}} = {\mathrm{\pi }}\)). e In the experiment, a measurement cycle contains a 532 nm laser pulse (300 ns), a KDDn sequence (n units of 20 equally separated π-pulses) sandwiched between two π/2-pulses and a waiting time. The numbers associated with the microwave pulses indicate the angle between the rotation axes and the y-axis

In between two successive measurements, the target spin undergoes free precession about the Z-axis by an angle Ф. Thus, the outcomes of any two measurements correlate depending on the spin precession (see Methods). In the limit α→0, the measurement-induced dephasing (disturbance) is negligible, and the correlation function between two measurement outcomes separated by N measurements, \(C(N) \equiv \left\langle {m_{k + N}m_k} \right\rangle = {\mathrm{sin}}^2{\kern 1pt} \alpha {\kern 1pt} {\mathrm{cos}}\left( {N{\mathrm{\Phi }}} \right)\), oscillates at the precession frequency Ф (in units of radian per measurement cycle) (see Methods), without measurement-induced damping. In this limit, i.e., for very weak measurements the target spin precession frequency can be determined with arbitrary spectral resolution. In practice, however, each measurement dephases the target spin (in the X basis) and the spin dynamics shows a damped Rabi oscillation (about the Z-axis). By taking this finite dephasing into account, we find the expression for the correlation function

$$C(N) = \frac{{{\mathrm{sin}}^2\alpha \left( {C_ + \eta _ + ^N + C_ - \eta _ - ^N} \right)}}{2},$$
(1)

where \(C_ \pm = 1 \pm \mu \frac{{{\mathrm{cos}}{\kern 1pt} {\mathrm{\Phi }}}}{{\sqrt {\mu ^2 - {\mathrm{sin}}^2{\kern 1pt} {\mathrm{\Phi }}} }}\), \(\eta _ \pm = \left( {{\mathrm{cos}}{\kern 1pt} {\mathrm{\Phi }} \pm \sqrt {\mu ^2 - {\mathrm{sin}}^2{\kern 1pt} {\mathrm{\Phi }}} } \right){\kern 1pt} {\mathrm{cos}}^2{\kern 1pt} \frac{\alpha }{2}\) with \(\mu \equiv {\mathrm{tan}}^2{\kern 1pt} \left( {\frac{\alpha }{2}} \right)\) (which can be regarded as the measurement strength for \(\alpha \le \frac{{\mathrm{\pi }}}{2}\)).

There is a phase transition in the quantum dynamics between coherent oscillation and coherent trapping at the boundary \(\mu ^2 = {\mathrm{sin}}^2{\kern 1pt} {\mathrm{\Phi }}\), due to the competition between the free precession and measurement-induced dephasing (similar to damped Rabi oscillations)2,6,7,31,32.

On one hand, when the measurement is relatively weak, i.e., \(\mu ^2 < {\mathrm{sin}}^2{\kern 1pt} {\mathrm{\Phi }}\), the correlation function is an oscillatory function with an effective decay of \(\gamma _{{\mathrm{eff}}} = - \frac{1}{2}{\kern 1pt} {\mathrm{ln}}{\kern 1pt} \left( {{\mathrm{cos}}{\kern 1pt} \alpha } \right)\) per measurement cycle. This is half the measurement-induced dephasing rate as the measurement dephases the spin only along the Y-axis, while the spin is rotating in the X–Y plane. Taking this into account, the renormalized angular frequency of the target spin precession is given by (in units of radian per measurement cycle)

$${\mathrm{\Phi }}_{{\mathrm{eff}}} = {\mathrm{arccos}}\frac{{{\mathrm{cos}}{\kern 1pt} {\mathrm{\Phi }}}}{{\sqrt {1 - \mu ^2} }}.$$
(2)

Due to this, the frequency is either dragged towards 0 (oscillation slowed down) or π (oscillation sped up) depending on the precession angle Φ being less or greater than \(\frac{{\mathrm{\pi }}}{2}\) (see Fig. 1c).

On the other hand, when the measurement is relatively strong, i.e., \(\mu ^2 > {\mathrm{sin}}^2{\kern 1pt} {\mathrm{\Phi }}\), the correlation function exhibits an exponential decay i.e., \(C\left( N \right) \sim {\mathrm{exp}}{\kern 1pt} \left( { - N\gamma _{{\mathrm{eff}}}} \right)\) if \({\mathrm{cos}}{\kern 1pt} {\mathrm{\Phi }} > 0\) or decay with alternating sign, \(C\left( N \right) \sim \left( { - 1} \right)^N{\kern 1pt} {\mathrm{exp}}{\kern 1pt} \left( { - N\gamma _{{\mathrm{eff}}}} \right)\) if \({\mathrm{cos}}{\kern 1pt} {\mathrm{\Phi }} < 0\), with an effective decay rate \(\gamma _{{\mathrm{eff}}} = {\mathrm{min}}\left( { - {\mathrm{ln}}\left| {\eta _ + } \right|, - {\mathrm{ln}}\left| {\eta _ - } \right|} \right) \approx {\mathrm{sin}}^2{\kern 1pt} {\mathrm{\Phi /}}[2{\kern 1pt} {\mathrm{tan}}^2(\alpha {\mathrm{/}}2)]\). This indicates that the spin is trapped approximately along the X-axis. The physical picture of the trapped dynamics is illustrated in Fig. 1d. The trapping dynamics is similar to the quantum Zeno effect31,32, where the trapped states are coherent superpositions of the energy eigenstates \(\left| { \pm {\mathrm{Z}}} \right\rangle\)—the eigenstates of the free precession.

Experimental realization of sequential weak measurements

In our experiments, we use the electron spin of a single NV center in diamond as the quantum probe for single 13C nuclear spins in close proximity. Experiments are carried out at room temperature, where the spin lifetime of the NV center spin is on the order of milliseconds. The diamond crystal in use has a 13C abundance depleted to 0.005%. The electron spin \({\hat{\mathbf S}}\) and the 13C nuclear spin \({\hat{\mathbf I}}\) are coupled via the hyperfine interaction \(\hat S_z{\mathbf{A}} \cdot {\hat{\mathbf I}}\), where the z-axis is along the NV symmetry axis and the hyperfine interaction strength A ~ kHz. We apply an external magnetic field \(B \approx 2,561{\kern 1pt} \mathrm{Gs}\) along the z-axis, and choose the transition between \(\left| {m_{\mathrm{S}} = 0} \right\rangle\) and \(\left| {m_{\mathrm{S}} = - 1} \right\rangle\) as the sensor qubit.

The control scheme for one measurement cycle is shown in Fig. 1e. The electron spin is optically pumped into the state \(\left| 0 \right\rangle \equiv \left| {m_{\mathrm{S}} = 0} \right\rangle\) and then rotated to the x-axis state \(\left| { + {\mathrm{x}}} \right\rangle\) by a π/2 pulse about the y-axis. The y component of the electron spin is measured by applying a (−π/2) pulse around the x-axis followed by a projective measurement along the z-axis via optical excitation and fluorescence detection. The correlation function is extracted from the photon count statistics (see Methods and Supplementary Note 5). Between the initialization and readout of each cycle, we apply a sequence of Np equally spaced π-pulses, i.e., a dynamical decoupling (DD) control on the electron spin to modulate the hyperfine interaction for a total duration of \(t_{\mathrm{I}} = N_{\mathrm{p}}\tau\) (with τ being the pulse interval). The Knill DD sequence KDDn, which contains n units of 20 pulses applied along different axes (Fig. 1e) is chosen, to tolerate pulse errors in the many-pulse DD control33.

The evolution during the DD can be factorized into a control-phase gate and a free precession of the nuclear spin \(\hat U = {\mathrm{exp}}{\kern 1pt} \left( { - i{\mathrm{\Phi }}\hat I_{\mathrm{Z}}} \right){\kern 1pt} {\mathrm{exp}}\left( {2{\mathrm{i}}\alpha \hat S_{\mathrm{z}}\hat I_{\mathrm{X}}} \right)\) (see Supplementary Note 2). If the hyperfine interaction is weak, the precession angle \({\mathrm{\Phi }} \cong 2\pi \left| {\gamma _{13_{\mathrm{C}}}{\mathbf{B}} - {\mathbf{A}}{\mathrm{/}}2} \right|t_{\mathrm{I}} \equiv 2\pi \bar \nu t_{\mathrm{I}}\) (with the 13C gyromagnetic ratio \(\gamma _{13_{\mathrm{C}}} = - 1,070.5{\kern 1pt} {\mathrm{Hz}}{\kern 1pt} ({\mathrm{Gs}})^{ - 1}\) and \(\bar \nu\) denoting the hyperfine-renormalized Larmor frequency) and the conditional phase shift \(\alpha \cong \frac{{2{A}_ \bot }}{{{\bar{\mathrm \nu }}}}\left| {\frac{{\mathrm{sin}} \left({N_{p}\pi {\bar{\nu}}\tau }\right)}{{\mathrm{cos}} \left(\pi {\bar{\nu}}\tau \right)}} \right|{\kern 1pt} {\mathrm{sin}}^{2}{\kern 1pt} {\frac{\pi {\bar{\nu}} \tau }{2}}\) (with A denoting hyperfine interaction in the X–Y plane)9,23,24,25,34.

The conditional phase shift α and hence the measurement strength is controllable by changing the DD timing and length. In particular, if the resonant DD condition \(2{\mathrm{\tau }} \approx \frac{1}{{{\bar{\mathrm \nu }}}}\) is satisfied, \(\alpha \cong 2N_{\mathrm{p}}A_ \bot \tau = 2A_ \bot t_{\mathrm{I}}\), which is proportional to the number of DD pulses9,23,24,25,34.

The free precession angle per measurement cycle Φ is also controllable by inserting a waiting time between DD control of neighboring cycles. For resonant DD, \({\mathrm{\Phi }} \approx 0{\kern 1pt} {\mathrm{mod}}{\kern 1pt} \left( {2\pi } \right)\). If the magnetic field is much stronger than the hyperfine interaction, i.e., \(\gamma _{13_{\mathrm{C}}}B \gg A\), which is the case in our experiment since the former is ~MHz and the latter ~kHz, the Z-axis of the free precession is nearly the same as the z-axis (the magnetic field direction). The free precession angle per measurement cycle then becomes \({\mathrm{\Phi }} = 2\pi \bar \nu t_{\mathrm{c}}{\kern 1pt} {\mathrm{mod}}{\kern 1pt} 2\pi\), where tc is the duration of a measurement cycle including the DD duration tI, the readout and initialization time and the waiting time.

Figure 2 shows the control of the measurement strength relative to the precession rate of a 13C spin weakly coupled to an NV center. The nuclear spin Larmor frequency \(\nu _0 = \left| {\gamma _{13_{\mathrm{C}}}B} \right| \approx 2.743189{\kern 1pt} {\mathrm{MHz}}\). The interval between neighboring DD pulses is set to satisfy the near-resonance condition (\(2\nu _0\tau \approx 1.0001\)). The oscillation frequency of the correlation function νeff is determined relative to the bare Larmor frequency ν0. The experimental data are reproduced well in theory with the hyperfine interaction parameters \(A_Z = 1.142{\kern 1pt} {\mathrm{kHz}}\) and \(A_ \bot = 16{\kern 1pt} {\mathrm{kHz}}\). In Fig. 2a the number of DD pulses is \(N_{\mathrm{p}} = 40\). The measurement strength is chosen small compared to the free precession (\(\alpha = 0.0743{\mathrm{\pi }} \ll {\mathrm{\Phi }} \approx 0.445{\mathrm{\pi }}\)). The correlation function oscillates coherently with slow decay (Fig. 2a), and the spectral peak is close to the Larmor frequency \(\bar \nu \approx \nu _0 + 0.571{\kern 1pt} \mathrm{kHz}\), with a small broadening due to the measurement-induced dephasing (Fig. 2d). By increasing the number of pulses (Np = 100), and hence the measurement strength (α = 0.189π), while keeping the free precession angle per measurement cycle \({\mathrm{\Phi }}\) nearly invariant, the decay of the oscillating correlation function (Fig. 2b) and the spectral broadening (Fig. 2e) become more significant. Making the precession angle Φ close to π by adjusting the cycle duration (the theoretical value of Φ is about 0.990π), while keeping the measurement strength the same (α = 0.189π), we observe the correlation function to decay exponentially with alternating sign (Fig. 2c). The spectral peak is pinned at \(\frac{1}{{ {2t_{\mathrm{c}}} }}\), about 246 Hz relative to \(\bar \nu {\kern 1pt} {\mathrm{mod}}{\kern 1pt} (1{\mathrm{/}}t_{\mathrm{c}})\) (see Fig. 2f), which indicates that the nuclear spin dynamics is coherently trapped.

Fig. 2
figure 2

Control of the measurement strength relative to the precession frequency of a nuclear spin. ac The correlation functions of the sequential weak measurements on the nuclear spin as functions of the delay time (Ntc) between two measurements separated by N cycles, with tc being the duration of each measurement cycle. The dark blue error bars represent two standard deviations (2σ). df The corresponding correlation spectra. The experimental data are shown in black squares, and theoretical results are in orange lines and open circles. The interval between dynamical decoupling (DD) pulses, \(\tau = 0.18224\) μs, is set near the resonance of the Larmor frequency \(\nu _0 = 2.743189\) MHz. In (a/d), (b/e) and (c/f), correspondingly, the number of DD pulses is \(N_{\mathrm{p}} = 40\), 100, and 100, the duration of one measurement cycle is tc = 12.8373, 20.4907 and 20.5903 μs. The theoretical results reproduce the experimental data well, with the hyperfine coupling parameters \(A_{\mathrm{Z}} = 1.142\) kHz and \(A_ \bot = 16\) kHz. This yields the precession angle \({\mathrm{\Phi }} = 0.445{\mathrm{\pi }},0.443{\mathrm{\pi }}\;{\mathrm{and}}\;0.990{\mathrm{\pi }}\), as well as the conditional phase shift α = 0.0743π, 0.186π and 0.186π, correspondingly in (a/d), (b/e) and (c/f). The vertical dashed lines in (d), (e) and (f) mark the positions of the hyperfine-modified precession frequency \(\bar \nu - \nu _0\). All error bars were calculated as explained in Supplementary Note 5. Source data are provided as a Source Data file

The phase transition in quantum dynamics between coherent oscillation and coherent trapping of the nuclear spin can be seen in Fig. 3. The phase boundary \(\mu ^2 \equiv {\mathrm{tan}}^4{\kern 1pt} \left( {\frac{\alpha }{2}} \right) = {\mathrm{sin}}^2{\kern 1pt} {\mathrm{\Phi }}\) is indicated by the black lines in Fig. 3a, b, which present the dependence of: (a) the effective angular frequency \({\mathrm{\Phi }}_{{\mathrm{eff}}} = 2\pi \nu _{{\mathrm{eff}}}t_{\mathrm{c}}\) and (b) the decay per measurement cycle γeff of the correlation function on the measurement strength (in terms of α) and the nuclear spin free precession frequency (in terms of \({\mathrm{\Phi }} = 2\pi \bar \nu t_{\mathrm{c}}\)). For relatively weak measurements (\(\mu ^2 < {\mathrm{sin}}^2{\kern 1pt} {\mathrm{\Phi }}\)), the nuclear spin performs coherent oscillations; otherwise, the nuclear spin is coherently trapped along one direction (for \({\mathrm{cos}}{\kern 1pt} {\mathrm{\Phi }} > 0\)) or alternating in opposite directions (for \({\mathrm{cos}}{\kern 1pt} {\mathrm{\Phi }} < 0\)).

Fig. 3
figure 3

Quantum dynamics phase transition between oscillating and trapped dynamics. The theoretical results of a the effective precession angle per cycle \({\mathrm{\Phi }}_{{\mathrm{eff}}} = 2\pi \nu _{{\mathrm{eff}}}t_{\mathrm{c}}\) and b the effective decay per cycle \(\gamma _{{\mathrm{eff}}}\) of the correlation functions versus the conditional phase shift α and nuclear precession angle per measurement cycle \({\mathrm{\Phi }} = 2\pi \bar \nu t_{\mathrm{c}}\). The black curves show the phase boundary \({\mathrm{tan}}^4\left( {\frac{\alpha }{2}} \right) = {\mathrm{sin}}^2{\kern 1pt} {\mathrm{\Phi }}\). The short horizontal lines indicate the parameter ranges of the experimental data in (c) and (d). c The experimental oscillation frequency (green circles) and decay per cycle (black squares) of the correlation function as functions of the measurement cycle duration tc for KDD5 control (\(N_{\mathrm{p}} = 100\)), compared with the theoretical results (curves) as functions of the nuclear spin precession angle per cycle \({\mathrm{\Phi }} = 2\pi \bar \nu t_{\mathrm{c}}\) for \(\alpha = 0.186{\mathrm{\pi }}\), d The same as (c) but for KDD2 control in the experiment (blue circles denote the experimental oscillation frequency, red squares the decay per cycle). The number of pulses is \(N_{\mathrm{p}} = 40\), corresponding to \(\alpha = 0.0743{\mathrm{\pi }}\) in theory). The nuclear spin, the dynamical decoupling (DD) sequences and the fitting parameters \(A_{\mathrm{Z}} = 1.142\) kHz and \(A_ \bot = 16\) kHz for determining Φ and α in theory are the same as in Fig. 2. All error bars were calculated as explained in Supplementary Note 5. Source data are provided as a Source Data file

In the experiment, by fixing the number of DD pulses (and hence the measurement strength α), the phase transition is observed by varying the measurement cycle duration tc (hence Φ). Examples are shown in Fig. 3c, d for two different measurement strengths (corresponding to the short horizontal lines in Fig. 3a, b). The effective frequencies and decay rates of the correlation function agree well with the theoretical predictions (with two fitting parameters AZ and A the same as in Fig. 2). The transition between frequency dragging and trapping can be seen clearly, and so is a sudden change in the derivative of the decay rate.

Enhancing the spectral resolution by mitigating back-action

The measurement-induced decay (and resonance broadening) can be made arbitrary small by choosing an arbitrarily small measurement strength. In the weak measurement limit (\(\alpha \to 0\) and \(\mu ^2 \ll {\mathrm{sin}}^2{\kern 1pt} {\mathrm{\Phi }}\)), the frequency dragging is negligible, \(\nu _{{\mathrm{eff}}} \cong \bar \nu + \bar \nu \frac{{\mu ^2}}{{\left( {2{\kern 1pt} {\mathrm{sin}}^2{\kern 1pt} {\mathrm{\Phi }}} \right)}}\), and the spectral resolution, limited by the measurement-induced broadening, is \(\delta \nu = \frac{{\gamma _{{\mathrm{eff}}}}}{{\left( {2\pi t_{\mathrm{c}}} \right)}} \cong \frac{{\alpha ^2}}{{\left( {8\pi t_{\mathrm{c}}} \right)}}\).

To demonstrate spectral resolution beyond the 1/T1 limit of the sensor electron spin, we choose an NV center (referred to as NV2) in the same diamond crystal as used for Figs. 2, 3 but with weaker coupled 13C nuclear spins. To enhance the photon count contrast between different states of the NV center spin, we perform repetitive readout of the electron spin for 40 times assisted by the 14N nucleus35,36 during the waiting time (see Methods and Supplementary Note 1).

The correlation spectrum for Np = 100, as shown in Fig. 4a, exhibits a narrow peak, with half width at half maximum (HWHM) of 1.9 Hz (C1), and a broader one (C2), with HWHM of 8.75 Hz, both well below the 1/T1 limit (about 80 Hz) of the NV center electron spin (which has \(T_1 \approx 2{\kern 1pt} {\mathrm{ms}}\)). The two resonances are ascribed to two 13C nuclear spins, with longitudinal hyperfine coupling \(A_{\mathrm{Z}} = 19 \pm 2{\kern 1pt} {\mathrm{Hz}}\) (C1) and \(A_{\mathrm{Z}} = 178 \pm 8{\kern 1pt} {\mathrm{Hz}}\) (C2). By increasing the number of DD pulses to Np = 300 and hence enhancing the measurement strength (Fig. 4b), the two resonances are broadened. The dependence of the HWHM, as shown in Fig. 4c, agrees well with the measurement-induced broadening plus an additional broadening \({\mathrm{\Gamma }}_0\),

$$\delta \nu = \frac{{\alpha ^2}}{{8\pi t_c}} + {\mathrm{\Gamma }}_0 = \frac{{A_ \bot ^2t_I^2}}{{2\pi t_c}} + {\mathrm{\Gamma }}_0.$$
(3)
Fig. 4
figure 4

High-resolution spectroscopy of single nuclear spins. a, b Correlation spectra of sequential measurements of single nuclear spins weakly coupled to the sensor NV2, for the KDD pulse number \(N_{\mathrm{p}} = 100\) and 300, respectively. The two peaks C1 and C2 are ascribed to two different nuclear spins. The inset in (a) is a close-up of the peak C1, with a Lorentzian fit (red line). c The half width at half maximum (HWHM) of the C1 (red triangles) and C2 (black squares) resonances as functions of the interaction time squared (which is proportional to the measurement strength). The symbols are experimental data for NP = 100, 200 and 300, and the curves represent the fitted theory. The linear dependence indicates the broadening is caused mainly by measurement-induced dephasing. The error bars were calculated as explained in Supplementary Note 5. Source data are provided as a Source Data file

The transverse hyperfine coupling parameter A is fitted to be about 2.2 kHz (C1) and 4.05 kHz (C2), and the additional broadening \({\mathrm{\Gamma }}_0\) is fitted to be about 0.29 Hz (C1) and 6.24 Hz (C2). In addition to intrinsic broadening (due to, e.g., dipolar interaction with other nuclear spins), one possible contribution to the additional broadening \({\mathrm{\Gamma }}_0\) is the hyperfine coupling fluctuation due to the NV center electron jumping randomly among different levels during readout (details in Supplementary Note 4). It is estimated to be \({\mathrm{\Gamma }}_0^{{\mathrm{hf}}} \approx \frac{{A_{\mathrm{Z}}^2\tau _{{\mathrm{eff}}}^2}}{{\left( {2\pi t_{\mathrm{c}}} \right)}}\), with \(\tau _{{\mathrm{eff}}}\) denoting the effective period in each cycle, during which the NV center state is stays in a random state (\(\tau _{{\mathrm{eff}}} \sim 600{\kern 1pt} {\mathrm{\mu s}}\) in the experiment of Fig. 4). \({\mathrm{\Gamma }}_0\) of C2 is about 30 times greater than that of C1, which is consistent with the larger AZ of C2. From Fig. 4c it is clear that the spectral resolution in all the cases studied is limited by the measurement-induced dephasing.

A key aspect of the weak measurement protocol is the data acquisition time TD for achieving a given spectral resolution \({\mathrm{\Delta }}\nu\) (see Supplementary Note 6)

$$T^{\mathrm{D}} \propto \frac{1}{{{\mathrm{\Delta }}\nu }}.$$
(4)

For comparison, to achieve a resolution beyond the limit set by the lifetime of the sensor, a Ramsey-like scheme is also possible, in which the target spin undergoes an initialization–precession–measurement process in each readout step. The precession time between the initialization and the measurement determines the spectral resolution. However, for a weakly coupled nuclear spin with hyperfine coupling strength \(A_ \bot < \frac{1}{{\left( {2T_1} \right)}}\) (T1 denoting the sensor spin relaxation time), a regime of interest in this paper, the data acquisition time in the Ramsey scheme is larger than that of the sequential weak measurement scheme by a factor of ~\(\frac{1}{{\left( {2A_ \bot T_1} \right)^4}}\) (see Supplementary Note 6) since no measurements are performed during the free precession time. For example, to resolve a 13C nuclear spin located 6 nm away from the NV center (which has a hyperfine interaction of about 90 Hz), the data acquisition time of the Ramsey protocol is longer by a factor of about 1000. Further optimization18 reduces the measurement time of the Ramsey protocol such that the choice of the optimum method depends on the application at hand (see Supplementary Note 6).

Discussion

The sequential weak measurement can in principle realize arbitrary spectral resolution of NMR by further reducing the measurement strength (via, e.g., choice of DD sequences), and by suppressing the background broadening (via, e.g., the use of more purified crystals and target spins located further away from the sensor—see Supplementary Note 5 for discussions on the spatial range of detection). This method will be particularly useful for NMR of single molecules on diamond surfaces where the hyperfine interaction with the sensor is very weak (e.g., 10 Hz to 0.1 kHz). Since the sensor itself does not limit the resolution, it is also applicable to other solid state spin systems. The sensing efficiency can be enhanced further by employing fast and efficient methods for electron readout37. The coherent oscillation and trapping dynamics, tunable by DD control of the central electron spins, can be exploited to control and initialize remote nuclear spins, respectively. Now that schemes are available to spectrally resolve, initialize, and coherently control multiple nuclear spins that are not required to be located closely to a central electron spin, quantum information processing with a relatively large number (e.g., >10) of nuclear spins is a step closer38.

Methods

Weak measurement formalism and correlation function

The mutually controlled phase gate is \({\mathrm{e}}^{2{\mathrm{i}}\alpha \hat S_{\mathrm{z}}\hat I_{\mathrm{X}}}\), where the coordinate axes (x, y, z) of the sensor and those of the target (X, Y, Z) are not necessarily identical. The sensor spin is initially in the state \(\left| {\mathrm{x}} \right\rangle\) and at the end measured along the y-axis. The weak measurement is characterized by the Kraus operators \(\hat M_ \pm = \left\langle { \pm {\mathrm{y}}} \right|{\mathrm{e}}^{{\mathrm{i}}2\alpha \hat S_{\mathrm{z}}\hat I_{\mathrm{X}}}\left| {\mathrm{x}} \right\rangle = \frac{{\left( {{\mathrm{e}}^{{\mathrm{i}}\alpha \hat I_{\mathrm{X}}} \pm {\mathrm{ie}}^{ - {\mathrm{i}}\alpha \hat I_{\mathrm{X}}}} \right)}}{2}\). Given the initial state of the target spin as described by a density matrix \(\hat \rho\), the probability of the output \(m_k = \pm 1\) is \(p_ \pm = {\mathrm{Tr}}\left( {\hat M_ \pm \hat \rho \hat M_ \pm ^{\mathrm{\dagger }}} \right) = \frac{1}{2} \pm I_{\mathrm{X}}{\kern 1pt} {\mathrm{sin}}{\kern 1pt} \alpha\) with \(I_{\mathrm{X}} = {\mathrm{Tr}}\left( {\hat \rho \hat I_{\mathrm{X}}} \right)\) and the state after the measurement is \(\hat \rho _ \pm = \frac{{\left( {\hat M_ \pm \hat \rho \hat M_ \pm ^{\mathrm{\dagger }}} \right)}}{{p_ \pm }}\). In particular for a fully unpolarized initial state \(\hat \rho = 1{\mathrm{/}}2\), the post-measurement state is \(\hat \rho _ \pm = \frac{1}{2} \pm \hat I_{\mathrm{X}}{\kern 1pt} {\mathrm{sin}}{\kern 1pt} \alpha\) corresponding to the output \(m_k = \pm 1\), with partial polarization ±sin α along the X-axis, which is called heralded initialization. If the output is discarded, the target state becomes

$$\hat {\cal M}\left[ {\hat \rho } \right] \equiv \hat M_ + \hat \rho \hat M_ + ^{\mathrm{\dagger }} + \hat M_ - \hat \rho \hat M_ - ^{\mathrm{\dagger }} = \hat \rho {\kern 1pt} {\mathrm{cos}}^2\frac{\alpha }{2} + 4\hat I_{\mathrm{X}}\hat \rho \hat I_{\mathrm{X}}{\kern 1pt} {\mathrm{sin}}^2{\kern 1pt} \frac{\alpha }{2},$$
(5)

which reduces the spin polarization in the Y–Z plane by a factor of cos α, that is, pure dephasing in the X basis (which reduces the spin polarization along the Y- and Z-axes, but keeps the X component unchanged).

After the measurement, the target spin can undergo a free precession, e.g., about the Z-axis via the evolution \(\hat {\cal U}\left[ {\hat \rho } \right] = {\mathrm{e}}^{ - i{\mathrm{\Phi }}\hat I_{\mathrm{Z}}}\hat \rho {\mathrm{e}}^{i{\mathrm{\Phi }}\hat I_{\mathrm{Z}}}\). The correlation function is

$$C(N) \equiv \left\langle {m_{k + N}m_k} \right\rangle = {\mathrm{Tr}}{\kern 1pt} \left[ {\hat {\cal P}\left( {\hat {\cal U}\hat {\cal M}} \right)^{N - 1}\hat {\cal U}\hat {\cal P}\left[ {\hat \rho } \right]} \right],$$
(6)

where the polarization operator \(\hat {\cal P}\left[ {\hat \rho } \right] \equiv \hat M_ + \hat \rho \hat M_ + ^{\mathrm{\dagger }} - \hat M_ - \hat \rho \hat M_ - ^{\mathrm{\dagger }}\) denotes the heralded initialization.

The precession of the target spin polarization I is described by the transform

$${\cal U}{\kern 1pt} \left( {\begin{array}{*{20}{c}} {I_{\mathrm{X}}} \\ {I_{\mathrm{Y}}} \\ {I_{\mathrm{Z}}} \end{array}} \right) = \left( {\begin{array}{*{20}{c}} {{\mathrm{cos}}{\kern 1pt} {\mathrm{\Phi }}} & { - {\mathrm{sin}}{\kern 1pt} {\mathrm{\Phi }}} & 0 \\ {{\mathrm{sin}}{\kern 1pt} {\mathrm{\Phi }}} & {{\mathrm{cos}}{\kern 1pt} {\mathrm{\Phi }}} & 0 \\ 0 & 0 & 1 \end{array}} \right)\left( {\begin{array}{*{20}{c}} {I_{\mathrm{X}}} \\ {I_{\mathrm{Y}}} \\ {I_{\mathrm{Z}}} \end{array}} \right).$$
(7)

The measurement transforms the polarization by

$${\cal M}{\kern 1pt} \left( {\begin{array}{*{20}{c}} {I_{\mathrm{X}}} \\ {I_{\mathrm{Y}}} \\ {I_{\mathrm{Z}}} \end{array}} \right) = \left( {\begin{array}{*{20}{c}} 1 & 0 & 0 \\ 0 & {{\mathrm{cos}}\, \alpha } & 0 \\ 0 & 0 & {{\mathrm{cos}}\, \alpha } \end{array}} \right)\left( {\begin{array}{*{20}{c}} {I_{\mathrm{X}}} \\ {I_{\mathrm{Y}}} \\ {I_{\mathrm{Z}}} \end{array}} \right).$$
(8)

The eigenvalues of the transformation \({\cal U}{\cal M}\) are easily obtained as \(\eta _Z = {\mathrm{cos}}\, \alpha\) and \(\eta _ \pm = \left( {{\mathrm{cos}}{\kern 1pt} {\mathrm{\Phi }} \pm \sqrt {\mu ^2 - {\mathrm{sin}}^2{\kern 1pt} {\mathrm{\Phi }}} } \right){\kern 1pt} {\mathrm{cos}}^2\frac{\alpha }{2}\) with \(\mu \equiv {\mathrm{tan}}^2\left( {\frac{\alpha }{2}} \right)\), corresponding to the right eigenvectors \({\mathbf{v}}_{\mathrm{Z}}^{\mathrm{R}} = \left( {0,0,1} \right)^{\mathrm{T}}\) and \({\mathbf{v}}_ \pm ^{\mathrm{R}} = \left( {{\mathrm{cos}}{\kern 1pt} {\mathrm{\Phi }}{\kern 1pt} {\mathrm{sin}}^2\frac{\alpha }{2} \pm {\mathrm{\Delta }},{\mathrm{sin}}{\kern 1pt} {\mathrm{\Phi }},0} \right)^{\mathrm{T}}\) with \({\mathrm{\Delta }} = {\mathrm{cos}}^2\frac{\alpha }{2}\sqrt {\mu ^2 - {\mathrm{sin}}^2{\kern 1pt} {\mathrm{\Phi }}}\), and left eigenvectors \({\mathbf{v}}_Z^{\mathrm{L}} = \left( {0,0,1} \right)\) and \({\mathbf{v}}_ \pm ^{\mathrm{L}} = \frac{1}{{2{\mathrm{\Delta }}{\kern 1pt} {\mathrm{sin}}{\kern 1pt} {\mathrm{\Phi }}}}\left( { \pm {\mathrm{sin}}{\kern 1pt} {\mathrm{\Phi }}, \mp {\mathrm{cos}}{\kern 1pt} {\mathrm{\Phi }}{\kern 1pt} {\mathrm{sin}}^2\frac{\alpha }{2} - {\mathrm{\Delta }},0} \right)\). They satisfy the orthonormal conditions \({\mathbf{v}}_i^{\mathrm{L}}{\mathbf{v}}_j^{\mathrm{R}} = \delta _{ij}\) and \({\mathbf{v}}_ + ^{\mathrm{R}}{\mathbf{v}}_ + ^{\mathrm{L}} + {\mathbf{v}}_ - ^{\mathrm{R}}{\mathbf{v}}_ - ^{\mathrm{L}} + {\mathbf{v}}_{\mathrm{Z}}^{\mathrm{R}}{\mathbf{v}}_{\mathrm{Z}}^{\mathrm{L}} = 1\). For the target spin initially in the fully unpolarized state, the heralded initialization polarizes the spin along the X-axis to be \(\left( {{\mathrm{sin}}{\kern 1pt} \alpha ,0,0} \right)^{\mathrm{T}} = {\mathrm{sin}}{\kern 1pt} \alpha {\boldsymbol{e}}_{\mathrm{X}}\) and the following measurement and precession keeps it in the X–Y plane. So only the last two eigenstates of \({\cal U}{\cal M}\) are relevant. The correlation function is

$$\begin{array}{*{20}{l}} {C(N)} \hfill & = \hfill & {{\mathrm{sin}}^2{\kern 1pt} \alpha {\kern 1pt} \left[ {\left( {{\mathbf{e}}_{\mathrm{X}}^{\mathrm{T}}{\mathbf{v}}_ + ^{\mathrm{R}}{\mathbf{v}}_ + ^{\mathrm{L}}{\mathbf{e}}_{\mathrm{X}}} \right)\eta _ + ^N + \left( {{\mathbf{e}}_{\mathrm{X}}^{\mathrm{T}}{\mathbf{v}}_ - ^{\mathrm{R}}{\mathbf{v}}_ - ^{\mathrm{L}}{\mathbf{e}}_{\mathrm{X}}} \right)\eta _ - ^N} \right]} \hfill \\ {} \hfill & = \hfill & {{\mathrm{sin}}^2{\kern 1pt} \alpha {\kern 1pt} \left( {\frac{{\eta _ + ^N + \eta _ - ^N}}{2} + \frac{{\eta _ + ^N - \eta _ - ^N}}{{\eta _ + - \eta _ - }}{\kern 1pt} {\mathrm{cos}}{\kern 1pt} {\mathrm{\Phi }}{\kern 1pt} {\mathrm{sin}}^2{\kern 1pt} \frac{\alpha }{2}} \right)} \hfill \end{array}.$$
(9)
  1. 1.

    If \(\mu ^2 < {\mathrm{sin}}^2{\kern 1pt} {\mathrm{\Phi }}\), the correlation function oscillates with a dragged frequency and an effective decay;

  2. 2.

    If \(\mu ^2 > {\mathrm{sin}}^2{\kern 1pt} {\mathrm{\Phi }}\) and \({\mathrm{cos}}{\kern 1pt} {\mathrm{\Phi }} > 0\), the correlation function for large N is dominated by \(\eta _ + ^N\), an exponential decay corresponding to trapping along the axis rotated from the X-axis by an angle ≈Φ about the Z-axis;

  3. 3.

    For \(\mu ^2 > {\mathrm{sin}}^2{\kern 1pt} {\mathrm{\Phi }}\) and \({\mathrm{cos}}{\kern 1pt} {\mathrm{\Phi }} < 0\), the correlation function for large N is dominated by \(\eta _ - ^N\), an exponential decay with alternating sign (−1)N corresponding to coherent trapping alternatively parallel and anti-parallel to the axis rotated from the X-axis by an angle ≈Φ about the Z-axis.

The correlation function for multiple nuclear spins is discussed in Supplementary Note 3.

Diamond crystal

A 99.995% 12C-enriched diamond crystal (5.3 mm × 4.7 mm × 2.6 mm) was grown by the temperature gradient method under high-pressure high-temperature conditions of 5.5 GPa and 1350 °C using high-purity Fe–Co–Ti solvent and high-purity 12C-enriched solid carbon. The crystal was irradiated by 2 MeV electrons at room temperature to the total fluence of \(1.3 \times 10^{11}{\kern 1pt} {\mathrm{cm}}^{ - 2}\) and annealed at 1000 °C (for 2 h in vacuum) to create single NV centers from intrinsic nitrogen impurities. A polished, (111)-oriented slice (2 mm × 2 mm × 80 μm) obtained by laser-cutting has been used in the present work. The isotopic enrichment enables the detection of single, weakly coupled 13C nuclear spins, and mitigates the existence of a strong, overlapping 13C spin bath. The T2* is typically on the order of 50 μs.

Experimental setup

The diamond crystal is positioned inside a superconducting vector magnet (Bz = 3 T, Bx,y = 0.2 T), with the diamond surface normal pointing along the main magnetic field axis. The magnet is running at a field of about B = 2561 Gs with a magnetic field stability of ~\(2.5 \cdot 10^{ - 5}{\kern 1pt} {\mathrm{Gs}}{\kern 1pt} {\mathrm{h}}^{ - 1}\) (corresponding to 13C Larmor frequency stability ~ 0.0274Hz h−1). For a typical accumulation time of ~3 h for one measurement, this results in a negligible drift of the 13C Larmor frequency of about 0.08 Hz. The 13C Larmor frequency \(\nu _0 = | {\gamma _{13_{\mathrm{C}}}B} |\) is measured to be 2,743,189 ± 190 Hz for Figs. 2, 3 and 2,740,090.4 ± 7.9 Hz for Fig. 4 (see Supplementary Note 5 and Supplementary Figure 6). The magnetic field shifts the NV center transition \(\left| {m_{\mathrm{S}} = 0} \right\rangle \leftrightarrow \left| {m_{\mathrm{S}} = - 1} \right\rangle\) to around 4.3 GHz.

The experiment consists of a home-built confocal microscope with a 520 nm excitation laser diode. The laser can be switched on and off on the timescale of 10 ns. The photoluminescence of single NV centers is collected via an oil-immersion objective with a numeric aperture of 1.35 and detected by an avalanche photo-diode, capable of detecting single photons. The spin resonance is detected optically via spin state dependent fluorescence of single NV centers. Microwave radiation is generated by an arbitrary waveform generator (AWG) with a sampling rate of 12 Gigasample s−1, and subsequent amplification up to a power of around 40 dBm. The same AWG also controls the timing of the experiment. The microwaves are guided through coaxial cables and a coplanar waveguide, with a width of around 100 μm at the position of the NV. The radio frequency signal used to manipulate the nitrogen nuclear spin is directed through the same waveguide.

Nuclear spin assisted readout

One single readout of the NV center spin, via a 300 ns laser pulse, produces much less than one photon on average. The readout efficiency can be increased, by transferring the spin state from the NV center electron spin to the NV center 14N nuclear spin, which can subsequently be read out multiple times35,36. Since only the mS = 0 and mS = −1 spin levels of the NV center spin are used for sensing, the 14N nuclear spin consequently has to be initialized into a two-level manifold (in this work mI = 0 and mI = +1) before every measurement. For more information, see Supplementary Note 1.

Construction of the correlation function from photon statistics

Photon counts in experiments are not a perfect measurement of the NV center spin. We use \(D\left( {n_k{\mathrm{|}}m_k} \right)\) to denote the probability of detection of nk photons for the NV center spin state that would yield an output mk in a perfect measurement. The joint probability of detection of nk and nk+N for the k-th and (k+N)-th measurements is

$$p\left( {n_k,n_{k + N}} \right) = \mathop {\sum}\limits_{m_k,m_{k + N}} {{\kern 1pt} D\left( {n_k{\mathrm{|}}m_k} \right)D\left( {n_{k + N}{\mathrm{|}}m_{k + N}} \right)p\left( {m_k,m_{k + N}} \right)} ,$$
(10)

where the joint probability \(p\left( {m_k,m_{k + N}} \right) = \frac{{\left[ {1 + m_km_{k + N}C\left( N \right)} \right]}}{4}\) depends on the correlation function. Direct calculation yields

$$C(N) = \frac{{4\left( {\left\langle {n_kn_{k + N}} \right\rangle - \bar n^2} \right)}}{{\left( {\bar n_ + - \bar n_ - } \right)^2}},$$
(11)

where \(\bar n_ \pm\) is the averaged photon count for the senor measurement output ±1 and \(\bar n \equiv \frac{{\left( {\bar n_ + + \bar n_ - } \right)}}{2}\) is the average photon count.

Code availability

Custom computer code used in the theoretical studies and experimental analysis are available from the corresponding authors upon reasonable request