## Abstract

Spectroscopic analysis of AC magnetic signal using diamond quantum magnetometry is a promising technique for inductive imaging. Conventional dynamic decoupling like XY8 provides a high sensitivity of an oscillating magnetic signal with intricate dependence on magnitude and phase, complicating high throughput detection of each parameter. In this study, a simple measurement scheme for independent and simultaneous detection of magnitude and phase is demonstrated by a sequential measurement protocol. Wide-field imaging experiment was performed for an oscillating magnetic field with approximately \(100\,\upmu \hbox {m}\)-squared observation area. Single pixel phase precision was \(2.1^{\circ }\) for \(0.76\,\upmu \hbox {T}\) AC magnetic signal. Our method enables potential applications including inductive inspection and impedance imaging.

## Introduction

A negatively charged nitrogen-vacancy (NV) center in diamond offers a promising material platform for quantum sensing^{1,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 modality^{7,8,9,10}, and local current characterizations using NV center have been achieved^{11,12,13,14,15,16}. Wide-field imaging using NV center paves the way for inductive inspection^{17,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 signa^{19,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 measurement^{23,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 protocol^{25}. 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 iQdyne^{26}, a wide-field modality of Qdyne^{27,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.

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

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

after the XY8 sequence^{25,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

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

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

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 elsewhere^{26}.

## 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 distribution^{30}, 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

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 vortex^{15}. 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 work^{26}. 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 work^{21}. 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

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

where \(\Phi\) is the accumulated phase on the spin state^{25}. 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

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

Their susceptibilities are as follows

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

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

Here, we used the following relation

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

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

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

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

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

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

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

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

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

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:

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

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

## Data availability

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

## References

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

*Rev. Mod. Phys.***89**, 035002. https://doi.org/10.1103/RevModPhys.89.035002 (2017). - 2.
Casola, F., van der Sar, T. & Yacoby, A. Probing condensed matter physics with magnetometry based on nitrogen-vacancy centres in diamond.

*Nat. Rev. Mater.***3**, 17088. https://doi.org/10.1038/natrevmats.2017.88 (2018). - 3.
Pezzagna, S., Naydenov, B., Jelezko, F., Wrachtrup, J. & Meijer, J. Creation efficiency of nitrogen-vacancy centres in diamond.

*New J. Phys.***12**, 065017. https://doi.org/10.1088/1367-2630/12/6/065017 (2010). - 4.
Ozawa, H., Hatano, Y., Iwasaki, T., Harada, Y. & Hatano, M. Formation of perfectly aligned high-density NV centers in (111) CVD-grown diamonds for magnetic field imaging of magnetic particles.

*Jpn. J. Appl. Phys.***58**, SIIB26. https://doi.org/10.7567/1347-4065/ab203c (2019). - 5.
Ishiwata, H.

*et al.*Perfectly aligned shallow ensemble nitrogen-vacancy centers in (111) diamond.*Appl. Phys. Lett.***111**, 043103. https://doi.org/10.1063/1.4993160 (2017). - 6.
Tetienne, J.-P.

*et al.*Spin properties of dense near-surface ensembles of nitrogen-vacancy centers in diamond.*Phys. Rev. B***97**, 085402. https://doi.org/10.1103/PhysRevB.97.085402 (2018). - 7.
Ziem, F., Garsi, M., Fedder, H. & Wrachtrup, J. Quantitative nanoscale MRI with a wide field of view.

*Sci. Rep.***9**, 12166. https://doi.org/10.1038/s41598-019-47084-w (2019). - 8.
Steinert, S.

*et al.*Magnetic spin imaging under ambient conditions with sub-cellular resolution.*Nat. Commun.***4**, 1607. https://doi.org/10.1038/ncomms2588 (2013). - 9.
Horsley, A.

*et al.*Microwave device characterization using a widefield diamond microscope.*Phys. Rev. Appl.***10**, 044039. https://doi.org/10.1103/PhysRevApplied.10.044039 (2018). - 10.
Fescenko, I.

*et al.*Diamond magnetic microscopy of malarial hemozoin nanocrystals.*Phys. Rev. Appl.***11**, 034029. https://doi.org/10.1103/PhysRevApplied.11.034029 (2019). - 11.
Tetienne, J.-P.

*et al.*Quantum imaging of current flow in graphene.*Sci. Adv.***3**, e1602429. https://doi.org/10.1126/sciadv.1602429 (2017). - 12.
Schlussel, Y.

*et al.*Wide-field imaging of superconductor vortices with electron spins in diamond.*Phys. Rev. Appl.***10**, 034032. https://doi.org/10.1103/PhysRevApplied.10.034032 (2018). - 13.
Lillie, S. E.

*et al.*Imaging graphene field-effect transistors on diamond using nitrogen-vacancy microscopy.*Phys. Rev. Appl.***12**, 024018. https://doi.org/10.1103/PhysRevApplied.12.024018 (2019). - 14.
Tetienne, J.-P.

*et al.*Apparent delocalization of the current density in metallic wires observed with diamond nitrogen-vacancy magnetometry.*Phys. Rev. B***99**, 014436. https://doi.org/10.1103/PhysRevB.99.014436 (2019). - 15.
Zhou, B. B.

*et al.*Spatiotemporal mapping of a photocurrent vortex in monolayer MoS_{2}using diamond quantum sensors.*Phys. Rev. X***10**, 011003. https://doi.org/10.1103/PhysRevX.10.011003 (2020). - 16.
Chatzidrosos, G.

*et al.*Eddy-current imaging with nitrogen-vacancy centers in diamond.*Phys. Rev. Appl.***11**, 014060. https://doi.org/10.1103/PhysRevApplied.11.014060 (2019). - 17.
Flanagan, I. M., Jordan, J. R. & Whittington, H. W. An inductive method for estimating the composition and size of metal particles.

*Meas. Sci. Technol.***1**, 381–384. https://doi.org/10.1088/0957-0233/1/5/001 (1990). - 18.
Ribeiro, A. L. & Ramos, H. G. Inductive probe for flaw detection in non-magnetic metallic plates using eddy currents. In

*2008 IEEE Instrumentation and Measurement Technology Conference*, 1447. https://doi.org/10.1109/IMTC.2008.4547270 (IEEE, 2008). - 19.
Wolf, T.

*et al.*Subpicotesla diamond magnetometry.*Phys. Rev. X***5**, 041001. https://doi.org/10.1103/PhysRevX.5.041001 (2015) - 20.
Barry, J. F.

*et al.*Optical magnetic detection of single-neuron action potentials using quantum defects in diamond.*Proc. Natl. Acad. Sci.***113**, 14133–14138. https://doi.org/10.1073/pnas.1601513113 (2016). - 21.
Masuyama, Y.

*et al.*Extending coherence time of macro-scale diamond magnetometer by dynamical decoupling with coplanar waveguide resonator.*Rev. Sci. Instrum.***89**, 125007. https://doi.org/10.1063/1.5047078 (2018). - 22.
Ishikawa, T., Yoshizawa, A., Mawatari, Y., Kashiwaya, S. & Watanabe, H. Sensitive measurement of phase shift of an AC magnetic field by quantum sensing with multiple-pulse decoupling sequences.

*J. Appl. Phys.***126**, 064504. https://doi.org/10.1063/1.5096610 (2019). - 23.
Wang, C., Fan, M., Cao, B., Ye, B. & Li, W. Novel noncontact eddy current measurement of electrical conductivity.

*IEEE Sens. J.***18**, 9352–9359. https://doi.org/10.1109/JSEN.2018.2870676 (2018). - 24.
Deng, W.

*et al.*Research on eddy current imaging detection of surface defects of metal plates based on compressive sensing.*Math. Probl. Eng.***1–11**, 2018. https://doi.org/10.1155/2018/1347563 (2018). - 25.
de Lange, G., Ristè, D., Dobrovitski, V. V. & Hanson, R. Single-spin magnetometry with multipulse sensing sequences.

*Phys. Rev. Lett.***106**, 080802. https://doi.org/10.1103/PhysRevLett.106.080802 (2011). - 26.
Mizuno, K.

*et al.*Wide-field diamond magnetometry with millihertz frequency resolution and nanotesla sensitivity.*AIP Adv.***8**, 125316. https://doi.org/10.1063/1.5048265 (2018). - 27.
Schmitt, S.

*et al.*Submillihertz magnetic spectroscopy performed with a nanoscale quantum sensor.*Science***356**, 832–837. https://doi.org/10.1126/science.aam5532 (2017). - 28.
Boss, J. M., Cujia, K. S., Zopes, J. & Degen, C. L. Quantum sensing with arbitrary frequency resolution.

*Science***356**, 837–840. https://doi.org/10.1126/science.aam7009 (2017). - 29.
Ishikawa, T., Yoshizawa, A., Mawatari, Y., Watanabe, H. & Kashiwaya, S. Influence of dynamical decoupling sequences with finite-width pulses on quantum sensing for AC magnetometry.

*Phys. Rev. Appl.***10**, 054059. https://doi.org/10.1103/PhysRevApplied.10.054059 (2018). - 30.
Beauchamp, K. G.

*Signal Processing: Using Analog and Digital Techniques*(Allen & Unwin, London, 1973).

## Acknowledgements

We thank Toshiharu Makino for fabricating the diamond samples. This work was supported by the MEXT Quantum Leap Flagship Program (MEXT Q-LEAP), Grant Number JPMXS0118067395 and JST, PRESTO, Grant Number JPMJPR17G1, Japan.

## Author information

### Affiliations

### Contributions

K.M. conceived the study, built the experimental setup for phase imaging, performed the measurements, analyzed the data, and wrote the manuscript. H.I. contributed in refining the concept, while Y.M. contributed in building the microwave setup. H.I., T.I., and M.H. provided inputs in the discussion section, whereas M.H. supervised the study.

### Corresponding author

## Ethics declarations

### Competing interests

The authors declare no competing interests.

## Additional information

### Publisher's note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

## Rights and permissions

**Open Access** This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/.

## About this article

### Cite this article

Mizuno, K., Ishiwata, H., Masuyama, Y. *et al.* Simultaneous wide-field imaging of phase and magnitude of AC magnetic signal using diamond quantum magnetometry.
*Sci Rep* **10, **11611 (2020). https://doi.org/10.1038/s41598-020-68404-5

Received:

Accepted:

Published:

## Comments

By submitting a comment you agree to abide by our Terms and Community Guidelines. If you find something abusive or that does not comply with our terms or guidelines please flag it as inappropriate.