Abstract
Nuclear magnetic resonance (NMR) of single spins have recently been detected by quantum sensors. However, the spectral resolution has been limited by the sensor’s relaxation to a few kHz at room temperature. This can be improved by using quantum memories, at the expense of sensitivity. In contrast, classical signals can be measured with exceptional spectral resolution by using continuous measurement techniques, without compromising sensitivity. When applied to singlespin NMR, it is critical to overcome the impact of back action inherent of quantum measurement. Here we report sequential weak measurements on a single ^{13}C nuclear spin. The backaction causes the spin to undergo a quantum dynamics phase transition from coherent trapping to coherent oscillation. Singlespin NMR at roomtemperature with a spectral resolution of 3.8 Hz is achieved. These results enable the use of measurementcorrelation schemes for the detection of very weakly coupled single spins.
Introduction
A quantum measurement induces backaction 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 backaction induces inevitable disturbance. Weak measurements, as introduced theoretically^{1,2,3,4,5,6,7} and demonstrated experimentally with nitrogenvacancy (NV) centers^{8,9}, superconducting qubits^{10,11,12} and other systems^{13,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 Ramseytype experiment, i.e., a free evolution of the spins in between the preparation and readout steps. Highspectral resolution, necessary for chemical identification of molecules, requires long free evolution times. To avoid measurement backaction on the sample spins, these schemes usually avoid measurements during free evolution of the system^{18,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, backaction 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 backaction 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 xaxis, 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 zaxis by an angle ±α for the target spin state \(\left { \pm {\mathrm{X}}} \right\rangle\) (i.e., polarized parallel or antiparallel to the Xaxis). 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 xaxis by ±α. The sensor spin is then measured along the yaxis. 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 Xaxis upon postselecting one of the outcomes of the sensor measurement^{9}.
In between two successive measurements, the target spin undergoes free precession about the Zaxis by an angle Ф. Thus, the outcomes of any two measurements correlate depending on the spin precession (see Methods). In the limit α→0, the measurementinduced 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 measurementinduced 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 Zaxis). By taking this finite dephasing into account, we find the expression for the correlation function
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 measurementinduced 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 measurementinduced dephasing rate as the measurement dephases the spin only along the Yaxis, 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)
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 Xaxis. The physical picture of the trapped dynamics is illustrated in Fig. 1d. The trapping dynamics is similar to the quantum Zeno effect^{31,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 ^{13}C 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 ^{13}C abundance depleted to 0.005%. The electron spin \({\hat{\mathbf S}}\) and the ^{13}C nuclear spin \({\hat{\mathbf I}}\) are coupled via the hyperfine interaction \(\hat S_z{\mathbf{A}} \cdot {\hat{\mathbf I}}\), where the zaxis 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 zaxis, 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 xaxis state \(\left { + {\mathrm{x}}} \right\rangle\) by a π/2 pulse about the yaxis. The y component of the electron spin is measured by applying a (−π/2) pulse around the xaxis followed by a projective measurement along the zaxis 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 N_{p} 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 manypulse DD control^{33}.
The evolution during the DD can be factorized into a controlphase 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} \rightt_{\mathrm{I}} \equiv 2\pi \bar \nu t_{\mathrm{I}}\) (with the ^{13}C gyromagnetic ratio \(\gamma _{13_{\mathrm{C}}} =  1,070.5{\kern 1pt} {\mathrm{Hz}}{\kern 1pt} ({\mathrm{Gs}})^{  1}\) and \(\bar \nu\) denoting the hyperfinerenormalized 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 pulses^{9,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 Zaxis of the free precession is nearly the same as the zaxis (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 t_{c} is the duration of a measurement cycle including the DD duration t_{I}, 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 ^{13}C 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 nearresonance 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 measurementinduced dephasing (Fig. 2d). By increasing the number of pulses (N_{p} = 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.
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\)).
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 t_{c} (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 A_{Z} 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 backaction
The measurementinduced 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 measurementinduced 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/T_{1} 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 ^{13}C 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 ^{14}N nucleus^{35,36} during the waiting time (see Methods and Supplementary Note 1).
The correlation spectrum for N_{p} = 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/T_{1} 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 ^{13}C 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 N_{p} = 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 measurementinduced broadening plus an additional broadening \({\mathrm{\Gamma }}_0\),
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 A_{Z} of C2. From Fig. 4c it is clear that the spectral resolution in all the cases studied is limited by the measurementinduced dephasing.
A key aspect of the weak measurement protocol is the data acquisition time T^{D} for achieving a given spectral resolution \({\mathrm{\Delta }}\nu\) (see Supplementary Note 6)
For comparison, to achieve a resolution beyond the limit set by the lifetime of the sensor, a Ramseylike 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)}}\) (T_{1} 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 ^{13}C 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 optimization^{18} 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 readout^{37}. 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 closer^{38}.
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 yaxis. 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 postmeasurement 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 Xaxis, which is called heralded initialization. If the output is discarded, the target state becomes
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 Zaxes, but keeps the X component unchanged).
After the measurement, the target spin can undergo a free precession, e.g., about the Zaxis 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
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
The measurement transforms the polarization by
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 Xaxis 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

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

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 Xaxis by an angle ≈Φ about the Zaxis;

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 antiparallel to the axis rotated from the Xaxis by an angle ≈Φ about the Zaxis.
The correlation function for multiple nuclear spins is discussed in Supplementary Note 3.
Diamond crystal
A 99.995% ^{12}Cenriched diamond crystal (5.3 mm × 4.7 mm × 2.6 mm) was grown by the temperature gradient method under highpressure hightemperature conditions of 5.5 GPa and 1350 °C using highpurity Fe–Co–Ti solvent and highpurity ^{12}Cenriched 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 lasercutting has been used in the present work. The isotopic enrichment enables the detection of single, weakly coupled ^{13}C nuclear spins, and mitigates the existence of a strong, overlapping ^{13}C spin bath. The T_{2}^{*} is typically on the order of 50 μs.
Experimental setup
The diamond crystal is positioned inside a superconducting vector magnet (B_{z} = 3 T, B_{x,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 ^{13}C 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 ^{13}C Larmor frequency of about 0.08 Hz. The ^{13}C 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 homebuilt 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 oilimmersion objective with a numeric aperture of 1.35 and detected by an avalanche photodiode, 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 ^{14}N nuclear spin, which can subsequently be read out multiple times^{35,36}. Since only the m_{S} = 0 and m_{S} = −1 spin levels of the NV center spin are used for sensing, the ^{14}N nuclear spin consequently has to be initialized into a twolevel manifold (in this work m_{I} = 0 and m_{I} = +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 n_{k} photons for the NV center spin state that would yield an output m_{k} in a perfect measurement. The joint probability of detection of n_{k} and n_{k+N} for the kth and (k+N)th measurements is
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
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
Data availability
Data supporting the findings of this study are available within the article and its Supplementary Information and from the corresponding authors upon request. The source data underlying Figs. 2a–f, 3a–d, 4ac, Supplementary Figures 2, 3a, b, 4a–c, 5, 6, 7a–c, 8af and 9ac are provided as a Source Data File.
References
 1.
Aharonov, Y., Albert, D. Z. & Vaidman, L. How the result of a measurement of a component of the spin of a spin1/2 particle can turn out to be 100. Phys. Rev. Lett. 60, 1351–1354 (1988).
 2.
Korotkov, A. N. Selective quantum evolution of a qubit state due to continuous measurement. Phys. Rev. B 63, 115403 (2001).
 3.
Wiseman, H. M. Weak values, quantum trajectories, and the cavityQED experiment on waveparticle correlation. Phys. Rev. A 65, 032111 (2002).
 4.
Wu, S. & Mølmer, K. Weak measurements with a qubit meter. Phys. Lett. A 374, 34–39 (2009).
 5.
Korotkov, A. N. Output spectrum of a detector measuring quantum oscillations. Phys. Rev. B 63, 085312 (2001).
 6.
Jordan, A. N. & Büttiker, M. Quantum nondemolition measurement of a kicked qubit. Phys. Rev. B 71, 125333 (2005).
 7.
Jordan, A. N. & Korotkov, A. N. Qubit feedback and control with kicked quantum nondemolition measurements: a quantum Bayesian analysis. Phys. Rev. B 74, 085307 (2006).
 8.
Blok, M. S. et al. Manipulating a qubit through the backaction of sequential partial measurements and realtime feedback. Nat. Phys. 10, 189–193 (2014).
 9.
Liu, G.Q. et al. Singleshot readout of a nuclear spin weakly coupled to a nitrogenvacancy center at room temperature. Phys. Rev. Lett. 118, 150504 (2017).
 10.
Groen, J. P. et al. Partialmeasurement backaction and nonclassical weak values in a superconducting circuit. Phys. Rev. Lett. 111, 090506 (2013).
 11.
Murch, K. W., Weber, S. J., Macklin, C. & Siddiqi, I. Observing single quantum trajectories of a superconducting quantum bit. Nature 502, 211–214 (2013).
 12.
Hatridge, M. et al. Quantum backaction of an individual variablestrength measurement. Science 339, 178–181 (2013).
 13.
Piacentini, F. et al. Measuring incompatible observables by exploiting sequential weak values. Phys. Rev. Lett. 117, 170402 (2016).
 14.
Muhonen, J. T. et al. Coherent control via weak measurements in ^{31}P singleatom electron and nuclear spin qubits. Phys. Rev. B 98, 155201 (2018).
 15.
Boss, J. M., Cujia, K. S., Zopes, J. & Degen, C. L. Quantum sensing with arbitrary frequency resolution. Science 356, 837–840 (2017).
 16.
Schmitt, S. et al. Submillihertz magnetic spectroscopy performed with a nanoscale quantum sensor. Science 356, 832–837 (2017).
 17.
Glenn, D. R. et al. Highresolution magnetic resonance spectroscopy using a solidstate spin sensor. Nature 555, 351–354 (2018).
 18.
Gefen, T., Khodas, M., McGuinness, L. P., Jelezko, F. & Retzker, A. Quantum spectroscopy of single spins assisted by a classical clock. Phys. Rev. A 98, 013844 (2018).
 19.
Aslam, N. et al. Nanoscale nuclear magnetic resonance with chemical resolution. Science 357, 67–71 (2017).
 20.
Staudacher, T. et al. Nuclear magnetic resonance spectroscopy on a (5Nanometer)3 sample volume. Science 339, 561–563 (2013).
 21.
Mamin, H. J. et al. Nanoscale nuclear magnetic resonance with a nitrogenvacancy spin sensor. Science 339, 557–560 (2013).
 22.
Loretz, M., Pezzagna, S., Meijer, J. & Degen, C. L. Nanoscale nuclear magnetic resonance with a 1.9nmdeep nitrogenvacancy sensor. Appl. Phys. Lett. 104, 033102 (2014).
 23.
Zhao, N. et al. Sensing single remote nuclear spins. Nat. Nanotechnol. 7, 657–662 (2012).
 24.
Taminiau, T. H. et al. Detection and control of individual nuclear spins using a weakly coupled electron spin. Phys. Rev. Lett. 109, 137602 (2012).
 25.
Kolkowitz, S., Unterreithmeier, Q. P., Bennett, S. D. & Lukin, M. D. Sensing distant nuclear spins with a single electron spin. Phys. Rev. Lett. 109, 137601 (2012).
 26.
Laraoui, A. et al. Highresolution correlation spectroscopy of 13C spins near a nitrogenvacancy centre in diamond. Nat. Commun. 4, 1651 (2013).
 27.
Pfender, M. et al. Nonvolatile nuclear spin memory enables sensorunlimited nanoscale spectroscopy of small spin clusters. Nat. Commun. 8, 834 (2017).
 28.
Maurer, P. C. et al. Roomtemperature quantum bit memory exceeding one second. Science 336, 1283–1286 (2012).
 29.
Kong, X., Stark, A., Du, J., McGuinness, L. P. & Jelezko, F. Towards chemical structure resolution with nanoscale nuclear magnetic resonance spectroscopy. Phys. Rev. Appl. 4, 024004 (2015).
 30.
Rosskopf, T., Zopes, J., Boss, J. M. & Degen, C. L. A quantum spectrum analyzer enhanced by a nuclear spin memory. npj Quantum Inf. 3, 33 (2017).
 31.
Presilla, C., Onofrio, R. & Tambini, U. Measurement quantum mechanics and experiments on quantum Zeno effect. Ann. Phys. 248, 95–121 (1996).
 32.
Itano, W. M., Heinzen, D. J., Bollinger, J. J. & Wineland, D. J. Quantum Zeno effect. Phys. Rev. A. 41, 2295–2300 (1990).
 33.
Souza, A. M., Álvarez, G. A. & Suter, D. Robust dynamical decoupling for quantum computing and quantum memory. Phys. Rev. Lett. 106, 240501 (2011).
 34.
Ma, W.L. & Liu, R.B. Angstromresolution magnetic resonance imaging of single molecules via wavefunction fingerprints of nuclear spins. Phys. Rev. Appl. 6, 024019 (2016).
 35.
Neumann, P. et al. Singleshot readout of a single nuclear spin. Science 329, 542–544 (2010).
 36.
Jiang, L. et al. Repetitive readout of a single electronic spin via quantum logic with nuclear spin ancillae. Science 326, 267–272 (2009).
 37.
Shields, B. J., Unterreithmeier, Q. P., de Leon, N. P., Park, H. & Lukin, M. D. Efficient readout of a single spin state in diamond via spintocharge conversion. Phys. Rev. Lett. 114, 136402 (2015).
 38.
Abobeih, M. H. et al. Onesecond coherence for a single electron spin coupled to a multiqubit nuclearspin environment. Nat. Commun. 9, 2552 (2018).
Acknowledgements
We thank S. Zaiser and N. Aslam for fruitful discussions. We acknowledge financial support by the German Science Foundation (SPP1601, FOR2724), the EU (ASTERIQS, SMel), the Max Planck Society, the Volkswagen Stiftung, the Hong Kong Research Grants Council General Research Fund (No. 14319016), the MOST of China (Grants No. 2014CB848700) and the Japan Science and Technology Agency and Japan Society for the Promotion of Science KAKENHI (Nos. 26246001 and 26220903).
Author information
Author notes
Affiliations
Contributions
R.B.L. proposed and supervised the theoretical study; R.B.L., W.Y., P.W. and X.Y.P. formulated the theory; P.W. and W.Y. carried out the calculations; M.P., P.N. and J.W. conceived the experiments; M.P. carried out the measurements; H.S., S.O. and J.I. designed and conducted the synthesis and fabrication of the diamond substrate; M.P., P.W., P.N., W.Y., R.B.L. and J.W. analyzed the data; P.W., M.P., D.B.R.D., W.Y., R.B.L. and J.W. wrote the manuscript with contributions from other authors.
Corresponding authors
Correspondence to RenBao Liu or Jörg Wrachtrup.
Ethics declarations
Competing interests
The authors declare no competing interests.
Additional information
Journal peer review information: Nature Communications thanks Tim Hugo Taminiau and the other anonymous reviewers for their contribution to the peer review of this work. Peer reviewer reports are available.
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
Received
Accepted
Published
DOI
Further reading

Magnetic Sensing inside a Diamond Anvil Cell via NitrogenVacancy Center Spins*
Chinese Physics Letters (2019)

Characterization of a quasistatic environment with a qubit
Physical Review A (2019)

Characterization of ArbitraryOrder Correlations in Quantum Baths by Weak Measurement
Physical Review Letters (2019)

Quantum Control and Sensing of Nuclear Spins by Electron Spins under Power Limitations
Physical Review Letters (2019)

Tracking the precession of single nuclear spins by weak measurements
Nature (2019)
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.