## Abstract

The ultimate precision limit in estimating the Larmor frequency of *N* unentangled qubits is well established, and is highly important for magnetometers, gyroscopes, and other types of quantum sensors. However, this limit assumes perfect projective measurements of the quantum registers. This requirement is not practical in many physical systems, such as NMR spectroscopy, where a weakly interacting external probe is used as a measurement device. Here, we show that in the framework of quantum nano-NMR spectroscopy, in which these limitations are inherent, the ultimate precision limit is still achievable using control and a finely tuned measurement.

## Introduction

The field of quantum sensing studies the precision in measuring various physical quantities using quantum protocols. It was shown that employing quantum schemes can greatly improve the precision in different problems, such as atomic clocks, magnetometry, and frequency estimation^{1,2,3,4,5}. A typical settings in this field is when a measurable quantity; e.g., a frequency, is associated with a quantum register of which many copies are available. The registers can be individually addressed or be read by a strong measurement. When the quantum registers are qubits, and the measurable quantity is the Larmor frequency, the ultimate precision limit in a noisy environment is well established, and is achievable by performing Ramsey spectroscopy on each register^{6,7} (see left side of Fig. 1)

where *N* is the number of copies and *t* is the measurement time. We henceforth refer to the equality in Eq. (1) as the standard quantum limit (SQL). Note, that usually the SQL is defined only by the scaling \(\Delta {\omega }_{{\rm{N}}}\propto \frac{1}{\sqrt{N}}\)^{1,4,5,8}, while here it is defined as an equality. This distinction is key, since the prefactor can reduce the precision by orders of magnitude, and thefore it descriminates between non-optimal schemes to the fundamental percision limit.

However, in some physical scenarios the registers cannot be measured directly, but can only be manipulated by global operations and measured through its weak interaction with an external probe (see right side of Fig. 1). It is unknown whether the limit (1) can be achieved in these settings, or more generally, if there is a tight bound on the precision of such measurements.

A prominent example of this scenario is nano-scale nuclear magnetic resonance (NMR), i.e., detecting the Larmor frequencies of nano samples of nuclear spins^{9,10,11,12,13,14,15}. Since the nuclear spins cannot be measured directly, an external probe that interacts with the sample is manipulated and measured to retrieve information about the Larmor frequencies of the ensemble. The nitrogen-vacancy (NV) center is a natural candidate for an external probe, since in the past decade it has been shown to be an excellent magnetometer on the nano-scale^{16,17}, and many successful experiments have been carried out in platforms similar to Fig. 2^{9,10,11,12,13,14,15}.

Here, we provide and analyze a protocol that in a general setting of an ensemble measurement, with a simplified interaction Hamiltonian between the ensemble and the quantum probe, achieves the SQL given by Eq. (1) (up to a small prefactor). The protocol is then extended to the physical settings of quantum NMR spectroscopy, where the interaction Hamiltonian is more involved. We show that our protocol still achieves the SQL up to a small prefactor. An open question in the field is whether spectroscopy of nuclear spins can be performed efficiently with shallow NVs, i.e., in the limit of strong back-action^{15,18}. In our protocol the SQL is reached by utilizing the strong back-action caused by the entanglement formed between the sensor and the ensemble, and thus provides an affirmative (theoretical) answer.

Interestingly this convergence to the ultimate precision limit, despite of the weak interaction, stems from the superradiant nature of the interaction. In superradiance *N* atoms interact with the same probe, a single mode of radiation, and then even if the fluorescence of each atom is very weak the ultimate precision limit of a perfect projective measurement can still be reached given that *N* is large enough. In our case, *N* nuclear spins interact with the same quantum probe. The weak interaction corresponds to the weak fluorescence, and equivalently, given a large enough *N*, the SQL is achievable.

An alternative intuition to the behavior of the precision is given by the following reasoning. Whether the sensing is quantum or classic, the acquired signal is

where *ω*_{N} is their Larmor frequency and *A* is the amplitude of the signal generated by a single nucleus. In the quantum case the signal is the population of the sensor, and the amplitude, *A*, is replaced by *ϕ*, the phase acquired from a single nucleus, which is a function of the interaction strength and the interrogation time. In the classical case the signal is just a classic magnetic field (i.e., measured by a current in coil). The uncertainty of the frequency measurement of the signal (2) scales inversely with the derivative and thus can be written as

where the first equality is correct for either classic or quantum sensing with some constant *C*, while the second is correct only for the quantum case. We henceforth refer to Eq. (3) as “Heisenberg scaling with *N*” or as the “weak limit” for reasons that will readily become apparent. Comparing Eqs. (3) and (1) implies that whenever \(\sqrt{N}\phi \ge 1\) the behavior of the signal must change and that the SQL might be achievable. Since the phase increases as the sensor is brought into close proximity with the sample, there is a critical distance *d*_{c}, for which the behavior of the signal transforms from classical to quantum (see the right side of Fig. 2). State-of-the-art experimental setups can approach this critical distance (precise evaluations are provided in the following sections).

## Results

### Simplified model: constant coupling

Let us start with a simplified model that captures the essentials. The physical system consists of a quantum sensor, taken to be a two level system with energy spliting *ω*_{0}, and an ensemble of *N* spin-1/2 nuclei with Larmor frequency *ω*_{N} as described by the Hamiltonian

where \({\sigma }_{i}/{I}_{i}^{j}\) is the Pauli matrix of the sensor/j-th nucleus in the *i* direction. The NV and the nuclei interact with a constant coupling

Our protocol for the estimation of *ω*_{N} starts by initializing the system to the state \(\left|{\psi }_{i}\right\rangle ={\left|{\uparrow }_{X}\right\rangle }^{{\rm{S}}}\otimes \left|{\uparrow }_{X}\cdots {\uparrow }_{X}\right\rangle\) and the interaction is suppressed. Note, that we explicitly assume that the nuclear spins are completely polarized in the *x* direction. The assumptions of constant coupling, full polarizion, and interaction of the form *σ*_{z}*I*_{x} are relaxed in the following sections.

The propagation in the interaction picture with respect to the sensor’s free Hamiltonian is

Then *H*_{1} is turned on while *H*_{0} is turned off, so the propagation by an additional time *τ* will result in

where \(\left|{\psi }_{\pm }\right\rangle ={\left(\cos \left(\frac{{\omega }_{{\rm{N}}}}{2}t\right){{\rm{e}}}^{\mp {\rm{i}}g\tau }\left|{\uparrow }_{X}\right\rangle -{\rm{i}}\sin \left(\frac{{\omega }_{{\rm{N}}}}{2}t\right){{\rm{e}}}^{\pm {\rm{i}}g\tau }\left|{\downarrow }_{X}\right\rangle \right)}^{\otimes N}\). The reduced density matrix of the sensor after both steps is

where the off diagonal element is given by

To obtain the product it is convenient to write the complex number (9) in a polar representation

where the approximations are made using the assumption of weak coupling, *g**τ* ≪ 1. We henceforth refer to the accumulated phase, Φ, as “the signal” since it corresponds to the “classical” signal (2) with the aforementioned accumulated phase *ϕ* = 2*g**τ*, and we refer to *r* as the decay. The decay is caused by the entanglement between the NV and nuclear spin ensemble, as illustrated in Fig. 3. For times *ω*_{N}*t* = *n**π* the dynamics is purely classical because the rotation around the *x-*axis is trivial, whereas for other times the rotation causes the sensor state to be entangled with the collective state of the ensemble. Therefore, the dimensionless quantity characterizing the decay, \(N{\left(g\tau \right)}^{2}\), is interpreted as the back-action. As the coupling constant *g* depends on the distance between the sensor and the sample, the transition from weak to strong back-action is dictated by the NV’s depth for a given *τ*. This transition is the one predicted in the introduction, as it occurs when \(\phi =2gt \sim \frac{1}{\sqrt{N}}\). Substituting Eqs. (10) and (11) into Eq. (9),

The measurable quantity associated with (12) is the probability distribution,

which is related to Eq. (12) by \({P}_{\left|{\uparrow }_{Y}\right\rangle }=\frac{1}{2}\left(1-{\rm{Im}}\left[\langle {\psi }_{+}| {\psi }_{-}\rangle \right]\right)\). The function (13) is the non-approximate form of Eq. (2). It is drawn on the right hand side of Fig. 2 with *N* = 3 ⋅ 10^{5} and *g**τ* = 10^{−6} (top) or *g**τ* = 0.01 (bottom), which correspond to weak and strong back-action, respectively.

In order to determine the precision of the estimation of *ω*_{N} we use the tools of quantum metrology. The Fisher information about a parameter *g* given a discrete distribution \({\left\{{p}_{i}\left(g\right)\right\}}_{i}\) is defined as \(I={\sum }_{i}\frac{{\left(\frac{d{p}_{i}}{dg}\right)}^{2}}{{p}_{i}}\)^{19}. For a quantum system one can optimize over all possible measurement bases. This leads to the definition of quantum fisher information (QFI)^{1}. For a density matrix \(\rho ={\sum }_{i}{p}_{i}\left(g\right)\left|{\Psi }_{i}\left(g\right)\right\rangle \left\langle {\Psi }_{i}\left(g\right)\right|\), the QFI about *g* is given by \({\mathcal{I}}={\sum }_{{p}_{i}+{p}_{j}\ne 0}\frac{2}{{p}_{i}+{p}_{j}}{\left|\left\langle {\Psi }_{j}\right|\frac{d\rho }{dg}\left|{\Psi }_{i}\right\rangle \right|}^{2}\)^{6}. The precision of any measurement is bounded by the Cramer-Rao bound, \(\Delta g\ge \frac{1}{\sqrt{{\mathcal{I}}}}\). Since this is a tight bound, we use it henceforth to quantify precision. For the density matrix (8) the QFI can be expressed as the relevant Bures distance^{6,20}:

thus, Eqs. (10), (11), and (14) lead to

where *θ* = *ω*_{N}*t*. In the limit of weak back-action, \(N{\left(g\tau \right)}^{2}\ll 1\),

The QFI in this limit is optimal when

since the derivative of the signal is then maximal and the decay is negligible. For the optimal time (18), the QFI (15) is

which corresponds to the uncertainty \(\Delta \omega =\frac{1}{2Ng\tau t}\) as in Eq. (3) with *ϕ* = 2*g**τ*. Thus, in the limit of weak back-action, we achieve an uncertainty that scales as *N*^{−1} in exchange for the large factor \({\left(g\tau \right)}^{-1}\).

Achieving better precision, however, requires *N**g*^{2}*τ*^{2} ≫ 1, where consequently, the decay starts to affect the quantum sensor. The optimal time (18), therefore, must change to account for the decay. The optimal time in this regime is approximately

for which the QFI (15) is

and corresponds to the uncertainty \(\Delta \omega =\frac{1}{t}\sqrt{\frac{{\rm{e}}}{N}}\). The decay, therefore, “corrects” the apparent Heisenberg scaling for high precision.

We note that the first step of the protocol, where the nuclei propagate according to *H*_{0}, can be implemented by initializing the sensor in an eigenstate of *S*_{Z} = 0, which eliminates *H*_{1} or by applying an external drive on the NV that suppresses the interaction. Therefore, the uncertainty is limited solely by the coherence time of the nuclei as in refs. ^{13,15,21,22,23,24} and it does not depend on the coupling constant *g*. Moreover, if we could manipulate and read-out each nucleus with a unit fidelity, the optimal QFI would be the SQL (1). Therefore, the presented protocol achieves the optimal precision, up to the numerical factor of e^{−1}. Figure 4 compares the different QFI scalings to our protocol.

We show in Supplementary Note 2 that this behavior of the QFI is ubiquitous in supperradiant measurements. A similar behavior can be observed with *N* atoms that weakly interact with a single mode of radiation: given a large enough *N* the ultimate precision limit can be obtained despite the weak interaction. Hence this behavior is due to the superradiant nature of the interaction in Eq. (5).

To obtain this QFI we assume optimization of *θ* and the measurement basis, which requires knowledge of *ω*_{N}. As shown in Fig. 5, the QFI increases with *N*(*g**τ*)^{2}, but it also becomes increasingly narrow, such that a more accurate estimation of *ω*_{N} is required to achieve it. This, however, can be resolved by using an adaptive measurement protocol — a sequence of non-optimal measurements are performed to acquire an estimate of *ω*_{N}, and the details of the next measurements are updated according to the outcomes of the previous measurements. This can be repeated until the estimate of *ω*_{N} is good enough to attain optimal precision. An exmple of such a protocol is given in Supplementary Note 8 and further analysis of this model using multiple sensors can be found in Supplementary Note 7.

### Spatially dependent coupling

In the previous section, we presented the simplified model with the interaction Hamiltonian (5). This is an approximate form of the dipole–dipole interaction Hamiltonian, which can be written as

In the interaction picture with respect to sensor’s free Hamiltonian, after taking the rotating wave approximation, the remaining terms are

If we further assume that the nuclei can be driven in the *x* direction sufficiently fast compared to the interaction and the entanglement generation rate, we arrive at the Hamiltonian

The difference between Eq. (24) and the toy model (5) is that the coupling differs from one nucleus to the other. It depends, in fact, on the position of the nucleus and, therefore, also on time. Further description of the interaction requires a specific realization of the sensor, henceforth we use the NV center. In a spherical coordinate system, where the NV is found at the origin, the NV’s magnetization axis coincides with the *z*-axis and the *i*-*t**h* nucleus position is denoted by \(\left\{{r}_{i},{\theta }_{i},{\varphi }_{i}\right\}\), the coefficients *g*^{i} are given by

with the physical coupling constant \(J=\frac{{\mu }_{0}\hslash {\gamma }_{{\rm{e}}}{\gamma }_{{\rm{N}}}}{4\pi }=0.49\,{\rm{MHz}}\cdot {{\rm{nm}}}^{3}\), where *μ*_{0} is the vacuum permeability, ℏ is the reduced Plank constant and *γ*_{e/N} are the electronic/nuclear gyro-magnetic ratios.

Repeating the derivation of the previous section with the interaction (24), Eq. (9) becomes

where \({G}_{j}={\int \nolimits_{0}^{\tau }}dt{g}_{j}\left(t\right)\). In the limit of weak coupling, *G*_{i} ≪ 1, Eq. (26) can be approximated to

The QFI, therefore, depends only on \({s}_{1}={\sum }_{i}{G}_{i},\,{s}_{2}={\sum }_{i}{G}_{i}^{2}\) and it is approximately

The quantity that determines the behavior of the optimal QFI is *s*_{2}:

The regime of interest is *s*_{2} ≫ 1, where, as we readily show, a modified SQL scaling can be achieved. Note that \({\mathcal{I}}\le {t}^{2}N/{\rm{e}},\) where equality is attained only for homogeneous couplings.

To obtain the QFI in a nano-NMR scenario, we need, therefore, to find the relevant *s*_{1}, *s*_{2}. The results will of course depend on the parameters of the problem. We denote by \(n=\frac{N}{V}\) the nuclei number density, *D* the diffusion coefficient of the sample, *d* the depth of the NV, and *α* the NV’s tilting angle, measured between the normal to the diamond surface and its magnetization axis. Let us first calculate *s*_{1} assuming *N* ≫ 1,

While *s*_{1} is proportional to the average magnetic field, it can be observed that *s*_{2} goes as the magnetic field auto-correlation,

where \(\left\langle \cdot \right\rangle\) is an average over realizations and *P*(**r**, **r**_{0}, *t*) is the stationary diffusion propagator from **r**, to **r**_{0} with time difference *t*. The correlation decays with a characteristic time of \({\tau }_{{\rm{D}}}\equiv \frac{{d}^{2}}{D}\), which dictates the behavior of *s*_{2}. Although the full expression of *s*_{2} is involved^{25}, the asymptotic behavior is rather simple,

where \({B}_{{\rm{rms}}}^{2}\) is the instantaneous fluctuation in the magnetic field:

The mean field, (30), and *B*_{rms}, (33), can be estimated more explicitly,

where we took *α* = 54. 7^{∘} and *n*_{water} = 33 nm^{−3} as the water number density. We use these quantities for the remainder of the article in our quantitative estimates.

The validity condition of the second order approximation in *G*_{i} can be put into physical terms with the definitions (30) and (33); e.g., Eqs. (27) and (28) are valid when \(\frac{{B}_{{\rm{rms}}}}{\left|\left\langle B\right\rangle \right|}\ll 1\), which means that the polarization should be larger than the statistic polarization. Hence, for increasingly shallow NVs, higher orders should be taken into account (see discussion in Supplementary Note 3).

We are now fully equipped to calculate the optimal QFI by substituting *s*_{1} and *s*_{2} (Eqs. (30) and (32), respectively) into Eq. (29). In the weak back-action regime, *s*_{2} ≪ 1, the optimal QFI reads:

For strong back-action the optimal QFI depends explicitly on *τ*_{D},

where the optimal *θ* is given by

Note that the transition from Eq. (36) to Eq. (37) occurs when \(\frac{2}{\pi }{\gamma }_{{\rm{e}}}{B}_{{\rm{rms}}}{T}_{2}^{{\rm{NV}}}=1\), which defines the critical depth *d*_{c} in terms of the physical parameters. The addional factor of *π*^{−1} derives from the dynamical decoupling sequence applied to the NV in order to produce *H*_{1} (see next section or a detailed derivation in Supplementary Note 4). For common parameters of liquids, an interrogation time of \({T}_{2}^{{\rm{NV}}}=1\,{\rm{ms}}\) and a fully polarized nuclear spin ensemble, we find that *d*_{c} ~ 130 nm.

The result (36) and the short times limit of (37) are similar to those of the simplified model, with the difference that due to the dipolar interaction and the geometry, there is an additional dependence on the NV’s tilting angle. In Eq. (37) this is translated into a change in the total number of particles in Eq. (21) by an effective number *N* ≈ 17.5*n**d*^{3}, which is proportional to the number of particles in the effective interaction region.

The long times regime of Eq. (37) may look puzzling since for large enough *τ* we can get an arbitrarily large QFI, which seems paradoxical. This arbitrarily large QFI is due to the fact that we consider an infinite sample volume; i.e., an infinite amount of nuclear spins. Restricting ourselves to a finite volume, *V*, with *N* nuclei yields the restriction \(\frac{{\left\langle B\right\rangle }^{2}}{{\rm{e}}{B}_{{\rm{rms}}}^{2}}\frac{\tau }{{\tau }_{{\rm{D}}}}{t}^{2}\le N{t}^{2}\) by imposing the SQL. This limitation on *τ* can be taken to be *τ* ≪ *τ*_{V} (see Supplementary Note 3), where *τ*_{V} = *V*^{2/3}/*D* is the volumetric diffusion time; i.e., the characteristic time it takes for a particle to move from one of the volume’s boundaries to another. For sufficiently long times, *τ* ≫ *τ*_{V}, the QFI scaling changes to

This is the equivalent of Eq. (21). In the simplified model the sensor is coupled equally to all the nuclei from the start; therefore, the QFI scales with the total number of nuclei, while in reality the dipolar interaction creates an effective cutoff, such that in short times the QFI scales as *n**d*^{3} and only after a long time, *τ* ≫ *τ*_{V}, when all the nuclei have passed through the interaction region, does the QFI scale with the total number of nuclei. As in Eq. (21), in this model the QFI is not limited by the coherence time of the NV, \({T}_{2}^{{\rm{NV}}}\), but only by the coherence time of the nuclei \({T}_{2}^{{\rm{N}}}\), which is usually longer by orders of magnitude.

### Undriven nuclei

In the previous section, we assumed that we can drive the nuclei sufficiently fast to achieve the approximate dynamics given by Eq. (24). In some experimental settings this is unfeasible for practical reasons. Hence, in what follows, we drop this assumption. The approximate dipolar Hamiltonian (23) is rewritten as

The NV is then driven with *π*−pulses every time *τ*_{p} so that the effective pulse frequency \({\omega }_{{\rm{p}}}=\frac{\pi }{{\tau }_{{\rm{p}}}}\) is close to *ω*_{N}. This yields the effective Hamiltonian (see Supplementary Note 4)

and the remaining free Hamiltonian

where *δ**ω* = *ω*_{N} − *ω*_{p} and \({g}_{\pm }^{i}=-\frac{3}{2}J{\left[{r}_{i}\left(t\right)\right]}^{-3}\sin \left[{\theta }_{i}\left(t\right)\right]\cos \left[{\theta }_{i}\left(t\right)\right]\). Following the same protocol as before (see Supplementary Note 5) the signal is

where the average magnetic field is as in the driven case, (30). The decay, however, changes to

for times *τ* ≪ *τ*_{D}, where

are the quantum and classical contributions to the instantaneous fluctuation of the magnetic field and *B*_{rms} is given by Eq. (33).

Comparing Eqs. (43) and (44) to the results of the previous section, Eqs. (30) and (32), note that the signal is the same upto a prefactor of order 1 and a constant known phase. The decay, however changes, so it is non-zero for any given time *t*. This is expected, since previously the interaction caused all the nuclei to rotate around the same axis, which resulted in an entanglement induced decay. Without the external drive, the interaction causes each nuclear spin to rotate around a different axis in the xy plane of the Bloch sphere, which induces additional classical dephasing (see Supplementary Figure 3). It is worth pointing out that the quantum contribution (45) can be negative, but the total *B*_{rms} is always real and positive. When the decay is small, *γ*_{e}*B*_{rms}*τ* ≪ 1, we retrieve the result (36) up to a prefactor ~ 1, since it only depends on the signal.

If the decay is dominant, the classical and quantum decay compete when optimizing the QFI. On the one hand the strong back-action regime requires \({\gamma }_{{\rm{e}}}\left|{B}_{{\rm{rms}}}^{{\rm{UDQ}}}\right|\tau >1\), which implies that *τ* has to be large enough. On the other hand, the classical dephasing causes an exponential decrease in the QFI, \({{\rm{e}}}^{-{\left({\gamma }_{{\rm{e}}}{B}_{{\rm{rms}}}^{{\rm{UDC}}}\tau \right)}^{2}}\), that depends only on *τ*. To limit this effect we require \({\gamma }_{{\rm{e}}}{B}_{{\rm{rms}}}^{{\rm{UDC}}}\tau <1\). Hence, when the nuclei are undriven fine tuning of *τ* is required in order to optimize these competing processes. The optimal protocol will no longer be universal and will depend on the physical parameters.

First, we assume strong back-action, in order to derive the analog protocol to the previous sections, and to emphasis our last statement regarding the decay. The optimal *t* satisfies

for which the QFI is

As aforementioned, the QFI, (48), has a reduction by an exponential factor compared to the previous result (37), arising from the classical dephasing. As long as \(\left|{\left({B}_{{\rm{rms}}}^{{\rm{UDC}}}\right)}^{2}\right|\le \left|{\left({B}_{{\rm{rms}}}^{{\rm{UDQ}}}\right)}^{2}\right|\) we can satisfy the strong back-action requirement, while limiting the classical decay by taking \({\tau }^{2}=\frac{1}{{\gamma }_{{\rm{e}}}^{2}\left|{\left({B}_{{\rm{rms}}}^{{\rm{UDC}}}\right)}^{2}\right|}\). This results in a reduction by a reasonable factor of e^{−1}. This inequality is a function of the NV’s tilting angle alone, and is correct for \(\alpha \ge \frac{\pi }{3}\). Since the NV’s natural tilting angle is *α* ~ 0.32*π* this is approximately the case, where the slight deviation will lead to further reduction of the QFI by a small factor. Another issue with this strategy is that it is not guaranteed that \(\tau =\frac{1}{{\gamma }_{{\rm{e}}}{B}_{{\rm{rms}}}^{{\rm{UDC}}}}\le {T}_{2}^{{\rm{NV}}}\), and indeed for a typical number density and an NV depth of *d* = 140nm, the time required is \(\tau \approx 3\,{\rm{ms}}>{T}_{2}^{{\rm{NV}}}\).

Obtaining other scalings is possible by optimizing *t* and *τ*, depending on the parameters; for example, by choosing \({\cos }^{2}\theta =1,\,{\tau }^{2}=\frac{1}{{\gamma }_{{\rm{e}}}^{2}\left[{\left({B}_{{\rm{rms}}}^{{\rm{UDQ}}}\right)}^{2}+{\left({B}_{{\rm{rms}}}^{{\rm{UDC}}}\right)}^{2}\right]}\) we achieve

which is the same result as in Eq. (37). Note that this is the case of “critical back-action”, when *γ*_{e}*B*_{rms}*τ* = 1, therefore smaller *τ* will lead to the weak back-action limit and larger *τ* will cause an exponential decrease. Since the same typical parameters yield *τ* ≈ 2 ms, the lack of external drive reduces Eq. (37) by a factor of e^{−1}. The results for *τ* ≫ *τ*_{D} can be derived by using reasoning similar to the previous section. However, the long times limit of Eqs. (37) and (39) will typically no longer be achievable because the optimal *τ* will be much longer than \({T}_{2}^{{\rm{NV}}}\).

### Partial polarization

The initial state of partially polarized nuclear spins is \({\left[\frac{1}{2}\left({\mathbb{1}}+p{I}_{X}\right)\right]}^{\otimes N},\) where *p* is the polarization (−1 ≤ *p* ≤ 1). Owing to this partial polarization, the ultimate precision limit is no longer \({\mathcal{I}}=N{t}^{2}\) (see Supplementary Methods 1), but

Hence the QFI is degraded by a factor of *p*^{2}. We thus wish to inquire whether we can approach this limit using our protocol.

The effect of partial polarization is somewhat similar to the effect of the undriven case. The polarized nuclei behave as in the driven case and induce a quantum dephasing on the external probe, while the unpolarized dynamics, creates classical dephasing. The QFI for *τ* ≪ *τ*_{D} is given by (see Supplementary Note 6)

where \({\rm{pol}}=\left|p\right|\) and \(\left\langle B\right\rangle\), *B*_{rms} are given by Eqs. (30) and (33), respectively. Therefore, the results of the previous section also apply for a partially polarized driven ensemble with minor modificatios. The optimal strategy in the strong back-action regime is to take \({\sin }^{2}\left(\theta \right)=1\) and \({\tau }^{2}=\frac{1}{4{\gamma }_{{\rm{e}}}^{2}{B}_{{\rm{rms}}}^{2}}\), which yeilds a QFI of

Therefore, even with finite polarization our protocol achieves the ultimate precision limit, as long as the polarization is greater than the statistical polarization. When the dephasing caused by the back-action is larger than the one inflicted by the unpolarized dynamics, other approaches can achieve the optimal QFI (see Supplementary Note 6). In that case it is required that pol ≥ 70% and the critical distance changes to \({d}_{c} \sim {{\rm{pol}}}^{2/3}{T}_{2}^{2/3}\), such that for pol = 70% it drops from 130nm to *d*_{c} ~ 100 nm for *T*_{2} = 1 ms. This fine tuning might yield a certain advantage over the optimal time parameters provided above, since the QFI depends explicitly on the optimal time.

## Discussion

We provide a protocol for nano-NMR that achieves the SQL up to a prefactor in the strong back-action regime. Moreover, the uncertainty does not depend on the coherence time of the sensor or the probe-nuclear coupling. Our anlysis implies that in the strong back-action regime, as long as the polarzation is greater than the statistical polarization, the optimal precision is achived by preforming a single measurment and not by using sequential measurement schemes. These features make it highly applicable for sensing very small samples, which is the ultimate goal of the field.

## Data availability

The datasets generated during and/or analyzed during the current study are available from the corresponding author on reasonable request.

## References

Degen, C. L., Reinhard, F. & Cappellaro, P. Quantum sensing.

*Rev. Mod. Phys.***89**, 035002 (2017).Caves, C. M. Quantum-mechanical noise in an interferometer.

*Phys. Rev. D.***23**, 1693–1708 (1981).Wineland, D. J., Bollinger, J. J., Itano, W. M., Moore, F. & Heinzen, D. J. Spin squeezing and reduced quantum noise in spectroscopy.

*Phys. Rev. A***46**, R6797–R6800 (1992).Giovannetti, V., Lloyd, S. & Maccone, L. Quantum metrology.

*Phys. Rev. Lett.***96**, 010401 (2006).Pirandola, S., Bardhan, B. R., Gehring, T., Weedbrook, C. & Lloyd, S. Advances in photonic quantum sensing.

*Nat. Photon.***12**, 724–733 (2018).Braunstein, S. L. & Caves, C. M. Statistical distance and the geometry of quantum states.

*Phys. Rev. Lett.***72**, 3439–3443 (1994).Huelga, S. F. et al. Improvement of frequency standards with quantum entanglement.

*Phys. Rev. Lett.***79**, 3865–3868 (1997).Giovannetti, V., Lloyd, S. & Maccone, L. Advances in quantum metrology.

*Nat. Photon.***5**, 222–229 (2011).Staudacher, T. et al. Nuclear magnetic resonance spectroscopy on a (5-nanometer)

^{3}sample volume.*Science***339**, 561–563 (2013).DeVience, S. J. et al. Nanoscale nmr spectroscopy and imaging of multiple nuclear species.

*Nat. Nanotechnol.***10**, 129–134 (2015).Mamin, H. J. et al. Nanoscale nuclear magnetic resonance with a nitrogen-vacancy spin sensor.

*Science***339**, 557–560 (2013).Shagieva, F. et al. Microwave-assisted cross-polarization of nuclear spin ensembles from optically pumped nitrogen-vacancy centers in diamond.

*Nano Lett.***18**, 3731–3737 (2018).Pfender, M. et al. High-resolution spectroscopy of single nuclear spins via sequential weak measurements.

*Nat. Commun.***10**, 594 (2019).Aslam, N. et al. Nanoscale nuclear magnetic resonance with chemical resolution.

*Science***357**, 67–71 (2017).Glenn, D. R. et al. High-resolution magnetic resonance spectroscopy using a solid-state spin sensor.

*Nature***555**, 351–354 (2018).Doherty, M. W. et al. The nitrogen-vacancy colour centre in diamond.

*Phys. Rep.***528**, 1–45 (2013).Jensen, K., Kehayias, P. & Budker, D.

*Magnetometry with Nitrogen-Vacancy Centers in Diamond*. (Springer, Cham, Berlin, Heidelberg, 2017).Cujia, K. S., Boss, J. M., Herb, K., Zopes, J. & Degen, C. L. Tracking the precession of single nuclear spins by weak measurements.

*Nature***571**, 230–233 (2019).DeGroot, M. H. & Schervish, M. J.

*Probability and Statistics*(Pearson Education, 2012).Slater, P. B. Bures metrics for certain high-dimensional quantum systems.

*Phys. Lett. A***244**, 35–42 (1998).Schmitt, S. et al. Submillihertz magnetic spectroscopy performed with a nanoscale quantum sensor.

*Science***356**, 832–837 (2017).Boss, J., Cujia, K., Zopes, J. & Degen, C. Quantum sensing with arbitrary frequency resolution.

*Science***356**, 837–840 (2017).Bucher, D. B., Glenn, D. R., Park, H., Lukin, M. D. & Walsworth, R. L. Hyperpolarization-enhanced nmr spectroscopy with femtomole sensitivity using quantum defects in diamond.

*Phys. Rev. X***10**, 021053 (2020).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).Cohen, D. et al. Utilising nv based quantum sensing for velocimetry at the nanoscale.

*Sci. Rep.***10**, 5298 (2020).

## Acknowledgements

A.R. acknowledges the support of ERC grant QRES, project No. 770929, grant agreement No. 667192 (Hyperdiamond), and the ASTERIQS and DiaPol projects. T.G. is supported by the Adams fellowship of the Israeli academy of sciences and humanities.

## Author information

### Authors and Affiliations

### Contributions

A.R. conceived the idea and supervised the project. T.G. and L.O. analyzed the simplified model and devised the protocol. T.G. found the optimal measurement basis and made the analogy to superradiance. D.C. made the modifications to the protocol for spatially dependent coupling, undriven nuclei and partially polarized ensemble. T.G. and D.C. made estimations of the QFI for multiple quantum probes. D.C. and L.O. both contributed to the adaptive protocol schem. D.C. wrote the manuscript with the assistance of L.O., T.G., and A.R.

### Corresponding author

## Ethics declarations

### Competing interests

The authors declare no competing interests.

## 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

Cohen, D., Gefen, T., Ortiz, L. *et al.* Achieving the ultimate precision limit with a weakly interacting quantum probe.
*npj Quantum Inf* **6**, 83 (2020). https://doi.org/10.1038/s41534-020-00313-x

Received:

Accepted:

Published:

DOI: https://doi.org/10.1038/s41534-020-00313-x