## Abstract

State-of-the-art methods for sensing weak AC fields are only efficient in the low frequency domain (<10 MHz). The inefficiency of sensing high-frequency signals is due to the lack of ability to use dynamical decoupling. In this paper we show that dynamical decoupling can be incorporated into high-frequency sensing schemes and by this we demonstrate that the high sensitivity achieved for low frequency can be extended to the whole spectrum. While our scheme is general and suitable to a variety of atomic and solid-state systems, we experimentally demonstrate it with the nitrogen-vacancy center in diamond. For a diamond with natural abundance of ^{13}C, we achieve coherence times up to 1.43 ms resulting in a smallest detectable magnetic field strength of 4 nT at 1.6 GHz. Attributed to the inherent nature of our scheme, we observe an additional increase in coherence time due to the signal itself.

## Introduction

Improving the sensitivity of high-frequency sensing schemes is of great significance, especially for classical fields sensing^{1,2,3}, detection of electron spins in solids^{4, 5}, and nuclear magnetic resonance spectroscopy^{6}. The common method to detect high-frequency field components is based on relaxation measurements, where the signal induces an observable effect on the lifetime, *T*_{1}, of the probe system^{4, 5, 7}. Nevertheless, the sensitivity of this method is limited by the pure dephasing time ${T}_{2}^{*}$ of the probe system.

Pulsed dynamical decoupling^{8,9,10} can substantially increase the coherence time^{11,12,13,14,15,16,17,18}. In order to carry out sensing with a decoupling scheme, the frequency of the decoupling pulses has to be matched with the frequency of the target field^{19, 20}. This largely restricts the approach to low frequencies, as the repetitive application of pulses is limited by the maximum available power per pulse^{21}. The same power restrictions are present for very rapid and composite pulse sequences aimed to decrease both external and controller noise^{22,23,24,25,26}.

With continuous dynamical decoupling (CDD)^{21, 27,28,29,30,31,32,33,34,35,36,37,38} robustness to external and controller noise can be attained, especially for multi-level systems^{39,40,41,42}. However, the significance of CDD for sensing high-frequency fields remained elusive. Indeed, it was unclear whether it is possible to incorporate such a protection into the metrology task of sensing frequencies in the GHz domain. The first step towards this goal was done recently by integrating CDD in the sensing of high-frequency fields with three level systems^{42}.

In this article, we propose, analyze, and experimentally demonstrate a sensing scheme that is capable of probing high-frequency signals with a coherence time, *T*_{2}, limited sensitivity. Unlike relaxation measurements comprising a bandwidth ∝$1\mathrm{\u2215}{T}_{2}^{*}$, determined by the pure dephasing time, ${T}_{2}^{*}$, of the sensor (up to the MHz range), our protocol overcomes the imposed limitation by protecting the addressed two-level system (TLS) with an adapted concatenated CDD approach. We use and adjust it such that high-frequency sensing becomes feasible even for not phase-matched signals. As a result, the proposed scheme is generic and works for many atomic or solid-state TLS, in which the energy gap matches the frequency of the signal under interrogation. A remarkable feature of our scheme is the fact that the signal to be probed also works partially as a decoupling drive and thus improves further the sensitivity of the sensor.

We demonstrate the performance of CDD by applying it to a nitrogen-vacancy (NV) center in diamond with natural abundance of ^{13}C. Here, we utilize two of its ground sub-levels as the TLS. The states of the NV center can be read out and initialized by a 532 nm laser, which reveals spin-dependent fluorescence between the two levels^{43,44,45}. The system can be manipulated by driving it with microwave fields. We show that by using a concatenation of two drives, an improvement in coherence time of the sensor by more than one order of magnitude is achieved. Taking into account the effect of an external signal, *g*, on the sensor during a concatenation of two drive fields, we obtain an improvement in bandwidth for high-frequency sensing by three orders of magnitude in comparison to the relaxometry approach. Moreover, we report on the measurement of a weak high-frequency signal with strength *g*, which relates to a smallest detectable magnetic field amplitude of δ*B*_{min} ≈ 4 nT.

## Results

### The sensing scheme

The basic idea of utilizing concatenated continuous driving to create a robust qubit is illustrated in Fig. 1a, b. The concatenation of two phase-matched driving fields results in a robust qubit^{36, 42}. In what follows we show that such a robust qubit can be utilized as a sensor for frequencies in the range of the qubit’s energy separation and hence, dynamical decoupling can be integrated into the sensing task.

By the concatenated driving, the qubit is prepared in a state that allows for strong coherent coupling to the high-frequency signal to be probed (corresponding to the last TLS in Fig. 1c). In the total Hamiltonian, *H*, we consider the concatenation of two driving fields of strength (the Rabi frequency) Ω_{1} and Ω_{2}, respectively. The Hamiltonians of the TLS, *H*_{0}, the protecting driving fields, ${H}_{{\mathrm{\Omega}}_{1}},{H}_{{\mathrm{\Omega}}_{2}}$ and the signal, *H*_{
s
}, are given by

where *ω*_{0} is the energy gap of the bare states (*ħ* = 1), *ω*_{
s
} is the frequency of the signal, and *g* is the signal strength which we want to determine. We tune the system, i.e., *ω*_{0}, Ω_{1}, and Ω_{2}, such that *ω*_{
s
} = *ω*_{0} + Ω_{1} + Ω_{2}/2.

It is an important feature that phase matching between the signal and the control is not required, which means that the signal phase *φ* can be unknown and moreover, it may vary between experimental runs. In addition, we make the assumption that ${\omega}_{0}\gg {\mathrm{\Omega}}_{1}\gg {\mathrm{\Omega}}_{2}\gg g$. Moving to the interaction picture (IP) with respect to ${H}_{0}=\frac{{\omega}_{0}}{2}{\sigma}_{z}$ and making the rotating-wave approximation, we obtain

This picture incorporates the effect of Ω_{1} onto a TLS and express the new system in eigenstates of *σ*_{
x
}, the $\u2223\pm \u27e9$ (dressed) states, which separates the contributions from Ω_{2} and *g*. For a large enough drive Ω_{1}, the $\u2223\pm \u27e9$ eigenstates are decoupled (in first order) from magnetic noise, δ*Bσ*_{
z
}, because $\u27e8\pm \u2223{\sigma}_{z}\u2223\pm \u27e9=0$. However, power fluctuations δΩ_{1} of Ω_{1} limit the coherence time of the dressed states. The resulting IP is illustrated in the second TLS in Fig. 1c.

We continue by moving to a second IP with respect to ${H}_{01}=\frac{{\mathrm{\Omega}}_{1}}{2}{\sigma}_{x}$, which leads to

Once again, we incorporate Ω_{2} into the dressed states, so that solely the contribution of the signal *g* becomes obvious, which is depicted in the last TLS of Fig. 1c. The second drive, Ω_{2}, which is larger than δΩ_{1}, creates effectively doubly dressed states (the *σ*_{
y
} eigenstates). These doubly dressed states are immune to power fluctuations of Ω_{1} and hence prolong the coherence time (see Supplementary Note 2 for more details). Moving to the third IP with respect to ${H}_{02}=\frac{{\mathrm{\Omega}}_{2}}{4}{\sigma}_{y}$ results in

where we can clearly see that the signal *g* induces rotations in the robust qubit subspace (either with *σ*_{+} or *σ*_{−}). These rotations are obtained for any value of an arbitrary phase *φ* and the bandwidth (∝1/*T*_{2}) is now limited by the coherence time, *T*_{2}, of the sensor. Hence, if a given TLS exhibits the possibility of manipulating it via drive fields ${H}_{{\mathrm{\Omega}}_{1}}$ and ${H}_{{\mathrm{\Omega}}_{2}}$, we can achieve a high-frequency sensor in the range of *ω*_{0}.

By this, we overcome the low frequency limit that is common to state-of-the-art pulsed dynamical decoupling sensing methods. In addition, we present an analog pulsed version of our scheme, where the pulsing rate is much lower than the frequency of the signal (Supplementary Note 9). However it is not a direct measurement of the signal, but based on a signal demodulation approach. Compared to the pulsed schemes, CDD does not suffer from being susceptible to higher harmonics of the decoupling window appearing naturally from the periodic character of the pulsed sequence^{46}. Eventually, less power per unit time is used in the continuous scheme leading to a smaller overall noise contribution from the drive.

### Implementation and analysis of the presented scheme

After determining the optimal drive parameters, Ω_{1} and Ω_{2}, for the concatenated sensing sequence, and thereby maximize the coherence times, ${T}_{2}^{{\mathrm{\Omega}}_{1}}$ and ${T}_{2}^{{\mathrm{\Omega}}_{1},{\mathrm{\Omega}}_{2}}$, respectively, of the sensor (Supplementary Note 6), we apply an external high-frequency signal (according to *H*_{
s
} in Eq. (2)) tuned to one of the four appearing energy gaps *ω*_{
s
} of the doubly dressed states. In these energy gaps an effective population transfer can occur between the states of the robust TLS, evidenced by signal induced Rabi oscillations at a rate *g*″ = *g*′/2 = *g*/4 in the double drive case (Supplementary Note 2).

The measurements take place in the laboratory frame, i.e., all three contributions Ω_{1}, Ω_{2}, and *g* to the population dynamics of the TLS will be visible. In order to see solely the effect of *g* on the TLS, we alter the modulation of the second drive in Eq. (2) to cos(Ω_{1}*t* + *π*/2). This does not change the performance of the scheme, but only changes the axis of rotation to *σ*_{
z
} for the second drive Ω_{2}. Since the readout laser is effectively projecting the population in the *σ*_{
z
} eigenbasis, we can make the Rabi rotations of Ω_{2} invisible to the readout. To remove the effect of Ω_{1} in the data, we can simply sample the measurement at multiple times of ${\tau}_{{\mathrm{\Omega}}_{1}}=2\pi \mathrm{\u2215}{\mathrm{\Omega}}_{1}$, i.e., we measure at times $t=N{\tau}_{{\mathrm{\Omega}}_{1}}$ ($N\in \mathbb{N}$). This procedure reveals directly *g*″(*g*′) as the signal induces Rabi oscillations of the robust qubit under double (single) drive (Fig. 2). Alternatively, we could have applied at the end of the drive a correction pulse in order to complete the full Ω_{1} and Ω_{2} rotations, so that just the effect of *g*″ remains.

Without a signal, *g*, we achieve coherence times of ${T}_{2}^{{\mathrm{\Omega}}_{1}}\approx 60\phantom{\rule{0.3em}{0ex}}\mathrm{\mu s}$ with a single drive (Ω_{2} = 0, compare Supplementary Fig. 3 in Supplementary Note 6A) and ${T}_{2}^{{\mathrm{\Omega}}_{1},{\mathrm{\Omega}}_{2}}\approx 393\phantom{\rule{0.3em}{0ex}}\mathrm{\mu s}$ with a double drive (compare Supplementary Fig. 4 in Supplementary Note 6B). The results for long and slow Rabi oscillations induced by an external signal, *g*, under single and double drive (Ω_{2}/Ω_{1} ≈ 0.15) are shown in Fig. 2. These illustrate a significant increase of the coherence time of the sensor by two orders of magnitude, from ${T}_{2}^{{\mathrm{\Omega}}_{1}}\approx 60\mathrm{\mu s}$ to a lifetime limited coherence time of (*T*_{1}/2≈) ${T}_{2}^{{\mathrm{\Omega}}_{1},{\mathrm{\Omega}}_{2},g}\approx 1.43\phantom{\rule{0.3em}{0ex}}\mathrm{ms}$. It should be noted that the signal itself can be considered as an additional drive (cf. Eq. (3)), correcting external errors δΩ of the previous drive and thereby prolonging the coherence time even further. Consequently, we can improve the bandwidth for high-frequency sensing by almost three orders of magnitude from ~900 kHz (for ${T}_{2}^{*}\approx 1.1\phantom{\rule{0.3em}{0ex}}\mathrm{\mu s}$) to ~700 Hz (for a ${T}_{2}^{{\mathrm{\Omega}}_{1},{\mathrm{\Omega}}_{2},g}\approx 1.43\phantom{\rule{0.3em}{0ex}}\mathrm{ms}$). Moreover, in Supplementary Note 3 we discuss an improved version of our scheme which has the potential to push the coherence time of the sensor further towards the lifetime limit.

To benchmark the double drive scheme against a standard single drive approach, we determine the smallest magnetic field which can be sensed after an accumulation time *t*. The smallest measurable signal *S* is eventually bounded by the smallest measurable magnetic field change δ*B*_{min}, which is found to be

Here, *γ*_{NV}/2*π* = 28.8 GHz T^{−1} is the gyromagnetic ratio of the NV defect, *σ*(*t*) is the standard deviation of the measured normalized fluorescence counts after time *t*, *α* accounts for a different phase accumulation rate depending on the decoupling scheme, and *C* is the contrast of the signal (see Supplementary Note 5 for detailed derivation). Since the photon counting is shot noise limited, we have $\sigma \left(t\right)=1\mathrm{\u2215}\sqrt{{N}_{\mathrm{ph}}\cdot N}$, with *N*_{ph} being the number of photons measured in *τ* and *N* = *t*/*τ* is the number of sequence repetitions. With this, Eq. (5) will transform in the commonly known form^{47, 48} with some measurement dependent constants.

We recorded *σ*(*t*) as a function of time and use this to determine δ*B*_{min}. The results of this measurement for both the single and double drive are summarized in Fig. 3. The sensitivity can be obtained by $\eta \left(\tau \right)=\mathrm{\delta}{B}_{\mathrm{min}}\left(t,\tau \right)\sqrt{t}$, which is optimal in the vicinity of the coherence time of the sensor, *τ* ≈ *T*_{2}. With our system, we achieve a sensitivity of ${\eta}_{{\mathrm{\Omega}}_{1},{\mathrm{\Omega}}_{2},g}$ ≲1 μT Hz^{−0.5} in the double drive case at ~1.6 GHz, which should be compared to ${\eta}_{{\mathrm{\Omega}}_{1},g}$ ≲20 μT Hz^{−0.5} for a single drive approach.

Both traces in Fig. 3 were recorded while a signal *g* was applied. Apart from the mere fact, that the number of driving fields are different, the specific choice for *τ* will also determine the magnitude of the smallest measurable magnetic field change δ*B*_{min}. Obtaining the coherence time without a signal, *g*, (which are ${T}_{2}^{{\mathrm{\Omega}}_{1}}$ and ${T}_{2}^{{\mathrm{\Omega}}_{1},{\mathrm{\Omega}}_{2}}$), is a common practice in the field, but will not result in a correct choice of *τ* for the sensitivity measurement and also for Eq. (5), since the signal has an impact on the sensor’s sensitivity. However, if *δB*_{min} shall be evaluated correctly, then the non-linearity, i.e., the coherence time prolonging effect of the signal, has to be taken into account. Otherwise an even worse δ*B*_{min} will be measured as it is exemplarily shown for the single drive case in Fig. 3, where δ*B*_{min} was evaluated and measured under the naive assumption that the signal has no effect on the coherence time of the sensor (i.e., we measure at $\tau ={T}_{2}^{{\mathrm{\Omega}}_{1}}$ and not at $\tau ={T}_{2}^{{\mathrm{\Omega}}_{1},g}$). This effect was included in the double drive case.

To examine the signal protection effect more in detail, the coherence time of the sensor is measured as a function of signal strength, *g*, in a single drive configuration (Supplementary Note 7). From these measurements we project the sensitivity associated with a specific signal strength (Fig. 4), assuming *σ*(*t*) is unchanged for the same repetition *N*. This is a reasonable assumption given that the only difference between measurements is the signal strength, *g*, and sequence length, *τ*.

Eventually, this phenomenon, which seems to be an inherent part of this continuous scheme, can be used to further increase the performance of the sensor by fine tuning the controlled parameters (static bias field *B*_{bias} and thereby changing *ω*_{0}, Ω_{1} and Ω_{2}) to match the signal frequency, *ω*_{
s
}, and strength, *g* (see Supplementary Note 3 for further discussions).

## Discussion

We have demonstrated that dynamical decoupling can be used in the context of sensing high frequency fields. In contrast to state-of-the-art pulsed dynamical decoupling protocols, we can show that CDD can be simultaneously integrated into the sensing task. By utilizing a NV center in diamond we have demonstrated by pure concatenation of two drives a coherence time of ~393 μs which constitutes an improvement of more than two orders of magnitude over ${T}_{2}^{*}$, and an increase of resolution from the MHz to a few kHz. The application of this method for wireless communication^{49} could have a transformative effect due to the high resolution of the protocol. Since the protocol is applicable to a variety of solid-state, molecular, and atomic systems, we believe that it has a great potential to have a significant impact on many fields and tasks that involve high frequency sensing (up to frequencies in the THz range). Eventually, this method could also be used to improve the coupling to quantum systems^{30}. We would like to note that during the preparation of this manuscript we became aware of a related independent work by Joas et al.^{50}.

### Data availability

The authors declare that all relevant data supporting the findings of this study are available within the paper (and its Supplementary Information file). Any raw data can be obtained from the corresponding authors on reasonable request.

## Additional Information

**Publisher's note:** Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

## References

- 1.
Chipaux, M. et al. Wide bandwidth instantaneous radio frequency spectrum analyzer based on nitrogen vacancy centers in diamond.

*Appl. Phys. Lett.***107**, 233502 (2015). - 2.
Kolkowitz, S. et al. Probing Johnson noise and ballistic transport in normal metals with a single-spin qubit.

*Science***347**, 1129–1132 (2015). - 3.
Shao, L., Zhang, M., Markham, M., Edmonds, A. M. & Lonar, M. Diamond radio receiver: nitrogen-vacancy centers as fluorescent transducers of microwave signals.

*Phys. Rev. Appl.***6**, 064008 (2016). - 4.
Sushkov, A. O. et al. all-optical sensing of a single-molecule electron spin.

*Nano Lett.***14**, 6443–6448 (2014). - 5.
Hall, L. T. et al. Detection of nanoscale electron spin resonance spectra demonstrated using nitrogen-vacancy centre probes in diamond.

*Nat. Commun.***7**, 10211 (2016). - 6.
Kimmich, R. & Anoardo, E. Field-cycling NMR relaxometry.

*Prog. Nucl. Magn. Reson. Spectrosc.***44**, 257–320 (2004). - 7.
Schmid-Lorch, D. et al. Relaxometry and dephasing imaging of superparamagnetic magnetite nanoparticles using a single qubit.

*Nano Lett.***15**, 4942–4947 (2015). - 8.
Hahn, E. L. Spin echoes.

*Phys. Rev.***80**, 580–594 (1950). - 9.
Carr, H. Y. & Purcell, E. M. Effects of diffusion on free precession in nuclear magnetic resonance experiments.

*Phys. Rev.***94**, 630–638 (1954). - 10.
Meiboom, S. & Gill, D. Modified SpinEcho method for measuring nuclear relaxation times.

*Rev. Sci. Instrum.***29**, 688–691 (1958). - 11.
Viola, L. & Lloyd, S. Dynamical suppression of decoherence in two-state quantum systems.

*Phys. Rev. A***58**, 2733–2744 (1998). - 12.
Biercuk, M. J. et al. Optimized dynamical decoupling in a model quantum memory.

*Nature***458**, 996–1000 (2009). - 13.
Du, J. et al. Preserving electron spin coherence in solids by optimal dynamical decoupling.

*Nature***461**, 1265–1268 (2009). - 14.
Lange, Gd, Wang, Z. H., Rist, D., Dobrovitski, V. V. & Hanson, R. Universal dynamical decoupling of a single solid-state spin from a spin bath.

*Science***330**, 60–63 (2010). - 15.
Ryan, C. A., Hodges, J. S. & Cory, D. G. Robust decoupling techniques to extend quantum coherence in diamond.

*Phys. Rev. Lett.***105**, 200402 (2010). - 16.
Naydenov, B. et al. Dynamical decoupling of a single-electron spin at room temperature.

*Phys. Rev. B***83**, 081201 (2011). - 17.
Wang, Z.-H., de Lange, G., Rist, D., Hanson, R. & Dobrovitski, V. V. Comparison of dynamical decoupling protocols for a nitrogen-vacancy center in diamond.

*Phys. Rev. B***85**, 155204 (2012). - 18.
Bar-Gill, N., Pham, L. M., Jarmola, A., Budker, D. & Walsworth, R. L. Solid-state electronic spin coherence time approaching one second.

*Nat. Commun.***4**, 1743 (2013). - 19.
Taylor, J. M. et al. High-sensitivity diamond magnetometer with nanoscale resolution.

*Nat. Phys.***4**, 810–816 (2008). - 20.
Kotler, S., Akerman, N., Glickman, Y., Keselman, A. & Ozeri, R. Single-ion quantum lock-in amplifier.

*Nature***473**, 61–65 (2011). - 21.
Gordon, G., Kurizki, G. & Lidar, D. A. Optimal dynamical decoherence control of a qubit.

*Phys. Rev. Lett.***101**, 010403 (2008). - 22.
Khodjasteh, K. & Lidar, D. A. Fault-tolerant quantum dynamical decoupling.

*Phys. Rev. Lett.***95**, 180501 (2005). - 23.
Uhrig, G. S. Keeping a quantum bit alive by optimized p-pulse sequences.

*Phys. Rev. Lett.***98**, 100504 (2007). - 24.
Souza, A. M., lvarez, G. A. & Suter, D. Robust dynamical decoupling for quantum computing and quantum memory.

*Phys. Rev. Lett.***106**, 240501 (2011). - 25.
Yang, W., Wang, Z.-Y. & Liu, R.-B. Preserving qubit coherence by dynamical decoupling.

*Front. Phys. China***6**, 2–14 (2011). - 26.
Farfurnik, D. et al. Optimizing a dynamical decoupling protocol for solid-state electronic spin ensembles in diamond.

*Phys. Rev. B***92**, 060301 (2015). - 27.
Fanchini, F. F., Hornos, J. E. M. & Napolitano, Rd. J. Continuously decoupling single-qubit operations from a perturbing thermal bath of scalar bosons.

*Phys. Rev. A***75**, 022329 (2007). - 28.
Bermudez, A., Jelezko, F., Plenio, M. B. & Retzker, A. Electron-mediated nuclear-spin interactions between distant nitrogen-vacancy centers.

*Phys. Rev. Lett.***107**, 150503 (2011). - 29.
Bermudez, A., Schmidt, P. O., Plenio, M. B. & Retzker, A. Robust trapped-ion quantum logic gates by continuous dynamical decoupling.

*Phys. Rev. A***85**, 040302 (2012). - 30.
Cai, J., Jelezko, F., Katz, N., Retzker, A. & Plenio, M. B. Long-lived driven solid-state quantum memory.

*New J. Phys.***14**, 093030 (2012). - 31.
Xu, X. et al. Coherence-protected quantum gate by continuous dynamical decoupling in diamond.

*Phys. Rev. Lett.***109**, 070502 (2012). - 32.
Golter, D. A., Baldwin, T. K. & Wang, H. Protecting a solid-state spin from decoherence using dressed spin states.

*Phys. Rev. Lett.***113**, 237601 (2014). - 33.
Rabl, P. et al. Strong magnetic coupling between an electronic spin qubit and a mechanical resonator.

*Phys. Rev. B***79**, 041302 (2009). - 34.
Clausen, J., Bensky, G. & Kurizki, G. Bath-optimized minimal-energy protection of quantum operations from decoherence.

*Phys. Rev. Lett.***104**, 040401 (2010). - 35.
Laucht, A. et al. A dressed spin qubit in silicon.

*Nat. Nanotechnol.***12**, 61–66 (2017). - 36.
Cai, J.-M. et al. Robust dynamical decoupling with concatenated continuous driving.

*New J. Phys.***14**, 113023 (2012). - 37.
Cohen, I., Weidt, S., Hensinger, W. K. & Retzker, A. Multi-qubit gate with trapped ions for microwave and laser-based implementation.

*New J. Phys.***17**, 043008 (2015). - 38.
Teissier, J., Barfuss, A. & Maletinsky, P. Hybrid continuous dynamical decoupling: a photonphonon doubly dressed spin.

*J. Opt.***19**, 044003 (2017). - 39.
Baumgart, I., Cai, J.-M., Retzker, A., Plenio, M. & Wunderlich, C. Ultrasensitive magnetometer using a single atom.

*Phys. Rev. Lett.***116**, 240801 (2016). - 40.
Timoney, N. et al. Quantum gates and memory using microwave-dressed states.

*Nature***476**, 185–188 (2011). - 41.
Aharon, N., Drewsen, M. & Retzker, A. General scheme for the construction of a protected qubit subspace.

*Phys. Rev. Lett.***111**, 230507 (2013). - 42.
Aharon, N., Cohen, I., Jelezko, F. & Retzker, A. Fully robust qubit in atomic and molecular three-level systems.

*New J. Phys.***18**, 123012 (2016). - 43.
Jelezko, F., Gaebel, T., Popa, I., Gruber, A. & Wrachtrup, J. Observation of coherent oscillations in a single electron spin.

*Phys. Rev. Lett.***92**, 076401 (2004). - 44.
Jelezko, F. et al. Observation of coherent oscillation of a single nuclear spin and realization of a two-qubit conditional quantum gate.

*Phys. Rev. Lett.***93**, 130501 (2004). - 45.
Balasubramanian, G. et al. Nanoscale imaging magnetometry with diamond spins under ambient conditions.

*Nature***455**, 648–651 (2008). - 46.
Loretz, M. et al. Spurious harmonic response of multipulse quantum sensing sequences.

*Phys. Rev. X***5**, 021009 (2015). - 47.
Itano, W. M. et al. Quantum projection noise: population fluctuations in two-level systems.

*Phys. Rev. A***47**, 3554–3570 (1993). - 48.
Budker, D. & Romalis, M. Optical magnetometry.

*Nat. Phys.***3**, 227–234 (2007). - 49.
Baylis, C., Fellows, M., Cohen, L. & II, R. J. M. Solving the spectrum crisis: intelligent, reconfigurable microwave transmitter amplifiers for cognitive radar.

*IEEE Microw. Mag.***15**, 94–107 (2014). - 50.
Joas, T., Waeber, A. M., Braunbeck, G. & Reinhard, F. Quantum sensing of weak radio-frequency signals by pulsed mollow absorption spectroscopy.

*Nat. Commun.*doi:10.1038/s41467-017-01158-3 (2017). - 51.
Binder, J. M. et al. Qudi: a modular python suite for experiment control and data processing.

*SoftwareX***6**, 85–90 (2017).

## Acknowledgements

The experiments presented here were supported by the Qudi Software Suite^{51}. A.S., A.H. and U.L.A. acknowledge funding from the Innovation Foundation Denmark through the project EXMAD and the Qubiz center and the Danish Research Council via the Sapere Aude project (DIMS). T.U. and F.J. acknowledge the Volkswagenstiftung. A.R. acknowledges the support of the Israel Science Foundation (grant no. 1500/13), the support of the European commission, EU Project DIADEMS. This project has received funding from the European Union’s Horizon 2020 research and innovation program under grant agreement No 667192 Hyperdiamond and Research Cooperation Program and DIP program (FO 703/2-1).

## Author information

### Affiliations

#### Department of Physics, Technical University of Denmark, Fysikvej, Kongens Lyngby, 2800, Denmark

- Alexander Stark
- , Alexander Huck
- & Ulrik L. Andersen

#### Institute for Quantum Optics, Ulm University, Albert-Einstein-Allee 11, Ulm, 89081, Germany

- Alexander Stark
- , Thomas Unden
- , Daniel Louzon
- & Fedor Jelezko

#### Racah Institute of Physics, The Hebrew University of Jerusalem, Jerusalem, 91904, Israel

- Nati Aharon
- , Daniel Louzon
- & Alex Retzker

#### Center for Integrated Quantum Science and Technology (IQst), Ulm University, Ulm, 89081, Germany

- Fedor Jelezko

### Authors

### Search for Alexander Stark in:

### Search for Nati Aharon in:

### Search for Thomas Unden in:

### Search for Daniel Louzon in:

### Search for Alexander Huck in:

### Search for Alex Retzker in:

### Search for Ulrik L. Andersen in:

### Search for Fedor Jelezko in:

### Contributions

N.A. and A.R. conceived the idea and developed the theory. A.H., A.R., U.L.A. and F.J. designed and supervised the project. A.S., T.U. and D.L. performed, planned and developed the concept of the experiment. A.S., N.A., T.U. and D.L. analyzed the data. N.A. and D.L. planned and carried out the simulations. A.S. and N.A. took the lead in writing the manuscript. All authors contributed to the interpretation of the results, provided critical feedback and helped to shape the research, analysis and manuscript.

### Competing interests

The authors declare no competing financial interests.

### Corresponding authors

Correspondence to Alexander Stark or Fedor Jelezko.

## Electronic supplementary material

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

**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/.