Introduction

A negatively charged nitrogen-vacancy (NV) center in diamond offers a promising material platform for quantum sensing1,2. Spin-state manipulation with a state-selective microwave (MW) pulse, combined with spin-dependent fluorescence has been utilized for spectroscopic measurement of magnetic field. Fabrication of a dense ensemble of NV centers 3,4,5,6 allows these measurements to be applied in wide-field imaging modality7,8,9,10, and local current characterizations using NV center have been achieved11,12,13,14,15,16. Wide-field imaging using NV center paves the way for inductive inspection17,18, which is still challenging with micron-scale resolution by established methods. Previous studies indicate that dynamical decoupling (DD) protocols like XY8 achieve magnetic field spectroscopy with high sensitivity for magnitude and phase of such a signa19,20,21,22. Measuring magnitude and phase of oscillating magnetic signal is at the heart of Eddy-current inspection based upon inductive and impedance sensing, enabling conductivity measurement23,24. Despite its high sensitivity, DD can only measure the output of fluorescence intensity with an intricate dependence on a magnitude and a phase of a signal. Therefore, a magnitude with a known phase or a phase with a known magnitude can only be measured with DD protocol25. Independent and simultaneous measurements of magnitude and phase for magnetic field spectroscopy in wide-field open up new diamond applications such an accurate inductive sensing.

In this study, we propose a stroboscopic measurement termed iQdyne26, a wide-field modality of Qdyne27,28 enabled with lock-in detection, as a simple sensing scheme for magnitude \(b_z\) and phase \(\phi _0\) of an oscillating magnetic field. The iQdyne provides an orthogonal measurement for magnitude and phase; it involves two input parameters \((b_z, \phi _0)\) and time-series outputs \(I(b_z)e^{i\theta (\phi _0)}\cos (2\pi f t)\). Fourier analysis easily extracts two resulting parameters, magnitude \(I(b_z)\) and phase \(\theta (\phi _0)\), which are separated from each other and are readily interpretable.

We implemented this stroboscopic protocol on a wide-field microscope and demonstrated an imaging experiment of an oscillating magnetic field generated from a current pattern fabricated on a diamond substrate. An oscillating current generates an oscillating magnetic field due to Ampère’s law. The wide-field observation area was approximately \(100\times 100\,\upmu \hbox {m}^2\), and we estimated that single pixel precision for phase sensing was \(2.1^{\circ }\) with \(0.76\,\upmu \hbox {T}\) AC magnetic signal. This demonstration is a fundamental part of a local current investigation technique like local impedance microscopy and inductive testing method. Wide-field modality provides us an optically high spatial resolution and a wide observation area, leading to high throughputs for such measurements.

Figure 1
figure 1

(a) Measurement protocol with sequential measurements recording the signal in undersampling. Each green represents quantum sensing iterated by \(N_{\mathrm {iter}}\) times and a CCD readout. (b) Principle of an oscillating field analysis involving the three-dimensional Fourier spectrum: frequency axis, real, and imaginary part of the Fourier coefficient. Splicing out at the signal frequency and moving to the IQ diagram, the Fourier spectrum represents the magnitude and the phase of the oscillating signal. (c) Overview schematic of experimental setup.

Figure 2
figure 2

The response of iQdyne-based measurement for an oscillating magnetic field. (a) The magnitude of the NV center fluorescence of the first peak (black dots) obeys the first-kind Bessel function (red) with the oscillation field strength. Inset: a measured spectrum with \(b_z=51\,\hbox {nT}\). (b) The measured phase of the first peak corresponds one-to-one to the oscillation phase, with an experimental condition \(b_z=51\,\hbox {nT}\). Inset: plotted on an IQ diagram.

Figure 3
figure 3

Simultaneous wide-field imaging experiment involving (a) the sample setup with the MW resonator to the left, the optical image of the current path as the signal source in the center, and fluorescence image to the right, (b) typical measured spectrum showing frequency versus magnitude, (c) the magnitude map, and (d) phase map of the first peak at each pixel. Arrows in (c) and (d) indicate zero-magnitude lines and phase inversion boundaries corresponding to the zero of Bessel function.

Figure 4
figure 4

(a) Measured Fourier coefficient of the first peak plotted in an IQ diagram, with the inset representing a histogram of noise magnitudes and (b) definition of the phase precision as a projection angle of noise around the origin from a measured point.

Principle

In this section, we describe our proposed scheme based on iQdyne and compare it with the conventional XY8 measurement. The XY8 sequence is a well-studied quantum sensing scheme, a sort of DD technique, providing excellent sensitivity for oscillating magnetic signals (Fig. 1a). The DD sequence generally consists of spin-flip pulses enabling to decouple the sensor spin from the environment and coupling to the environment selectively. The XY8 sequence consists of equally-spaced MW pulses, which detects an oscillating signal if the half of the oscillation period matches the pulse cycle. The iQdyne protocol is a quantum-classical hybrid measurement protocol comprising sequential measurements using DD with a precisely disciplined interval \(T_L\) (Fig. 1a). Splicing the Fourier spectrum at the signal frequency and moving to the IQ diagram, the magnitude of the spectrum depends only on the signal magnitude, and the phase of spectrum directly accords with a signal phase (Fig. 1b).

At first, we formulated the detection of an oscillating magnetic field using XY8 and pointed out inherent challenges. Let the magnetic field oscillation obey a cosine, and assuming the time at the origin \(t=0\) at the end of the former \(\pi\) half pulse,

$$\begin{aligned} B_{{\mathrm {ac}}}(t) = b_z \cos \left( 2 \pi f_{{\mathrm {ac}}} t + \phi _0 \right) , \end{aligned}$$
(1)

where \(b_z\), \(\phi _0\), and \(f_{{\mathrm {ac}}}\) denote the magnitude, initial phase, and frequency of the oscillating field, respectively. Assuming that the interpulse spacing is half the reciprocal of the signal frequency and ignoring the finite length effect of the MW pulses, the electron spin phase acquired is expressed as

$$\begin{aligned} \Phi = \frac{2 \gamma _e N_p}{f_{{\mathrm {ac}}}} b_z \cos \phi _0 = \kappa b_z \cos \phi _0, \end{aligned}$$
(2)

after the XY8 sequence25,29, where \(\gamma _e=28.024\times 10^{9}\hbox {Hz}\cdot \hbox {T}^{-1}\), \(N_p\), and \(\kappa\) represent the gyromagnetic ratio of the electron spin of the NV center, the number of \(\pi\) pulses in an XY8, and the proportional coefficient, respectively. The spin state is initialized along the x-axis of the Bloch sphere and read out by rotating around the x-axis, with the resulting fluorescence of XY8 given as

$$\begin{aligned} S^{{\mathrm {(XY8)}}} = C_0 + C \sin \left( \kappa b_z \cos \phi _0 \right) , \end{aligned}$$
(3)

where \(C_0\) and C represent the average count and maximal fluorescence amplitude of the NV center, respectively. The resulting XY8 sequence signals intricately depend on the magnitude and phase of the oscillating magnetic field. In a working condition of \(\phi _0=0\), it is completely insensitive for a phase shift but most sensitive for magnitude, and vice versa in \(\phi _0=\pi /2\). Therefore, XY8 requires a careful pre-adjustment of the working condition depending on the parameter of interest. Moreover, if the two parameters change simultaneously, distinguishing their effect becomes challenging.

Next, we show that the dependence of the iQdyne signal on the parameters is simple. Assuming \(T_L\) as an interval between sequential measurements, the oscillating signal phase advances with \(\Delta \phi = 2 \pi f_{{\mathrm {ac}}} T_L\) from one measurement to the next. Since the sampling interval \(T_L\) is longer than the oscillation period \(1/f_{{\mathrm {ac}}}\), the resulting signal includes a low-frequency component due to Nyquist folding. Let \(\overline{f_{{\mathrm {ac}}}}\) be the apparent frequency of the oscillation, another notation of the advancing phase is

$$\begin{aligned} \Delta \phi \equiv 2 \pi \overline{f_{{\mathrm {ac}}}} T_L \mod 2 \pi . \end{aligned}$$
(4)

Then, an initial phase of the oscillating signal of the mth measurement is \(\phi _m=\phi _0+m\Delta \phi\). The iQdyne result of the mth measurement is expressed as

$$\begin{aligned} S^{{\mathrm {(iQdyne)}}}_m= C_0 + C \sin \left( \kappa b_z \cos \phi _m \right) \end{aligned}$$
(5)
$$\begin{aligned}= C_0 + \sum _{n=0}^\infty { I_{2n+1} \cos \left( 2 \pi f_{2n+1} t_m + \theta _{2n+1} \right) }. \end{aligned}$$
(6)

Using iQdyne protocol, the oscillating signal at \(f_{{\mathrm {ac}}}\) appears as several oscillating signals with the apparent frequencies given by \(f_{2n+1}= \overline{(2n+1) f_{{\mathrm {ac}}}}\), the magnitudes by \(I_{2n+1}=2C\cdot \left| J_{2n+1} (\kappa b_z)\right|\), and the initial phases by \(|\theta _{2n+1}|=(2n+1)\cdot |\phi _0|\), where \(J_{2n+1} (x)\) is the first-kind Bessel function. These are directly observable using Fourier transform, and the derivation details are provided in the method.

Unlike XY8, the iQdyne protocol involves two output parameters, which the signal magnitude \(I_{2n+1}\) depends only on the oscillation magnitude \(b_z\), and the phase \(\theta _{2n+1}\) depends only on the initial phase \(\phi _0\), i.e., two parameters are orthogonal. The resulting phase \(\theta _{2n+1}\) corresponds linearly to the oscillating phase \(\phi _0\), and its susceptibility is independent of the oscillation magnitude. The iQdyne protocol provides a simple and simultaneous measurement of magnitude and phase. Furthermore, this means that the iQdyne protocol does not need a pre-adjustment of the working condition, since the iQdyne measurement provides the magnitude and phase concurrently, ensuring interpretation is possible under any working condition.

We used an iQdyne protocol on a charge-coupled device (CCD) camera setup (Fig. 1c). Each DD measurement of iQdyne was \(N_{{\mathrm {iter}}}\) times iterated DD sequences and the CCD readout (Fig. 1a), adjusting the iteration period \(T_S\) to lock a multiple of the signal period. This modification enhances sensitivity like the lock-in amplifier and compensates the overhead due to the long readout time of the CCD, but the principle remains unchanged. We have reported details of this protocol and its frequency characteristics elsewhere26.

Result

Oscillating field measurement

In this section, demonstration of stroboscopic measurement using iQdyne on a wide-field microscope setup is described. The sensor involved a shallow and dense NV center ensemble on a IIa (100) diamond substrate (See Fig. 1c and sample #1 in the method). A \(532\,\hbox {nm}\) laser excitation via epi- and Köhler-illumination initializes and reads the spin states of the electrons, while a uniform MW radiation via a micro loop coil controls the electron spins. An oscillation signal as a sensing target at \(1.908\,\hbox {MHz}\) (oscillation period \(t_{{\mathrm {ac}}}=524\,\hbox {ns}\)) was generated from a current path created on the surface by photolithography. Each DD protocol involved the \(N_p=64\) pulsed XY8 sequence. The sensing conditions were as follows: measurement interval \(T_S=23.056\,\upmu \hbox {s}\), number of iterations \(N_{{\mathrm {iter}}}=100\), sampling interval \(T_L=7.314850\,\hbox {ms}\), and measurement length \(M=1000\). Under these conditions, the target signal appears at \(\overline{f_{{\mathrm {ac}}}}=49.6\,\hbox {Hz}\).

The Qdyne response of the first peak magnitude against the applied field magnitude is displayed in Fig. 2a. The inset shows a typical spectrum measured with \(b_z=51\,\hbox {nT}\). The black dots represents the magnitude at the first peak. As derived earlier, this behavior is consistent with the Bessel function \(J_1 (\kappa b_z)\), assuming the oscillating field is proportional to an applied voltage (red curve). We swept the oscillation phase (Fig. 2b) at a working condition of \(b_z=51\,\hbox {nT}\) (\(\kappa b_z=0.1\,\hbox {rad}\)). Since the proportional coefficient between the assigned initial and measured phases is exactly one, this also agrees with the theoretical description.

Wide-field imaging of an oscillating field along a current path

For stroboscopic imaging of the magnitude and phase of an oscillating magnetic field, we designed another wide-field microscope setup (Fig. 3a). The sensor was a shallow and dense NV center ensemble on a IIa (111) diamond substrate. The NV center was fabricated by \({}^{14}\hbox {N}^+\) ion implantation with \(6\,\hbox {keV}\) acceleration and \(2\times 10^{13}\hbox {cm}^{-2}\) dose, creating an approximately \(20\,\hbox {nm}\)-thick layer (see sample #2 in the method). We created a situation with different magnitude and phase of the oscillating field (\(f_{{\mathrm {ac}}} = 2.0\,\hbox {MHz}\)) in an approximately \(100\times 100\,\upmu \hbox {m}^2\) observation area. The oscillating field was generated from a meandering path deposited on the substrate by photolithography (center of Fig. 3a). The fluorescence of the NV center (right of Fig. 3a) corresponds to an intensity distribution of a green laser via a lens array. The thin sensor layer involved an NV ensemble oriented perpendicular to the substrate surface chosen by selective MW, so that measured signals represent a perpendicular component of the magnetic field vector to the surface. According to Ampère’s law, the phase measured at the left side of the path should be inverted compared with the right side. Each DD protocol involved the \(N_p=64\) pulsed XY8 sequence, with sensing conditions as follows: measurement interval \(T_S=22.5\,\upmu \hbox {s}\), number of iterations \(N_{{\mathrm {iter}}}=100\), sampling interval \(T_L=7.259420\,\hbox {ms}\), and measurement length \(M=1000\). A typical spectrum displaying the frequency versus magnitude is shown in Fig. 3b, and under the stated conditions, the target signal appears at \(\overline{f_{{\mathrm {ac}}}}=22.0\,\hbox {Hz}\).

Maps of magnitude and phase of the first peak, respectively, are shown in Fig. 3c,d. Although magnitude and phase have simultaneously and spatially distributed, our iQdyne protocol can distinguish their changes independently. Higher magnitudes appear near the current path because the induced magnetic field obeys Ampère’s law. Comparing the right and left sides of the current path, the measured phases are inverted due to Ampère’s law. The inside of the meandering corner exhibits constructive interference of the magnetic field, with the zero-magnitude points (black arrows in Fig. 3c) corresponding to zero of the Bessel function. This zero line coincides with the boundary of phase inversion (white arrows in Fig. 3d) . Beyond the zero line, the phase is also inverted because the strength of the magnitude suffices for the Bessel function \(J(\kappa b_z)\) to be minus.

Discussion

Considering its application for spectroscopy and testing, small phase shift detection by protocol is crucial. In this section, we discuss and define the noise floor for phase sensing, namely, precision of the phase shift. Figure 4a shows the typical iQdyne spectrum in Fig. 3b plotted on an IQ diagram. The red point represents the measured Fourier coefficient of the first peak while the semitransparent circles around the origin are Fourier coefficients except for this peak, corresponding to a noise floor. Assuming the noises contained in the measurements is Gaussian, its distribution on the IQ diagram is a two-dimensional (2D) Gaussian distribution with the origin as the mean. The probability distribution of the noise’s magnitude is a Rayleigh distribution30, and one of the phases is the uniform distribution on the interval \([0, 2 \pi )\). This forms a circle with radius as the standard deviation of the 2D Gaussian representing the precision of the data point. Then, we define the precision of the phase as a projected angle of this noise circle viewed from the data point (Fig. 4b). Through a geometric consideration, the precision \(\delta \phi\) is formulated as

$$\begin{aligned} \delta \phi = \sin ^{-1} \frac{\sigma }{r}, \end{aligned}$$
(7)

where \(\sigma\) and r are the distance between the origin and the data point and the radius of the noise circle, respectively. This geometric definition is also justified through statistical estimation theory (see “Methods” section).

For the data in Fig. 4a, the phase precision is \(2.1^{\circ }\), producing a measured phase of \(62.3\pm 2.1^{\circ }\), that was acquired at \(b_z=0.76\,\upmu \hbox {T}\), \(\kappa b_z=1.3\,\hbox {rad}\) in \(T_{total} \simeq 6\,\hbox {min}\) within a \(1.2\times 1.2\,\upmu \hbox {m}^2\) active area corresponding to a single pixel. This phase precision means a noise floor of the out-of-phase magnetic field (imaginary part or I-axis) with \(b_z \sin \delta \phi = 27\,\hbox {nT}\).

Moreover, we noted the robustness of phase sensing. The magnitude map (Fig. 3c) was affected by the intensity distribution of laser excitation (Fig. 3a, right), because the magnitude corresponded to the fluorescence intensity of NV centers. However, the phase map (Fig. 3d) indicated no effect from the excitation inhomogeneity. The reason is that the Fourier transform extracts the phase from the time-development of the fluorescence. This suggests an interesting approach; the phase sensing by our protocol composes a robust measurement with a signal-to-phase encoding translating some signal of interest as in the oscillation phase. Developing a concrete method for such encoding is a topic of future work.

Conclusions and outlook

We propose a new measurement protocol for an oscillating magnetic field based on iQdyne. The approach enables simultaneous detection of magnitude and phase in a wide-field setup without pre-adjusting the measurement condition. We verified that our protocol provides an orthogonal and readily interpretable measurement of magnitude and phase of the oscillation. Furthermore, we demonstrated an oscillating magnetic field imaging around a current path involving concurrent distribution of magnitude and phase with an approximately \(100\,\upmu \hbox {m}\) wide-field observation area. We indicated that the single-pixel phase precision was \(2.1^{\circ }\), corresponding to a \(1.2\,\upmu \hbox {m}\)-squared region.

The simultaneous measurement of the magnitude and phase of an oscillating magnetic field with high spatial resolution is useful, paving the way to localized current distribution microscopy. In particular, we note that the high spatial resolution of the NV center is suitable for a phenomenon that is zero in sum, but locally non-zero like a vortex15. Such a technique has significant applications for Eddy-current inspection, investigating materials or devices by high-frequency impedance imaging, current distribution on topological or 2D materials, and tiny scale inductive testing, which remain elusive with the existing methods.

Methods

Sample preparation

We fabricated two high-purity diamond samples named as sample #1 and #2. Both samples are single crystalline diamond substrates including natural abundance of \({}^{13}\hbox {C}\) atoms. Ensemble NV layers were produced by nitrogen ion implantation and subsequent annealing in vacuum, with uniform spatial distribution attributed to the larger ion beam relative to the substrate. The metal pattern on the surface is a \(1\,\upmu \hbox {m}\)-thick Ti/Cu/Au fabricated by photolithography and electron beam deposition. The patterns were connected via gold wire bonding.

Sample #1 has a (100) top facet, with \({}^{14}\hbox {N}\) ions implanted at \(6\,\hbox {keV}\) energy and \(2\times 10^{13}\,\hbox {cm}^{-2}\) dose at \(600\,^{\circ }\hbox {C}\). Annealing was implemented at \(800\,^{\circ }\hbox {C}\) for \(2\,\hbox {h}\). The metal pattern includes \(\Omega\)-shaped MW loop antennas and linear patterns for MW and RF radiation. Sample #1 and MW antennas are the same as our previous work26. The bias magnetic field was around \(8\,\hbox {mT}\).

Sample #2 has (111) top facet, with \({}^{15}\hbox {N}\) ions implanted at \(6\,\hbox {keV}\) energy and \(2\times 10^{13}\,\hbox {cm}^{-2}\) dose at \(600\,^{\circ }\hbox {C}\). Annealing was implemented at \(800\,^{\circ }\hbox {C}\) for 2 h. The metal pattern includes meander and linear patterns for RF radiation. The MW control for the sample #2 experiment was applied via a planar resonator with the diamond substrate mounted. This antenna used is a modified version of that reported in our previous work21. The MW distribution is almost uniform, but the MW strength is slightly stronger at points close to the current path due to coupling between the current path and MW resonator. The bias magnetic field was around \(2\,\hbox {mT}\).

Detail of experimental setup

The excitation light is generated from an optically pumped semiconductor laser (Coherent, Verdi G5) and chopped by an acousto-optic-modulator (Gooch & Housego, 35250-.2-.53-XQ). The laser illumination involves epi- and Köhler-illumination optics for initialization and readout of electron spins. The laser is focused onto the back focal plane of an objective lens to enlarge the excitation area. The lens array reduces the spatial coherence and mitigates the interference. The laser passes through an objective lens and fluorescence from the NV center is collected by the same objective and detected by the EMCCD camera (Andor, iXon3 860). Most of the sampling interval \(T_L \simeq 7\,\hbox {ms}\) accounts for the readout process (approximately \(5\,\hbox {ms}\)) of CCD pixels, which is a main factor of the iQdyne bandwidth. The objectives are a \(60\,\times\) air objective (Olympus, PlanApoN 60XO) for #1 and a \(20\,\times\) oil objective (Olympus, MPLFLN20X) for #2. The MW pulses are generated by a signal generator with a quadrature (IQ) modulation (Keysight, N5182B), switched by Mini-Circuits, ZASWA-2-50DR+, and amplified by R&K, CGA701M602-4444R. The target signals are generated by a function generator (NF Corporation, WF1967). All timings are controlled by a data timing generator (Tektronix, DTG5274). For the Qdyne-type protocol, stabilizing the sampling interval is crucial. A frequency standard (Stanford Research Systems, FS725) disciplines clocks of all instruments.

Derivation of dependencies of XY8 and Qdyne on parameters

In this section, we formulate the dependencies of each measurement protocol on the magnitude \(b_z\) and initial phase \(\phi _0\). Let C and \(C_0\) be the average fluorescence intensity of an NV center and the amplitude of intensity, respectively, these are then expressed as

$$\begin{aligned} C= \frac{{F_{|0\rangle }} - {F_{|1\rangle }}}{2}, \end{aligned}$$
(8)
$$\begin{aligned} C_0= \frac{{F_{|0\rangle }} + {F_{|1\rangle }}}{2}, \end{aligned}$$
(9)

where \(F_{|m_S\rangle }\) is the fluorescence intensity when the spin state of the NV center is \(|m_S\rangle\). We selected the readout axis to be the same direction as the initial superposition state, with the resulting intensity of the XY8 protocol given as

$$\begin{aligned} S^{{\mathrm {(XY8)} }}= C_0 + C \sin \Phi , \end{aligned}$$
(10)

where \(\Phi\) is the accumulated phase on the spin state25. Equally space dynamical decouplings including XY8 consist of interrogation time \(\tau\), \(\pi\) flip pulse, interrogation time, and their repetitions: \(( - \tau - \pi - \tau - )^{\times N_p}\). Assuming a target field is an oscillating signal \(B_{{\mathrm {ac}}} (t)=b_z \cos \left( 2 \pi f_{{\mathrm {ac}}} t + \phi _0 \right)\), XY8 provides high sensitivity when its interpulse spacing equals a half of the oscillation cycle (\(\tau = t_{{\mathrm {ac}}}/4\)). Every pulse makes a virtual flip of a signal which the electron is detecting. For example, the electron spin senses a magnetic field \(+ B_{{\mathrm {ac}}}(t)\) in \(0 \le t < t_{{\mathrm {ac}}}/4\) and \(- B_{{\mathrm {ac}}}(t)\) in \(t_{{\mathrm {ac}}} / 4 \le t < 2t_{{\mathrm {ac}}}/4\) with a MW pulse at \(t=t_{{\mathrm {ac}}}/4\). The accumulation by \(N_p\)-pulsed XY8 sequence is expressed as

$$\begin{aligned} \Phi= \left\{ \left( \int _0^{t_{{\mathrm {ac}}}/4} - \int _{t_{{\mathrm {ac}}}/4}^{2t_{{\mathrm {ac}}}/4} \right) - \left( \int _{2t_{{\mathrm {ac}}}/4}^{3t_{{\mathrm {ac}}}/4} - \int _{3t_{{\mathrm {ac}}}/4}^{4t_{{\mathrm {ac}}}/4} \right) + \cdots \right\} 2 \pi \gamma _e B_{{\mathrm {ac}}} (t) dt \end{aligned}$$
(11)
$$\begin{aligned}= 2 N_p \cdot 2 \pi \gamma _e \int _0^{t_{{\mathrm {ac}}}/4} B_{{\mathrm {ac}}} (t) dt \end{aligned}$$
(12)
$$\begin{aligned}= \frac{2 \gamma _e N_p}{f_{{\mathrm{ac}}}} b_z \cos \phi _0 \end{aligned}$$
(13)
$$\begin{aligned}= \kappa b_z \cos \phi _0, \end{aligned}$$
(14)

with \(\kappa\) as the proportional coefficient. Hence, the resulting intensity of XY8 is given as:

$$\begin{aligned} S^{{\mathrm {(XY8)}}} = C_0 + C \sin \left( \kappa b_z \cos \phi _0 \right) . \end{aligned}$$
(15)

Their susceptibilities are as follows

$$\begin{aligned} \frac{\partial S^{{\mathrm {(XY8)}}}}{\partial b_z}= C \cdot \kappa \cdot \cos (\kappa b_z \cos \phi _0) \cdot \cos \phi _0, \end{aligned}$$
(16)
$$\begin{aligned} \frac{\partial S^{{\mathrm {(XY8)}}}}{\partial \phi _0}= -C \cdot \kappa b_z \cdot \cos (\kappa b_z \cos \phi _0) \cdot \sin \phi _0. \end{aligned}$$
(17)

Next, we derive the dependency of Qdyne by assuming M points measurement with a sampling interval \(T_L\), with a series of measurements \(\{S_m\}_{\left( 0\le m < M \right) }\) recorded at timings \(t_m = m \cdot T_L\). During a sampling interval from \(t_m\) to \(t_{m+1}\), the oscillating signal phase advances by

$$\begin{aligned} \Delta \phi = 2 \pi f_{{\mathrm {ac}}} T_L. \end{aligned}$$
(18)

Then, the initial phase of the oscillating signal of the mth measurement is \(\phi _m = \phi _0 + m \Delta \phi \quad (m \ge 0)\). The resulting intensity of the mth Qdyne measurement is obtained from

$$\begin{aligned} S^{{\mathrm {(Qdyne)}}}_m= C_0 + C \sin (\kappa b_z \cos \phi _m) \end{aligned}$$
(19)
$$\begin{aligned}= C_0 + C \sum _{n=0}^\infty (-1)^n \cdot 2 J_{2n+1}(\kappa b_z) \cdot \cos \left( (2n+1) (m \Delta \phi + \phi _0) \right) \end{aligned}$$
(20)
$$\begin{aligned}= C_0 + C \sum _{n=0}^\infty (-1)^n \cdot 2 J_{2n+1}(\kappa b_z) \cdot \cos \left( (2n+1) \cdot 2 \pi f_{{\mathrm {ac}}} t_m + (2n+1) \phi _0 \right) . \end{aligned}$$
(21)

Here, we used the following relation

$$\begin{aligned} \sin (\beta \cos \theta ) = \sum _{n=0}^\infty (-1)^n \cdot 2 J_{2n+1}(\beta ) \cos \left( (2n+1)\theta \right) ). \end{aligned}$$
(22)

The Qdyne signal is expressed as the sum of odd order components of the signal frequency. We can write the \((2n+1)\)th term using the magnitude \(I_{2n+1}\), phase \(\theta _{2n+1}\), and frequency \(f_{2n+1}\) as

$$\begin{aligned} (-1)^n \cdot 2 J_{2n+1}(\kappa b_z) \cos \left( 2\pi \cdot (2n+1) f_{{\mathrm {ac}}} \cdot t_m + (2n+1) \phi _0 \right) = I_{2n+1} \cos (2 \pi f_{2n+1} t_m + \theta _{2n+1}). \end{aligned}$$
(23)

Since equivalent parameter sets like \((I,f,\theta )=(I,-f,-\theta )\) exist, we impose constraints \(I_{2n+1} \ge 0\) and \(f_{2n+1} \ge 0\). Therefore, the sign of the phase is determined by the magnetic field \(b_z\) and the signal frequency \(f_{{\mathrm {ac}}}\). Alternatively, the sign of \(\theta _{2n+1}\) is determined by two factors: the number of times that \(\kappa b_z\) crosses zero of the Bessel function and the number of times that the Nyquist folding occurs. Eventually, the Qdyne signal is given as follows

$$\begin{aligned} S_m^{{\mathrm {(Qdyne)}}} = C_0 + \sum _{n=0}^\infty I_{2n+1} \cos (2 \pi f_{2n+1} t_m + \theta _{2n+1}). \end{aligned}$$
(24)

So, we obtain \(I_{2n+1} = | 2 C J_{2n+1}(\kappa b_z) |\) and \(|\theta _{2n+1}|=(2n+1) \cdot |\phi _0|\). The resulting magnitude \(I_{2n+1}\) depends only on the magnetic field \(b_z\), whereas the resulting phase \(\theta _{2n+1}\) relies only on the initial phase \(\phi _0\), i.e., the Qdyne protocol achieves an orthogonalized measurement regarding the magnitude and phase of an oscillating signal.

Finaly, each frequency component \(\cos ( 2 \pi f_{2n+1} t_m + \theta _{2n+1} )\) appears as Nyquist-folded signal \(\cos ( 2 \pi \overline{f_{2n+1}} t_m + \overline{\theta _{2n+1}} )\) since the sampling rate \(1/T_L\) is slower than the frequencies \(f_{2n+1}\) (See the next section).

$$\begin{aligned} S_m^{{\mathrm {(Qdyne)}}} = C_0 + \sum _{n=0}^\infty I_{2n+1} \cos (2 \pi \overline{f_{2n+1}} t_m + \overline{\theta _{2n+1}}). \end{aligned}$$
(25)

Nyquist folding and apparent frequency

In the undersampling condition when the sampling interval \(T_L\) is longer than half of the target frequency, the oscillating signal with the frequency \(f_{{\mathrm {s}}}\) and initial phase \(\phi _0\) resemble another oscillating signal with an apparent frequency \(\overline{f_{{\mathrm {s}}}}\) and an apparent phase \(\overline{\phi _0}\) due to Nyquist folding. At first, the phase advancing is congruent with modulo \(2 \pi\) with the relationship expressed as:

$$\begin{aligned} \Delta \phi = 2 \pi T_L f_{{\mathrm {s}}} \equiv 2 \pi T_L \overline{f_{{\mathrm {s}}}} \mod 2 \pi . \end{aligned}$$
(26)

In the Fourier spectrum, the frequency axis spans \((-1/2T_L , 1/2T_L]\), but the apparent frequency is in \([0, 1/2T_L]\). Considering the negative frequency, we obtain a modified phase advancing \(\Delta \phi ''\) given by

$$\begin{aligned} \Delta \phi '= 2 \pi \left( T_L f_{{\mathrm {s}}} - \lfloor T_L f_{{\mathrm {s}}} \rfloor \right) , \end{aligned}$$
(27)
$$\begin{aligned} \Delta \phi ''= \min \left\{ \Delta \phi ', 2\pi - \Delta \phi ' \right\} , \end{aligned}$$
(28)

where \(\lfloor x \rfloor\) is a floor function and \(x-\lfloor x \rfloor\) represents the fractional part of x. This produced the apparent frequency as

$$\begin{aligned} \overline{f_{{\mathrm {s}}}} = \frac{\Delta \phi ''}{2 \pi T_L}. \end{aligned}$$
(29)

Considering a case where the frequency \(f_{{\mathrm {s}}}\) increases from 0, Nyquist folding occurs under the condition that the product \(T_L \times f_{{\mathrm {s}}}\) is an integer or a half-integer. The apparent phase flips after each folding, and therefore, an apparent phase is obtained from the following

$$\begin{aligned} \overline{\phi _0} = \phi _0 \cdot (-1)^{\lfloor 2 T_L f_{{\mathrm {s}}} \rfloor }. \end{aligned}$$
(30)

Definition of phase precision

In the main text, we define phase precision by a geometric and intuitive illustration. In this section, we justify this definition through the statistical estimation theory.

Our measurement scheme involves estimation of two parameters, radius r and angle \(\theta\) from a complex observed value Z with noise. Let \(X_1\) and \(X_2\) be the real and imaginary parts, respectively. Assuming \(X_i\,(i=1,2)\) obey a normal distribution with a variance \(\sigma ^2\) independently, the probability distribution functions are as follows:

$$\begin{aligned} f(x_1)= \frac{1}{\sqrt{2\pi \sigma ^2}} \exp \left( -\frac{(x_1 - r\cos \theta )^2}{2\sigma ^2} \right) , \end{aligned}$$
(31)
$$\begin{aligned} f(x_2)= \frac{1}{\sqrt{2\pi \sigma ^2}} \exp \left( -\frac{(x_2 - r\sin \theta )^2}{2\sigma ^2} \right) . \end{aligned}$$
(32)

Then, a likelihood function \(L(r,\theta )\) and Fisher information matrix \({{\mathscr {I}}}\) are obtained as:

$$\begin{aligned} \ln L(r,\theta )= \sum _{i=1,2} \ln f(x_i), \end{aligned}$$
(33)
$$\begin{aligned} {{\mathscr {I}}}= [\partial _i(\ln L) \partial _j(\ln L)]_{i,j \in \{r,\theta \}} = \begin{bmatrix} 1/\sigma ^2 &{} 0 \\ 0 &{} r^2 / \sigma ^2 \end{bmatrix}. \end{aligned}$$
(34)

According to the Cramèr–Rao inequality, the standard deviation of any unbiased estimator \(\hat{\theta }\) of \(\theta\) is bounded by the reciprocal of the square root of the Fisher information, expressed as:

$$\begin{aligned} {{\mathrm {std}}[\hat{\theta }] \ge \frac{1}{\sqrt{{\mathscr {I}}}_{\theta \theta }}} = \frac{\sigma }{r}.\end{aligned}$$
(35)

Meanwhile, in this situation, our definition of the phase precision \(\delta \theta\) is:

$$\begin{aligned} \delta \theta = \sin ^{-1} \frac{\sigma }{r} \ge \frac{\sigma }{r} = \frac{1}{\sqrt{{{\mathscr {I}}}_{\theta \theta }}}. \end{aligned}$$
(36)

Therefore, our definition is above the Cramèr–Rao bound and equals the bound asymptotically with a small noise \((\sigma \ll r)\).