원시데이터 수집 시스템
선정목록으로

Robust Noise Suppression and Quantum Sensing by Continuous Phased Dynamical Decoupling

관련 필름·전자재료 · (14) 드라이 필름(포토레지스트)

기본 정보

저자
  1. Daniel Louzon — The Hebrew University of Jerusalem|||Ulm University
  2. Genko T. Genov — Ulm University
  3. Nicolas Staudenmaier — Ulm University
  4. Florian Frank — Ulm University
  5. Johannes Lang — Ulm University|||Diatope GmbH
  6. Matthew Markham — Element Six Global Innovation Centre
  7. Alex Retzker — The Hebrew University of Jerusalem|||AWS Center for Quantum Computing
  8. Fedor Jelezko — Ulm University
DOI
10.1103/physrevlett.134.120802
저널
Physical Review Letters
발행년도
2025
발행기관
American Physical Society
피인용수
0
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1103/physrevlett.134.120802
토픽
Analytical Chemistry and Sensors
OpenAlex ID
W4409254237

평가 내용

관련도
관련
사업분야
필름·전자재료 · (14) 드라이 필름(포토레지스트)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '필름·전자재료 > 드라이 필름(포토레지스트)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

We propose and demonstrate experimentally continuous phased dynamical decoupling (CPDD), where we apply a continuous field with discrete phase changes for quantum sensing and robust compensation of environmental and amplitude noise. CPDD does not use short pulses, making it particularly suitable for experiments with limited driving power or nuclear magnetic resonance at high magnetic fields. It requires control of the timing of the phase changes, offering much greater precision than the Rabi frequency control needed in standard continuous sensing schemes. We successfully apply our method to nanoscale nuclear magnetic resonance and combine it with quantum heterodyne detection, achieving microhertz uncertainty in the estimated signal frequency for a 120 s measurement. Our Letter expands significantly the applicability of dynamical decoupling and opens the door for a wide range of experiments, e.g., in nitrogen-vacancy centers, trapped ions, or trapped atoms. Published by the American Physical Society 2025

본문 88,546자

본문 펼치기
Robust Noise Suppression and Quantum Sensing by Continuous Phased Dynamical Decoupling Daniel Louzon, <sup>1, 2, ∗</sup> Genko T. Genov, <sup>1, ∗</sup> Nicolas Staudenmaier, <sup>1, ∗</sup> Florian Frank, <sup>1</sup> Johannes Lang, <sup>1, 3</sup> Matthew L. Markham, <sup>4</sup> Alex Retzker, <sup>2, 5</sup> and Fedor Jelezko <sup>1</sup> 1Institute for Quantum Optics, Ulm University, Albert-Einstein-Allee 11, 89081 Ulm, Germany 2Racah Institute of Physics, The Hebrew University of Jerusalem, Jerusalem, 91904, Givat Ram, Israel 3Diatope GmbH, Buchenweg 23, 88444 Ummendorf, Germany 4Element Six Global Innovation Centre, Fermi Avenue, Harwell Oxford, Didcot, Oxfordshire, OX11 0QR, United Kingdom 5AWS Center for Quantum Computing, Pasadena, CA 91125, USA (Dated: March 28, 2025) We propose and demonstrate experimentally continuous phased dynamical decoupling (CPDD), where we apply a continuous field with discrete phase changes for quantum sensing and robust compensation of environmental and amplitude noise. CPDD does not use short pulses, making it particularly suitable for experiments with limited driving power or nuclear magnetic resonance at high magnetic fields. It requires control of the timing of the phase changes, offering much greater precision than the Rabi frequency control needed in standard continuous sensing schemes. We successfully apply our method to nanoscale nuclear magnetic resonance and combine it with quantum heterodyne detection, achieving µHz uncertainty in the estimated signal frequency for a 120 s measurement. Our work expands significantly the applicability of dynamical decoupling and opens the door for a wide range of experiments, e.g., in NV centers, trapped ions or trapped atoms. Developments in quantum technologies are increasingly important for multiple applications in quantum computing, quantum sensing, and quantum communication. However, decoherence remains a major challenge. Pulsed dynamical decoupling (DD) addresses this problem by using sequences of short pulses to nullify the average effect of the unwanted qubit-environment interactions [1, 2]. However, the pulses should ideally be instantaneous to avoid spurious effects [3], which is challenging, e.g., due to heating at low temperatures or with biological samples. Continuous dynamical decoupling (CDD) is an alternative that does not require strong pulses but uses a continuous protecting field and has been successfully demonstrated in multiple applications [2, 4–22]. The continuous field opens an energy gap in the dressed state basis for first order noise protection, perpendicular to the field. However, the energy gap suffers from driving field fluctuations, introducing additional noise. Concatenated CDD overcomes this issue by adding more dressing fields to iteratively compensate for amplitude noise [23]. Major drawbacks of this approach are increased complexity and limited gate speed due to the small final energy gap. Other approaches include phase modulated double drive CDD, where the continuous first field is phase modulated to mimic the effect of a noiseless second field [24], combining continuous and pulsed DD [25], or using the noise correlations between driving fields to suppress noise [26]. Robust CDD schemes are also possible in multi-level systems [12, 22, 24, 27–30] but these typi ∗ These authors contributed equally to this work. Corresponding author: [genko.genov@uni-ulm.de](mailto:genko.genov@uni-ulm.de) cally involve additional overhead in terms of control parameters. This is often challenging due to, e.g., drift of the magnetic field or spatial inhomogeneity, limiting the coherence time especially at high magnetic fields, where small relative changes can lead to fast decoherence. In this work, we propose and implement experimentally continuous phased DD (CPDD), using a strong continuous field to suppress the effect of environmental noise to first order and apply phase changes at well defined time intervals that compensate both amplitude and environmental frequency noise errors to higher order. CPDD does not require short pulses and strong driving fields, which makes it particularly suitable for experiments that require low driving power due to temperature or setup limitations. The rotary echo protocol, where the periodic phases are 0 and π [16, 20, 21], is one known example of CPDD. However, its performance is not optimal due to frequency noise, e.g., at low driving fields. Windowless sequences of π/2 pulses and composite pulses have also been applied for decoupling and refocusing of pulse errors [31–35]. In this letter, we apply phase changes for continuous decoupling that follow robust sequences of π pulses, previously used for pulsed DD only [35–38], improving robustness to both frequency and amplitude noise. We demonstrate quantum sensing of a signal from an external bath of hydrogen nuclear spins at low and high magnetic fields with a single NV center in diamond. We use CPDD with the phases of the popular XY8 sequence (0, 1, 0, 1, 1, 0, 1, 0) π/2 [36, 39, 40], labeling the new sequence continuous XY8 (CXY8). All DD protocols perform expectedly well at low field. However, only CPDD successfully detects a signal at high magnetic field as the technique is robust against amplitude errors, while imprecise control of the Rabi frequency proves detrimental for conventional CDD. Finally, we successfully Continuous Phased DD (CPDD) ��x� _N_ Continuous DD (CDD) ��x� ��y� Pulsed DD �2�x� �2�x� �2�y� �2�y� �2�x� T �2�y� �2�y� �2�x� �2�x� . . . - (t) _N_ �2�x� Laser Signal Rectified <u>signal</u> Laser Laser Signal Rectified signal Laser Laser Signal Rectified <u>signal</u> Laser _ϕ_ 1 _ϕ_ 2 . . . _ϕ_ n t t t FIG. 1. Experimental schemes for quantum sensing with pulsed, standard continuous and continuous phased dynamical decoupling with signal g cos (ωLt + ξ). Pulsed DD uses the phases of the pulses for improved robustness but each pulse should be much shorter than the half period of the signal. CDD is applicable with Ω= ωL but is sensitive to amplitude noise. CDD is applicable with Ω= ωL but is sensitive to amplitude noise. The phase changes of CPDD improve robustness. In contrast to pulsed DD, a uniform rectified signal is obtained for CDD and CPDD on resonance when the initial signal phase ξ = 0 and the phase changes are applied at intervals T = π/ωL ≈ π/Ωfor CPDD. combine our method with quantum heterodyne detection [41], achieving µHz uncertainty in the estimated frequency. Our work expands significantly the applicability of continuous dynamical decoupling, e.g., in NV centers, trapped ions or trapped atoms. The system.—Magnetometry experiments measure the frequency and amplitude of a signal [6, 12, 13, 20, 21]. We demonstrate CPDD for sensing of an oscillating field (see Fig. 1). We consider the Hamiltonian H = <sup>ω0</sup> 2 <sup>σz</sup> <sup>+ Ωcos (ω0t + φ)σx + g cos (ωLt + ξ)σz,</sup> <sup>(1)</sup> where ω0 is the Bohr transition frequency, Ωis the Rabi frequency of the driving field with phase φ, ωL is the (angular) frequency of the signal, g is its amplitude, and ξ its unknown phase. We move to the interaction basis with respect to H0 <sup>(1)</sup> = ω0σz/2 and apply the rotating wave approximation, using Ω ≪ ω0, and obtain H1 = <sup>Ω</sup> 2 <sup>(cos (φ)σx + sin (φ)σy) + g cos (ωLt + ξ)σz.</sup> <sup>(2)</sup> We move to the interaction basis with respect to the driving field <sup>Ω</sup> 2 <sup>(cos (φ)σx + sin (φ)σy)</sup> <sup>and</sup> <sup>obtain</sup> (3) H2 = − <sup>∆</sup> 2 <sup>σx +</sup> <sup>g</sup> 2 <sup>(cos (ξ)σz</sup> <sup>−</sup> <sup>sin (ξ)σy),</sup> where the detuning ∆ ≡ ωL − Ωand we neglect the fast oscillating terms at frequency 2ωL, assuming g ≪ ωL and ∆ ≪ ωL. Due to this rotating-wave approximation, the detection signal effective amplitude is g/2 ≡ κg, i.e., it is attenuated by a factor κ = 1/2 in comparison to Eq. (2). We note that attenuation is slightly higher than that of pulsed DD where κpulsed = 2/π [6]. When ωL = Ω, known as Hartmann-Hahn resonance [42], we observe oscillations in the population of the x state in this basis with a frequency g. However, amplitude noise in Ωleads to unwanted detuning ∆that quickly causes decoherence for standard continuous dynamical decoupling (CDD) [2, 4–9, 12–15, 17, 19–21, 43]. Since amplitude noise is relative, its effects worsen at high magnetic fields, where stronger driving is needed to match the Larmor frequency. Achieving Ω= ωL is then practically impossible, leading to detuned oscillations, loss of contrast, and estimation bias. CPDD applies phase changes in φ at time intervals T = π/Ωto compensate errors (see Fig. 1), using the phases of robust pulsed DD sequences, e.g., XY, Knill DD, or the universally robust (UR) DD sequences [35– 38]. Thus, CPDD can be regarded as a sequence of phase shifted π pulses with zero pulse separation. These allow for the fastest inversion rate of the qubit, given a peak Rabi frequency, leading to a narrowband filter for environmental noise. We sense the signal field by its effect during the pulses, as opposed to standard pulsed DD. CPDD is robust to amplitude errors as its resonance condition is T = π/ωL, akin to pulsed DD where it is τ = π/ωL (see Fig. 1). Frequency selectivity is obtained by scanning the time interval T of the phase changes, as opposed to CDD where it is necessary to scan Ω. The Hartmann-Hahn resonance condition ∆= 0 needs to be satisfied only approximately for CPDD, so errors can be compensated, e.g., ∆can be around 5% of Ωfor a total duration 1600 T [44]. We analyze the effect of errors without the sensed field. CDD applies a continuous drive ∼ σx (see Eq. (2)), which we label CX. Its fidelity is FCX = 1 - O(ǫ), where ǫ is the typically small error in the transition probability of one π pulse, e.g., ǫ = 1 - cos <sup>2</sup> (∆t) ≈ 0.006 when ∆= 0.05 ωL[44]. The fidelity of CPDD with the CXY8 sequence is FCXY8 = 1 − O(ǫ <sup>3</sup> ), which is much closer to 1 than with the standard continuous decoupling. The effect of the phase changes on the rectified signal is not trivial as only the component <sup>g</sup> 2 <sup>cos (ξ)σz</sup> <sup>in</sup> <sup>Eq.</sup> <sup>(3)</sup> is typically unaffected by them [44]. Thus, CPDD has selectivity with respect to the signal initial phase, similarly to pulsed DD [6], making it directly applicable to quantum heterodyne detection (Qdyne) [41]. Similarly to pulsed DD, the signal can produce sequence-dependent spurious harmonics [3], which can be comparable to the main harmonic because the signal is sensed by its effect (a) (b) ~~(c)~~ (d) CXY8 CX CXY8 CX FIG. 2. Simulation and experimental performance of CDD (CX sequence, dashed lines) and CPDD (CXY8 sequence, solid lines) with phase changes at T = 62.5 ns for a signal with ωL = (2π) 8 MHz. (a) Population of state |0⟩ of the NV electron spin vs. interaction time for different detunings ∆(shown in the legend). (b) Maximum contrast of the oscillations in (a) vs. detuning ∆for CX and CXY8. The data for all simulations are taken stroboscopically at intervals of 0.5 µs. (c) and (d) show experimental data, which correspond to the simulations in (a) and (b). during the driving. Such unwanted signals can be suppressed by randomized phase changes [44], as in pulsed DD [53]. Experimental implementation.—We performed experiments on two different single Nitrogen-Vacancy centers (NV) in diamond with an isotopically enriched <sup>12</sup> C (99.999%) layer [44]. The negative charge state of the NV center has S = 1 triplet ground state [54]. We used a permanent neodymium magnet to create an external magnetic field bias aligned with the NV axis to remove the degeneracy between the | ± 1⟩ states of the NV electron spin and to control the Larmor frequency of the hydrogen bath. We placed a copper wire on the diamond surface and used it to drive the |0⟩→| − 1⟩ transition resonantly, creating an effective two-level system. An arbitrary waveform generator is used for direct generation of the sequences and precise control of the phase changes. Illumination with a green laser (518 nm), used for initialization and readout of the NV spin state, reveals a spin dependent fluorescence and favorable relaxation into state |0⟩ [55, 56]. All experimental details can be found in [44]. First, we demonstrate the robustness of CPDD for sensing the amplitude g ≈ 2π 11.7 kHz of a weak oscillating field. The results from a numerical simulation and experiments are shown in Fig. 2. When the Rabi frequency of the driving field is equal to the angular frequency of the sensed field, i.e., Ω= ωL = 2π 8 MHz, we observe oscillations of the population of state |0⟩ for both CX and CXY8 with P = cos(Θ(t)/2), where Θ = gt. The oscillations are quickly lost with CX even with small ∆ ≈ 2π 20 kHz, i.e., of the order of the coupling strength g. On the contrary, with CXY8 the robustness is improved by more than twenty times, as we observe oscillations even for ∆= 2π 400 kHz [44]. The experimental results match the simulation very well with the worse performance of CDD in the experiment mainly due to amplitude fluctuations, which are not included in the simulation. In a second experiment, we detected a nano-NMR signal from the external hydrogen bath of immersion oil with a shallow (depth ≈ 10nm) NV center (Fig.3(a)). We performed the experiment at two bias fields, parallel to the NV axis: Bz = (485 ± 1)G (low field) to polarize the inherent nitrogen nuclear spin, with the Larmor frequency of the hydrogen nuclear spins ωL ≈ 2π 2.065 MHz. Second, we applied Bz = (1882 ± 3)G (high field) where the Larmor frequency is ωL ≈ 2π 8.005 MHz. The inherent nitrogen nuclear spin is not polarized then but the effect is negligible due to the high Rabi frequency and the decoupling sequences [58]. At low field, the Rabi frequency was roughly 2π 14 MHz for pulsed DD. Hence, ωL ωL Ω ≈ 0.14, giving a good approximation for instantaneous pulses. Figure 3(b) shows the level scheme and the Hartmann-Hahn resonance condition for CDD. Figure 3(c-e) shows the results of three different sequences in the low field regime. In all cases the hydrogen dip is clearly visible with a difference in dip size as expected from theory [44]. At high field, the necessary shorter time spacing between pulses limited the microwave Rabi frequency to around 2π 12 MHz due to heating. Therefore, we could not assume instantaneous pulses for pulsed DD. Thus, we only performed continuous drive sequences at high field. Figure 3(f-h) shows a dip in fluorescence due to hydrogen, which was visible only with CXY8, even though we used a longer interaction time for standard CX. This is due to the better frequency selectivity of CXY8 as its control parameter is the time interval of the phase changes T . In contrast, the CX requires ωL = Ω, depending on the microwave Rabi frequency, which suffers from amplitude noise, mainly due to power fluctuations [59]. In our experiments, the vertical resolution of the arbitrary waveform generator is 8 − bit, resulting in a 30 − 40 kHz error in the Rabi frequency, making it practically impossible to lock the driving frequency on a signal with a frequency width of about 40 kHz. On the contrary, the CXY8 resonance condition allows a Rabi frequency error of more than ±5% around ωL (see Fig. 2 and [44]). Thus, the frequency selectivity is determined by the time digitization of the driving signal, i.e., 65 GHz, resulting in a much smaller error than the experimental requirements. We note that the broader width of the proton dip in the high field experiment is due to the larger magnetic noise and diffusion broadening [60]. (a) (b) (c) Low field (d) Low field, Off-resonant (e) Low field Low field, Off-resonant (e) Low field, Resonant CX – 64 _µ_ s CXY8–16 CXY8–16 (4 parts) XY8–16 d NV + H Immersion oil Diamond (f) High field (g) High field, Off-resonant (h) High field CX–N CXY8–N XY8–N d High field, Off-resonant (h) High field, Resonant CX–N CXY8–N XY8–N CX–N CXY8–N CX–N CXY8–N CX – 64 _µ_ s CXY8–100 FIG. 3. (a) Sketch of a shallow NV center at depth d. It interacts with the hydrogen bath on the diamond surface within a volume of roughly d <sup>3</sup> [57]. (b) A simplified level scheme of the NV center ground state. When Ω= ωL the interaction between the NV and the hydrogen bath leads to a dip in fluorescence for CX. The resonance condition for XY8 (CXY8) is τ = π/ωL (T = π/ωL), see Fig. 1. Experimental results for (c) DD spectra in the low field regime. The larger dip for CX is due to its longer interaction time. The label (C)XY8-N shows that the sequence is repeated N times. CXY8-16-4 denotes a CXY8-16 sequence where we did not vary Ωcontinuously as we varied T but it took only four values 2π{1.9, 2, 2.1, 2.2} MHz, demonstrating CXY8 robustness. DD order scan (d) off-resonant and (e) resonant with the Larmor frequency at low field; (f) DD spectrum in the high field regime. No contrast is observed for CX even though a longer interaction time is used than for CXY8. DD order scan (g) off-resonant and (h) resonant with the Larmor frequency at high field. In (h) we included the off-resonant CX plot due to negligible difference from CX on resonance, as shown in (f). The respective interaction times used in (c) and (f) are marked in plots (d,e) and (g,h) with gray (CX) and red (CXY8), vertical, dashed lines. Finally, we combined CPDD with quantum heterodyne detection (Qdyne), achieving µHz frequency uncertainty with a 120 s measurement for nano-scale high-frequency sensing. Figure 4(a) shows the scheme of Qdyne. We apply CXY8 on resonance with Ω ≈ 2π 8 MHz and T = π/Ω= 62.5 ns. During the sequence the qubit acquires a phase, which depends on the signal phase ξ at the beginning of each CXY8 sequence [44]. The spin population is sampled at fixed time intervals TL such that the signal phase ξ changes by a constant increment. We record individually the number of detected photons and the time of detection during the laser pulses. The experiment takes 120 s and consists of 13.9×10 <sup>6</sup> measurements. We perform a fast Fourier transform of the recorded photon trace and observe a signal with a beat frequency of fb = 19.4328391 kHz ±4.4 mHz (see Fig. 4(b)), which corresponds to an estimated frequency of 8000001.8883 Hz ±4.4 mHz. We achieve δν0 ≈ 28 µHz frequency uncertainty for Ttot = 120 s measurement time, which can be further reduced by prolonging Ttot and is mainly limited by the coherence time of the clock. The frequency sensitivity of CXY8 with Qdyne is ην0 = δν0 Ttot <sup>3/2</sup> <sup>=</sup> <sup>32</sup> <sup>mHz/Hz3/2</sup> <sup>and</sup> <sup>the</sup> <sup>amplitude</sup> <sup>sensitivity</sup> (a) �2�x� �2�y� �2�x� �2�y� �2�x� �2�y� Laser CXY8-10 Laser CXY8-10 Laser CXY8-10 Laser .. . ��� (b) P���� �� 1 0 1 �� - ssing, Fast Fourier Transform 9 mHz δν0 Ttot <sup>3/2</sup> <sup>=</sup> <sup>32</sup> <sup>mHz/Hz3/2</sup> <sup>and</sup> <sup>the</sup> <sup>amplitude</sup> <sup>sensitivity</sup> B0 is ηB = SNR <sup>T 1</sup> tot <sup>/2</sup> <sup>=</sup> <sup>118 ± 8</sup> <sup>nT/</sup> √Hz [44]. These values <sup>1</sup> tot <sup>/2</sup> <sup>=</sup> <sup>118 ± 8</sup> <sup>nT/</sup> to previous √ FIG. 4. (a) Scheme of nanoscale high-frequency sensing with Qdyne, using CXY8. (b) Fast Fourier transform of the photon trace to detect a signal at the beat frequency fb, which corresponds to the signal frequency of 8 MHz. is ηB = SNRB0 <sup>T 1</sup> tot <sup>/2</sup> <sup>=</sup> <sup>118 ± 8</sup> <sup>nT/</sup> Hz [44]. These values are comparable to previous results with Qdyne [61] and can be further improved by optimizing the measurements for reaching maximum sensitivity, which goes beyond the scope of our proof-of-principle demonstration. Discussion.—The sensitivity of CPDD and pulsed DD differ by their signal attenuation factor κ = 1/2 and κpulsed = 2/π, respectively (see Eq. (3) and [6, 44]). The dynamic range of CPDD is similar to the one of dressed states methods e.g., continuous dynamical decoupling [6], and is 0.1-100 MHz for electronic spins or superconducting qubits [6] with the additional advantage of improved robustness. It can be expanded by incorporating a second driving field to sense GHz frequencies, similar to double drive continuous decoupling [23, 26]. The sensitivities can be improved even further by engineering of the host diamond properties to obtain NV centers with longer coherence times [62, 63], enhancing photon collection efficiency [44, 64, 65] or with ensembles of NV centers [66]. Furthermore, CPDD can be modified to perform robust quantum gates. As their speed is limited by the frequency difference of the eigenstates of the last dressed qubit, CPDD will be faster than alternative continuous robust schemes like concatenated CDD [23]. Conclusion.—We proposed and demonstrated experimentally robust noise suppression and quantum sensing by continuous phase shifted dynamical decoupling. We applied a continuous driving field to reduce the effect of environmental noise to first order. Discrete phase changes at well defined time intervals compensate both amplitude and environmental noise errors to higher order and increase the robustness of the technique. CPDD does not require short pulses and high driving fields unlike pulsed DD, making it suitable for applications with limited driving power due to thermal constraints, or when high magnetic fields are required, and the Larmor frequency of the sensed spins approaches the maximum achievable Rabi frequency, rendering pulsed DD inefficient. The presented technique can also compensate for detuning and microwave field inhomogeneity in ensemble NV sensing applications. A major advantage [1] L. Viola, E. Knill, and S. Lloyd, Dynamical decoupling of open quantum systems, Phys. Rev. Lett. 82, 2417 (1999). [2] D. Suter and G. A. ´Alvarez, Colloquium: Protecting quantum information against environmental noise, Rev. Mod. Phys. [88,](https://doi.org/10.1103/RevModPhys.88.041001) 041001 (2016). [3] M. Loretz, J. M. Boss, T. Rosskopf, H. J. Mamin, D. Rugar, and C. L. Degen, Spurious harmonic response of multipulse quantum sensing sequences, Phys. Rev. X [5,](https://doi.org/10.1103/PhysRevX.5.021009) 021009 (2015). [4] P. Neumann, I. Jakobi, F. Dolde, C. Burk, R. Reuter, G. Waldherr, J. Honert, T. Wolf, A. Brunner, J. H. Shim, V. Dunjko, D. Suter, H. Sumiya, J. Isoya, and J. Wrachtrup, High- Speeding-up precision nanoscale temperature sensing using single de- ing agent fects in diamond, Nano Letters [13,](https://doi.org/10.1021/nl401216y) 2738 (2013), pMID: Quantum 23721106, [https://doi.org/10.1021/nl401216y.](https://arxiv.org/abs/https://doi.org/10.1021/nl401216y) [11] G. T. [5] R. Schirhagl, K. Chang, M. Loretz, and C. L. zker, and Degen, Nitrogen-vacancy centers in diamond: sensing by Nanoscale sensors for physics and biology, Phys. Rev. Annual Review of [Physical](https://doi.org/10.1146/annurev-physchem-040513-103659) Chemistry 65, 83 (2014), [12] A. Stark, N. [pMID: 24274702, https://doi.org/10.1146/annurev-physchem-040513-103659.zker,](https://arxiv.org/abs/https://doi.org/10.1146/annurev-physchem-040513-103659) F. Jelezko, [6] C. L. Degen, F. Reinhard, and P. Cappellaro, Quantum continuous sensing, Rev. Mod. Phys. [89,](https://doi.org/10.1103/RevModPhys.89.035002) 035002 (2017). [7] G. Balasubramanian, P. Neumann, D. Twitchen, M. Markham, R. Kolesov, N. Mizuochi, J. Isoya, J. Achard, J. Beck, J. Tissler, V. Jacques, P. R. Hemmer, F. Jelezko, and J. Wrachtrup, Ultralong of CPDD is that it requires control of the time intervals of phase changes, which is much easier than control of the Rabi frequency, as demonstrated in our experiments. Finally, we have shown that CPDD is compatible with high-resolution, synchronized measurement schemes like Qdyne, demonstrating quantum sensing with µHz frequency uncertainty. Acknowledgment.— This work was supported by the German Federal Ministry of Research (BMBF) by future cluster QSENS and projects DE-Brill (No. 13N16207), SPINNING, DIAQNOS (No. 13N16463), quNV2.0 (No. 13N16707), QR.X and Quamapolis (No. 13N15375), DLR via project QUASIMODO (No.50WM2170), Deutsche Forschungsgemeinschaft (DFG) via Projects No. 386028944, No. 445243414, and No. 387073854 and Excellence Cluster POLiS, BMBF via project EXTRASENS (No. 13N16935), European Union’s HORIZON Europe program via projects QuantERA II (No. 101017733), QuMicro (No. 101046911), SPINUS (No. 101135699), CQuENS (No. 101135359), QCIRCLE (No. 101059999), and FLORIN (No. 101086142), European Research Council (ERC) via Synergy grant HyperQ (No. 856432), Carl-Zeiss-Stiftung via the Center of Integrated Quantum Science and technology (IQST) and project Utrasens-Vir, as well as the Baden-W¨urttemberg Foundation. A.R. acknowledges the support of ERC grant QRES, project number 770929, Quantera grant MfQDS, ISF, the Schwartzmann university chair and the Israeli Innovation Authority under the project “Quantum Computing Infrastructures”. spin coherence time in isotopically engineered diamond, Nature Materials [2009](https://doi.org/10.1038/nmat2420) 8:5 8, 383 (2009). [8] G. De Lange, Z. H. Wang, D. Rist`e, V. V. Dobrovitski, and R. Hanson, Universal dynamical decoupling of a single solid-state spin from a spin bath, Science [330,](https://doi.org/10.1126/science.1192739) 60 (2010). [9] B. Naydenov, F. Dolde, L. T. Hall, C. Shin, H. Fed der, L. C. L. Hollenberg, F. Jelezko, and J. Wrachtrup, Dynamical decoupling of a single-electron spin at room temperature, Phys. Rev. B 83, 081201(R) (2011). [10] T. Sriarunothai, S. W¨olk, G. S. Giri, N. Friis, V. Dunjko, H. J. Briegel, and C. Wunderlich, Speeding-up the decision making of a learning agent using an ion trap quantum processor, Quantum Science and [Technology](https://doi.org/10.1088/2058-9565/aaef5e) 4, 015014 (2018). [11] G. T. Genov, Y. Ben-Shalom, F. Jelezko, A. Ret zker, and N. Bar-Gill, Efficient and robust signal sensing by sequences of adiabatic chirped pulses, Phys. Rev. Res. [2,](https://doi.org/10.1103/PhysRevResearch.2.033216) 033216 (2020). [12] A. Stark, N. Aharon, A. Huck, H. A. R. El-Ella, A. Ret zker, F. Jelezko, and U. L. Andersen, Clock transition by continuous dynamical decoupling of a three-level system open, Scientific [Reports](https://doi.org/10.1038/s41598-018-31984-4) 8, 14807 (2018). [13] A. Stark, N. Aharon, T. Unden, D. Louzon, A. Huck, A. Retzker, U. L. Andersen, and F. Jelezko, Narrow-bandwidth sensing of highfrequency fields with continuous dynamical decoupling, Nature [Communications](https://doi.org/10.1038/s41467-017-01159-2) 8, 1 (2017). [14] H. S. Knowles, D. M. Kara, and M. Atat¨ure, Observ ing bulk diamond spin coherence in high-purity nanodiamonds, Nature Materials [10.1038/NMAT3805](https://doi.org/10.1038/NMAT3805) (2014). [15] L. P. Mcguinness, Y. Yan, A. Stacey, D. A. Simp son, L. T. Hall, D. Maclaurin, S. Prawer, P. Mulvaney, J. Wrachtrup, F. Caruso, R. E. Scholten, and L. C. L. Hollenberg, Quantum measurement and orientation tracking of fluorescent nanodiamonds inside living cells, Nature Nanotechnology 6, [10.1038/NNANO.2011.64](https://doi.org/10.1038/NNANO.2011.64) (2011). [16] I. Solomon, Rotary spin echoes, Phys. Rev. [Lett.](https://doi.org/10.1103/PhysRevLett.2.301) 2, 301 (1959). [17] D. L. Sage, K. Arai, D. R. Glenn, S. J. DeVience, L. M. Pham, L. Rahn-Lee, M. D. Lukin, A. Yacoby, A. Komeili, and R. L. Walsworth, Optical magnetic imaging of living cells, Nature [10.1038/nature12072](https://doi.org/10.1038/nature12072) (2013). [18] G. Kucsko, P. C. Maurer, N. Y. Yao, M. Kubo, H. J. Noh, P. K. Lo, H. Park, and M. D. Lukin, Nanometre-scale thermometry in a living cell, Nature [10.1038/nature12373](https://doi.org/10.1038/nature12373) (2013). [19] G. Balasubramanian, A. Lazariev, R. Arumugam, and D.-W. Duan, Nitrogen-vacancy color center in diamond-emerging nanoscale applications in bioimaging and biosensing, Current Opinion in [Chemical](https://doi.org/10.1016/j.cbpa.2014.04.014) Biology 20, 69 (2014). [20] M. Hirose, C. D. Aiello, and P. Cappellaro, Continuous dynamical decoupling magnetometry, Phys. Rev. A [86,](https://doi.org/10.1103/PhysRevA.86.062320) 062320 (2012). [21] C. D. Aiello, M. Hirose, and P. Cappellaro, Article composite-pulse magnetometry with a solidstate quantum sensor, Nature Communications [10.1038/ncomms2375](https://doi.org/10.1038/ncomms2375) (2013). [22] I. Baumgart, J.-M. Cai, A. Retzker, M. B. Plenio, and C. Wunderlich, Ultrasensitive magnetometer using a single atom, Phys. Rev. Lett. [116,](https://doi.org/10.1103/PhysRevLett.116.240801) 240801 (2016). [23] J.-M. Cai, B. Naydenov, R. Pfeiffer, L. P. McGuinness, K. D. Jahnke, F. Jelezko, M. B. Plenio, and A. Retzker, Robust dynamical decoupling with concatenated continuous driving, New Journal of [Physics](https://doi.org/10.1088/1367-2630/14/11/113023) 14, 113023 (2012). [24] I. Cohen, N. Aharon, and A. Retzker, Continuous dy namical decoupling utilizing time-dependent detuning, Fortschritte der [Physik](https://doi.org/https://doi.org/10.1002/prop.201600071) 65, 1600071 (2017). [25] G. T. Genov, N. Aharon, F. Jelezko, and A. Retzker, Mixed dynamical decoupling, Quantum Science and [Technology](https://doi.org/10.1088/2058-9565/ab2afd) 4, 035010 (2019). [26] A. Salhov, Q. Cao, J. Cai, A. Retzker, F. Jelezko, and G. Genov, Protecting quantum information via destructive interference of correlated noise, Phys. Rev. Lett. [132,](https://doi.org/10.1103/PhysRevLett.132.223601) 223601 (2024). [27] N. Timoney, I. Baumgart, M. Johanning, A. F. Var`on, M. B. Plenio, A. Retzker, and C. Wunderlich, Quantum gates and memory using microwave-dressed states, Nature [10.1038/nature10319](https://doi.org/10.1038/nature10319) (2011). [28] N. Aharon, M. Drewsen, and A. Retzker, General scheme for the construction of a protected qubit subspace, Phys. Rev. Lett. [111,](https://doi.org/10.1103/PhysRevLett.111.230507) 230507 (2013). [29] N. Aharon, I. Cohen, F. Jelezko, and A. Retzker, Fully robust qubit in atomic and molecular three-level systems, New Journal of [Physics](https://doi.org/10.1088/1367-2630/aa4fd3) 18, 123012 (2016). [30] A. Barfuss, J. K¨olbl, L. Thiel, J. Teissier, M. Kasperczyk, and P. Maletinsky, Phase-controlled coherent dynamics of a single spin under closed-contour interaction, Nature Physics [10.1038/s41567-018-0231-8](https://doi.org/10.1038/s41567-018-0231-8) (2018). [31] D. Burum, M. Linder, and R. Ernst, Low-power multipulse line narrowing in solid-state nmr, Journal of Magnetic [Resonance](https://doi.org/https://doi.org/10.1016/0022-2364%0x2881%0x2990200-6) (1969) 44, 173 (1981). [32] D. Nanz, M. Ernst, M. Hong, M. Ziegeweid, K. Schmidtrohr, and A. Pines, Low-power decoupling sequences for high-resolution chemicalshift and local-field nmr spectra of liquid crystals, Journal of Magnetic [Resonance,](https://doi.org/https://doi.org/10.1006/jmra.1995.1077) Series A 113, 169 (1995). [33] A. Shaka, J. Keeler, and R. Freeman, Evaluation of a new broadband decoupling sequence: Waltz-16, Journal of Magnetic [Resonance](https://doi.org/https://doi.org/10.1016/0022-2364%0x2883%0x2990035-5) (1969) 53, 313 (1983). [34] M. H. Levitt, Composite pulses, Progress in Nuclear Magnetic [Resonance](https://doi.org/10.1016/0079-6565%0x2886%0x2980005-X) Spectroscopy 18, 61 (1986) [35] G. T. Genov, D. Schraft, T. Halfmann, and N. V. Vi tanov, Correction of Arbitrary Field Errors in Population Inversion of Quantum Systems by Universal Composite Pulses, Physical Review [Letters](https://doi.org/10.1103/PhysRevLett.113.043001) 113, 043001 (2014). [36] A. M. Souza, G. A. ´Alvarez, and D. Suter, Robust dynamical decoupling, Philosophical Transactions of the Royal Society A: [Mathematical,](https://doi.org/10.1098/RSTA.2011.0355) Ph [37] B. T. Torosov, S. Gu´erin, and N. V. Vitanov, High-Fidelity Adiabatic Passage by Composite Sequences of Chirped Pulses, Physical Review [Letters](https://doi.org/10.1103/PhysRevLett.106.233001) 106, 233001 (2011). [38] G. T. Genov, D. Schraft, N. V. Vitanov, and T. Halfmann, Arbitrarily Accurate Pulse Sequences for Robust Dynamical Decoupling, Physical Review [Letters](https://doi.org/10.1103/PhysRevLett.118.133202) 118, 133202 (2017). [39] T. Gullion, D. B. Baker, and M. S. Conradi, New, compensated carr-purcell sequences, Journal of Magnetic [Resonance](https://doi.org/https://doi.org/10.1016/0022-2364%0x2890%0x2990331-3) (1969) 89, 479 (1990). [40] A. Maudsley, Modified carr-purcell-meiboom-gill sequence for nmr fourier imaging applications, Journal of Magnetic [Resonance](https://doi.org/https://doi.org/10.1016/0022-2364%0x2886%0x2990160-5) (1969) 69, 488 (1986). [41] S. Schmitt, T. Gefen, F. M. St¨urner, T. Unden, G. Wolff, C. M¨uller, J. Scheuer, B. Naydenov, M. Markham, S. Pezzagna, J. Meijer, I. Schwarz, M. Plenio, A. Retzker, L. P. McGuinness, and F. Jelezko, Submillihertz magnetic spectroscopy performed with a nanoscale quantum sensor, Science [356,](https://doi.org/10.1126/science.aam5532) 832 (2017). [42] S. R. Hartmann and E. L. Hahn, Nuclear double resonance in the rotating frame, Phys. Rev. [128,](https://doi.org/10.1103/PhysRev.128.2042) 2042 (1962). [43] D. L. Sage, K. Arai, D. R. Glenn, S. J. DeVience, L. M. Pham, L. Rahn-Lee, M. D. Lukin, A. Yacoby, A. Komeili, and R. L. Walsworth, Optical magnetic imaging of living cells, Nature [10.1038/nature12072](https://doi.org/10.1038/nature12072) (2013). [44] Supplemental material at link, which includes refs. [45– 52] and more details on the theory of continuous phased dynamical decoupling; an analysis of the effect of pulse errors; slope and variance detection for quantum sensing; details on spurious harmonics and how to suppress them using randomized phases; a detailed description of the sample preparation and experimental setup; additional experimental results, including an analysis of the sensitivity and dynamic range. [45] A. Bruns, G. T. Genov, M. Hain, N. V. Vitanov, and T. Halfmann, Experimental demonstration of composite stimulated raman adiabatic passage, Phys. Rev. A [98,](https://doi.org/10.1103/PhysRevA.98.053413) 053413 (2018). [46] C. Findler, J. Lang, C. Osterkamp, M. Nesl´adek, and F. Jelezko, Indirect overgrowth as a synthesis route for superior diamond nano sensors, Scientific Reports [10.1038/s41598-020-79943-2](https://doi.org/10.1038/s41598-020-79943-2) (2020). [47] J. M. Binder, A. Stark, N. Tomek, J. Scheuer, F. Frank, K. D. Jahnke, C. M¨uller, S. Schmitt, M. H. Metsch, T. Unden, T. Gehring, A. Huck, U. L. Andersen, L. J. Rogers, and F. Jelezko, Qudi: A modular python suite for experiment control and data processing, SoftwareX [6,](https://doi.org/10.1016/J.SOFTX.2017.02.001) 85 (2017). [48] N. Staudenmaier, A. Vijayakumar-Sreeja, G. Genov, D. Cohen, C. Findler, J. Lang, A. Retzker, F. Jelezko, and S. Oviedo-Casado, Optimal sensing protocol for statistically polarized nano-nmr with nv centers, Phys. Rev. Lett. [131,](https://doi.org/10.1103/PhysRevLett.131.150801) 150801 (2023). [49] B. A. Myers, A. Ariyaratne, and A. C. B. Jayich, Double-quantum spin-relaxation limits to coherence of near-surface nitrogen-vacancy centers, Phys. Rev. Lett. [118,](https://doi.org/10.1103/PhysRevLett.118.197201) 197201 (2017). [50] T. Gefen, A. Rotem, and A. Retzker, Overcoming resolution limits with quantum sensing, Nature [Communications](https://doi.org/10.1038/s41467-019-12817-y) 10, 4992 (2019). [51] T. H¨aberle, T. Oeckinghaus, D. Schmid-Lorch, M. Pfender, F. F. de Oliveira, S. A. Momenzadeh, A. Finkler, and J. Wrachtrup, Nuclear quantum-assisted magnetometer, Review of Scientific Instruments 88, 013702 (2017). [52] J. M. Taylor, P. Cappellaro, L. Childress, L. Jiang, D. Budker, P. Hemmer, A. Yacoby, R. Walsworth, and M. Lukin, High-sensitivity diamond magnetometer with nanoscale resolution, Nature Physics 4, 810 (2008). [53] Z.-Y. Wang, J. E. Lang, S. Schmitt, J. Lang, J. Casanova, L. McGuinness, T. S. Monteiro, F. Jelezko, and M. B. Plenio, Randomization of pulse phases for unambiguous and robust quantum sensing, Phys. Rev. Lett. [122,](https://doi.org/10.1103/PhysRevLett.122.200403) 200403 (2019). [54] M. W. Doherty, F. Dolde, H. Fedder, F. Jelezko, J. Wrachtrup, N. B. Manson, and L. C. L. Hollenberg, Theory of the ground-state spin of the nv <sup>−</sup> center in diamond, Phys. Rev. B [85,](https://doi.org/10.1103/PhysRevB.85.205203) 205203 (2012). [55] T. L¨uhmann, N. Raatz, R. John, al, T.-J. Shao, Q.-L. Zhang, L. Robledo, H. Bernien, T. van der Sar, and R. Hanson, Spin dynamics in the optical cycle of single nitrogen-vacancy centres in diamond control of high-harmonic generation from periodic asymmetric lattices spin dynamics in the optical cycle of single nitrogen-vacancy centres in diamond, New Journal of [Physics](https://doi.org/10.1088/1367-2630/13/2/025013) 13, 25013 (2011). [56] J. Harrison, M. J. Sellars, and N. B. Manson, Measurement of the optically induced spin polarisation of n-v centres in diamond, Diamond and Related [Materials](https://doi.org/10.1016/J.DIAMOND.2005.12.027) 15, 586 (2006). [57] C. M¨uller, X. Kong, J.-M. Cai, K. Melentijevi´c, A. Stacey, M. Markham, D. Twitchen, J. Isoya, S. Pezzagna, J. Meijer, J. F. Du, M. B. Plenio, B. Naydenov, L. P. Mcguinness, and F. Jelezko, Article nuclear magnetic resonance spectroscopy with single spin sensitivity, Nature Communications [10.1038/ncomms5703](https://doi.org/10.1038/ncomms5703) (2014). [58] P. J. Vetter, A. Marshall, G. T. Genov, T. F. Weiss, N. Striegler, E. F. Großmann, S. Oviedo-Casado, J. Cerrillo, J. Prior, P. Neumann, and F. Jelezko, Zeroand low-field sensing with nitrogen-vacancy centers, Phys. Rev. Appl. [17,](https://doi.org/10.1103/PhysRevApplied.17.044028) 044028 (2022). [59] H. Fedder, F. Dolde, F. Rempp, T. Wolf, P. Hem mer, F. Jelezko, and J. Wrachtrup, Towards t 1limited magnetic resonance imaging using rabi beats, Appl Phys B [102,](https://doi.org/10.1007/s00340-011-4408-4) 497 (2011). [60] N. Staudenmaier, A. Vijayakumar-Sreeja, S. Oviedo Casado, G. Genov, D. Cohen, D. Dulog, T. Unden, N. Striegler, A. Marshall, J. Scheuer, C. Findler, J. Lang, I. Schwartz, P. Neumann, A. Retzker, and F. Jelezko, Power-law scaling of correlations in statistically polarised nano-nmr, npj Quantum [Information](https://doi.org/10.1038/s41534-022-00632-1) 8, 120 (2022). [61] N. Staudenmaier, S. Schmitt, L. P. McGuinness, and F. Jelezko, Phase-sensitive quantum spectroscopy with high-frequency resolution, Phys. Rev. A [104,](https://doi.org/10.1103/PhysRevA.104.L020602) L020602 (2021). [62] J. O. Orwa, C. Santori, K. M. C. Fu, B. Gibson, D. Simpson, I. Aharonovich, A. Stacey, A. Cimmino, P. Balog, M. Markham, D. Twitchen, A. D. Greentree, R. G. Beausoleil, and S. Prawer, Engineering of nitrogen-vacancy color centers in high purity diamond by ion implantation and annealing, Journal of Applied [Physics](https://doi.org/10.1063/1.3573768) 109, 083530 (2011). [63] C. Osterkamp, J. Lang, J. Scharpf, C. M¨uller, L. P. McGuinness, T. Diemant, R. J. Behm, B. Naydenov, and F. Jelezko, Stabilizing shallow color centers in diamond created by nitrogen delta-doping using sf6 plasma treatment, Applied Physics Letters 106, 113109 (2015). [64] J. Hadden, J. Harrison, A. C. Stanley-Clarke, L. Marseglia, Y.-L. Ho, B. Patton, J. L. OBrien, <sup>´</sup> and J. Rarity, Strongly enhanced photon collection from diamond defect centers under microfabricated integrated solid immersion lenses, Applied Physics Letters 97, 241901 (2010). [65] P. Siyushev, F. Kaiser, V. Jacques, I. Gerhardt, S. Bischof, H. Fedder, J. Dodson, M. Markham, D. Twitchen, F. Jelezko, et al., Monolithic diamond optics for single photon detection, Applied Physics Letters 97, 241902 (2010). [66] J. F. Barry, J. M. Schloss, E. Bauch, M. J. Turner, C. A. Hart, L. M. Pham, and R. L. Walsworth, Sensitivity optimization for nv-diamond magnetometry, Reviews of Modern Physics 92, 015004 (2020). SUPPLEMENTAL MATERIAL TO “ROBUST NOISE SUPPRESSION AND QUANTUM SENSING BY CONTINUOUS PHASED DYNAMICAL DECOUPLING” S.1. DETAILED THEORY OF CPDD A. Continuous Dynamical Decoupling In order to introduce the mechanism of CPDD, we first describe the theory of sensing by continuous dynamical decoupling (CDD) [1, 2, 4–9, 12–15, 17, 19–21, 43]. We consider the Hamiltonian H = <sup>ω0</sup> 2 <sup>σz</sup> <sup>+ Ωcos(ωt + φ)σx + g cos (ωLt + ξ)σz,</sup> <sup>(S.1)</sup> where ω0 is the Bohr transition frequency, Ωand ω are the Rabi frequency and carrier (angular) frequency of the driving field with a phase φ, and ωL = Ω+ ∆is the (angular) frequency of the signal (e.g., equal to the Larmor frequency of the proton spins in the hydrogen bath in our nano-NMR experiment) and ∆is its detuning from the Rabi frequency Ω, g is the signal amplitude, and ξ is its unknown (random) phase. In the case of an artificial signal, the latter could be generated by an oscillating magnetic field B cos (ωLt + ξ). The value of g = γNVB/2, where γNV is the gyromagnetic ratio of the NV center electron spin, when the detector qubit consists of the |0⟩ and | − 1⟩ ground states of the electron spin of an NV center, as in our case (or is a spin 1/2 system, in general). In comparison, g = γNVB when the detector qubit consists of the |± 1⟩ ground states of the NV center on the so called double-quantum transition [49]. We then move to the interaction basis with respect to H0 <sup>(1)</sup> = ωσz/2. Typically, the carrier frequency is equal to the qubit transition frequency ω = ω0, as assumed in the main text, but we do not assume this below to account for possible carrier frequency detuning δ = ω−ω0 in the following analysis. We obtain after applying the rotating wave approximation (Ω ≪ ω0) ωLσx/2 = (Ω+ ∆)σx/2 and we obtain H2 = U0 <sup>(2)</sup> 0 <sup>(2)(t)†H1,φU (2)</sup> 0 <sup>(t) −</sup> <sup>iU (2)</sup> 0 <sup>(t)†∂tU (2)</sup> 0 <sup>(t)</sup> (S.4) = − <sup>∆</sup> 2 <sup>∆</sup> 2 <sup>σx +</sup> <sup>g</sup> 2 <sup>(cos (ξ)σz</sup> <sup>−</sup> <sup>sin (ξ)σy),</sup> where U0 <sup>(2)(t) = Rx (ωLt) and we neglected the fast oscil-</sup> lating terms at frequency 2ωL, assuming g ≪ ωL, δ ≪ ωL and ∆ ≪ ωL. Since the Hamiltonian is constant in this basis, we can obtain an exact analytic solution. The time evolution of the system resembles detuned Rabi oscillations with the difference that the basis is rotated around the y axis from the standard case, which one can obtain by the transformation σx →−σz, σz → σx. In the case of Hartmann-Hahn resonance ωL = Ω, i.e., the detuning ∆= 0, we observe oscillations in the population of the x state of this basis with a frequency of g. Specifically, the time evolution of the Hamiltonian in Eq. (S.4) is determined by the propagator U2(t) = exp (−iH2t) = R−ξ(z,y) (Θ) = Rx (ξ) Rz (Θ) Rx (−ξ) = Rz (Θ) = cos (Θ/2)σ0 − i sin (Θ/2)σz, (S.5) where R−ξ(z,y) (Θ) = exp [−iΘ(cos(ξ)σz - sin (ξ)σy] is an operator for rotation around an axis at angle −ξ in the z − y plane of the Bloch sphere in this basis, Θ = gt, and σ0 is the identity operator. In the last two equalities we assumed ξ = 0 for simplicity of presentation and without loss of generality. We note that the rectified signal for CDD and CPDD differs significantly from the case of standard pulsed DD where the accumulated phase is 0 <sup>2g| cos(∆t′)|t.</sup> ′ ≈ π4 <sup>gt</sup> <sup>(see</sup> <sup>Fig.</sup> <sup>1</sup> <sup>in</sup> <sup>the</sup> maingiven text).by Θ ≡The <sup>�</sup> <sup>t</sup> main reason is that the effect of the sig 0 <sup>2g| cos(∆t′)|t.</sup> ′ ≈ π4 <sup>t</sup> main reason is H1 = U0 <sup>(1)</sup> 0 <sup>(1)(t)†HsU (1)</sup> 0 <sup>(t) −</sup> <sup>iU (1)</sup> 0 <sup>(t)†∂tU (1)</sup> 0 <sup>(t)</sup> (S.2) 0 <sup>2g| cos(∆t′)|t.</sup> ′ ≈ π4 <sup>gt</sup> <sup>(see</sup> <sup>Fig.</sup> <sup>1</sup> <sup>in</sup> <sup>the</sup> maingiven text).by Θ ≡The <sup>�</sup> <sup>t</sup> main reason is that the effect of the signal is sensed during the application of the driving field for CDD and CPDD, in contrast to pulsed DD, where the signal is sensed mainly by its effect during the free evolution time between the pulses. The oscillations due to the sensed field can be observed stroboscopically in the bare basis at times that correspond to ωLt = nπ, n is even. Specifically, the propagator in the rotating basis at ω0, defined in Eq. (S.2), takes the form 2 <sup>δ</sup> <sup>σz</sup> <sup>+</sup> <sup>Ω</sup> 2 <sup>(cos (φ)σx + sin (φ)σy)</sup> = − 2 <sup>δ</sup> + g cos (ωLt + ξ)σz, where U0 <sup>(1)(t) = exp</sup> �−iH0 <sup>(1)t</sup> �. We can then rotate our basis to take into account the phase φ and obtain 0 <sup>(1)(t) = exp</sup> �−iH0 <sup>(1)</sup> take into account U1(t) = Rz(φ)U0 <sup>(2)</sup> 0 <sup>(2)(t)U2(t)U (2)</sup> 0 <sup>†</sup> (0)Rz <sup>†</sup> where U0 <sup>(1)</sup> H1,φ = Rz(φ) <sup>†</sup> H1Rz(φ) (S.3) = − 2 <sup>δ</sup> <sup>σz</sup> <sup>+</sup> <sup>Ω</sup> 2 <sup>σx + g cos (ωLt + ξ)σz,</sup> where the rotation operator is defined as Rk(φ) ≡ exp (−iφσk/2), k = x, y, z. The next step involves moving to the rotating frame with respect to H0 <sup>(2)</sup> = Rz(φ)U0 <sup>(2)(t)U2(t)U (2)</sup> 0 <sup>†</sup> (0)Rz <sup>†(φ)</sup> = Rz(φ)Rx (ωLt) U2(t)Rx (0) Rz(−φ) = (−1) <sup>k</sup> Rz(φ)Rz (Θ)Rz(−φ) = (−1) <sup>n/2</sup> Rz(Θ), (S.6) where we assumed that the evolution started at time t = 0 for all equations, and ξ = 0 and ωLt = nπ, n is even, in the last two equalities. Thus, on resonance the time evolution in the rotating basis at ω0, defined by the Hamiltonian in Eq. (S.1) corresponds to the time evolution in the basis of Eq. (S.4) up to an overall phase shift. If the phase φ is constant, it can be accounted for and the amplitude g can be inferred stroboscopically from the time evolution in the rotating basis at frequency ω0. B. Continuous Phased Dynamical Decoupling CPDD uses the phase φ of the driving field as a control parameter to compensate for amplitude and frequency noise, e.g., due to environment or magnetic field changes. The effect of the phase changes is not trivial for sensing and we first analyze it for the simplest case of a single phase change from φ1 to φ2 at time t1. Then, the propagator from t = 0 to time t - t1 in the rotating basis at ω0 takes the form propagator becomes U1(t) = Rz(φ2)Rx (ωLt) U2(t − t1)Rx (−π) (S.9) Rz(−∆φ1)Rx (π) U2(t1)Rx (0) Rz(−φ1) = Rz(φ2)Rx (ωLt) Rz(Θ − Θ1) Rz(∆φ1)Rz(Θ1)Rx (0) Rz(−φ1). = Rz(φ2)Rx (ωLt) Rz(∆φ1)Rz(Θ)Rx (0) Rz(−φ1) = −Rz(2∆φ1)Rz(Θ), where we assumed that the evolution started at time t = 0 for all equations, and ξ = 0 and ωLt = 2π in the last equality. In case of multiple phase changes, the subsequent ones should then be done at equal time intervals πk/ωL, k ∈ N after the first phase change. Hence, the propagator becomes (S.10) U1(t) = (−1) <sup>n</sup> Rz  2 n/2 �k=1 ∆φ2k   Rz(Θ), n is even, U1(t) = Rz(φ2)U0 <sup>(2)</sup> <sup>(2)</sup> 0 (t1)Rz <sup>†</sup> 0 <sup>(t)U2(t −</sup> <sup>t1)U (2)†</sup> z <sup>†(φ2)</sup> (S.7) Rz(φ1)U0 <sup>(2)</sup> 0 <sup>(2)(t1)U2(t1)U (2)</sup> 0 <sup>†</sup> (0)Rz <sup>†</sup> Rz(φ1)U0 <sup>(2)(t1)U2(t1)U (2)</sup> 0 <sup>†</sup> (0)Rz <sup>†(φ1)</sup> = Rz(φ2)Rx (ωLt) U2(t − t1)Rx (−ωLt1) Rz(φ1 − φ2)Rx (ωLt1) U2(t1)Rx (0) Rz(−φ1). In order to understand the effect of a phase change we consider the commutator [Rx (−ωLt1) Rz(−∆φ1)Rx (ωLt1), U2(t1)] = 2 - Θ2 1)] = (S.8) where ∆φ2k = φ2k − φ2k−1 and we assumed that we have an even number n of the constant phase intervals. It is evident that the propagator is the same as the one of CDD in Eq. (S.6), apart from a cumulative phase shift, which can easily be accounted for or made zero by the choice of the relative phase shifts. In summary, the possibility to apply arbitrary phase changes in CPDD leads to selectivity with respect to the initial phase of the signal and the selectivity condition is similar as for standard pulsed DD schemes [6]. Finally, we note that we can choose the “good” initial phase ξ of the signal by shifting the whole CPDD sequence in time. We only need to change the duration of the first pulse period to satisfy ωLt1 +ξ = 0 (mod π) and apply the subsequent phase changes at intervals of T = πk/ωL, k ∈ N. The phase selectivity of the protocol implies that, unlike standard CDD, it is directly applicable in synchronized sensing schemes, e.g., the Qdyne protocol, which are typically limited only by the coherence time of the signal or a classical clock [41]. S.2. ANALYSIS OF THE EFFECT OF PULSE ERRORS ON CDD AND CPDD We analyze the impact of pulse errors by considering their effect in the absence of the sensed field. Then, the imperfect propagator determines the interaction frame of the sensed field in the Hamiltonian in Eq. (S.4) and pulse errors lead to loss of contrast. This is also the case when the detuning ∆is much larger than g, so the effect of the sensed field on the evolution due to the Hamiltonian in Eq. (S.4) can be neglected. We consider the Hamiltonian of the qubit with eigenstates |0⟩ and | − 1⟩ in Eq. (S.2) without a sensed field. In general, δ, Ωand φ can also be time dependent. This Hamiltonian corresponds to the Lt1) sin = 2i sin(ωLt1 + ξ) sin )Rx ( - ∆2φ1 where ∆is zero whenφ1 = φthe2 −phaseφ1. It isis constant,evident that thei.e., ∆φcommutator= 0, which corresponds to the standard case of CDD or when there is no sensed field, i.e., Θ = 0. In the more general case of arbitrary phase changes ∆φ1̸ = 0 and in the presence of a sensed field, the commutator will be zero when ωLt1 + ξ = 0 (mod π), i.e., the phase changes ∆φ should take place at the times when the waveform of the signal g(t) has a phase 0 (mod π). On the contrary, the commutator will be non-zero for the σy signal component in Eq. (S.4), e.g., for a signal with an initial phase ξ = π/2. Then, this component of the signal will experience more complex time-evolution and will usually be suppressed by the CPDD sequence. Thus, the application of arbitrary phase changes in CPDD allows for selective detection of signals with initial phase ξ = 0 and suppression of signals with initial phase ξ = π/2, in contrast to standard CDD. For example, the condition that the commutator is zero is satisfied for an initial phase ξ = 0 and t1 = T = π/ωL = π/Ω. Then, the Fidelity 0  0 1 00 CXY8 ing time dependence during this analysis, except for the RWA, coherent evolution, and the assumption that effect of the pulse and free evolution before and after the pulse on the qubit is the same during each pulse (except for the effect of the phase φk). Thus, the propagator of the k-th pulse in the bare basis takes the form U (φk) = √ǫeiα� √1 − ǫe−i(β+φk) - √ǫe−iα� - <sup>√</sup> 1 − ǫe <sup>i(β+φk)</sup> . (S.12) Frequency detuning error / L FIG. S.1. Simulation of fidelity vs. variation in the detuning error of the carrier frequency ω of the applied driving field from the transition frequency ω0 of the sensor qubit, i.e., δ/ωL = (ω − ω0)/ωL and the amplitude error of the driving field from the target Rabi frequency ωL, i.e., (Ω - ωL)/ωL = −∆/ωL for: (left) continuous drive (labeled CX) with a target pulse area A = ωLt = 8π and (right) the respective CXY8 robust sequence with the same target pulse area. The fidelity calculation assumes the approximation of static frequency and amplitude noise and no sensed field. Hamiltonian in Eq. (2) in the main text but includes the additional noise term δ and no sensed field. The propagator that characterizes the evolution of the qubit can in general be parameterized by [35, 38, 45] Assuming coherent evolution during a sequence of n pulses with different initial phases φk, the propagator of the composite sequence then becomes U <sup>(n)</sup> = U (φn) . . . U (φ1), (S.13) and the phases φk of the individual pulses can be used as control parameters to achieve a robust performance. We can evaluate the latter by considering the fidelity [36, 38] <sup>1</sup> U0 <sup>(n)</sup> 2 <sup>Tr</sup> �� , (S.14) F = <sup>1</sup> 2 0 <sup>(n)</sup> U <sup>(n)</sup> �† where U0 <sup>(n)</sup> is the propagator of the respective pulse se quence when ǫ = 0, i.e., when the pulse performs a perfect population inversion. For example, the fidelity of a single pulse is given by F = <sup>√</sup> 1 − ǫ. We note that this measure of fidelity does not take into account variation in the phase β, which is important when we apply an odd number of pulses. However, the latter is fully compensated when we apply an even number of pulses with perfect transition probability. Thus, we use the fidelity measure in Eq. (S.14) as it usually provides a simple and sufficient measure of performance when we apply an even number of pulses. We can obtain the fidelity of a sequence of eight pulses with zero phases, i.e., φk = 0, which is given by U = √ǫeiα √1 − ǫe−iβ - √ǫe−iα - <sup>√</sup> 1 − ǫe <sup>iβ</sup> , (S.11) where p ≡ 1−ǫ is the transition probability, i.e., the probability that the qubit will be transferred to state | − 1⟩ if it was initially in state |0⟩, ǫ ∈ [0, 1] is the unknown error in the transition probability, α and β are unknown phases. In case of a perfect pulse, the transition probability becomes p = 1 and ǫ = 0. However, this is often not the case, e.g., due to frequency or amplitude drifts or inhomogeneity, which make ǫ̸ = 0. For example, an amplitude error of ∆/ωL = (ωL − Ω)/ωL = 5 % from the target Rabi frequency of ωL (Hartmann-Hahn resonance) leads to ǫ = 1 − cos <sup>2</sup> (∆t/2) ≈ 0.06 for a target ωLt = π pulse, assuming δ = 0. Such errors can be compensated by applying phased sequences of pulses, where the phases of the subsequent pulses are chosen to cancel the errors of the individual pulses up to a certain order [35, 38, 45]. If the pulses are time separated, the propagator of the whole cycle [free evolution for time τ/2 - pulse− free α + δτ, where we assumed that δ is constant during one evolution for time τ/2 ] changes by taking α → α� = [τ/2 − pulse − τ/2] period. Although the pulse separa following analysis to emphasize that the error compentionsationis isideallypresentzeroevenwithif theCPDD,pulseswearewilltime-separated.use α� in the Additionally, a shift in the phase φk at the beginning of a pulse leads to β → β + φk [35, 38]. We note that we made no assumption of the pulse shape and detun Additionally, the fidelity of the widely used XY8 sequenceF(φk=0) = 1 − 32 cos(α�) <sup>4</sup> ǫ − O(ǫ <sup>2</sup> ). (S.15) [36] with phases (0, 1, 0, 1, 1, 0, 1, 0) π/2 is (S.16) UsuallyFXY8 the= 1 −transition4 [cos (α�) + cos (3probabilityα�)] <sup>2</sup> errorǫ <sup>3</sup> - Ois(ǫquite <sup>4</sup> ). small, i.e., ǫ ≪ 1, e.g., ǫ = 1 − cos <sup>2</sup> (∆t/2) ≈ 0.006 for a target ωLt = π pulse and ∆/ωL = 0.05, assuming δ = 0, so the error in the fidelity (1 − F ) of the XY8 sequence (∼ ǫ <sup>3</sup> ) will be much smaller than the one of the sequence with constant zero phases (∼ ǫ). A numerical simulation of the fidelity of the continuous (labeled CX) drive and the XY8 sequence with zero pulse separation (labeled CXY8) is shown in Fig. S.1. The simulation shows that CXY8 is significantly more robust than the standard continous decoupling. Similarly, one can show that we can obtain a robust performance and even better fidelity with other sequences of phased pulses, e.g., by using the KDD or UR sequences [35, 36, 38, 45]. Additionally, the fidelity of the widely used XY8 sequenceF(φk=0) = 1 − 32 cos(α�) <sup>4</sup> ǫ − O(ǫ <sup>2</sup> ). (S.15) (S.16) UsuallyFXY8 the= 1 −transition4 [cos (α�) + cos (3probabilityα�)] <sup>2</sup> errorǫ <sup>3</sup> - Ois(ǫquite <sup>4</sup> ). small, (a) (b) (c) (d) CX CXY8 CX CXY8 CX CXY8 CX CXY8 CX CXY8 CX CXY8 (e) (f) (g) (h) CX CXY8 CX CXY8 FIG. S.2. Simulation of CDD and CPDD for sensing, showing the population of state |0⟩) for standard CDD (labeled CX) and CPDD (with the CXY8 sequence) with phase changes applied at time intervals of T = 62.5 ns, corresponding to the parameters for high field sensing in the experimental section. The gray curve shows the expected oscillation in the ideal case when ∆= 0 for both protocols. The sensed field has an amplitude of g = 2π 11.7 kHz, angular frequency ωL = 2π 8 MHz, and initial phase ξ = 0. The sensor qubit is initially prepared in the |0⟩ state, e.g., by optical pumping. (a) When the Rabi frequency of the driving field Ω= ωL = 2π 8 MHz, one can observe oscillations of the population P = cos(Θ(t)/2), where Θ = gt, for both the CX and CXY8 sequences. (b-h) When the Rabi frequency differs from the sensed frequency, i.e., ∆= Ω - ωL̸ = 0, the oscillations due to the sensed field are quickly lost with CDD, i.e. for the CX sequence, even with small ∆ ≈ 2π 10 kHz, which is of the order of the coupling strength g. On the contrary CPDD with the CXY8 sequence allows for a much more robust performance and efficient sensing, e.g., even for ∆= 2π 400 kHz, by using the time intervals of the phase changes as a control parameter. The data for all simulations are taken stroboscopically at intervals of 0.5 µs, which correspond to the duration of one CXY8 sequence on resonance. Finally, we demonstrate the robustness of CPDD for sensing the amplitude g ≈ 2π 11.7 kHz of a weak oscillating field. The results from a numerical simulation and experiments are shown in Fig. 2 in the main text and the details for the simulation results are demonstrated in Fig. S.2. Figure S.2 shows that when the Rabi frequency of the driving field is equal to the frequency of the sensed field, i.e., Ω= ωL = 2π 8 MHz, we observe oscillations of the population of state |0⟩ for both CX and CXY8 with P = cos(Θ(t)/2), where Θ = gt. The oscillations are quickly lost with CX even with small ∆ ≈ 2π 20 kHz, i.e., of the order of the coupling strength g. On the contrary, with CXY8 the robustness is improved by more than twenty times, as we observe oscillations even for ∆= 2π 400 kHz. S.3. SLOPE AND VARIANCE DETECTION WITH CPDD In this section, we analyze how CPDD can be used for the detection of a weak oscillating signal. We consider a measurement, which consists of the microwave pulse sequence π/2(x) pulse - dynamical decoupling (DD) π/2(φ) pulse, where DD can be pulsed, continuous, or CPDD and the phase φ of the last π/2 pulse can be varied. If we apply the dynamical decoupling sequence on resonance, we observe Rabi oscillations, characterized with a pulse area Θ, which can be observed directly in the bare basis, as evident from Eq. (S.5) and Eq. (S.10). On resonance, the pulse area Θ = 2κgt cos(ξ), where the attenuation factor κ = 2/π for pulsed dynamical decoupling and κ = 1/2 for CPDD [6]. In the following, we consider the application of CPDD for slope/linear and variance detection [6] and compare its performance to standard techniques. A. Slope/linear detection Slope/linear detection is usually applicable when the initial phase ξ of the sensed field, e.g., B cos (ωst + ξ), is fixed at the beginning of each measurement [6]. The measurement protocol for determining the amplitude B is as described above with the phase of the last π/2 pulse alternating between 90 <sup>◦</sup> and −90 <sup>◦</sup>, i.e., we apply π/2(±y) pulses. The population of state |0⟩ of the NV electron spin with the last π/2(±y) pulses is then pthe0 =fluorescence difference <sup>1</sup> 2 <sup>∓</sup> 2 <sup>1</sup> <sup>sin (Θ).</sup> <sup>The</sup> <sup>normalized</sup> from the two measurements is <sup>signal</sup> <sup>contrast</sup> <sup>from</sup> then [48, 60] c = cmaxe <sup>−Γ(t)</sup> sin (Θ) = cmaxe <sup>−Γ(t)</sup> sin (κγNVBt cos (ξ)) ≈ cmaxe <sup>−Γ(t)</sup> κγNVBt cos (ξ), (S.17) where cmax is the maximum contrast, Γ(t) accounts for decoherence during the duration t of the decoupling sequence, and Θ = 2κgt cos(ξ) = κγNVBt cos (ξ), as g = γNVB/2 in our experiment. The last approximation is valid only for small Θ ≪ 1. One can estimate the amplitude of the oscillating magnetic field by fitting the observed Rabi oscillations, similar to the experiment in Fig. 2 in the main text with Θ = κγNVBt cos (ξ). Another approach is to detect a change in the signal from a reference point of the measurement, which corresponds to a well-known value of B. Slope or linear detection is typically used to detect a perturbation in a signal with a constant initial phase [6]. The optimal reference point is when p0 = 1/2 [6], i.e., Θ = πk, k ∈ Z. Then, the expected change in the contrast dc due to a small perturbation dB is given by dc = −cmaxe <sup>−Γ(t)</sup> cos (Θ = πk) dΘ = ∓cmaxe <sup>−Γ(t)</sup> κγNVt cos (ξ) dB, (S.18) where the chosen measurement time duration is typically close to t = T2/2 for the best sensitivity, given a typical decay function Γ(t) with coherence time T2 [6]. It is evident that the detection mechanism of CPDD is similar to the one of the standard pulsed techniques with the main difference being the attenuation factor κ. B. Variance detection When the initial phase and/or amplitude of the detected oscillating signal fluctuate from measurement to measurement it is advantageous to detect the signal variance. We then consider a measurement, which consists of the microwave pulse sequence π/2(x) pulse - dynamical decoupling (DD) - π/2(±x) pulse, where DD can be pulsed, continuous, or CPDD. If we apply the respective sequence on resonance, we observe Rabi oscillations with a pulse area Θ, which can be observed directly in the bare basis, as evident from Eq. (S.5) and Eq. (S.10). The population of state |0⟩ of the NV electron spin with thenormalizedlast π/2(signal±x) pulsescontrastis thenfromp0the= fluorescence <sup>1</sup> 2 <sup>∓</sup> <sup>1</sup> 2 <sup>cos (Θ).</sup> differ- <sup>The</sup> ence from the two measurements is [60] c = cmaxe <sup>−Γ(t)</sup> cos (Θ) . (S.19) Multiple readouts are performed and we average the result, which leads to (S.20) c = cmaxe <sup>−Γ(t)</sup> ⟨cos (Θ)⟩ . First, we consider the case of detecting the amplitude of a signal B cos (ωst + ξ) with a constant amplitude B and random initial phase ξ. The variance of the magnetic field is ≡ Brms <sup>2</sup> <sup>=</sup> <sup>⟨(B cos (ωst + ξ))2⟩</sup> <sup>=</sup> <sup>B2/2</sup> <sup>with</sup> �B(t) <sup>2�</sup> rms�B( <sup>being</sup> t) <sup>2�</sup> is ≡ Brms <sup>2</sup> <sup>=</sup> <sup>⟨(B cos (ωst + ξ))2⟩</sup> <sup>=</sup> <sup>B2/2</sup> <sup>with</sup> Brms <sup>2</sup> �B( <sup>being</sup> t) <sup>2�</sup> <sup>the</sup> <sup>root-mean-square</sup> <sup>magnetic</sup> <sup>field.</sup> The contrast takes the form ≡ B <sup>2</sup> (S.21) c = cmaxe <sup>−Γ(t)</sup> ⟨cos (κγNVBt cos (ξ))⟩ = cmaxe <sup>−Γ(t)</sup> J0 (κγNVBt) NV <sup>2</sup> <sup>B2t2/4),</sup> ≈ cmaxe <sup>−Γ(t)</sup> (1 − κ <sup>2</sup> γNV <sup>2</sup> = cmaxe <sup>−Γ(t)</sup> (1 − κ <sup>2</sup> γNV <sup>2</sup> rms <sup>2</sup> <sup>t2/2),</sup> NV <sup>2</sup> <sup>B2</sup> where J0 is the Bessel function of the first kind of zeroth order and the approximation is valid only for small γNVBt ≪ 1. We can detect the amplitude of the oscillating signal by fitting the experimental values to the expected decay in Eq. (S.21) when we vary the duration t of the decoupling sequence, e.g., as demonstrated in Fig. S.5. Next, we consider the case when both the amplitude and the phase of the signal vary from experiment to experiment. For example, this is the case when the proton signal we observe is due to statistical polarization in the detection volume of the NV center. We assume that the magnetic field, generated by the sample due to statistical polarization is given by [50, 60] B(t) = A cos (ωst) + D sin (ωst), (S.22) where A, D ∼ N (0, Brms) the normal distribution with zero mean and standard deviation Brms, so the variance of the magnetic field is = Brms <sup>2</sup> <sup>.</sup> <sup>When</sup> <sup>we</sup> <sup>apply</sup> a DD sequence on resonance�B(t) <sup>2</sup> we <sup>�</sup> can typically sense only A cos (ωst). The accumulated phase Θ follows a Gaussian distribution, centred at zero with a variance ⟨Θ <sup>2</sup> ⟩, so we obtain resonance�B(t) <sup>2</sup> we <sup>�</sup> = B <sup>2</sup> c = cmaxe <sup>−Γ(t)</sup> ⟨cos (Θ)⟩ = cmaxe <sup>−Γ(t)</sup> exp −⟨Θ <sup>2</sup> ⟩/2 rms <sup>2</sup> <sup>t2/2</sup> = cmaxe <sup>−Γ(t)</sup> exp −κ <sup>2</sup> γ <sup>2</sup> NV NV <sup>2</sup> <sup>B2</sup> rms <sup>2</sup> <sup>t2/2</sup> ≈ cmaxe <sup>−Γ(t) �</sup> rms <sup>2</sup> <sup>=</sup> <sup>κ2γ2</sup> 1 − κ <sup>2</sup> γNV <sup>2</sup> <sup>B2</sup> , (S.23) where we used that ⟨Θ <sup>2</sup> ⟩≡ Θrms <sup>2</sup> <sup>=</sup> <sup>κ2γ</sup> NV <sup>2</sup> <sup>⟨B2⟩t2</sup> <sup>with</sup> ⟨B <sup>2</sup> ⟩ = Brms <sup>2</sup> <sup>.</sup> <sup>The</sup> <sup>last</sup> <sup>approximation</sup> <sup>is</sup> <sup>valid</sup> <sup>only</sup> <sup>for</sup> where we used that ⟨Θ <sup>2</sup> ⟩≡ Θ <sup>2</sup> ⟨B <sup>2</sup> ⟩ = Brms <sup>2</sup> <sup>.</sup> <sup>The</sup> <sup>last</sup> <sup>approximation</sup> <sup>is</sup> <sup>valid</sup> <sup>only</sup> <sup>for</sup> small ⟨Θ <sup>2</sup> ⟩. We detect Brms by fitting the experimental values to the decay function in Eq. (S.23) when we vary the duration t of the decoupling sequence. Similar to linear detection, the performance of CPDD for variance detection is similar to the one of the standard pulsed techniques with the main difference being the attenuation factor κ. S.4. SPURIOUS HARMONICS Similar to pulsed dynamical decoupling [3], the effect of the signal during sensing can produce spurious harmonics, which depend on the applied sequence of phase CXY4 - CXY4 R - FIG. S.3. Simulated spectra showing the population of state |0⟩ as a function of the detection (angular) frequency of CPDD π/T in units of ωL with phase changes at time intervals T, which varied between 100 and 400 ns with the Rabi frequency Ω= π/T . The sensed field has an angular frequency ωL = 2π 2 MHz, an amplitude of g = 2π 20 kHz, and initial phase ξ = 0. The ratio g/Ω= 0.01 on resonance and the total number of 480 pulses correspond to the respective parameters in simulations of spurious harmonics with pulsed DD in [3]. The sensor qubit is initially prepared in state |0⟩, e.g., by optical pumping. CPDD with the CXY4 sequence shows the expected spurious harmonics at 2ωL/3 and 2ωL, similar to pulsed DD with XY4 [3]. CPDD with the CXY4R, which uses phase randomization, allows one to suppress these harmonics almost completely, similar to pulsed DD [53]. The simulation with randomized phases is performed by adding a random phase to each of the 120 sequences in a single experiment and running the simulation 640 times. The incomplete suppression around 2ωL/3 is most likely due to the limited number of runs and the higher ratio g/Ω. changes (see Fig. S.3). Since the signal is sensed by its effect during the sequence, the spurious harmonics can be comparable to the main one. This is evident in the simulation in Fig. S.3, where the black curve shows the expected spurious harmonics with CPDD with the CXY4 sequence at 2ωL/3 and 2ωL, in a similar way to pulsed dynamical decoupling with XY4 [3]. CPDD with the CXY4R, which uses phase randomization, allows one to suppress these harmonics almost completely, in a similar way to pulsed DD [53]. The simulation parameters correspond to the respective spurious harmonics with pulsed DD in Ref. [3]. S.5. SAMPLE PREPARATION Two diamond samples where used for the experiments. For the measurements shown Figure 3 of the main text the diamond sample is an electronic grade, type IIa synthetic diamond featuring an isotopically enriched <sup>12</sup> C layer of ≈ 250 µm thickness. The layer with an isotopic purity of 99.999 % was grown by Element Six using chemical vapor deposition. To create shallow NV cen ters suitable for the detection of hydrogen spins on the diamond surface, ion implantation was employed using nitrogen ions with 98 % <sup>15</sup> N isotopic abundance. An ion energy of 2.5 keV was chosen to yield NV centers at typical5 × 10 <sup>8</sup> depths15cmN <sup>2</sup> + <sup>results in</sup> of 8 ± 2 <sup>single, isolated NV centers.</sup> nm [46]. A nitrogen ion dose <sup>After</sup> of ion implantation the sample was annealed in ultra high vacuum with pressures below 1 × 10 <sup>−7</sup> mbar at 1000 <sup>◦</sup> C for 3 hours to mobilize the created vacancies and allow for NV center creation with a yield of 0.7 %. Before each processing step, the sample was boiled several hours in a 1:1:1 mixture of sulfuric, perchloric and nitric acid to remove any graphitic or organic residues from the surface. The NV is about d = (10.1 ± 0.5) nm deep in the diamond, which we estimated by measuring the variance of the fluctuating NMR magnetic field at its location with XY8 dynamical decoupling [57]. For the other measurements a diamond sample that is fabricated into a solid immersion lens by Element Six is used. It was overgrown with a 100-nm-thick layer of isotopically purified <sup>12</sup> C (99.999 %). The NV centers here were incorporated during the growth of the <sup>12</sup> C layer. S.6. EXPERIMENTAL SETUP We perform the experiments at two different magnetic fields. The low magnetic field was chosen to be Bz = (485 ± 1) G, close to the excited state level anticrossing, as the inherent nitrogen is polarized, and the fluorescence is more sensitive to field fluctuations. This makes it a convenient field to work with experimentally. Additionally, as we compare results for different detuning from the signal frequency, it is expedient to reduce any possible effect of another hyperfine transition which could result in a somewhat different Rabi frequency. We note that this effect is likely to be small even for nonpolarized nitrogen at our higher magnetic field where we apply a Rabi frequency of (2π) 8 MHz as the hyperfine splitting is only ≈ (2π) 3 MHz for <sup>15</sup> N. All MW pulses for the experimental sequences were generated in direct synthesis by a Keysight (M8195A) and Tektronix (AWG70001A) arbitrary waveform generators, using a Python based in house written software (Qudi) [47]. The measurement sequences are programmed to keep the phase relation between all pulses in the rotating frame and the high sampling rate of the AWGs (50 and 60 GS/s) allows to have precise direct control of the signal phases. The instantaneous rise time of the devices allows for a bandwidth as the inverse of twice the sampling rate. For the CDD sequence, we first prepare φ1 = π/2 with respect to the phase (φ = 0) of the initial π/2 pulse used to prepare the electron spin in a superposition state. For both the XY8-N and CXY8-N sequences, φ1...8 = [0, <sup>π</sup> 2 <sup>, 0,</sup> <sup>π</sup> 2 <sup>,</sup> <sup>π</sup> 2 <sup>, 0,</sup> <sup>π</sup> 2 <sup>, 0]</sup> <sup>and</sup> <sup>then</sup> <sup>the</sup> <sup>phase</sup> <sup>repeats</sup> <sup>itself</sup> <sup>N</sup> times. An external test signal is applied via the same antenna (a) CXY8- _N_ Laser ��x� ��y� XY8- _N_ ��x� _N_ XY8- _N_ ��y� τ �2�x� T �2�x� τ Ω(t) �2�� x� Laser _N_ �2��x� Laser . . . Ω Laser . . . ��x� ��y� ��x� (b) (c) CXY8 (d) (e) CXY8 CXY8 CXY8 FIG. S.4. (a) Pulse scheme for the CXY8-N and XY8-N measurements for frequency sensing. We use a laser to prepare the electron spin of an NV center in state |0⟩ by optical pumping and read out its final state. We prepare a coherent superposition state by a microwave π/2 pulse, apply the control scheme (CXY8 or XY8), and then another π/2 pulse with a phase that alternates, to map coherences back onto populations. The final population of state |0⟩ is estimated from the difference of the signals from the two alternating measurements, reducing errors due to charge-state and count-rate fluctuations [51].We vary T (τ ) for CXY8-N (XY8-N ) with fixed repetition number N to detect the frequency of the AC signal. (b) Measured signal,1corresponding1 to the population of state |0⟩ of the electron spin of a single NV center, vs. the detected signal frequency f = 2T <sup>(f</sup> <sup>=</sup> 2τ <sup>)</sup> <sup>for</sup> <sup>CXY8</sup> <sup>(XY8).</sup> <sup>We</sup> <sup>observe</sup> <sup>a</sup> <sup>dip</sup> <sup>at</sup> <sup>the</sup> <sup>frequency</sup> <sup>1700 kHz</sup> <sup>of</sup> <sup>the</sup> <sup>artificial</sup> <sup>signal</sup> <sup>for</sup> <sup>both</sup> <sup>CXY8-5</sup> and XY8-5 sequences, as expected from theory. The slightly lower population with XY8 than CXY8 on resonance is expected and due to the difference in the rectified signal amplitudes of the two sequences (see text). The vertical dashed lines for all subfigures show the expected full width at half maximum (FWHM) of the dip, i.e., the inverse of the sequence duration, which is FWHM ≈ 85 kHz in this case. (c) We observe the expected a dip in the population at 8000 kHz of a high frequency artificial signal, where only CXY8 is applicable. FWHM ≈ 83.3 kHz. (d) The measurement is the same as in (b) but with a lower artificial signal amplitude, which requires a higher sequence order and total sequence duration to observe a similar dip; FWHM ≈ 16.3 kHz. The additional sideband dip with XY8 does not correspond to the frequency of a real signal and is likely due to pulse errors of the non-instantaneous rectangular pulses. (e) The measurement is same as in (d) but with a lower artificial signal amplitude; FWHM ≈ 16.4 kHz due to the slightly shorter sequence duration than in (d). All experimental results show excellent correspondence to theory. as the microwave control for the NV center manipulation. To apply the test signal two different sources were used depending on whether phase control over the test signal was necessary. For the measurements with phase control, as for the ones of Figure 2(c),(d) in the main text, the signal was generated with the same AWG as the microwave control for NV center. We use an external signal from another microwave source (Rohde&Schwarz SMIQ04B) for the other measurements with an artificial oscillating signal. In this case there is no phase relationship between the measured signal and the control sequence. We use a FAST ComTec P7887 for the Qdyne measurement. The recorded photons are saved with an individual time tag of their arrival during the sweep when they oc cur. This information is stored in a file that is accessible for further analysis. In post processing the photons are filtered for the readout window of the excitation laser pulse. The (undersampled) oscillation of the test signal is imprinted onto this time trace. Because of the readout noise of the individual readout the oscillation is not directly visible but becomes evident after performing, e.g., a Fast Fourier Transform of the data, as shown in Figure 4b of the main text. S.7. ADDITIONAL EXPERIMENTAL RESULTS A. Quantum sensing of the frequency of an artificial AC field In a first series of experiments, we use a single NV center to detect the frequency of an artificially generated AC signal at frequency 1700 kHz (8000 kHz), which we label low (high) frequency for two different signal amplitudes. Figure S.4(a) shows the pulse scheme for the CXY8-N and XY8-N measurements. We use a laser to prepare the electron spin of the NV center in state |0⟩ by optical pumping and read out its final state. We prepare a coherent superposition state by a microwave π/2 pulse, apply the control scheme (CXY8 or XY8), and then use another π/2 pulse with a phase that alternates between 0 and 180 <sup>◦</sup>, to map coherences back onto populations. We estimate the final population of state |0⟩ from the difference between the signals, reducing errors due to charge-state and count-rate fluctuations [51]. All control fields originate from the same arbitrary waveform generator and amplifier. We generate the artificial external signal to be sensed from a second microwave source, so the phase of the signal at the beginning of the interaction is not fixed with respect to the control fields. We vary the interval of phase changes T (the interpulse duration τ ) for CXY8 (XY8) to detect the frequency of the AC signal, using the relation f = 21T <sup>(f</sup> <sup>=</sup> 21τ <sup>).</sup> Figure S.4(b) demonstrates frequency sensing of a relatively low frequency (1700 kHz) AC signal, which is typical for pulsed DD applications for NV centers. As expected from theory, the measured signal shows a dip in the population of state |0⟩ at the frequency 1700 kHz of the artificial signal, for both CXY8-5 and XY8-5 sequences. The slightly lower population with XY8 than CXY8 on resonance is expected from theory and is due to the corresponding difference in the rectified signal amplitudes of the two sequences, which are g/2 (2g/π) for CXY8 (XY8) with g - the amplitude of the artificial signal in angular frequency units (see the main text). The expected full width at half maximum (FWHM) of the dip also matches theory and is approximately equal to the inverse of the sequence duration 8N × 2 <sup>1</sup> f <sup>ms on reso-</sup> FIG. S.5. CXY8 order measurement with an 8 MHz test signal. The order is swept from 2 to 80 in steps of 2 with T = 0.5 µs, resulting in decoupling times from 1 µs to 40 µs. With the frequency of the oscillation the amplitude of the signal at the NV center is estimated from a fit to the function ¯c(t) = cmax J0(gt)e <sup>−(t/T2)b</sup> +offset, as per Eq. (S.21). We obtain an estimate of g = (2π)46.7 ± 0.5 kHz, where the error interval is given ± the standard error. Thus, the estimate of the AC magnetic field amplitude is B = 2g/γNV = (3.33 ± 0.04)µT. dard pulsed DD, e.g., with the XY8 sequence, cannot be applied. We observe the expected dip in the population at the frequency 8000 kHz of the artificial signal with a FWHM ≈ 8 <sup>2</sup> N <sup>f</sup> <sup>=</sup> <sup>2×</sup> 8× <sup>8000</sup> 24 <sup>= 83.3 kHz.</sup> In the next two measurements, we detected the frequency of an AC signal with a lower amplitude. The measurement details for Figs. S.4(d),(e) are the same as for Figs. S.4(b),(c), respectively, with the only difference being the order N of the respective sequence, i.e., the number of times N the whole sequence is repeated. The higher order is necessary to observe a similar dip as in (b) and (c), given a lower signal amplitude. We observe the expected dip in the population at the frequency 1700 kHz in Fig. S.4(d) for both CXY8 and XY8 with a lower FWHM ≈ 16.4 kHz due to the longer total duration of both sequences. Similarly, Fig. S.4(e) shows a population dip at 8000 kHz with FWHM ≈ 16.4 kHz. All experimental results match theory very well. B. Qdyne We also perform quantum heterodyne (Qdyne) measurements with the single NV center and an 8 MHz test signal. For details on the measurement technique see the main text and references [41, 48, 61]. First, we estimate the signal strength at the location of the NV center. For this we perform an order (N ) scan of the CXY8-N measurement with fixed T = 1/(2fL) on resonance, see Figure S.5. From a fit of the Bessel function as in equation (S.21) and the relation Θ = gt = 1/2γNVBt we determine that g = (2π)46.7 ± 0.5 kHz, nance. Thus, FWHM ≈ 8 <sup>2</sup> N <sup>f</sup> CXY8 and XY8. 2 <sup>1</sup> f <sup>ms on reso-</sup> nance. Thus, FWHM ≈ 8 <sup>2</sup> N <sup>f</sup> <sup>=</sup> <sup>2×</sup> 8× <sup>1700</sup> 5 = 85 kHz for both CXY8 and XY8. Figure S.4(c) demonstrates the application of CXY824 for detecting a high frequency AC field, where stan where the error interval is given ± the standard error. Thus, the estimate of the AC magnetic field amplitude is B = 2g/γNV = (3.33 ± 0.04)µT. Figure 4 in the main text shows the measured spectrum of the Qdyne measurement. In Figure S.6 we show further analysis of the performance of the Qdyne measurement. The analysis is done equivalently to Ref. [61]. The total measurement time is Ttot = 120 s. For the analysis we slice the data into smaller parts. The shortest time is 0.57 s (2 <sup>16</sup> samples). For every measurement time the FFT of the corresponding time trace is calculated. A Lorentzian fit of the form weighted average of the results in (d) and obtain η = (118 ± 8) nT/√Hz. Next, we note that formulas for the frequency and am √ (118 ± 8) nT/ Hz. Next, we note that formulas for the frequency and amplitude sensitivity for CPDD are the same as for pulsed dynamical decoupling, except for a difference in the signal attenuation factor κ (see also Section S.3 and Ref. [6]). One can obtain intuition by considering the photon shot noise limited sensitivity for detecting the amplitude of an oscillating magnetic field with an NV center, using standard pulsed DD sequences. The sensitivity is given by [6, 52, 66] √t + toh �Npht <sup>,</sup> (S.25) σ <sup>2</sup> L(ν) = A (ν0 − ν) <sup>2</sup> + σ <sup>2</sup> <sup>+ offset</sup> (S.24) where γNV is the NV center gyromagnetic ratio, t is the sensing time, toh is the overhead time for readout and initialization, Nph is the the average number of photons collected per measurement run, C(t) = (a−b) exp [−Γ(t)] is the expected normalized contrast with Γ(t) characterizing the respective decay due to the NV spin decoherence, a and b denote the normalized signal, which corresponds to the bright and dark states of the NV electron spin, respectively. For the NV center of the Qdyne measurements we estimate exponential decay of the signal with exp [The −average numberΓ(t)], Γ(t) = t/Tof fluorescence photons2 and coherence time Tper2 ≈readout250 µs. is Nph = 0.164 and the normalized contrast a − b = 0.32. The sensing time is t = 5 µs corresponding to order 10 of a CXY8 at 8 MHz resonance frequency, and the overhead time toh = 3.646 µs. With γNV = 2π × 28.03 MHz/mT and κ = 1/2 the theoretical photon shot noise limited sensitivity according to Eq. (S.25) is η ≈ 105 nT/√Hz. The experimental sensitivity is slightly worse due to ad 2 η(t) = γNVκC(t) with amplitude A, center frequency ν0 and half-width at half-maximum σ is performed on the data within a fixed frequency window around the frequency of the signal peak. We extract the center frequency ν0 together with its uncertainty δν0, linewidth 2σ and amplitude A directly from the fit parameters. We calculate the signalto-noise ratio (SNR) by determining the noise δA as the standard deviation of the noise floor of the FFT with SNR = δAA <sup>.</sup> <sup>While</sup> <sup>the</sup> <sup>SNR</sup> <sup>scales</sup> <sup>according to</sup> <sup>the</sup> <sup>stan-</sup> tot <sup>,</sup> <sup>where</sup> <sup>Ntot</sup> <sup>is</sup> dard quantum limit SNR ∝ <sup>√</sup> Ntot ∝ T <sup>1/2</sup> the total number of measurements, the frequency uncer tot <sup>,</sup> <sup>where</sup> <sup>Ntot</sup> <sup>is</sup> dard quantum limit SNR ∝ <sup>√</sup> Ntot ∝ T <sup>1/2</sup> the total number of measurements, the frequency uncertainty shows a different scaling. As a result of reduced tot ) and noise over measurement time (∝ 1/ <sup>√</sup> Ntot ∝ T <sup>−1/2</sup> the scaling of the linewidth as 2σ = 1/Ttot, the estima tot ) and noise over measurement time (∝ 1/ <sup>√</sup> Ntot ∝ T <sup>−1/2</sup> the scaling of the linewidth as 2σ = 1/Ttot, the estima tot . tion precision of frequency scales as δν0 ∝ T <sup>−3/2</sup> Figure S.6 demonstrates the typical time scaling for a √ tot . tion precision of frequency scales as δν0 ∝ T <sup>−3/2</sup> Figure S.6 demonstrates the typical time scaling for a Qdyne measurement [41, 61]. The linewidth 2σ of the signal decreases exactly with 1/Ttot (see Fig. S.6(a)), as expected from theory. Figure S.6(b) shows that the precision δν0 in frequency estimation scales with Ttot <sup>−3/2</sup> . precision δν0 in frequency estimation scales with Ttot <sup>−3/2</sup> . Finally, SNR increases according to the standard quantum limit as Ttot <sup>1/2,</sup> <sup>as</sup> <sup>shown</sup> <sup>in</sup> <sup>Fig.</sup> <sup>S.6(c).</sup> The estimated frequency in the main text of ν0 = 8000001.8883Hz is determined from the beat frequency TL (TL = 8.646 µs fb = |νLO − ν0| where νLO = <sup>round(ν0TL)</sup> duration of a single measurement) is a reference fre sensitivity according to Eq. (S.25) is η ≈ 105 nT/ Hz. The experimental sensitivity is slightly worse due to additional noise, that is not accounted for in Eq. (S.25). The photon shot noise limited amplitude sensitivity could be improved further by optimizing the sensing time t to minimize the expression √t+toh C(t)t <sup>.</sup> We obtain an optimal sensing time of t = T2 2 T2 T42 <sup>2</sup> 2 <sup>−</sup> <sup>toh +</sup> 2 <sup>2</sup> 4 <sup>+ 3T2toh + t</sup> oh <sup>2</sup> - ≈ <sup>T</sup> 2 <sup>2</sup> 2 <sup>2</sup> <sup>+ toh −</sup> <sup>4</sup> T <sup>t</sup> oh <sup>2</sup> 2 <sup>≈</sup> TL (TL = 8.646 µs fb = |νLO − ν0| where νLO = <sup>round(ν0TL)</sup> duration of a single measurement) is a reference frequency given by the undersampling of the signal. Deviation of about 1.9 Hz from the expected 8 MHz signal is due to different internal clock of the microwave source generating the test signal. 1 2 C. Sensitivity and dynamic range of CPDD We determine the frequency sensitivity of CPDD in combination with Qdyne by multiplying the estimated uncertainty δν0 with the adequate time scaling, ην0 = δν0 Ttot <sup>3/2,</sup> <sup>where Ttot</sup> <sup>is the</sup> <sup>total measurement time.</sup> <sup>This</sup> δν0 Ttot <sup>3/2,</sup> <sup>where Ttot</sup> <sup>is the</sup> <sup>total measurement time.</sup> <sup>This</sup> is characteristic for Qdyne, as shown in Fig. S.6(b) and [41], to obtain 32 mHz/Hz <sup>3/2</sup> . Analogously, we calculate the amplitude sensitivity ηB = SNRB0 <sup>T −</sup> tot <sup>1/2</sup> . We take the <sup>−</sup> tot <sup>1/2</sup> . We take the 128.45 µs, where the first approximation is valid for toh ≪ T2, reaching the theoretical optimum of ηopt = 26 nT/√Hz. Finally, we note that the reported sensitiv ities can be improved substantially by using NV centers with longer coherence times, which can reach up to several milliseconds [26]. Other possibilities include improving further the photon collection efficiency or using ensembles of NV centers where the average detected photon number per measurement is much higher and the effect of photon shot noise is reduced significantly [6, 66]. The signal attenuation factor for CPDD is κ = 1/2, similarly to the standard continuous dynamical decoupling protocol (see Eq. (3)) in the main text). In contrast, pulsed dynamical decoupling has a slightly better attenuation factor of κ = 2/π [6]. This effect can be compensated by a longer coherence time as the repetition rate of the spin flips can be higher with CPDD than FIG. S.6. Results of Qdyne measurement with a (3.33 ± 0.04)µT signal at 8 MHz. All results in dependence on the total measurement time Ttot. (a) The linewidth of the measured signal shows an expected 1/Ttot behavior. (b) Precision of frequency estimation scales with Ttot <sup>−3/2</sup> . We achieve 28 µHz uncertainty in 120 s measurement time and 32 mHz/Hz <sup>3/2</sup> tot <sup>−3/2</sup> . We achieve 28 µHz uncertainty in 120 s measurement time and 32 mHz/Hz <sup>3/2</sup> frequency sensitivity. (c) Scaling of the signal-to-noise ratio (SNR) with Ttot <sup>1/2</sup> frequency sensitivity. (c) Scaling of the signal-to-noise ratio (SNR) with Ttot <sup>1/2.</sup> <sup>(d)</sup> <sup>Measured</sup> <sup>sensitivity</sup> <sup>of</sup> <sup>the</sup> <sup>NV</sup> <sup>probe.</sup> <sup>The</sup> weighted average is η = (118 ± 8) nT/√Hz. √ Hz. with pulsed methods due to the negligible waiting time. CPDD also has higher fidelity in comparison to continuous decoupling, which results in improved sensitivity. The dynamic range of CPDD is similar to the one of dressed states methods, e.g., continuous dynamical de coupling, i.e., 0.1-100 MHz for electronic spins or superconducting qubits [6] with the additional advantage of improved robustness. We note that the dynamic range can be expanded substantially by combining CPDD with other techniques, similar to the possibility of sensing GHz fields with double drive continuous decoupling [23, 26].

섹션 본문 107문단 · 63,350자

(제목 없음)

1We propose and demonstrate experimentally continuous phased dynamical decoupling (CPDD), where we apply a continuous field with discrete phase changes for quantum sensing and robust compensation of environmental and amplitude noise.CPDD does not use short pulses, making it particularly suitable for experiments with limited driving power or nuclear magnetic resonance at high magnetic fields.It requires control of the timing of the phase changes, offering much greater precision than the Rabi frequency control needed in standard continuous sensing schemes.We successfully apply our method to nanoscale nuclear magnetic resonance and combine it with quantum heterodyne detection, achieving µHz uncertainty in the estimated signal frequency for a 120 s measurement.Our work expands significantly the applicability of dynamical decoupling and opens the door for a wide range of experiments, e.g., in NV centers, trapped ions or trapped atoms.

2Developments in quantum technologies are increasingly important for multiple applications in quantum computing, quantum sensing, and quantum communication.However, decoherence remains a major challenge.Pulsed dynamical decoupling (DD) addresses this problem by using sequences of short pulses to nullify the average effect of the unwanted qubit-environment interactions [1,2].However, the pulses should ideally be instantaneous to avoid spurious effects [3], which is challenging, e.g., due to heating at low temperatures or with biological samples.

3Continuous dynamical decoupling (CDD) is an alternative that does not require strong pulses but uses a continuous protecting field and has been successfully demonstrated in multiple applications [2,[4][5][6][7][8][9][10][11][12][13][14][15][16][17][18][19][20][21][22].The continuous field opens an energy gap in the dressed state basis for first order noise protection, perpendicular to the field.However, the energy gap suffers from driving field fluctuations, introducing additional noise.Concatenated CDD overcomes this issue by adding more dressing fields to iteratively compensate for amplitude noise [23].Major drawbacks of this approach are increased complexity and limited gate speed due to the small final energy gap.Other approaches include phase modulated double drive CDD, where the continuous first field is phase modulated to mimic the effect of a noiseless second field [24], combining continuous and pulsed DD [25], or using the noise correlations between driving fields to suppress noise [26].Robust CDD schemes are also possible in multi-level systems [12,22,24,[27][28][29][30] but these typi-cally involve additional overhead in terms of control parameters.This is often challenging due to, e.g., drift of the magnetic field or spatial inhomogeneity, limiting the coherence time especially at high magnetic fields, where small relative changes can lead to fast decoherence.

4In this work, we propose and implement experimentally continuous phased DD (CPDD), using a strong continuous field to suppress the effect of environmental noise to first order and apply phase changes at well defined time intervals that compensate both amplitude and environmental frequency noise errors to higher order.CPDD does not require short pulses and strong driving fields, which makes it particularly suitable for experiments that require low driving power due to temperature or setup limitations.The rotary echo protocol, where the periodic phases are 0 and π [16, 20,21], is one known example of CPDD.However, its performance is not optimal due to frequency noise, e.g., at low driving fields.Windowless sequences of π/2 pulses and composite pulses have also been applied for decoupling and refocusing of pulse errors [31][32][33][34][35].In this letter, we apply phase changes for continuous decoupling that follow robust sequences of π pulses, previously used for pulsed DD only [35][36][37][38], improving robustness to both frequency and amplitude noise.

5We demonstrate quantum sensing of a signal from an external bath of hydrogen nuclear spins at low and high magnetic fields with a single NV center in diamond.We use CPDD with the phases of the popular XY8 sequence (0, 1, 0, 1, 1, 0, 1, 0) π/2 [36,39,40], labeling the new sequence continuous XY8 (CXY8).All DD protocols perform expectedly well at low field.However, only CPDD successfully detects a signal at high magnetic field as the technique is robust against amplitude errors, while imprecise control of the Rabi frequency proves detrimental for conventional CDD.Finally, we successfully Experimental schemes for quantum sensing with pulsed, standard continuous and continuous phased dynamical decoupling with signal g cos (ωLt + ξ).Pulsed DD uses the phases of the pulses for improved robustness but each pulse should be much shorter than the half period of the signal.CDD is applicable with Ω = ωL but is sensitive to amplitude noise.CDD is applicable with Ω = ωL but is sensitive to amplitude noise.The phase changes of CPDD improve robustness.In contrast to pulsed DD, a uniform rectified signal is obtained for CDD and CPDD on resonance when the initial signal phase ξ = 0 and the phase changes are applied at intervals T = π/ωL ≈ π/Ω for CPDD.

6combine our method with quantum heterodyne detection [41], achieving µHz uncertainty in the estimated frequency.Our work expands significantly the applicability of continuous dynamical decoupling, e.g., in NV centers, trapped ions or trapped atoms.

7The system.-Magnetometry experiments measure the frequency and amplitude of a signal [6,12,13,20,21].We demonstrate CPDD for sensing of an oscillating field (see Fig. 1).We consider the Hamiltonian

8where ω 0 is the Bohr transition frequency, Ω is the Rabi frequency of the driving field with phase φ, ω L is the (angular) frequency of the signal, g is its amplitude, and ξ its unknown phase.We move to the interaction basis with respect to H

9(1) 0

10= ω 0 σ z /2 and apply the rotatingwave approximation, using Ω ≪ ω 0 , and obtain

11We move to the interaction basis with respect to the driving field Ω 2 (cos (φ)σ x + sin (φ)σ y ) and obtain

12where the detuning ∆ ≡ ω L − Ω and we neglect the fast oscillating terms at frequency 2ω L , assuming g ≪ ω L and ∆ ≪ ω L .Due to this rotating-wave approximation, the detection signal effective amplitude is g/2 ≡ κg, i.e., it is attenuated by a factor κ = 1/2 in comparison to Eq. ( 2).We note that attenuation is slightly higher than that of pulsed DD where κ pulsed = 2/π [6].When ω L = Ω, known as Hartmann-Hahn resonance [42], we observe oscillations in the population of the x state in this basis with a frequency g.However, amplitude noise in Ω leads to unwanted detuning ∆ that quickly causes decoherence for standard continuous dynamical decoupling (CDD) [2, 4-9, 12-15, 17, 19-21, 43].Since amplitude noise is relative, its effects worsen at high magnetic fields, where stronger driving is needed to match the Larmor frequency.Achieving Ω = ω L is then practically impossible, leading to detuned oscillations, loss of contrast, and estimation bias.

13CPDD applies phase changes in φ at time intervals T = π/Ω to compensate errors (see Fig. 1), using the phases of robust pulsed DD sequences, e.g., XY, Knill DD, or the universally robust (UR) DD sequences [35][36][37][38].Thus, CPDD can be regarded as a sequence of phase shifted π pulses with zero pulse separation.These allow for the fastest inversion rate of the qubit, given a peak Rabi frequency, leading to a narrowband filter for environmental noise.We sense the signal field by its effect during the pulses, as opposed to standard pulsed DD.CPDD is robust to amplitude errors as its resonance condition is T = π/ω L , akin to pulsed DD where it is τ = π/ω L (see Fig. 1).Frequency selectivity is obtained by scanning the time interval T of the phase changes, as opposed to CDD where it is necessary to scan Ω.The Hartmann-Hahn resonance condition ∆ = 0 needs to be satisfied only approximately for CPDD, so errors can be compensated, e.g., ∆ can be around 5% of Ω for a total duration 1600 T [44].We analyze the effect of errors without the sensed field.CDD applies a continuous drive ∼ σ x (see Eq. ( 2)), which we label CX.Its fidelity is F CX = 1 − O(ǫ), where ǫ is the typically small error in the transition probability of one π pulse, e.g., ǫ = 1 − cos 2 (∆t) ≈ 0.006 when ∆ = 0.05 ω L [44].The fidelity of CPDD with the CXY8 sequence is F CXY8 = 1 − O(ǫ 3 ), which is much closer to 1 than with the standard continuous decoupling.

14The effect of the phase changes on the rectified signal is not trivial as only the component g 2 cos (ξ)σ z in Eq. ( 3) is typically unaffected by them [44].Thus, CPDD has selectivity with respect to the signal initial phase, similarly to pulsed DD [6], making it directly applicable to quantum heterodyne detection (Qdyne) [41].Similarly to pulsed DD, the signal can produce sequence-dependent spurious harmonics [3], which can be comparable to the main harmonic because the signal is sensed by its effect during the driving.Such unwanted signals can be suppressed by randomized phase changes [44], as in pulsed DD [53].Experimental implementation.-Weperformed experiments on two different single Nitrogen-Vacancy centers (NV) in diamond with an isotopically enriched 12 C (99.999%) layer [44].The negative charge state of the NV center has S = 1 triplet ground state [54].We used a permanent neodymium magnet to create an external magnetic field bias aligned with the NV axis to remove the degeneracy between the | ± 1 states of the NV electron spin and to control the Larmor frequency of the hydrogen bath.We placed a copper wire on the diamond surface and used it to drive the |0 → | − 1 transition resonantly, creating an effective two-level system.An arbitrary waveform generator is used for direct generation of the sequences and precise control of the phase changes.Illumination with a green laser (518 nm), used for initialization and readout of the NV spin state, reveals a spin dependent fluorescence and favorable relaxation into state |0 [55,56].All experimental details can be found in [44].

15First, we demonstrate the robustness of CPDD for sensing the amplitude g ≈ 2π 11.7 kHz of a weak oscillating field.The results from a numerical simulation and experiments are shown in Fig. 2. When the Rabi frequency of the driving field is equal to the angular frequency of the sensed field, i.e., Ω = ω L = 2π 8 MHz, we observe oscillations of the population of state |0 for both CX and CXY8 with P = cos(Θ(t)/2), where Θ = gt.The oscillations are quickly lost with CX even with small ∆ ≈ 2π 20 kHz, i.e., of the order of the coupling strength g.On the contrary, with CXY8 the robustness is improved by more than twenty times, as we observe oscillations even for ∆ = 2π 400 kHz [44].The experimental results match the simulation very well with the worse performance of CDD in the experiment mainly due to amplitude fluctuations, which are not included in the simulation.

16In a second experiment, we detected a nano-NMR signal from the external hydrogen bath of immersion oil with a shallow (depth ≈ 10nm) NV center (Fig. 3(a)).We performed the experiment at two bias fields, parallel to the NV axis: B z = (485 ± 1)G (low field) to polarize the inherent nitrogen nuclear spin, with the Larmor frequency of the hydrogen nuclear spins ω L ≈ 2π 2.065 MHz.Second, we applied B z = (1882 ± 3)G (high field) where the Larmor frequency is ω L ≈ 2π 8.005 MHz.The inherent nitrogen nuclear spin is not polarized then but the effect is negligible due to the high Rabi frequency and the decoupling sequences [58].At low field, the Rabi frequency was roughly 2π 14 MHz for pulsed DD.Hence, ωL Ω ≈ 0.14, giving a good approximation for instantaneous pulses.Figure 3(b) shows the level scheme and the Hartmann-Hahn resonance condition for CDD. Figure 3(c-e) shows the results of three different sequences in the low field regime.In all cases the hydrogen dip is clearly visible with a difference in dip size as expected from theory [44].

17At high field, the necessary shorter time spacing between pulses limited the microwave Rabi frequency to around 2π 12 MHz due to heating.Therefore, we could not assume instantaneous pulses for pulsed DD.Thus, we only performed continuous drive sequences at high field.Figure 3(f-h) shows a dip in fluorescence due to hydrogen, which was visible only with CXY8, even though we used a longer interaction time for standard CX.This is due to the better frequency selectivity of CXY8 as its control parameter is the time interval of the phase changes T .In contrast, the CX requires ω L = Ω, depending on the microwave Rabi frequency, which suffers from amplitude noise, mainly due to power fluctuations [59].In our experiments, the vertical resolution of the arbitrary waveform generator is 8 − bit, resulting in a 30 − 40 kHz error in the Rabi frequency, making it practically impossible to lock the driving frequency on a signal with a frequency width of about 40 kHz.On the contrary, the CXY8 resonance condition allows a Rabi frequency error of more than ±5% around ω L (see Fig. 2 and [44]).Thus, the frequency selectivity is determined by the time digitization of the driving signal, i.e., 65 GHz, resulting in a much smaller error than the experimental requirements.We note that the broader width of the proton dip in the high field experiment is due to the larger magnetic noise and diffusion broadening [60].When Ω = ωL the interaction between the NV and the hydrogen bath leads to a dip in fluorescence for CX.The resonance condition for XY8 (CXY8) is τ = π/ωL (T = π/ωL), see Fig. 1.Experimental results for (c) DD spectra in the low field regime.The larger dip for CX is due to its longer interaction time.The label (C)XY8-N shows that the sequence is repeated N times.CXY8-16-4 denotes a CXY8-16 sequence where we did not vary Ω continuously as we varied T but it took only four values 2π{1.9, 2, 2.1, 2.2} MHz, demonstrating CXY8 robustness.DD order scan (d) off-resonant and (e) resonant with the Larmor frequency at low field; (f) DD spectrum in the high field regime.No contrast is observed for CX even though a longer interaction time is used than for CXY8.DD order scan (g) off-resonant and (h) resonant with the Larmor frequency at high field.In (h) we included the off-resonant CX plot due to negligible difference from CX on resonance, as shown in (f).The respective interaction times used in (c) and (f) are marked in plots (d,e) and (g,h) with gray (CX) and red (CXY8), vertical, dashed lines.

18Finally, we combined CPDD with quantum heterodyne detection (Qdyne), achieving µHz frequency uncertainty with a 120 s measurement for nano-scale high-frequency sensing.Figure 4(a) shows the scheme of Qdyne.We apply CXY8 on resonance with Ω ≈ 2π 8 MHz and T = π/Ω = 62.5 ns.During the sequence the qubit acquires a phase, which depends on the signal phase ξ at the beginning of each CXY8 sequence [44].The spin population is sampled at fixed time intervals T L such that the signal phase ξ changes by a constant increment.We record individually the number of detected photons and the time of detection during the laser pulses.The experiment takes 120 s and consists of 13.9×10 6 measurements.We perform a fast Fourier transform of the recorded photon trace and observe a signal with a beat frequency of f b = 19.4328391kHz ±4.4 mHz (see Fig. 4(b)), which corresponds to an estimated frequency of 8000001.8883Hz ±4.4 mHz.We achieve δν 0 ≈ 28 µHz frequency uncertainty for T tot = 120 s measurement time, which can be further reduced by prolonging T tot and is mainly limited by the coherence time of the clock.The frequency sensitivity of CXY8 with Qdyne is η ν0 = δν 0 T 3/2 tot = 32 mHz/Hz 3/2 and the amplitude sensitivity

19Hz [44].These values are comparable to previous results with Qdyne [61] and can be further improved by optimizing the measurements for reaching maximum sensitivity, which goes beyond the scope of our proof-of-principle demonstration.

20Discussion.-The sensitivity of CPDD and pulsed DD differ by their signal attenuation factor κ = 1/2 and κ pulsed = 2/π, respectively (see Eq. ( 3) and [6,44]).The dynamic range of CPDD is similar to the one of dressed states methods e.g., continuous dynamical decoupling [6], and is 0.1-100 MHz for electronic spins or superconducting qubits [6] with the additional advantage of improved robustness.It can be expanded by incorporating a second driving field to sense GHz frequencies, similar to double drive continuous decoupling [23,26].The sensitivities can be improved even further by engineering of the host diamond properties to obtain NV centers with longer coherence times [62,63], enhancing photon collection efficiency [44,64,65] or with ensembles of NV centers [66].Furthermore, CPDD can be modified to perform robust quantum gates.As their speed is limited by the frequency difference of the eigenstates of the last dressed qubit, CPDD will be faster than alternative continuous robust schemes like concatenated CDD [23].

21Conclusion.-We proposed and demonstrated experimentally robust noise suppression and quantum sensing by continuous phase shifted dynamical decoupling.We applied a continuous driving field to reduce the effect of environmental noise to first order.Discrete phase changes at well defined time intervals compensate both amplitude and environmental noise errors to higher order and increase the robustness of the technique.CPDD does not require short pulses and high driving fields unlike pulsed DD, making it suitable for applications with limited driving power due to thermal constraints, or when high magnetic fields are required, and the Larmor frequency of the sensed spins approaches the maximum achievable Rabi frequency, rendering pulsed DD inefficient.The presented technique can also compensate for detuning and microwave field inhomogeneity in ensemble NV sensing applications.A major advantage of CPDD is that it requires control of the time intervals of phase changes, which is much easier than control of the Rabi frequency, as demonstrated in our experiments.Finally, we have shown that CPDD is compatible with high-resolution, synchronized measurement schemes like Qdyne, demonstrating quantum sensing with µHz frequency uncertainty.In order to introduce the mechanism of CPDD, we first describe the theory of sensing by continuous dynamical decoupling (CDD) [1, 2, 4-9, 12-15, 17, 19-21, 43].

22We consider the Hamiltonian

23where ω 0 is the Bohr transition frequency, Ω and ω are the Rabi frequency and carrier (angular) frequency of the driving field with a phase φ, and ω L = Ω + ∆ is the (angular) frequency of the signal (e.g., equal to the Larmor frequency of the proton spins in the hydrogen bath in our nano-NMR experiment) and ∆ is its detuning from the Rabi frequency Ω, g is the signal amplitude, and ξ is its unknown (random) phase.In the case of an artificial signal, the latter could be generated by an oscillating magnetic field B cos (ω L t + ξ).The value of g = γ NV B/2, where γ NV is the gyromagnetic ratio of the NV center electron spin, when the detector qubit consists of the |0 and | − 1 ground states of the electron spin of an NV center, as in our case (or is a spin 1/2 system, in general).In comparison, g = γ NV B when the detector qubit consists of the |± 1 ground states of the NV center on the so called double-quantum transition [49].

24We then move to the interaction basis with respect to H

25(1) 0 = ωσ z /2.Typically, the carrier frequency is equal to the qubit transition frequency ω = ω 0 , as assumed in the main text, but we do not assume this below to account for possible carrier frequency detuning δ = ω−ω 0 in the following analysis.We obtain after applying the rotating wave approximation (Ω ≪ ω 0 )

26where U

27(1)

280 t .We can then rotate our basis to take into account the phase φ and obtain

29where the rotation operator is defined as R k (φ) ≡ exp (−iφσ k /2) , k = x, y, z.The next step involves moving to the rotating frame with respect to H

30(2) 0 = ω L σ x /2 = (Ω + ∆)σ x /2 and we obtain

31where U

32(2) 0 (t) = R x (ω L t) and we neglected the fast oscillating terms at frequency 2ω L , assuming g ≪ ω L , δ ≪ ω L and ∆ ≪ ω L .Since the Hamiltonian is constant in this basis, we can obtain an exact analytic solution.The time evolution of the system resembles detuned Rabi oscillations with the difference that the basis is rotated around the y axis from the standard case, which one can obtain by the transformation

33In the case of Hartmann-Hahn resonance ω L = Ω, i.e., the detuning ∆ = 0, we observe oscillations in the population of the x state of this basis with a frequency of g.Specifically, the time evolution of the Hamiltonian in Eq. (S.4) is determined by the propagator

34where R −ξ(z,y) (Θ) = exp [−iΘ(cos (ξ)σ z − sin (ξ)σ y ] is an operator for rotation around an axis at angle −ξ in the z − y plane of the Bloch sphere in this basis, Θ = gt, and σ 0 is the identity operator.In the last two equalities we assumed ξ = 0 for simplicity of presentation and without loss of generality.We note that the rectified signal for CDD and CPDD differs significantly from the case of standard pulsed DD where the accumulated phase is given by Θ ≡ t 0 2g| cos (∆t ′ )|t .′ ≈ 4 π gt (see Fig. 1 in the main text).The main reason is that the effect of the signal is sensed during the application of the driving field for CDD and CPDD, in contrast to pulsed DD, where the signal is sensed mainly by its effect during the free evolution time between the pulses.

35The oscillations due to the sensed field can be observed stroboscopically in the bare basis at times that correspond to ω L t = nπ, n is even.Specifically, the propagator in the rotating basis at ω 0 , defined in Eq. (S.2), takes the form

36where we assumed that the evolution started at time t = 0 for all equations, and ξ = 0 and ω L t = nπ, n is even, in the last two equalities.Thus, on resonance the time evolution in the rotating basis at ω 0 , defined by the Hamiltonian in Eq. (S.1) corresponds to the time evolution in the basis of Eq. (S.4) up to an overall phase shift.If the phase φ is constant, it can be accounted for and the amplitude g can be inferred stroboscopically from the time evolution in the rotating basis at frequency ω 0 .

B. Continuous Phased Dynamical Decoupling

37CPDD uses the phase φ of the driving field as a control parameter to compensate for amplitude and frequency noise, e.g., due to environment or magnetic field changes.The effect of the phase changes is not trivial for sensing and we first analyze it for the simplest case of a single phase change from φ 1 to φ 2 at time t 1 .Then, the propagator from t = 0 to time t > t 1 in the rotating basis at ω 0 takes the form

38In order to understand the effect of a phase change we consider the commutator

39where ∆φ 1 = φ 2 − φ 1 .It is evident that the commutator is zero when the phase is constant, i.e., ∆φ = 0, which corresponds to the standard case of CDD or when there is no sensed field, i.e., Θ = 0.

40In the more general case of arbitrary phase changes ∆φ 1 = 0 and in the presence of a sensed field, the commutator will be zero when ω L t 1 + ξ = 0 (mod π), i.e., the phase changes ∆φ should take place at the times when the waveform of the signal g(t) has a phase 0 (mod π).On the contrary, the commutator will be non-zero for the σ y signal component in Eq. (S.4), e.g., for a signal with an initial phase ξ = π/2.Then, this component of the signal will experience more complex time-evolution and will usually be suppressed by the CPDD sequence.Thus, the application of arbitrary phase changes in CPDD allows for selective detection of signals with initial phase ξ = 0 and suppression of signals with initial phase ξ = π/2, in contrast to standard CDD.For example, the condition that the commutator is zero is satisfied for an initial phase ξ = 0 and t 1 = T = π/ω L = π/Ω.Then, the propagator becomes

41where we assumed that the evolution started at time t = 0 for all equations, and ξ = 0 and ω L t = 2π in the last equality.

42In case of multiple phase changes, the subsequent ones should then be done at equal time intervals πk/ω L , k ∈ N after the first phase change.Hence, the propagator becomes

43where ∆φ 2k = φ 2k − φ 2k−1 and we assumed that we have an even number n of the constant phase intervals.It is evident that the propagator is the same as the one of CDD in Eq. (S.6), apart from a cumulative phase shift, which can easily be accounted for or made zero by the choice of the relative phase shifts.

44In summary, the possibility to apply arbitrary phase changes in CPDD leads to selectivity with respect to the initial phase of the signal and the selectivity condition is similar as for standard pulsed DD schemes [6].Finally, we note that we can choose the "good" initial phase ξ of the signal by shifting the whole CPDD sequence in time.We only need to change the duration of the first pulse period to satisfy ω L t 1 +ξ = 0 (mod π) and apply the subsequent phase changes at intervals of T = πk/ω L , k ∈ N. The phase selectivity of the protocol implies that, unlike standard CDD, it is directly applicable in synchronized sensing schemes, e.g., the Qdyne protocol, which are typically limited only by the coherence time of the signal or a classical clock [41].

S.2. ANALYSIS OF THE EFFECT OF PULSE ERRORS ON CDD AND CPDD

45We analyze the impact of pulse errors by considering their effect in the absence of the sensed field.Then, the imperfect propagator determines the interaction frame of the sensed field in the Hamiltonian in Eq. (S.4) and pulse errors lead to loss of contrast.This is also the case when the detuning ∆ is much larger than g, so the effect of the sensed field on the evolution due to the Hamiltonian in Eq. (S.4) can be neglected.We consider the Hamiltonian of the qubit with eigenstates |0 and | − 1 in Eq. (S.2) without a sensed field.In general, δ, Ω and φ can also be time dependent.This Hamiltonian corresponds to the Hamiltonian in Eq. ( 2) in the main text but includes the additional noise term δ and no sensed field.The propagator that characterizes the evolution of the qubit can in general be parameterized by [35,38,45]

46where p ≡ 1−ǫ is the transition probability, i.e., the probability that the qubit will be transferred to state | − 1 if it was initially in state |0 , ǫ ∈ [0, 1] is the unknown error in the transition probability, α and β are unknown phases.In case of a perfect pulse, the transition probability becomes p = 1 and ǫ = 0.However, this is often not the case, e.g., due to frequency or amplitude drifts or inhomogeneity, which make ǫ = 0.For example, an amplitude error of ∆/ω L = (ω L − Ω)/ω L = 5 % from the target Rabi frequency of ω L (Hartmann-Hahn resonance) leads to ǫ = 1 − cos 2 (∆t/2) ≈ 0.06 for a target ω L t = π pulse, assuming δ = 0.Such errors can be compensated by applying phased sequences of pulses, where the phases of the subsequent pulses are chosen to cancel the errors of the individual pulses up to a certain order [35,38,45].

47If the pulses are time separated, the propagator of the whole cycle [ free evolution for time τ /2 − pulse− free evolution for time τ /2 ] changes by taking α → α = α + δτ , where we assumed that δ is constant during one [τ /2 − pulse − τ /2] period.Although the pulse separation is ideally zero with CPDD, we will use α in the following analysis to emphasize that the error compensation is present even if the pulses are time-separated.Additionally, a shift in the phase φ k at the beginning of a pulse leads to β → β + φ k [35,38].We note that we made no assumption of the pulse shape and detun-ing time dependence during this analysis, except for the RWA, coherent evolution, and the assumption that effect of the pulse and free evolution before and after the pulse on the qubit is the same during each pulse (except for the effect of the phase φ k ).Thus, the propagator of the k-th pulse in the bare basis takes the form

48Assuming coherent evolution during a sequence of n pulses with different initial phases φ k , the propagator of the composite sequence then becomes

49and the phases φ k of the individual pulses can be used as control parameters to achieve a robust performance.We can evaluate the latter by considering the fidelity [36,38]

50where U

51(n) 0

52is the propagator of the respective pulse sequence when ǫ = 0, i.e., when the pulse performs a perfect population inversion.For example, the fidelity of a single pulse is given by F = √ 1 − ǫ.We note that this measure of fidelity does not take into account variation in the phase β, which is important when we apply an odd number of pulses.However, the latter is fully compensated when we apply an even number of pulses with perfect transition probability.Thus, we use the fidelity measure in Eq. (S.14) as it usually provides a simple and sufficient measure of performance when we apply an even number of pulses.We can obtain the fidelity of a sequence of eight pulses with zero phases, i.e., φ k = 0, which is given by

53Additionally, the fidelity of the widely used XY8 sequence [36] with phases (0, 1, 0, 1, 1, 0, 1, 0) π/2 is

54Usually the transition probability error is quite small, i.e., ǫ ≪ 1, e.g., ǫ = 1 − cos 2 (∆t/2) ≈ 0.006 for a target ω L t = π pulse and ∆/ω L = 0.05, assuming δ = 0, so the error in the fidelity (1 − F ) of the XY8 sequence (∼ ǫ 3 ) will be much smaller than the one of the sequence with constant zero phases (∼ ǫ).A numerical simulation of the fidelity of the continuous (labeled CX) drive and the XY8 sequence with zero pulse separation (labeled CXY8) is shown in Fig. S.1.The simulation shows that CXY8 is significantly more robust than the standard continous decoupling.Similarly, one can show that we can obtain a robust performance and even better fidelity with other sequences of phased pulses, e.g., by using the KDD or UR sequences [35,36,38,45].b-h) When the Rabi frequency differs from the sensed frequency, i.e., ∆ = Ω − ωL = 0, the oscillations due to the sensed field are quickly lost with CDD, i.e. for the CX sequence, even with small ∆ ≈ 2π 10 kHz, which is of the order of the coupling strength g.On the contrary CPDD with the CXY8 sequence allows for a much more robust performance and efficient sensing, e.g., even for ∆ = 2π 400 kHz, by using the time intervals of the phase changes as a control parameter.The data for all simulations are taken stroboscopically at intervals of 0.5 µs, which correspond to the duration of one CXY8 sequence on resonance.

55Finally, we demonstrate the robustness of CPDD for sensing the amplitude g ≈ 2π 11.7 kHz of a weak oscillating field.The results from a numerical simulation and experiments are shown in Fig. 2 in the main text and the details for the simulation results are demonstrated in Fig. S.2. Figure S.2 shows that when the Rabi frequency of the driving field is equal to the frequency of the sensed field, i.e., Ω = ω L = 2π 8 MHz, we observe oscillations of the population of state |0 for both CX and CXY8 with P = cos(Θ(t)/2), where Θ = gt.The oscillations are quickly lost with CX even with small ∆ ≈ 2π 20 kHz, i.e., of the order of the coupling strength g.On the contrary, with CXY8 the robustness is improved by more than twenty times, as we observe oscillations even for ∆ = 2π 400 kHz.

S.3. SLOPE AND VARIANCE DETECTION WITH CPDD

56In this section, we analyze how CPDD can be used for the detection of a weak oscillating signal.We consider a measurement, which consists of the microwave pulse sequence π/2(x) pulse -dynamical decoupling (DD)π/2(φ) pulse, where DD can be pulsed, continuous, or CPDD and the phase φ of the last π/2 pulse can be varied.If we apply the dynamical decoupling sequence on resonance, we observe Rabi oscillations, characterized with a pulse area Θ, which can be observed directly in the bare basis, as evident from Eq. (S.5) and Eq.(S.10).On resonance, the pulse area Θ = 2κgt cos (ξ), where the attenuation factor κ = 2/π for pulsed dynamical decoupling and κ = 1/2 for CPDD [6].In the following, we consider the application of CPDD for slope/linear and variance detection [6] and compare its performance to standard techniques.

A. Slope/linear detection

57Slope/linear detection is usually applicable when the initial phase ξ of the sensed field, e.g., B cos (ω s t + ξ), is fixed at the beginning of each measurement [6].The measurement protocol for determining the amplitude B is as described above with the phase of the last π/2 pulse alternating between 90 • and −90 • , i.e., we apply π/2(±y) pulses.The population of state |0 of the NV electron spin with the last π/2(±y) pulses is then p 0 = 1 2 ∓ 1 2 sin (Θ).The normalized signal contrast from the fluorescence difference from the two measurements is then [48,60] c = c max e −Γ(t) sin (Θ) = c max e −Γ(t) sin (κγ NV Bt cos (ξ)) ≈ c max e −Γ(t) κγ NV Bt cos (ξ), (S.17) where c max is the maximum contrast, Γ(t) accounts for decoherence during the duration t of the decoupling sequence, and Θ = 2κgt cos (ξ) = κγ NV Bt cos (ξ), as g = γ NV B/2 in our experiment.The last approximation is valid only for small Θ ≪ 1.One can estimate the amplitude of the oscillating magnetic field by fitting the observed Rabi oscillations, similar to the experiment in Fig. 2 in the main text with Θ = κγ NV Bt cos (ξ).

58Another approach is to detect a change in the signal from a reference point of the measurement, which corresponds to a well-known value of B. Slope or linear detection is typically used to detect a perturbation in a signal with a constant initial phase [6].The optimal reference point is when p 0 = 1/2 [6], i.e., Θ = πk, k ∈ Z.Then, the expected change in the contrast dc due to a small perturbation dB is given by

59where the chosen measurement time duration is typically close to t = T 2 /2 for the best sensitivity, given a typical decay function Γ(t) with coherence time T 2 [6].It is evident that the detection mechanism of CPDD is similar to the one of the standard pulsed techniques with the main difference being the attenuation factor κ.

B. Variance detection

60When the initial phase and/or amplitude of the detected oscillating signal fluctuate from measurement to measurement it is advantageous to detect the signal variance.We then consider a measurement, which consists of the microwave pulse sequence π/2(x) pulse -dynamical decoupling (DD) -π/2(±x) pulse, where DD can be pulsed, continuous, or CPDD.If we apply the respective sequence on resonance, we observe Rabi oscillations with a pulse area Θ, which can be observed directly in the bare basis, as evident from Eq. (S.5) and Eq.(S.10).The population of state |0 of the NV electron spin with the last π/2(±x) pulses is then p 0 = 1 2 ∓ 1 2 cos (Θ).The normalized signal contrast from the fluorescence difference from the two measurements is [60] c = c max e −Γ(t) cos (Θ) .

61(S.19)

62Multiple readouts are performed and we average the result, which leads to c = c max e −Γ(t) cos (Θ) .(S.20)

63First, we consider the case of detecting the amplitude of a signal B cos (ω s t + ξ) with a constant amplitude B and random initial phase ξ.The variance of the magnetic field is

64rms being the root-mean-square magnetic field.The contrast takes the form c = c max e −Γ(t) cos (κγ NV Bt cos (ξ)) (S.21)

65= c max e −Γ(t) J 0 (κγ NV Bt)

66where J 0 is the Bessel function of the first kind of zeroth order and the approximation is valid only for small γ NV Bt ≪ 1.We can detect the amplitude of the oscillating signal by fitting the experimental values to the expected decay in Eq. (S.21) when we vary the duration t of the decoupling sequence, e.g., as demonstrated in Fig.

S.5.

67Next, we consider the case when both the amplitude and the phase of the signal vary from experiment to experiment.For example, this is the case when the proton signal we observe is due to statistical polarization in the detection volume of the NV center.We assume that the magnetic field, generated by the sample due to statistical polarization is given by [50,60]

68where A, D ∼ N (0, B rms ) the normal distribution with zero mean and standard deviation B rms , so the variance of the magnetic field is B(t) 2 = B 2 rms .When we apply a DD sequence on resonance we can typically sense only A cos (ω s t).The accumulated phase Θ follows a Gaussian distribution, centred at zero with a variance Θ 2 , so we obtain

69where we used that

70rms .The last approximation is valid only for small Θ 2 .We detect B rms by fitting the experimental values to the decay function in Eq. (S.23) when we vary the duration t of the decoupling sequence.Similar to linear detection, the performance of CPDD for variance detection is similar to the one of the standard pulsed techniques with the main difference being the attenuation factor κ.

S.4. SPURIOUS HARMONICS

71Similar to pulsed dynamical decoupling [3], the effect of the signal during sensing can produce spurious harmonics, which depend on the applied sequence of phase

72Simulated spectra showing the population of state |0 as a function of the detection (angular) frequency of CPDD π/T in units of ωL with phase changes at time intervals T , which varied between 100 and 400 ns with the Rabi frequency Ω = π/T .The sensed field has an angular frequency ωL = 2π 2 MHz, an amplitude of g = 2π 20 kHz, and initial phase ξ = 0.The ratio g/Ω = 0.01 on resonance and the total number of 480 pulses correspond to the respective parameters in simulations of spurious harmonics with pulsed DD in [3].The sensor qubit is initially prepared in state |0 , e.g., by optical pumping.CPDD with the CXY4 sequence shows the expected spurious harmonics at 2ωL/3 and 2ωL, similar to pulsed DD with XY4 [3].CPDD with the CXY4R, which uses phase randomization, allows one to suppress these harmonics almost completely, similar to pulsed DD [53].The simulation with randomized phases is performed by adding a random phase to each of the 120 sequences in a single experiment and running the simulation 640 times.The incomplete suppression around 2ωL/3 is most likely due to the limited number of runs and the higher ratio g/Ω.

73changes (see Fig. S.3).Since the signal is sensed by its effect during the sequence, the spurious harmonics can be comparable to the main one.This is evident in the simulation in Fig. S.3, where the black curve shows the expected spurious harmonics with CPDD with the CXY4 sequence at 2ω L /3 and 2ω L , in a similar way to pulsed dynamical decoupling with XY4 [3].CPDD with the CXY4R, which uses phase randomization, allows one to suppress these harmonics almost completely, in a similar way to pulsed DD [53].The simulation parameters correspond to the respective spurious harmonics with pulsed DD in Ref. [3].

S.5. SAMPLE PREPARATION

74Two diamond samples where used for the experiments.For the measurements shown Figure 3 of the main text the diamond sample is an electronic grade, type IIa synthetic diamond featuring an isotopically enriched 12 C layer of ≈ 250 µm thickness.The layer with an isotopic purity of 99.999 % was grown by Element Six using chemical vapor deposition.To create shallow NV cen-ters suitable for the detection of hydrogen spins on the diamond surface, ion implantation was employed using nitrogen ions with 98 % 15 N isotopic abundance.An ion energy of 2.5 keV was chosen to yield NV centers at typical depths of 8 ± 2 nm [46].A nitrogen ion dose of 5 × 10 8 15 N + cm 2 results in single, isolated NV centers.After ion implantation the sample was annealed in ultra high vacuum with pressures below 1 × 10 −7 mbar at 1000 • C for 3 hours to mobilize the created vacancies and allow for NV center creation with a yield of 0.7 %.Before each processing step, the sample was boiled several hours in a 1:1:1 mixture of sulfuric, perchloric and nitric acid to remove any graphitic or organic residues from the surface.The NV is about d = (10.1 ± 0.5) nm deep in the diamond, which we estimated by measuring the variance of the fluctuating NMR magnetic field at its location with XY8 dynamical decoupling [57].

75For the other measurements a diamond sample that is fabricated into a solid immersion lens by Element Six is used.It was overgrown with a 100-nm-thick layer of isotopically purified 12 C (99.999 %).The NV centers here were incorporated during the growth of the 12 C layer.

S.6. EXPERIMENTAL SETUP

76perform the experiments at two different magnetic fields.The low magnetic field was chosen to be B z = (485 ± 1) G, close to the excited state level anticrossing, as the inherent nitrogen is polarized, and the fluorescence is more sensitive to field fluctuations.This makes it a convenient field to work with experimentally.Additionally, as we compare results for different detuning from the signal frequency, it is expedient to reduce any possible effect of another hyperfine transition which could result in a somewhat different Rabi frequency.We note that this effect is likely to be small even for nonpolarized nitrogen at our higher magnetic field where we apply a Rabi frequency of (2π) 8 MHz as the hyperfine splitting is only ≈ (2π) 3 MHz for 15 N.

77All MW pulses for the experimental sequences were generated in direct synthesis by a Keysight (M8195A) and Tektronix (AWG70001A) arbitrary waveform generators, using a Python based in house written software (Qudi) [47].The measurement sequences are programmed to keep the phase relation between all pulses in the rotating frame and the high sampling rate of the AWGs (50 and 60 GS/s) allows to have precise direct control of the signal phases.The instantaneous rise time of the devices allows for a bandwidth as the inverse of twice the sampling rate.

78For the CDD sequence, we first prepare φ 1 = π/2 with respect to the phase (φ = 0) of the initial π/2 pulse used to prepare the electron spin in a superposition state.For both the XY8-N and CXY8-N sequences, φ 1...8 = [0, π 2 , 0, π 2 , π 2 , 0, π 2 , 0] and then the phase repeats itself N times.

79An external test signal is applied via the same antenna S.7 We use a laser to prepare the electron spin of an NV center in state |0 by optical pumping and read out its final state.We prepare a coherent superposition state by a microwave π/2 pulse, apply the control scheme (CXY8 or XY8), and then another π/2 pulse with a phase that alternates, to map coherences back onto populations.The final population of state |0 is estimated from the difference of the signals from the two alternating measurements, reducing errors due to charge-state and count-rate fluctuations [51].We vary T (τ ) for CXY8-N (XY8-N ) with fixed repetition number N to detect the frequency of the AC signal.(b) Measured signal, corresponding to the population of state |0 of the electron spin of a single NV center, vs. the detected signal frequency f = 1 2T (f = 1 2τ ) for CXY8 (XY8).We observe a dip at the frequency 1700 kHz of the artificial signal for both CXY8-5 and XY8-5 sequences, as expected from theory.The slightly lower population with XY8 than CXY8 on resonance is expected and due to the difference in the rectified signal amplitudes of the two sequences (see text).The vertical dashed lines for all subfigures show the expected full width at half maximum (FWHM) of the dip, i.e., the inverse of the sequence duration, which is FWHM ≈ 85 kHz in this case.(c) We observe the expected a dip in the population at 8000 kHz of a high frequency artificial signal, where only CXY8 is applicable.FWHM ≈ 83.3 kHz.(d) The measurement is the same as in (b) but with a lower artificial signal amplitude, which requires a higher sequence order and total sequence duration to observe a similar dip; FWHM ≈ 16.3 kHz.The additional sideband dip with XY8 does not correspond to the frequency of a real signal and is likely due to pulse errors of the non-instantaneous rectangular pulses.(e) The measurement is same as in (d) but with a lower artificial signal amplitude; FWHM ≈ 16.4 kHz due to the slightly shorter sequence duration than in (d).All experimental results show excellent correspondence to theory.

80as the microwave control for the NV center manipulation.To apply the test signal two different sources were used depending on whether phase control over the test signal was necessary.For the measurements with phase control, as for the ones of Figure 2(c),(d) in the main text, the signal was generated with the same AWG as the microwave control for NV center.We use an external signal from another microwave source (Rohde&Schwarz SMIQ04B) for the other measurements with an artificial oscillating signal.In this case there is no phase relationship between the measured signal and the control sequence.

81We use a FAST ComTec P7887 for the Qdyne measurement.The recorded photons are saved with an individual time tag of their arrival during the sweep when they oc-cur.This information is stored in a file that is accessible for further analysis.In post processing the photons are filtered for the readout window of the excitation laser pulse.The (undersampled) oscillation of the test signal is imprinted onto this time trace.Because of the readout noise of the individual readout the oscillation is not directly visible but becomes evident after performing, e.g., a Fast Fourier Transform of the data, as shown in In a first series of experiments, we use a single NV center to detect the frequency of an artificially generated AC signal at frequency 1700 kHz (8000 kHz), which we label low (high) frequency for two different signal amplitudes.Figure S.4(a) shows the pulse scheme for the CXY8-N and XY8-N measurements.We use a laser to prepare the electron spin of the NV center in state |0 by optical pumping and read out its final state.We prepare a coherent superposition state by a microwave π/2 pulse, apply the control scheme (CXY8 or XY8), and then use another π/2 pulse with a phase that alternates between 0 and 180 • , to map coherences back onto populations.We estimate the final population of state |0 from the difference between the signals, reducing errors due to charge-state and count-rate fluctuations [51].All control fields originate from the same arbitrary waveform generator and amplifier.We generate the artificial external signal to be sensed from a second microwave source, so the phase of the signal at the beginning of the interaction is not fixed with respect to the control fields.We vary the interval of phase changes T (the interpulse duration τ ) for CXY8 (XY8) to detect the frequency of the AC signal, using the relation f = 1 2T (f = 1 2τ ). Figure S.4(b) demonstrates frequency sensing of a relatively low frequency (1700 kHz) AC signal, which is typical for pulsed DD applications for NV centers.As expected from theory, the measured signal shows a dip in the population of state |0 at the frequency 1700 kHz of the artificial signal, for both CXY8-5 and XY8-5 sequences.The slightly lower population with XY8 than CXY8 on resonance is expected from theory and is due to the corresponding difference in the rectified signal amplitudes of the two sequences, which are g/2 (2g/π) for CXY8 (XY8) with g -the amplitude of the artificial signal in angular frequency units (see the main text).The expected full width at half maximum (FWHM) of the dip also matches theory and is approximately equal to the inverse of the sequence duration 8N × 1 2f ms on resonance.Thus, FWHM ≈ 2f 8N = 2×1700 8×5 = 85 kHz for both CXY8 and XY8.We obtain an estimate of g = (2π)46.7 ± 0.5 kHz, where the error interval is given ± the standard error.Thus, the estimate of the AC magnetic field amplitude is B = 2g/γNV = (3.33 ± 0.04)µT.

82dard pulsed DD, e.g., with the XY8 sequence, cannot be applied.We observe the expected dip in the population at the frequency 8000 kHz of the artificial signal with a FWHM ≈ 2f 8N = 2×8000 8×24 = 83.3kHz.In the next two measurements, we detected the frequency of an AC signal with a lower amplitude.The measurement details for Figs.S.4(d),(e) are the same as for Figs.S.4(b),(c), respectively, with the only difference being the order N of the respective sequence, i.e., the number of times N the whole sequence is repeated.The higher order is necessary to observe a similar dip as in (b) and (c), given a lower signal amplitude.We observe the expected dip in the population at the frequency 1700 kHz in

B. Qdyne

83We also perform quantum heterodyne (Qdyne) measurements with the single NV center and an 8 MHz test signal.For details on the measurement technique see the main text and references [41,48,61].

84First, we estimate the signal strength at the location of the NV center.For this we perform an order (N ) scan of the CXY8-N measurement with fixed T = 1/(2f L ) on resonance, see where the error interval is given ± the standard error.Thus, the estimate of the AC magnetic field amplitude is B = 2g/γ NV = (3.33 ± 0.04)µT.

85Figure 4 in the main text shows the measured spectrum of the Qdyne measurement.In Figure S.6 we show further analysis of the performance of the Qdyne measurement.The analysis is done equivalently to Ref. [61].The total measurement time is T tot = 120 s.For the analysis we slice the data into smaller parts.The shortest time is 0.57 s (2 16 samples).For every measurement time the FFT of the corresponding time trace is calculated.A Lorentzian fit of the form

86with amplitude A, center frequency ν 0 and half-width at half-maximum σ is performed on the data within a fixed frequency window around the frequency of the signal peak.We extract the center frequency ν 0 together with its uncertainty δν 0 , linewidth 2σ and amplitude A directly from the fit parameters.We calculate the signalto-noise ratio (SNR) by determining the noise δA as the standard deviation of the noise floor of the FFT with SNR = A δA .While the SNR scales according to the standard quantum limit SNR ∝ √ N tot ∝ T tot .We take the weighted average of the results in (d) and obtain η = (118 ± 8) nT/ √ Hz.Next, we note that formulas for the frequency and amplitude sensitivity for CPDD are the same as for pulsed dynamical decoupling, except for a difference in the signal attenuation factor κ (see also Section S.3 and Ref. [6]).One can obtain intuition by considering the photon shot noise limited sensitivity for detecting the amplitude of an oscillating magnetic field with an NV center, using standard pulsed DD sequences.The sensitivity is given by [6,52,66] The photon shot noise limited amplitude sensitivity could be improved further by optimizing the sensing time t to minimize the expression √ t+t oh C(t)t .We obtain an optimal sensing time of t = Hz.Finally, we note that the reported sensitivities can be improved substantially by using NV centers with longer coherence times, which can reach up to several milliseconds [26].Other possibilities include improving further the photon collection efficiency or using ensembles of NV centers where the average detected photon number per measurement is much higher and the effect of photon shot noise is reduced significantly [6,66].

87The signal attenuation factor for CPDD is κ = 1/2, similarly to the standard continuous dynamical decoupling protocol (see Eq. ( 3)) in the main text).In contrast, pulsed dynamical decoupling has a slightly better attenuation factor of κ = 2/π [6].This effect can be compensated by a longer coherence time as the repetition rate of the spin flips can be higher with CPDD than with pulsed methods due to the negligible waiting time.CPDD also has higher fidelity in comparison to continuous decoupling, which results in improved sensitivity.

88The dynamic range of CPDD is similar to the one of dressed states methods, e.g., continuous dynamical de-coupling, i.e., 0.1-100 MHz for electronic spins or superconducting qubits [6] with the additional advantage of improved robustness.We note that the dynamic range can be expanded substantially by combining CPDD with other techniques, similar to the possibility of sensing GHz fields with double drive continuous decoupling [23,26].

89FIG.1.Experimental schemes for quantum sensing with pulsed, standard continuous and continuous phased dynamical decoupling with signal g cos (ωLt + ξ).Pulsed DD uses the phases of the pulses for improved robustness but each pulse should be much shorter than the half period of the signal.CDD is applicable with Ω = ωL but is sensitive to amplitude noise.CDD is applicable with Ω = ωL but is sensitive to amplitude noise.The phase changes of CPDD improve robustness.In contrast to pulsed DD, a uniform rectified signal is obtained for CDD and CPDD on resonance when the initial signal phase ξ = 0 and the phase changes are applied at intervals T = π/ωL ≈ π/Ω for CPDD.

FIG. 2 .

90FIG. 2. Simulation and experimental performance of CDD (CX sequence, dashed lines) and CPDD (CXY8 sequence, solid lines) with phase changes at T = 62.5 ns for a signal with ωL = (2π) 8 MHz.(a) Population of state |0 of the NV electron spin vs. interaction time for different detunings ∆ (shown in the legend).(b) Maximum contrast of the oscillations in (a) vs. detuning ∆ for CX and CXY8.The data for all simulations are taken stroboscopically at intervals of 0.5 µs.(c) and (d) show experimental data, which correspond to the simulations in (a) and (b).

FIG. 3 .

91FIG. 3. (a) Sketch of a shallow NV center at depth d.It interacts with the hydrogen bath on the diamond surface within a volume of roughly d 3 [57].(b) A simplified level scheme of the NV center ground state.When Ω = ωL the interaction between the NV and the hydrogen bath leads to a dip in fluorescence for CX.The resonance condition for XY8 (CXY8) is τ = π/ωL (T = π/ωL), see Fig.1.Experimental results for (c) DD spectra in the low field regime.The larger dip for CX is due to its longer interaction time.The label (C)XY8-N shows that the sequence is repeated N times.CXY8-16-4 denotes a CXY8-16 sequence where we did not vary Ω continuously as we varied T but it took only four values 2π{1.9, 2, 2.1, 2.2} MHz, demonstrating CXY8 robustness.DD order scan (d) off-resonant and (e) resonant with the Larmor frequency at low field; (f) DD spectrum in the high field regime.No contrast is observed for CX even though a longer interaction time is used than for CXY8.DD order scan (g) off-resonant and (h) resonant with the Larmor frequency at high field.In (h) we included the off-resonant CX plot due to negligible difference from CX on resonance, as shown in (f).The respective interaction times used in (c) and (f) are marked in plots (d,e) and (g,h) with gray (CX) and red (CXY8), vertical, dashed lines.

FIG. 4 .

92FIG. 4. (a) Scheme of nanoscale high-frequency sensing with Qdyne, using CXY8.(b) Fast Fourier transform of the photon trace to detect a signal at the beat frequency f b , which corresponds to the signal frequency of 8 MHz.

FidelityFIG. S. 1 .

93FIG. S.1.Simulation of fidelity vs. variation in the detuning error of the carrier frequency ω of the applied driving field from the transition frequency ω0 of the sensor qubit, i.e., δ/ωL = (ω − ω0)/ωL and the amplitude error of the driving field from the target Rabi frequency ωL, i.e., (Ω − ωL)/ωL = −∆/ωL for: (left) continuous drive (labeled CX) with a target pulse area A = ωLt = 8π and (right) the respective CXY8 robust sequence with the same target pulse area.The fidelity calculation assumes the approximation of static frequency and amplitude noise and no sensed field.

FIG. S. 2 .

94FIG. S.2.Simulation of CDD and CPDD for sensing, showing the population of state |0) for standard CDD (labeled CX) and CPDD (with the CXY8 sequence) with phase changes applied at time intervals of T = 62.5 ns, corresponding to the parameters for high field sensing in the experimental section.The gray curve shows the expected oscillation in the ideal case when ∆ = 0 for both protocols.The sensed field has an amplitude of g = 2π 11.7 kHz, angular frequency ωL = 2π 8 MHz, and initial phase ξ = 0.The sensor qubit is initially prepared in the |0 state, e.g., by optical pumping.(a) When the Rabi frequency of the driving field Ω = ωL = 2π 8 MHz, one can observe oscillations of the population P = cos(Θ(t)/2), where Θ = gt, for both the CX and CXY8 sequences.(b-h) When the Rabi frequency differs from the sensed frequency, i.e., ∆ = Ω − ωL = 0, the oscillations due to the sensed field are quickly lost with CDD, i.e. for the CX sequence, even with small ∆ ≈ 2π 10 kHz, which is of the order of the coupling strength g.On the contrary CPDD with the CXY8 sequence allows for a much more robust performance and efficient sensing, e.g., even for ∆ = 2π 400 kHz, by using the time intervals of the phase changes as a control parameter.The data for all simulations are taken stroboscopically at intervals of 0.5 µs, which correspond to the duration of one CXY8 sequence on resonance.

FIG. S. 4 .

95FIG. S.4.(a)Pulse scheme for the CXY8-N and XY8-N measurements for frequency sensing.We use a laser to prepare the electron spin of an NV center in state |0 by optical pumping and read out its final state.We prepare a coherent superposition state by a microwave π/2 pulse, apply the control scheme (CXY8 or XY8), and then another π/2 pulse with a phase that alternates, to map coherences back onto populations.The final population of state |0 is estimated from the difference of the signals from the two alternating measurements, reducing errors due to charge-state and count-rate fluctuations[51].We vary T (τ ) for CXY8-N (XY8-N ) with fixed repetition number N to detect the frequency of the AC signal.(b) Measured signal, corresponding to the population of state |0 of the electron spin of a single NV center, vs. the detected signal frequency f = 1 2T (f = 1 2τ ) for CXY8 (XY8).We observe a dip at the frequency 1700 kHz of the artificial signal for both CXY8-5 and XY8-5 sequences, as expected from theory.The slightly lower population with XY8 than CXY8 on resonance is expected and due to the difference in the rectified signal amplitudes of the two sequences (see text).The vertical dashed lines for all subfigures show the expected full width at half maximum (FWHM) of the dip, i.e., the inverse of the sequence duration, which is FWHM ≈ 85 kHz in this case.(c) We observe the expected a dip in the population at 8000 kHz of a high frequency artificial signal, where only CXY8 is applicable.FWHM ≈ 83.3 kHz.(d) The measurement is the same as in (b) but with a lower artificial signal amplitude, which requires a higher sequence order and total sequence duration to observe a similar dip; FWHM ≈ 16.3 kHz.The additional sideband dip with XY8 does not correspond to the frequency of a real signal and is likely due to pulse errors of the non-instantaneous rectangular pulses.(e) The measurement is same as in (d) but with a lower artificial signal amplitude; FWHM ≈ 16.4 kHz due to the slightly shorter sequence duration than in (d).All experimental results show excellent correspondence to theory.

96Figure 4b of the main text.

S. 7 .

97ADDITIONAL EXPERIMENTAL RESULTSA.Quantum sensing of the frequency of an artificial AC field

98FIG. S.5.CXY8 order measurement with an 8 MHz test signal.The order is swept from 2 to 80 in steps of 2 with T = 0.5 µs, resulting in decoupling times from 1 µs to 40 µs.With the frequency of the oscillation the amplitude of the signal at the NV center is estimated from a fit to the function c(t) = cmax J0(gt)e −(t/T 2 ) b +offset, as per Eq.(S.21).We obtain an estimate of g = (2π)46.7 ± 0.5 kHz, where the error interval is given ± the standard error.Thus, the estimate of the AC magnetic field amplitude is B = 2g/γNV = (3.33 ± 0.04)µT.

99Fig. S.4(d) for both CXY8 and XY8 with a lower FWHM ≈ 16.4 kHz due to the longer total duration both sequences.Similarly, Fig. S.4(e) shows a population dip at 8000 kHz with FWHM 16.4 kHz.All experimental results match theory very well.

100Figure S.5.From a fit of the Bessel function as in equation (S.21) and the relation Θ = gt = 1/2γ NV Bt we determine that g = (2π)46.7 ± 0.5 kHz,

1 / 2 tot

101, where N tot is the total number of measurements, the frequency uncertainty shows a different scaling.As a result of reduced noise over measurement time(∝ 1/ √ N tot ∝ T −1/2tot ) and the scaling of the linewidth as 2σ = 1/T tot , the estimation precision of frequency scales as δν 0 ∝ T −3/2 tot .Figure S.6 demonstrates the typical time scaling for a Qdyne measurement [41, 61].The linewidth 2σ of the signal decreases exactly with 1/T tot (see Fig. S.6(a)), as expected from theory.

102Figure S.6(b) shows that the precision δν 0 in frequency estimation scales with T −3/2 tot .Finally, SNR increases according to the standard quantum limit as T 1/2 tot , as shown in Fig. S.6(c).The estimated frequency in the main text of ν 0 = 8000001.8883Hz is determined from the beat frequency f b = |ν LO − ν 0 | where ν LO = round(ν0TL) TL (T L = 8.646 µs duration of a single measurement) is a reference frequency given by the undersampling of the signal.Deviation of about 1.9 Hz from the expected 8 MHz signal is due to different internal clock of the microwave source generating the test signal.

C.

103Sensitivity and dynamic range of CPDDWe determine the frequency sensitivity of CPDD in combination with Qdyne by multiplying the estimated uncertainty δν 0 with the adequate time scaling, η ν0 = δν 0 T 3/2 tot , where T tot is the total measurement time.This is characteristic for Qdyne, as shown in Fig.S.6(b) and[41], to obtain 32 mHz/Hz 3/2 .Analogously, we calculate the amplitude sensitivity η B = B0 SNR T −1/2

η(t) = 2 γ

104NV κC(t) √ t + t oh N ph t , (S.25) where γ NV is the NV center gyromagnetic ratio, t is the sensing time, t oh is the overhead time for readout and initialization, N ph is the the average number of photons collected per measurement run, C(t) = (a−b) exp [−Γ(t)] is the expected normalized contrast with Γ(t) characterizing the respective decay due to the NV spin decoherence, a and b denote the normalized signal, which corresponds to the bright and dark states of the NV electron spin, respectively.For the NV center of the Qdyne measurements we estimate exponential decay of the signal with exp [−Γ(t)], Γ(t) = t/T 2 and coherence time T 2 ≈ 250 µs.The average number of fluorescence photons per readout is N ph = 0.164 and the normalized contrast a − b = 0.32.The sensing time is t = 5 µs corresponding to order 10 of a CXY8 at 8 MHz resonance frequency, and the overhead time t oh = 3.646 µs.With γ NV = 2π × 28.03 MHz/mT and κ = 1/2 the theoretical photon shot noise limited sensitivity according to Eq. (S.25) is η ≈ 105 nT/ √ Hz.The experimental sensitivity is slightly worse due to additional noise, that is not accounted for in Eq. (S.25).

FIG. S. 6 .

105FIG. S.6.Results of Qdyne measurement with a (3.33 ± 0.04)µT signal at 8 MHz.All results in dependence on the total measurement time Ttot.(a) The linewidth of the measured signal shows an expected 1/Ttot behavior.(b) Precision of frequency estimation scales with T −3/2 tot .We achieve 28 µHz uncertainty in 120 s measurement time and 32 mHz/Hz 3/2 frequency sensitivity.(c) Scaling of the signal-to-noise ratio (SNR) with T 1/2 tot .(d) Measured sensitivity of the NV probe.The weighted average is η = (118 ± 8) nT/ √ Hz.

106Nature Communications 8, 1 (2017).[14] H. S. Knowles, D. M. Kara, and M. Atatüre, Observing bulk diamond spin coherence in high-purity nanodiamonds, Nature Materials 10.1038/NMAT3805 (2014).[15] L. P. Mcguinness, Y. Yan, A. Stacey, D. A. Simpson, L. T. Hall, D. Maclaurin, S. Prawer, P. Mulvaney, J. Wrachtrup, F. Caruso, R. E. Scholten, and L. C. L. D. L. Sage, K. Arai, D. R. Glenn, S. J. DeVience, L. M. Pham, L. Rahn-Lee, M. D. Lukin, A. Yacoby, A. Komeili, and R. L. Walsworth, Optical magnetic imaging of living cells, Nature 10.1038/nature12072 (2013).[18] G. Kucsko, P. C. Maurer, N. Y. Yao, M. Kubo, H. J. Noh, P. K. Lo, H. Park, and M. D. Lukin,

107128.45 µs, where the first approximation is valid for t oh ≪ T 2 , reaching the theoretical optimum of η opt = 26 nT/ √

참고문헌 60건

  1. Continuous dynamical decoupling magnetometry Physical Review A · American Physical Society · 2012 10.1103/physreva.86.062320
  2. Theory of the ground-state spin of the NV<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"><mml:msup><mml:mrow /><mml:mo>−</mml:mo></mml:msup></mml:math>center in diamond Physical Review B · American Physical Society · 2012 10.1103/physrevb.85.205203
  3. Ultrasensitive Magnetometer using a Single Atom Physical Review Letters · American Physical Society · 2016 10.1103/physrevlett.116.240801
  4. Evaluation of a new broadband decoupling sequence: WALTZ-16 Journal of Magnetic Resonance (1969) · Elsevier BV · 1983 10.1016/0022-2364(83)90035-5
  5. Dynamical decoupling of a single-electron spin at room temperature Physical Review B · American Physical Society · 2011 10.1103/physrevb.83.081201
  6. New, compensated Carr-Purcell sequences Journal of Magnetic Resonance (1969) · Elsevier BV · 1990 10.1016/0022-2364(90)90331-3
  7. Measurement of the optically induced spin polarisation of N-V centres in diamond Diamond and Related Materials · Elsevier BV · 2006 10.1016/j.diamond.2005.12.027
  8. Ultralong spin coherence time in isotopically engineered diamond Nature Materials · Nature Portfolio · 2009 10.1038/nmat2420
  9. Dynamical Decoupling of Open Quantum Systems Physical Review Letters · American Physical Society · 1999 10.1103/physrevlett.82.2417
  10. Universal Dynamical Decoupling of a Single Solid-State Spin from a Spin Bath Science · American Association for the Advancement of Science · 2010 10.1126/science.1192739
  11. Modified Carr-Purcell-Meiboom-Gill sequence for NMR fourier imaging applications Journal of Magnetic Resonance (1969) · Elsevier BV · 1986 10.1016/0022-2364(86)90160-5
  12. Spin dynamics in the optical cycle of single nitrogen-vacancy centres in diamond New Journal of Physics · IOP Publishing · 2011 10.1088/1367-2630/13/2/025013
  13. Low-Power Decoupling Sequences for High-Resolution Chemical-Shift and Local-Field NMR Spectra of Liquid Crystals Journal of Magnetic Resonance Series A · Academic Press · 1995 10.1006/jmra.1995.1077
  14. General Scheme for the Construction of a Protected Qubit Subspace Physical Review Letters · American Physical Society · 2013 10.1103/physrevlett.111.230507
  15. Engineering of nitrogen-vacancy color centers in high purity diamond by ion implantation and annealing Journal of Applied Physics · American Institute of Physics · 2011 10.1063/1.3573768
  16. Stabilizing shallow color centers in diamond created by nitrogen delta-doping using SF6 plasma treatment Applied Physics Letters · American Institute of Physics · 2015 10.1063/1.4915305
  17. Low-power multipulse line narrowing in solid-state NMR Journal of Magnetic Resonance (1969) · Elsevier BV · 1981 10.1016/0022-2364(81)90200-6
  18. Nitrogen-Vacancy color center in diamond—emerging nanoscale applications in bioimaging and biosensing Current Opinion in Chemical Biology · Elsevier BV · 2014 10.1016/j.cbpa.2014.04.014
  19. Rotary Spin Echoes Physical Review Letters · American Physical Society · 1959 10.1103/physrevlett.2.301
  20. Quantum gates and memory using microwave-dressed states Nature · Nature Portfolio · 2011 10.1038/nature10319
  21. Nuclear Double Resonance in the Rotating Frame Physical Review · American Institute of Physics · 1962 10.1103/physrev.128.2042
  22. Quantum measurement and orientation tracking of fluorescent nanodiamonds inside living cells Nature Nanotechnology · Nature Portfolio · 2011 10.1038/nnano.2011.64
  23. High-Fidelity Adiabatic Passage by Composite Sequences of Chirped Pulses Physical Review Letters · American Physical Society · 2011 10.1103/physrevlett.106.233001
  24. Composite-pulse magnetometry with a solid-state quantum sensor Nature Communications · Nature Portfolio · 2013 10.1038/ncomms2375
  25. Correction of Arbitrary Field Errors in Population Inversion of Quantum Systems by Universal Composite Pulses Physical Review Letters · American Physical Society · 2014 10.1103/physrevlett.113.043001
  26. Nuclear magnetic resonance spectroscopy with single spin sensitivity Nature Communications · Nature Portfolio · 2014 10.1038/ncomms5703
  27. Observing bulk diamond spin coherence in high-purity nanodiamonds Nature Materials · Nature Portfolio · 2013 10.1038/nmat3805
  28. Strongly enhanced photon collection from diamond defect centers under microfabricated integrated solid immersion lenses Applied Physics Letters · American Institute of Physics · 2010 10.1063/1.3519847
  29. High-sensitivity diamond magnetometer with nanoscale resolution Nature Physics · Nature Portfolio · 2008 10.1038/nphys1075
  30. Optical magnetic imaging of living cells Nature · Nature Portfolio · 2013 10.1038/nature12072
  31. Robust dynamical decoupling Philosophical Transactions of the Royal Society A Mathematical Physical and Engineering Sciences · Royal Society · 2012 10.1098/rsta.2011.0355
  32. Nitrogen-Vacancy Centers in Diamond: Nanoscale Sensors for Physics and Biology Annual Review of Physical Chemistry · Annual Reviews · 2013 10.1146/annurev-physchem-040513-103659
  33. Robust dynamical decoupling with concatenated continuous driving New Journal of Physics · IOP Publishing · 2012 10.1088/1367-2630/14/11/113023
  34. Nanometre-scale thermometry in a living cell Nature · Nature Portfolio · 2013 10.1038/nature12373
  35. Double-Quantum Spin-Relaxation Limits to Coherence of Near-Surface Nitrogen-Vacancy Centers Physical Review Letters · American Physical Society · 2017 10.1103/physrevlett.118.197201
  36. Arbitrarily Accurate Pulse Sequences for Robust Dynamical Decoupling Physical Review Letters · American Physical Society · 2017 10.1103/physrevlett.118.133202
  37. <i>Colloquium</i>: Protecting quantum information against environmental noise Reviews of Modern Physics · American Physical Society · 2016 10.1103/revmodphys.88.041001
  38. Qudi: A modular python suite for experiment control and data processing SoftwareX · Elsevier BV · 2017 10.1016/j.softx.2017.02.001
  39. Fully robust qubit in atomic and molecular three-level systems New Journal of Physics · IOP Publishing · 2016 10.1088/1367-2630/aa4fd3
  40. Nuclear quantum-assisted magnetometer Review of Scientific Instruments · American Institute of Physics · 2017 10.1063/1.4973449
  41. In situ click chemistry generation of cyclooxygenase-2 inhibitors Nature Communications · Nature Portfolio · 2017 10.1038/s41467-016-0009-6
  42. Submillihertz magnetic spectroscopy performed with a nanoscale quantum sensor Science · American Association for the Advancement of Science · 2017 10.1126/science.aam5532
  43. Clock transition by continuous dynamical decoupling of a three-level system Scientific Reports · Nature Portfolio · 2018 10.1038/s41598-018-31984-4
  44. Experimental demonstration of composite stimulated Raman adiabatic passage Physical review. A/Physical review, A · American Physical Society · 2018 10.1103/physreva.98.053413
  45. Randomization of Pulse Phases for Unambiguous and Robust Quantum Sensing Physical Review Letters · American Physical Society · 2019 10.1103/physrevlett.122.200403
  46. Mixed dynamical decoupling Quantum Science and Technology · IOP Publishing · 2019 10.1088/2058-9565/ab2afd
  47. Sensitivity optimization for NV-diamond magnetometry Reviews of Modern Physics · American Physical Society · 2020 10.1103/revmodphys.92.015004
  48. Quantum sensing Reviews of Modern Physics · American Physical Society · 2017 10.1103/revmodphys.89.035002
  49. Speeding-up the decision making of a learning agent using an ion trap quantum processor Quantum Science and Technology · IOP Publishing · 2018 10.1088/2058-9565/aaef5e
  50. Overcoming resolution limits with quantum sensing Nature Communications · Nature Portfolio · 2019 10.1038/s41467-019-12817-y
  51. Monolithic diamond optics for single photon detection Applied Physics Letters · American Institute of Physics · 2010 10.1063/1.3519849
  52. Phase-controlled coherent dynamics of a single spin under closed-contour interaction Nature Physics · Nature Portfolio · 2018 10.1038/s41567-018-0231-8
  53. Towards T 1-limited magnetic resonance imaging using Rabi beats Applied Physics B · Springer Science+Business Media · 2011 10.1007/s00340-011-4408-4
  54. Indirect overgrowth as a synthesis route for superior diamond nano sensors Scientific Reports · Nature Portfolio · 2020 10.1038/s41598-020-79943-2
  55. Phase-sensitive quantum spectroscopy with high-frequency resolution Physical review. A/Physical review, A · American Physical Society · 2021 10.1103/physreva.104.l020602
  56. Composite pulses Progress in Nuclear Magnetic Resonance Spectroscopy · Elsevier BV · 1986 10.1016/0079-6565(86)80005-x
  57. Zero- and Low-Field Sensing with Nitrogen-Vacancy Centers Physical Review Applied · American Physical Society · 2022 10.1103/physrevapplied.17.044028
  58. Power-law scaling of correlations in statistically polarised nano-NMR npj Quantum Information · Nature Portfolio · 2022 10.1038/s41534-022-00632-1
  59. Optimal Sensing Protocol for Statistically Polarized Nano-NMR with NV Centers Physical Review Letters · American Physical Society · 2023 10.1103/physrevlett.131.150801
  60. Protecting Quantum Information via Destructive Interference of Correlated Noise Physical Review Letters · American Physical Society · 2024 10.1103/physrevlett.132.223601