# Noise-robust quantum sensing via optimal multi-probe spectroscopy

## Abstract

The dynamics of quantum systems are unavoidably influenced by their environment, but in turn observing a quantum system (probe) can allow one to measure its environment: Measurements and controlled manipulation of the probe such as dynamical decoupling sequences as an extension of the Ramsey interference measurement allow to spectrally resolve a noise field coupled to the probe. Here, we introduce fast and robust estimation strategies for the characterization of the spectral properties of classical and quantum dephasing environments. These strategies are based on filter function orthogonalization, optimal control filters maximizing the relevant Fisher Information and multi-qubit entanglement. We investigate and quantify the robustness of the schemes under different types of noise such as finite-precision measurements, dephasing of the probe, spectral leakage and slow temporal fluctuations of the spectrum.

## Introduction

The dynamics of a quantum system is inevitably affected by its usually deleterious interaction with the environment1,2. Especially, the advent of quantum technologies, such as quantum computing3, quantum communication2, and quantum metrology4,5 has led to increasing interest in measuring the environment: indeed, quantum sensing4,5,6,7 itself is considered to be a quantum technology.

Robust control of a quantum system is crucial to perform quantum information processing8,9,10,11,12, which has to be protected from decoherence or noise contributions originating from the environment, employing strategies such as dynamical decoupling13,14 and optimal control theory15,16. Yet, unfortunately, it can be never completely shielded11,17,18,19. Indeed, the decay of the coherence depends in a characteristic way on the spectrum of the bath and the control of the system, and can be described by a universal formula20,21,22. On the one hand, this knowledge can be used to exploit the bath to perform tasks such as optimized state transfer23,24,25,26,27. On the other hand, it allows to examine the influence of a specific frequency window of the bath modes by designing a suitable control. The application of different control functions lies at the core of the so-called filter function approach to spectrally-resolved quantum sensing6,21,22,28,29. Several protocols for this type of frequency-resolved measurement of the spectral density have been designed based on multiple pulse sequences14,30,31,32,33,34,35,36.

Experimentally, quantum sensing has been performed with optimal control theory (open-loop) pulses for improved magnetometry37,38, and real-time adaptive measurements39 with single-spin sensors. These sensors have been also implemented on scanning device to gain spatial resolution of the field strength40,41. Moreover, noise spectroscopy methods have been tested with a variety of different platforms as super-conducting flux qubits35, single nuclear spins in polycrystals34 and NV-centers42 and have impact also in biomedicine, as demonstrated e.g. for disease-detection in mouse brains43,44.

Recent developments in the field of quantum sensing with temporal resolution include the study of multi spectra29,45, which provide more information on the non-Gaussianity of a signal. These studies build on a general transfer-function approach to noise filtering via open-loop quantum control, that has been recently introduced in28 for Gaussian dephasing environments, and extended to non-Gaussian environments and multi-spectra in29 and to the use of multiple qubits in45. In particular, regarding the use of multi-probing scheme exploiting quantum probes embedded in the same bath, in46 the case of two qubits coupled to a bosonic reservoir has been analyzed, so as to understand whether multiple quantum probes perform better than a single qubit. As a result, it was found that the estimation of the cutoff frequency of the environmental spectral density is improved in some range of the parameter if the two qubits are in a Bell state. This study, thus, clearly implies that there exists cases in which an improved estimation precision is reached when two or more quantum probes share information about some features of the environment to be measured in the form of quantum correlations. Reference47, moreover, introduces a way to determine the main features of an environment by drastically reducing the measurement complexity. To this aim, the spectrum of the environment is parameterized so that the width of the spectrum can be determined even by a single measurement, where the precision of this measurement is optimized by help of the Fisher information associated with the measurement outcomes and the parameter.

Recently, also the problem of spectral leakage has gained interest29,48,49. Most protocols can investigate the signal only in a finite frequency band, while the interaction of the probe with the environment has contributions also outside this band and those contributions can have a deleterious effect on the measurement precision. This problem has been addressed by parameterizing the high-frequency contributions34, as well as by extending the measurement range associated with a given temporal resolution of the control29 in the context of dynamical decoupling or bang-bang control13, while for continuous pulse modulation22,36 it has been proved that the out-of-band interactions can be suppressed by the use of Slepian-functions49.

In this paper, we introduce a reconstruction algorithm for the spectrum of a signal that is based on the orthogonalization of the applied filter functions, as well as on the use of entangled multi-qubit probes. We test the robustness of this algorithm for two different noise models, based on dephasing and finite precision measurement, as well as on statistical errors. The robustness is quantified in terms of a directional Fisher information, which is based on the Fisher Information Operator recently introduced in the context of stochastic quantum Zeno dynamics50,51,52. Finally, we employ optimal control theory to construct filter functions that maximize this Fisher information and, thus, the sensitivity of the filter with respect to the signal. We show how both filter orthogonalization and filter optimization brings about a speed-up in the sensing procedure that can help to fight different forms of noise.

## Results

### Filter function approach and protocols for spectrally resolved sensing

Let us consider a two-level system, given by the two levels |0〉 and |1〉, that interacts with a fluctuating field E(t) via E(t)σz, where σz is the z-Pauli matrix – see also Fig. 1. Following6,20,34, we prepare the system in its lower state |0〉 and apply an initial π/2-pulse to bring it into the superposition state $$(|0\rangle +|1\rangle )/\sqrt{2}$$. Then, we apply a sequence of π-pulses (i.e. population flips between |0〉 and |1〉) that we describe by a pulse modulation function y(t)  {−1, 1} that switches sign at the position of the pulses.

The system then acquires a phase ϕ(t) leading to the state $$[{{\rm{e}}}^{i\varphi (t)}|0\rangle +{{\rm{e}}}^{-i\varphi (t)}|1\rangle ]/\sqrt{2}$$, and this phase can be measured via a population measurement after a final π/2-pulse that brings the system into the state $$[({{\rm{e}}}^{i\varphi (T)}+{{\rm{e}}}^{-i\varphi (T)})|0\rangle +({{\rm{e}}}^{i\varphi (T)}-{{\rm{e}}}^{-i\varphi (T)})|1\rangle ]/2$$, where T is the total operation time of the pulse sequence. The phase is determined by the fluctuating field and the modulation function, and can be written as

$$\varphi (t)={\int }_{0}^{t}\,y(t^{\prime} )E(t^{\prime} )dt^{\prime} .$$
(1)

If we average over many realizations of the sequence, then we can describe the dephasing by a decoherence function χ(t). The latter enters the probability p(t) to find the system in state |0〉 upon measurement as

$$p(t)=\frac{1}{2}(1-{{\rm{e}}}^{-\chi (t)})$$
(2)

and is given by

$$\chi (t)=\frac{1}{2}{\int }_{0}^{t}\,{\int }_{0}^{t}\,y(t^{\prime} )y(t^{\prime\prime} )g(t^{\prime} -t^{\prime\prime} )dt^{\prime} dt^{\prime\prime} ,$$
(3)

where

$$g(t^{\prime} -t^{\prime\prime} )\equiv \langle E(t^{\prime} )E(t^{\prime\prime} )\rangle$$
(4)

is the autocorrelation function of the fluctuating field E(t). In Eq. (4), the brackets 〈·〉 mean averaging over the realizations of the stochastic field E(t).

The Fourier transform of the autocorrelation function denotes the power spectral density S(ω) of the field E(t):

$$S(\omega )={\int }_{-\infty }^{\infty }\,g(\tau ){e}^{i\omega \tau }d\tau .$$
(5)

As shown in detail in the Methods, also for continuous pulse modulations, the decoherence function χ(T) can be written in terms of S(ω) and a so-called filter function F(ω), i.e.

$$\chi (T)={\int }_{0}^{\infty }\,S(\omega ){F}_{T}(\omega )d\omega .$$
(6)

In the following, we call T the filter operation time. The filter function is defined as $${F}_{T}(\omega )=\frac{4}{\pi }|{Y}_{T}(\omega ){|}^{2}$$, where

$${Y}_{T}(\omega )\equiv {\int }_{0}^{T}\,y(t){e}^{i\omega t}dt$$
(7)

is the Fourier transform of the pulse modulation function. To simplify the notation, we will omit the time in the subscript and identify F ≡ FT and Y ≡ YT. By engineering the pulse modulation function, we can design different filter functions F(ω) that select specific frequency ranges of the power spectral density S(ω). In order to estimate the functional behaviour of the power spectral density S(ω), we employ in the following a set of K filter functions Fk(ω), k = 1, …, K, each of them generated by a different sequence of π-pulses and we measure the decoherence function after the application of each of these filters. We will then describe protocols that compose the functional behaviour of S(ω) from the single measurement outcomes, so that we can reconstruct S(ω) in a range ω [0, ωc] for some cut-off frequency ωc.

Let us first introduce a novel protocol, which is based on the orthogonalization of the filter functions Fk(ω), k = 1, …, K. For the sake of brevity, from here on we will denote this new protocol with the acronym Filter Orthogonalization (FO) protocol. Then, we recall the Alvàrez-Suter (AS) protocol34, that will be used as a benchmark to test the performance of the new approach. Finally, we will also introduce a fidelity measure to evaluate the performance of the protocols.

#### Filter Orthogonalization protocol

The filter functions of the FO protocol in principle can be chosen arbitrarily. Here we choose to base them on equidistant pulse sequences and design the latter by positioning the π-pulses at the zeros of $$\cos [{\omega }_{{\max }}\frac{k-1}{K}t^{\prime} ]$$, with k = 1, …, K. Note that this includes also a sequence without any π-pulse (for k = 1) corresponding to a filter function sensitive to the frequency ω = 0. Instead, ωmax is a constant that determines the bandwidth within which we can analyse the spectrum of the signal (the field E(t)), and the filter corresponding to the highest frequency is centered around (1 − 1/K)ωmax. The population measurements at the end of the filter application will yield the coefficients

$${c}_{k}={\int }_{0}^{\infty }\,S(\omega ){F}_{k}(\omega )d\omega ,$$
(8)

which is the value of the decoherence function χ(T) at the end of the application of the filter Fk. We then calculate the K × K matrix A, whose matrix elements

$${A}_{kl}={\int }_{0}^{{\omega }_{c}}\,{F}_{k}(\omega ){F}_{l}(\omega )d\omega$$
(9)

quantify the overlap in the frequency domain between the filter functions Fk(ω) and Fl(ω) (k, l 1, …, K). We truncate the integral at the cut-off frequency ωc, since we want to analyse S(ω) only in the interval [0, ωc]. The matrix A is symmetric and can be orthogonalized by means of the following transformation:

$$V\,A{V}^{{\rm{T}}}={\rm{\Lambda }},$$
(10)

where Λ ≡ diag(λ1, …, λK) are the eigenvalues of A and V is an orthogonal matrix. The K filters span a K-dimensional function space that has an orthonormal basis

$${\mathop{F}\limits^{ \sim }}_{k}(\omega )=\frac{1}{\sqrt{{\lambda }_{k}}}\,\sum _{l=1}^{K}\,{V}_{kl}{F}_{l}(\omega ),\,k=1,\ldots ,K$$
(11)
$${\int }_{0}^{{\omega }_{c}}\,{\mathop{F}\limits^{ \sim }}_{k}(\omega ){\mathop{F}\limits^{ \sim }}_{l}(\omega )={\delta }_{kl},$$
(12)

with the Kronecker-Delta δkl. If we expand the spectral density S(ω) in this orthogonal basis, we obtain the coefficients

$${\mathop{c}\limits^{ \sim }}_{k}={\int }_{0}^{{\rm{\infty }}}\,S(\omega ){\mathop{F}\limits^{ \sim }}_{k}(\omega )=\frac{1}{\sqrt{{\lambda }_{k}}}\,\sum _{l=1}^{K}\,{V}_{kl}{c}_{l}.$$
(13)

Hence, we obtain an estimate $$\mathop{S}\limits^{ \sim }(\omega )$$ of the power spectral density S(ω) given by the expansion

$$\mathop{S}\limits^{ \sim }(\omega )=\sum _{k=1}^{K}\,{\mathop{c}\limits^{ \sim }}_{k}{\mathop{F}\limits^{ \sim }}_{k}.$$
(14)

#### Alvàrez-Suter protocol

For the AS protocol we use as well K equidistant pulse sequences. However, due to the requirements of this protocol, this time we position the π-pulses at the zeros of

$$\sin \,[{\omega }_{max}\frac{k}{K}t^{\prime} ],\,k=1,\ldots ,K.$$
(15)

As a consequence, the minimal frequency that can be resolved is ωmax/K, while the maximal frequency that can be resolved is exactly ωmax. Indeed, the protocol will yield the value of S(ω) at the K discrete points $${\omega }_{k}={\omega }_{max}\frac{k}{K}$$.

To reconstruct S(ω) pointwise, we then employ the AS protocol34, where long pulse sequences (ca. 30–100 pulses) produce a Dirac-delta-like shape of the filter functions. The FO protocol, instead, does not rely on this Dirac-delta-shape filters and thus can in principle work with a smaller number of pulses (smaller filter operation time) and reconstructs the power spectral density S(ω) as a continuous function. In the following, unless specified otherwise, for both protocols we choose K = 20 and ωc = 10. For the FO protocol, we choose ωmax = 11.5 to avoid border effects near to the cut-off frequency. For the AS protocol, instead, we choose ωmax = ωc = 10 so that the K values of S(ω) obtained by this protocol cover the desired bandwidth.

#### Estimation Fidelity

To compare the two estimation protocols and different sets of parameters, we introduce a fidelity measure. This is not straightforward, since the AS protocol reconstructs S(ω) only in a set of discrete points $${\omega }_{k}={\omega }_{max}\frac{k}{K}$$, k = 1, … K, while the FO protocol reconstructs a continuous function. We choose to compare the values of S(ω) only on the mentioned set of discrete points, and define the fidelity as

$${\mathscr{F}}=\frac{1}{K}\,\sum _{k=1}^{K}\,\frac{S({\omega }_{k})\mathop{S}\limits^{ \sim }({\omega }_{k})}{\parallel S(\omega )\parallel \,\parallel \mathop{S}\limits^{ \sim }(\omega )\parallel },$$
(16)

where $$\mathop{S}\limits^{ \sim }(\omega )$$ is the reconstructed power spectral density and the norm $$\parallel S(\omega )\parallel$$ is given by

$$\parallel S(\omega ){\parallel }^{2}=\frac{1}{K}\,\sum _{k\mathrm{=1}}^{K}\,S{({\omega }_{k})}^{2}$$

for the power spectral density and analogously for its estimate $$\mathop{S}\limits^{ \sim }(\omega )$$.

### Robust noise sensing under measurement noise and dephasing

The estimation of the power spectral density S(ω) relies on the measurement of the probability $${p}_{k}=\frac{1}{2}(1-{e}^{-{c}_{k}})$$, which quantifies the overlap between S(ω) and each filter function Fk(ω), k = 1, …, N, given by the coefficients $${c}_{k}=\int \,S(\omega ){F}_{k}(\omega )d\omega$$. The values of the pk’s are measured via state population measurements, which are unavoidably affected by external sources of error, due to the presence of imperfections of the measurement device, statistical errors and detector noise contributions.

In this section, we will model two essential sources of error in the state population measurement. In particular, we assume that each measurement of pk is affected by an absolute error Δpk, which is independent from the value of pk (and thus its statistics is independent from k). This error Δpk is chosen randomly from a uniform distribution defined by the interval Δpk [−Δpmax, Δpmax], where Δpmax ≥ 0 is the maximum absolute value admissible by Δpk. Furthermore, we assume also that the relative phase between the two probe qubit states (|0〉 and |1〉, respectively) is additionally damped by a dephasing contribution (different from the influence of the field E(t)). This additional dephasing models the instability/natural imperfection of the probe system and is described by the rate Γ, such that for a filter operation time T the decoherence function increases by ΓT with respect to the case without dephasing. We have thus to take into account that under the presence of measurement noise and dephasing we will not effectively measure pk, but the probability $${\hat{p}}_{k}$$ defined as

$${\hat{p}}_{k}\equiv {\tilde{p}}_{k}+{\rm{\Delta }}{p}_{k},$$
(17)

where

$${\tilde{p}}_{k}\equiv \frac{1}{2}\,(1-{{\rm{e}}}^{-{c}_{k}-{\rm{\Gamma }}T})={p}_{k}+\frac{1}{2}{{\rm{e}}}^{-{c}_{k}}\,(1-{{\rm{e}}}^{-{\rm{\Gamma }}T}).$$
(18)

As a consequence, for a small error $${\rm{\Delta }}{\hat{p}}_{k}$$ it holds that

$${\rm{\Delta }}{\hat{p}}_{k}=\frac{1}{2}{{\rm{e}}}^{-{c}_{k}-{\rm{\Gamma }}T}{\rm{\Delta }}{c}_{k},$$
(19)

which has been obtained by performing the derivative of Eq. (17) with respect to ck. In Eq. (19), Δck is the resulting error in the coefficient ck. Since we want to determine the functional shape of S(ω), the relevant error is the relative error Δck/ck (the absolute value of the coefficients ck can usually be tuned by changing the distance of the probe to the source of the signal S(ω), which results in a change in the intensity of the field E(t) at the site of the probe). For this relative error we find

$$\frac{{\rm{\Delta }}{c}_{k}}{{c}_{k}}=\frac{{{\rm{e}}}^{{c}_{k}}}{{c}_{k}}{{\rm{e}}}^{{\rm{\Gamma }}T}{\rm{\Delta }}{\hat{p}}_{k},$$
(20)

which takes its minimum for ck = 1, with a quite flat behaviour (about 10% increase) between about 0.5 and 1.5. Accordingly, if possible, the measurement has to be performed in this regime of maximum sensitivity and we will do this in the simulations. Let us observe, moreover, that the relative error scales exponentially with respect to the filter operation time T and the dephasing rate Γ.

In the remaining part of this paragraph, we have accordingly studied the performance of the FO protocol in comparison with the AS protocol by simulating the measurement of the power spectral density $$S(\omega )=\frac{{S}_{0}}{1+{(\omega -2)}^{2}}+\frac{0.7{S}_{0}}{1+2{(\omega -6)}^{2}}$$, which is a spectrum that can arise for example from the spontaneous decay at two different frequencies. In the next figures, the operation time is a dimensionless number given in the unit of ωT, while for the error model we have assumed a measurement noise given by Δpmax = 0.01. Then, we have chosen S0T in such a way that the probe operates in the maximum sensitivity range (ck ≈ 1) for all choices of T and most of the K filters (we consider the same S0 and T for all K filters, but not all of them have the same overlap with S(ω)). Let us observe that for a given dephasing rate Γ the time-exponential increase of the measurement error Δck/ck will favour smaller values of the filter operation time T. On the other side, if we choose T too small, then the filters lose their frequency selectivity as they flatten out in the frequency domain. Figure 2 shows how the fidelity scales with the filter operation time T for the FO protocol given a dephasing rate of Γ = 0.4. For each value of Γ and for both sensing protocols, we have prepared such a graph to determine the optimal value of T out of the tested values, e.g. T = 2 out of the values T = 1, 2, 3, 5, 7, 10 used in the example of Fig. 2. Then, in Fig. 3 we reconstruct the spectral density S(ω) for this optimal choice of T and show the fidelity of this estimate as a function of the dephasing Γ. Finally, the reconstructed functional shape of the power spectral density S(ω) obtained by each of the sensing protocols is shown in Fig. 4 for Γ = 0 and in Fig. 5 for Γ = 0.4, respectively. Note that if the measurements are affected by noise, for the FO protocol the estimation accuracy can be improved just by omitting in the expansion of Eq. (14) the terms with the smallest eigenvalues λk of the matrix A. In the simulations, depending on T we have used between 10–20 terms out of K = 20 (the larger T, the less eigenvalues are omitted) in order to minimize the effect of the noise.

#### Application: NV-centers in diamond

The above examples are calculated with dimensionless variables and the results hold with suitable scaling of the parameters. As an applicative example, we can consider a nitrogen-vacancy defect in diamond. Typical dephasing rates are of the order of 1/Γ = 100 μs42. By fixing the dephasing rate, the units of all other parameters are defined so that we can now interpret Fig. 5 as an example with NV-centers in diamond with parameters 1/Γ = 100 μs, Δpmax = 0.01, and ω [0, 2π × 0.4 kHz]. By taking such values for the noise parameters, the corresponding operation time is, respectively, equal to T = 80 μs for the FO protocol and T = 200 μs for the AS protocol.

### Fighting spectral leakage via entangled multi-qubit probes

In this section, we introduce estimation protocols employing entangled multi-qubit probes and show how they can be used to fight spectral leakage in the sensing protocol. Spectral leakage is a known source of error that arises from the fact that the support of the filter functions is larger than the bandwidth they can analyse29,34. As a consequence, spectral contributions of the signal S(ω) outside the analysed bandwidth, but within the support of the filters, can disturb the reconstruction of the signal also within the analysed bandwidth.

The key idea of our entangled multi-qubit probes is that instead of applying the initial π/2 pulses, we prepare an N qubit system in the GHZ state

$$\frac{|0\ldots 0\rangle +|1\ldots 1\rangle }{\sqrt{2}}.$$
(21)

Then, during the main part of the protocol, we apply single qubit pulses to each qubit individually. The pulse modulation function y(t) is then generalized to the single qubit modulation function yi(t) (i = 1, …, N), where a switch of sign of yj(t) indicates the application of a single qubit π-pulse on qubit j. The final filter function for N qubits then reads

$$F(\omega )=\frac{4}{\pi }|Y(\omega ){|}^{2}=\frac{4}{\pi }\,{|{\int }_{0}^{T}\sum _{j=1}^{N}{y}_{j}(t){e}^{i\omega t}dt|}^{2}.$$
(22)

We can then use these multi-qubit probe filters for the FO protocol. For more details we refer to the Methods.

We test the multi-qubit filters by reconstructing

$$S(\omega )=\frac{{S}_{0}}{1+{(\omega -2)}^{2}}+\frac{0.7{S}_{0}}{1+2{(\omega -6)}^{2}}+\frac{5{S}_{0}}{1+{(\omega -20)}^{2}}$$

in a range ω [0, ωc = 10] with filters designed for that range. The first two terms are as in the previous section. The last term has its main contribution outside the analysed range and thus potentially leads to spectral leakage. We choose its amplitude to be large enough to effectively disturb the measurement of the spectrum in the range ω [0, ωc = 10] using the methods presented in the previous section. Figure 6 shows how the estimation fidelity (FO protocol) scales with the number of qubits in the multi-qubit probe. Note that this is done only for the FO protocol since the AS protocol does not allow for a straightforward extension to multiple qubits as it relies on Dirac-Delta-shaped filters. Figure 7 gives an insight to the dependency of the estimation fidelity on the number of qubits: The peak of the power spectral density outside the filter range causes a distortion of the reconstruction when using only one qubit (spectral leakage). The reason is that the pulse modulation function introduces also higher frequencies (i.e. outside the analysed bandwidth or filter range) due to the stepwise modulation. A multi-qubit probe allows for intermediate steps and thus suppresses these high-frequency contributions in the filters. As a consequence, the peak outside the filter range does not significantly disturb the reconstruction within the analysed range. This is true already for only 3–5 qubits.

#### Application: Trapped Ions

The essential ingredient in this section is the creation of the GHZ-states. These states can be conveniently generated in linear ion traps via a Mølmer-Sørensen-gate operation53. Each ion represents one qubit and the gate operation generates a GHZ-state on the spin states of the ions. While the gate is very robust with respect to the state of the vibrational mode, still the states are not perfectly generated, especially for more than two qubits. In our model, we encode this state-preparation error in the value of Δpmax. Inspired by the experimental values in53 we choose Δpmax = 0.01, 0.02, 0.03, 0.04, 0.1 for N = 1, 2, 3, 4, 6 qubits (note that we omit N = 5, since in the reference no value for the fidelity with N = 5 is presented), respectively and a dephasing rate Γ = 0.01 ms−1. We simulate the measurement of the signal

$$S(\omega )=\frac{{S}_{0}}{1+{(\omega -{\omega }_{1})}^{2}}+\frac{0.7{S}_{0}}{1+2{(\omega -{\omega }_{2})}^{2}}+\frac{5{S}_{0}}{1+{(\omega -{\omega }_{3})}^{2}}$$

in a range ω [0, ωc] with filters designed for that range. The frequency parameters are ω1 = 2π × 1 kHz, ω2 = 2π × 3 kHz, ω3 = 2π × 10 kHz, and ωc = 2π × 5 kHz. Figure 8 shows the resulting fidelity of reconstruction. The optimal filter operation time turned out to be T = 10 ms for N = 1 qubit and T = 4 ms for N ≥ 2 qubits. Smaller filter operation times do not produce the frequency range accurately enough. Larger filter operation times are affected by dephasing, especially collective dephasing when more than one qubit is used. The highest fidelity is achieved for only two qubits and equals to $${\mathcal F} =0.984\pm 0.0025$$. This value could be improved by correcting for deterministic errors in the state preparation, reducing the state preparation error, or reducing the dephasing rate. By doing so, the optimum could be reached for N > 2.

### Optimal control filters via Fisher information

By measuring the survival probability at the end of the filter sequence, we can indeed determine the decoherence function χ(t) and the following functional

$$\xi ={\int }_{0}^{\infty }\,S(\omega )F(\omega )d\omega /\parallel F(\omega ){\parallel }_{c},$$
(23)

where we introduce the continuous norm of the filter function $$\parallel F(\omega ){\parallel }_{c}$$, and the power spectral density $$\parallel S(\omega ){\parallel }_{c}$$ by

$$\begin{array}{rcl}\parallel F{\parallel }_{c}^{2} & = & {\int }_{0}^{{\omega }_{c}}\,|F(\omega ){|}^{2}d\omega \\ \parallel S{\parallel }_{c}^{2} & = & {\int }_{0}^{{\omega }_{c}}\,|S(\omega ){|}^{2}d\omega .\end{array}$$
(24)

Note that $$\xi =\chi (t)/\parallel F{\parallel }_{c}$$ where F(ω) is known, but not S(ω). If we now optimize the modulation function $$y(t)={\sum }_{j=1}^{N}\,{y}_{j}(t)$$ in order to maximize ξ, we will change $$\frac{F(\omega )}{\parallel F{\parallel }_{c}}$$ until it points in the same direction as S(ω) in the corresponding functional space, so that at the maximum point we will find

$$\frac{F(\omega )}{\parallel F{\parallel }_{c}}\approx \frac{S(\omega )}{\parallel S{\parallel }_{c}}.$$
(25)

Note that we can choose the cut-off frequency ωc in such a way that the support of the signal is not truncated, i.e. $${\rm{supp}}\,S(\omega )\subset [0,\,{\omega }_{c}]$$. Alternatively, we can add an additional term to the control objective ξ imposing a constraint on the optimized filters such that they have a vanishing contribution for ω > ωc.

As shown in the Methods section, this optimization procedure corresponds to the maximization of the Fisher Information associated with the sensitivity of the measurement in the direction (within its functional space50) of S(ω), and thus to the maximum sensitivity of the filter with respect to the signal. A similar approach for single-parameter estimation has allowed to determine the characteristic width of the spectrum with maximum sensitivity47.

We test the optimization numerically by trying to design a filter that maximizes the functional ξ for two examples of a given spectral density S(ω): we fix S(ω) and perform the optimization of the control pulses via the DCRAB algorithm54 that straightforwardly allows to include constraints on the pulse bandwidth (or ωc) as well as the additional constraint reflecting the use of π-pulses for single or multi-qubit probes. Figure 9 shows the fidelity $$\xi /\parallel S{\parallel }_{c}$$ for the Lorentzian power spectral density

$$S(\omega )=\frac{{S}_{0}}{1+{(\omega -2)}^{2}}$$

as a function of the number N of qubits employed for the filtering. The green horizontal line shows the near-unity fidelity obtained in the ideal limit of a continuous pulse modulation (an infinite number of qubits or a continuous modulation of Ω(t) – see Methods). The inset shows how the fidelity scales with the pulse duration T for 1 qubit (yellow) and 4 qubits (blue). Note that in both cases the fidelity peaks at T = 5. We choose this optimal value for the time T also for all other optimal-control filter (OCF) results presented hereafter. However, in general this optimal value of T depends on the desired frequency resolution: if the signal is less smooth (as a function of ω) than in our example, the optimal value of T will be larger; if it is smoother, the optimal T will be smaller. Figure 10 shows the corresponding approximations of S(ω) obtained by 1 (yellow) and 6 (blue) qubits, respectively. The green line shows the result in the limit of a continuous pulse modulation. The insets show the shape of the modulation functions for the two discrete cases. Figure 11 shows corresponding the results for an example of a double Lorentzian power spectral density

$$S(\omega )=\frac{{S}_{0}}{1+{(\omega -2)}^{2}}+\frac{0.7{S}_{0}}{1+2{(\omega -6)}^{2}},$$

with very similar conclusions.

### Fast detection of time-dependent spectra

We now consider a complex dynamical system that can exhibit two different competing processes, each leading to a different spectral behaviour of an external field (signal). We further assume that the system is not stable but rather oscillating between the two regimes and model the composite signal as

$$S(\omega ,t)={s}_{1}(t){S}_{1}(\omega )+{s}_{2}(t){S}_{2}(\omega ),$$
(26)

where

$$\begin{array}{rcl}{s}_{1}(t) & = & {\sin }^{2}({\omega }_{osc}t),\\ {s}_{2}(t) & = & {\cos }^{2}({\omega }_{osc}t),\\ {S}_{1}(\omega ) & = & \frac{{S}_{1,0}}{1+{(\omega -2)}^{2}},\\ {S}_{2}(\omega ) & = & \frac{{S}_{2,0}}{1+{(\omega -2)}^{2}}+\frac{0.7{S}_{2,0}}{1+2{(\omega -6)}^{2}}.\end{array}$$

Here, S1(ω) and S2(ω) are the signals corresponding to the two regimes and S1,0, S2,0 are normalization constants. The time-dependent coefficients s1(t) and s2(t) model the oscillation between the two spectral components. Figure 12 shows the signal S(ω, t) for different time instances corresponding to the value of the coefficients s1(t) = 1, s2(t) = 0 (black), s1(t) = 0, s2(t) = 1 (red), and s1(t) = 0.5, s2(t) = 0.5 (green).

In this section, we want to study how these time-dependent coefficients can be measured by the methods developed in this paper, under the assumption that we know the two single components S1(ω) and S2(ω) (e.g. by measuring them in a stable configuration). We then analyse two approaches. In the first one (FO) we apply a sequence of basis filter functions and reconstruct the signal by orthogonalization. The coefficients are obtained by comparing the reconstructed signal with the ansatz of Eq. (26). In the simulations we apply filters of T = 5 duration and apply K = 10 basis filter functions, leading to a total duration of Tc = 50 for the measurement of one time instance of the coefficients s1 and s2 (we assume an instantaneous population measurement). We then repeat this procedure until we cover the time span we want to investigate. In the second approach, we use the OCF protocol discussed above. We first apply the filter optimized for S1(ω) and then the one for S2(ω). Later, we use the measured overlap with the signal to calculate s1 and s2. Again, we use filter operation times of T = 5, such that total duration is Tc = 10 for one time instance. Thus it is 5 times faster compared to the first approach. In the simulations we test it for 1 and for 6 qubits.

We show the results for two different values of ωosc (0.004π and 0.01π) and analyse the time interval t [0, 500]. The first approach can thus sample 10 points, while the second approach 50 points. Figure 13 (for ωosc = 0.004π) and Fig. 14 (for ωosc = 0.01π) show the oscillation of the coefficient s2(t) as measured via the two approaches. For the slower oscillation, the sampling rate of the first scheme (FO) is high enough to resolve the oscillation, and both schemes work well, while the second approach has a clear advantage when operated with 6 qubits. For the faster oscillation, however, the sampling rate of the first approach (FO) is too small, and the measured points do not correspond to the signal. The second approach (OCF), instead still works very well.

## Discussion

We have introduced new concepts in quantum sensing of the power spectral density of a signal, able to considerably speed up the sensing protocols and make them more robust against noise affecting the probe and the signal. In detail, we have introduced the concept of filter orthogonalization allowing us to use more arbitrary shapes of the filter functions, that might have future applications in the detection of multiple baths by distinguishing different single-bath contributions. Then, we have studied a new type of error model that includes probe dephasing and finite detector precision and thus shown the robustness of the protocols in realistic experimental situations. We have also included statistical noise and analyzed its effect on the ultimate precision in terms of the Fisher information. In this regard, we have expanded the approach of47, where the signal is parameterized and the precision of the parameter measurement is optimized: By means of the concept of the Fisher Information Operator we provide a tool to optimize the detection of an arbitrary functional shape of the signal. We have implemented this approach by optimizing the filter overlap with a given signal; this extends optimal control theory to filter design in quantum noise spectroscopy. As an application we have demonstrated that this new method provides a fast way to measure the contribution of two components of a composite signal. We have given two explicit examples of possible experimental realizations, both for single qubits (with NV-centers in diamond) and entangled multi-qubits (with trapped ions), using parameters from existing experiments, showing thus that an experimental realization of our new algorithms is feasible and advantageous with current technology and set-ups. Finally, we have shown how multi-qubit probes and entanglement offer similar advantages as more complex control of the probe49, and we believe that combining the two in a future work could provide new impulses to the study of networks of entangled quantum probes and the detection of both temporal and spatial resolutions55,56.

## Methods

### Estimation of the decoherence function

The presented derivation follows roughly20,21,22. We study a two-level system (with levels |0〉 and |1〉) governed by the Hamiltonian

$$H(t)={H}_{c}(t)+{H}_{S}(t),$$
(27)
$${H}_{c}(t)=\frac{{\rm{\Omega }}(t)}{2}{\sigma }_{x},\,{H}_{S}(t)=E(t){\sigma }_{z},$$
(28)

where Hc and HS are respectively the control and signal Hamiltonian, Ω(t) the applied control field, while E(t) a stochastic field stemming from an interaction with the environment. Moreover, in Eq. (28) σx = |0〉 〈1| + |1〉 〈0| and σz = |1〉 〈1| − |0〉 〈0| are Pauli operators. The system is initially prepared in the state |0〉, which is also the state that we can measure. An initial π/2-pulse brings the population into the state $$|\,\uparrow \,\rangle =\frac{|0\rangle \,+\,|\,1\rangle }{\sqrt{2}}$$, which together with $$|\,\downarrow \,\rangle =\frac{|0\rangle -|1\rangle }{\sqrt{2}}$$ forms a basis of the system. Then, the corresponding dynamics for a single realization of the stochastic field E(t) is given by

$$\dot{\rho }=-\,i[{H}_{c},\rho ]-i[{H}_{S},\rho ],$$
(29)

where ρ is the density operator describing the state of the system. To simplify the calculations, we work in the rotating frame given by the control Hamiltonian. Namely, we consider the transformation

$${U}_{c}(t)={e}^{i\phi (t)/2}|\,\uparrow \,\rangle \langle \,\uparrow \,|+{e}^{-i\phi (t)/2}|\,\downarrow \,\rangle \langle \,\downarrow \,|,$$
(30)

where $$\phi (t)\equiv {\int }_{0}^{t}\,{\rm{\Omega }}(t^{\prime} )dt^{\prime}$$, and we introduce the transformed state $$\mathop{\rho }\limits^{ \sim }(t)={U}_{c}(t)\rho (t){U}_{c}^{\dagger }(t)$$, as well as the transformed signal Hamiltonian $${\mathop{H}\limits^{ \sim }}_{S}(t)={U}_{c}(t){H}_{S}(t){U}_{c}^{\dagger }(t)$$. Then, we can rewrite the Schrödinger equation as

$$\dot{\mathop{\rho }\limits^{ \sim }}(t)=-\,i[{\mathop{H}\limits^{ \sim }}_{S}(t),\,\mathop{\rho }\limits^{ \sim }(t)].$$
(31)

If we assume 〈E(t)〉 = 0, i.e. that the stochastic field E(t) vanishes on average, then we can formally integrate the Schrödinger equation and reinsert $$\mathop{\rho }\limits^{ \sim }(t)$$ on the right hand side of Eq. (31). Finally, by also averaging over all the realizations of E(t), we find

$$\langle \dot{\mathop{\rho }\limits^{ \sim }}\rangle =-\,{\int }_{0}^{t}\,\langle [{\mathop{H}\limits^{ \sim }}_{S}(t),\,[{\mathop{H}\limits^{ \sim }}_{S}(t^{\prime} ),\,\mathop{\rho }\limits^{ \sim }(t^{\prime} )]]\rangle dt^{\prime} .$$
(32)

For the sake of simplicity, hereafter we will remove the tilde from the transformed state $$\mathop{\rho }\limits^{ \sim }$$ of the system.

The master equation (32) has the fix point

$$\bar{\rho }=(\begin{array}{cc}{\bar{\rho }}_{\uparrow \uparrow } & {\bar{\rho }}_{\uparrow \downarrow }\\ {\bar{\rho }}_{\downarrow \uparrow } & {\bar{\rho }}_{\downarrow \downarrow }\end{array})=(\begin{array}{cc}1/2 & 0\\ 0 & 1/2\end{array}),$$

where we have expressed the density matrix in terms of its matrix elements in the rotating frame. The fix point is approached exponentially, so that the final (average) probability to find the system upon measurement in |↑〉 (or |0〉, if we apply a π/2-pulse directly before the measurement) can be written as

$$p(t)=\frac{1}{2}(1-{e}^{-\chi (t)}).$$
(33)

The decoherence function χ(t) is determined by the decay of the populations to the fix point. By introducing the autocorrelation function g(t − t′) = 〈E(t)E(t′)〉 and after some algebra, we obtain

$$\langle {\dot{\rho }}_{\uparrow \uparrow }\rangle \,(t)-\langle {\dot{\rho }}_{\downarrow \downarrow }\rangle \,(t)=-\,4{\int }_{0}^{t}\,g(t-t^{\prime} )\,\cos \,(\phi (t)-\phi (t^{\prime} ))\,(\langle {\rho }_{\uparrow \uparrow }\rangle \,(t^{\prime} )-\langle {\rho }_{\downarrow \downarrow }\rangle \,(t^{\prime} ))dt^{\prime} .$$
(34)

If we assume that the decay is slow compared to the correlation length given by g(t − t′), we can substitute $$(\langle {\rho }_{\uparrow \uparrow }\rangle \,(t^{\prime} )-\langle {\rho }_{\downarrow \downarrow }\rangle \,(t^{\prime} ))$$ by $$(\langle {\rho }_{\uparrow \uparrow }\rangle \,(t)-\langle {\rho }_{\downarrow \downarrow }\rangle \,(t))$$ and solve the equation. As a result, we obtain

$$\chi (t)=4\,{\int }_{0}^{t}\,{\int }_{0}^{t}\,g(t^{\prime} -t^{\prime\prime} )\,\cos (\phi (t^{\prime} )-\phi (t^{\prime\prime} ))dt^{\prime} dt^{\prime\prime} .$$
(35)

Moreover, if we introduce the power spectral density S(ω) through the Fourier transform

$$g(\tau )=\frac{1}{2\pi }\,{\int }_{-\infty }^{\infty }\,S(\omega ){e}^{-i\omega \tau }d\omega ,$$
(36)

we get the decoherence function in the spectral form, i.e.

$$\chi (t)=\frac{4}{\pi }\,{\int }_{0}^{\infty }\,{\int }_{0}^{t}\,{\int }_{0}^{t}\,S(\omega )\,\cos (\phi (t^{\prime} )-\phi (t^{\prime\prime} ))dt^{\prime} dt^{\prime\prime} d\omega ,$$
(37)

where $$\cos (\phi (t^{\prime\prime} )-\phi (t^{\prime} ))=y(t^{\prime} )y(t^{\prime\prime} )+z(t^{\prime} )z(t^{\prime} )$$, with the pulse modulation functions y(t) = cos φ(t) and z(t) = sin φ(t). Then, being

$$Y(\omega )\equiv {\int }_{0}^{t}\,y(t^{\prime} ){e}^{i\omega t^{\prime} }dt^{\prime} ,$$
(38)
$$Z(\omega )\equiv {\int }_{0}^{t}\,z(t^{\prime} ){e}^{i\omega t^{\prime} }dt^{\prime} ,$$
(39)

so that the Filter function $$F(\omega )=\frac{4}{\pi }(|Y(\omega ){|}^{2}+|Z(\omega ){|}^{2})$$, the decoherence function becomes

$$\chi (t)={\int }_{0}^{\infty }\,S(\omega )F(\omega )d\omega .$$
(40)

For the widely used control sequences consisting of a series of π-pulses initialized and ended by a π/2-pulse6,30,34, one has φ(t)  {π, −π} and, thus, y(t)  {−1, 1} and z(t) = 0.

#### Entangled multi-qubit probes

Here, we will derive the filter function for entangled multi-qubit probes and a control sequence consisting of single-qubit π-pulses, by assuming single addressing of the qubits by the control knob and the use of π-pulses. To explain the concept, let us initially consider two qubits and, instead of applying the initial (local) π/2-pulse, let us assume to prepare them in the Bell state $$|\,\uparrow \,\rangle =\frac{|00\rangle \,+\,|\,11\rangle }{\sqrt{2}}$$.

The sequence of the single-qubit π-pulses is a purely local transformation described by the operator Uc(t) that defines the rotating frame basis states $${U}_{c}(t)|\,\uparrow \,\rangle$$ and $${U}_{c}(t)|\,\downarrow \,\rangle ={U}_{c}(t)\frac{|00\rangle \,-|\,11\rangle }{\sqrt{2}}$$. Likewise, the fluctuating field E(t) creates a purely local transformation, assuming that the field E(t) is the same for both qubits, i.e. it is spatially homogeneous: it leads to an oscillation between $${U}_{c}(t)|\,\uparrow \,\rangle$$ and $${U}_{c}(t)|\,\downarrow \,\rangle$$. Here, we make the assumption of local transformations and apply the filter function technique to a two-qubit system, with modulation functions y1(t) and y2(t) for the first and second qubit, respectively.

If we write y(t) = y1(t) + y2(t), the dynamics of the system in the two-dimensional rotating frame is described by

$$\dot{\rho }=-\,iE(t)y(t)[X,\rho ],$$
(41)

where $$X=(\begin{array}{cc}0 & 1\\ 1 & 0\end{array})$$, E(t)y(t)X is the signal Hamiltonian in the rotating frame, and ρ is the density matrix describing the state of the system in the two-dimensional rotating Hilbert space. Assuming again 〈E(t)〉 = 0 and g(t − t′) = 〈E(t)E(t′)〉 and averaging over all the realization if E(t), we obtain

$$\langle \dot{\rho }\rangle =-\,2\,{\int }_{0}^{t}\,g(t-t^{\prime} )y(t)y(t^{\prime} )[X,[X,\langle \rho (t^{\prime} )\rangle ]]dt^{\prime}$$
(42)

and thus

$$\langle {\dot{\rho }}_{\uparrow \uparrow }\rangle \,(t)-\langle {\dot{\rho }}_{\downarrow \downarrow }\rangle \,(t)=-\,2{\int }_{0}^{t}\,g(t-t^{\prime} )y(t)y(t^{\prime} )\,(\langle {\rho }_{\uparrow \uparrow }\rangle \,(t^{\prime} )-\langle {\rho }_{\downarrow \downarrow }\rangle \,(t^{\prime} ))dt^{\prime} .$$
(43)

Therefore, the decoherence function in the frequency domain becomes

$$\chi (t)=\frac{4}{\pi }\,{\int }_{0}^{\infty }\,S(\omega )|Y(\omega ){|}^{2}d\omega ,$$
(44)

where this time the filter function F(ω) = |Y(ω)|2 is defined by the Fourier transform of y(t) = y1(t) + y2(t):

$$Y(\omega )={\int }_{0}^{t}\,({y}_{1}(t^{\prime} )+{y}_{2}(t^{\prime} )){e}^{i\omega t^{\prime} }dt^{\prime} .$$
(45)

In this case, the pulse modulation function takes the discrete values y(t)  {−2, 0, 2}.

Finally, to generalize this estimation procedure to a multi-qubits framework, we consider the GHZ state

$$\frac{|0\ldots 0\rangle +|1\ldots 1\rangle }{\sqrt{2}},$$
(46)

with modulation functions yi(t) for each of the single qubits and y(t)  {−N, 2 − N, …, N − 2, N}. The final filter function for N qubits, then, reads

$$F(\omega )=\frac{4}{\pi }|Y(\omega ){|}^{2}=\frac{4}{\pi }{|{\int }_{0}^{t}\sum _{j=1}^{N}{y}_{j}(t^{\prime} ){e}^{i\omega t^{\prime} }dt^{\prime} |}^{2}.$$
(47)

### Fisher Information Operator

The proposed protocols for the estimation of the power spectral density S(ω) rely on performing measurements of the survival probability p(t) for different filter functions. The estimate $$\mathop{S}\limits^{ \sim }(\omega )$$ will generally deviate from S(ω) and we want to analyse how large can be such a deviation in a given direction $$\bar{S}(\omega )$$ in function space. If we assume that the main source of error is the statistical noise in the measurement of the survival probability and that on each realization of the measurement we obtain binary outcomes (survival or not), we can estimate the error $$\varepsilon \bar{S}(\omega )$$ (with ε being a constant quantifying the deviation of $$\mathop{S}\limits^{ \sim }(\omega )$$ from S(ω) in the direction $$\bar{S}(\omega )$$) by means of the Fisher Information Operator (FIO) as given in50. The latter is a straightforward generalization of the Fisher Information matrix to an (infinite dimensional) function space. The single FIO $${{\mathfrak{F}}}_{k}$$, associated with the measurement of the k–th probability pk after the application of the filter function Fk, can be obtained by computing the derivative of pk with respect to χk(t) (decoherence function of the probability pk), i.e.

$$\frac{d{p}_{k}}{d{\chi }_{k}}(t)=\frac{1}{2}{{\rm{e}}}^{-{\chi }_{k}(t)}=1-{p}_{k}(t),$$
(48)

as well as the (functional) derivative of χk(t) with respect to S(ω):

$$\langle \frac{{\rm{\partial }}{\chi }_{k}}{{\rm{\partial }}S}|(\,\cdot \,)\equiv {\int }_{0}^{{\rm{\infty }}}\,(\,\cdot \,){F}_{k}(\omega )d\omega .$$
(49)

This functional derivative can be understood by considering the (infinitesimal) variation

$$\delta {\chi }_{k}\equiv {\int }_{0}^{\infty }\,\delta S(\omega ){F}_{k}(\omega )d\omega ;$$
(50)

formally dividing by δS(ω) yields the functional derivative δχk/δS, which is an element of the dual space of the tangent space of the spectral density functions, thus a linear mapping from the admissible changes δS(ω) to a real number δχk. We have expressed this fact by means of the ket notation $$\langle \,\cdot \,|$$ as above.

Then, by using the chain rule, the FIO $${{\mathfrak{F}}}_{k}$$ is equal to

$${{\mathfrak{F}}}_{k}=\frac{1}{{p}_{k}(1-{p}_{k})}{(\frac{d{p}_{k}}{d{\chi }_{k}})}^{2}|\frac{{\rm{\partial }}{\chi }_{k}}{{\rm{\partial }}S}\rangle \langle \frac{{\rm{\partial }}{\chi }_{k}}{{\rm{\partial }}S}|=\frac{1-{p}_{k}}{{p}_{k}}|\frac{{\rm{\partial }}{\chi }_{k}}{{\rm{\partial }}S}\rangle \langle \frac{{\rm{\partial }}{\chi }_{k}}{{\rm{\partial }}S}|.$$
(51)

Finally, if we perform a sequence of measurements of p(t) by using several filter functions Fk, k = 1, …, K, then the overall FIO $${\mathfrak{F}}$$ (for the sequence of measurements) is additive, since the measurements are statistically independent, and, as a result, we get

$${\mathfrak{F}}=\sum _{k=1}^{K}\,\frac{1-{p}_{k}}{{p}_{k}}|\frac{{\rm{\partial }}{\chi }_{k}}{{\rm{\partial }}S}\rangle \langle \frac{{\rm{\partial }}{\chi }_{k}}{{\rm{\partial }}S}|.$$
(52)

The rank of this FIO $${\mathfrak{F}}$$ corresponds to the number of linear independent vectors $$\langle \frac{{\rm{\partial }}{\chi }_{k}}{{\rm{\partial }}S}|$$, which is equal to the number of linear independent filter functions Fk adopted for the estimation of S(ω). Thus, for an adequate choice of the pulse sequences (i.e. of the filter functions) the rank of the FIO equals to K. This means, that using such K filter functions we can determine the behaviour of the spectrum in a K-dimensional subspace of the function space of the spectral densities. This is a generalization of the common approach (e.g. for the AS protocol), where K filter functions are used to determine the value of the spectrum at K discrete values of the frequency. The behaviour of the spectrum outside of this subspace (or, in the discrete case, for any other value of the frequency) is completely inaccessible by the given choice of filter functions.

#### Cramér-Rao bound

A bound for the error ε is given by the Cramér-Rao bound associated with the Fisher Information for the parameter estimation of ε. As shown in50, this Fisher information is obtained from the FIO as

$${{\mathfrak{F}}}_{\bar{S}}=\langle \bar{S}|{\mathfrak{F}}|\bar{S}\rangle =\sum _{k=1}^{K}\,\frac{1-{p}_{k}}{{p}_{k}}\,{({\int }_{0}^{{\rm{\infty }}}\bar{S}(\omega ){F}_{k}(\omega )d\omega )}^{2},$$
(53)

where $$\bar{S}(\omega )$$ is, as before, a given direction in the function space of the spectral densities. The Cramér-Rao bound for ε is then given by

$$\varepsilon \ge \frac{1}{\sqrt{{{\mathfrak{F}}}_{\overline{S}}}}.$$
(54)

Note that this bound is finite iff $$\bar{S}(\omega )$$ has finite overlap with at least one filter function Fk(ω). This corresponds to the fact that the application of K (linearly independent) filters determines the signal S(ω) in a K-dimensional subspace of the full function space.

## References

1. 1.

Breuer, H. & Petruccione, F. The Theory of Open Quantum Systems (Oxford University Press, 2003).

2. 2.

Caruso, F., Giovannetti, V., Lupo, C. & Mancini, S. Quantum channels and memory effects. Rev. Mod. Phys. 86, 1204 (2014).

3. 3.

Nielsen, M. A. & Chang, I. L. Quantum Computation and Quantum Information, 10th Anniversary edition. (Cambridge University Press, Cambridge, 2011).

4. 4.

Giovannetti, V., Lloyd, S. & Maccone, L. Quantum-enhanced measurements: beating the standard quantum limit. Science 306, 1330 (2004).

5. 5.

Giovannetti, V., Lloyd, S. & Maccone, L. Quantum Metrology. Phys. Rev. Lett. 96, 010401 (2006).

6. 6.

Degen, C. L., Reinhard, F. & Cappellaro, P. Quantum sensing. Rev. Mod. Phys. 89, 035002 (2017).

7. 7.

Giovannetti, V., Lloyd, S. & Maccone, L. Advances in Quantum Metrology. Nat. Photon. 5, 222–229 (2011).

8. 8.

Ruschhaupt, A., Chen, Xi, Alonso, D. & Muga, J. G. Optimally robust shortcuts to population inversion in two-level quantum systems. New. J. Phys. 14, 093040 (2012).

9. 9.

Daems, D., Ruschhaupt, A., Sugny, D. & Guérin, S. Robust Quantum Control by a Single-Shot Shaped Pulse. Phys. Rev. Lett. 111, 050404 (2013).

10. 10.

Green, T. J., Sastrawan, J., Uys, H. & Biercuk, M. J. Arbitrary quantum control of qubits in the presence of universal noise. New J. Phys. 15, 095004 (2013).

11. 11.

Kallush, S., Kashin, M. & Kosloff, R. Quantum control with noisy fields, computational complexity versus sensitivity to noise. New J. Phys. 16, 015008 (2014).

12. 12.

Pawela, L. & Puchała, Z. Quantum control robust with respect to coupling with an external environment. Quantum Inf. Process. 14, 437–446 (2015).

13. 13.

Viola, L., Knill, E. & Lloyd, S. Dynamical decoupling of open quantum systems. Phys. Rev. Lett. 82, 2417 (1999).

14. 14.

Khodjasteh, K. & Lidar, D. A. Fault-tolerant quantum dynamical decoupling. Phys. Rev. Lett. 95, 180501 (2005).

15. 15.

Brif, C., Chakrabarti, R. & Rabitz, H. Control of quantum phenomena: past, present and future. New J. Phys. 12, 075008 (2010).

16. 16.

Glaser, S. J. et al. Training Schrödinger’s cat: quantum optimal control. Eur. Phys. J. D 69, 279 (2015).

17. 17.

Lloyd, S. & Montangero, S. Information Theoretical Analysis of Quantum Optimal Control. Phys. Rev. Lett. 113, 010502 (2014).

18. 18.

van der Sar, T. et al. Decoherence-protected quantum gates for a hybrid solid-state spin register. Nature 484, 82–86 (2012).

19. 19.

Zhang, J., Peng, X., Rajendran, N. & Suter, D. Effect of system level structure and spectral distribution of the environment on the decoherence rate. Phys. Rev. A 75, 042314 (2007).

20. 20.

Kofman, A. G. & Kurizki, G. Acceleration of quantum decay processes by frequent observations. Nature 405, 546–550 (2000).

21. 21.

Kofman, A. G. & Kurizki, G. Universal dynamical control of quantum mechanical decay: modulation of the coupling to the continuum. Phys. Rev. Lett. 87, 270405 (2001).

22. 22.

Gordon, G., Erez, N. & Kurizki, G. Universal dynamical decoherence control of noisy single- and multi-qubit systems. J. Phys. B 40, 75 (2007).

23. 23.

Caruso, F., Huelga, S. F. & Plenio, M. B. Noise-enhanced classical and quantum capacities in communication networks. Phys. Rev. Lett. 105, 190501 (2010).

24. 24.

Zwick, A., Alvarez, G. A., Bensky, G. & Kurizki, G. Optimized dynamical control of state transfer through noisy spin chains. New J. Phys. 16, 065021 (2014).

25. 25.

Baksic, A., Ribeiro, H. & Clerk, A. C. Speeding up adiabatic quantum state transfer by using dressed states. Phys. Rev. Lett. 116, 230503 (2016).

26. 26.

de Moraes Neto, G. D., Andrade, F. M., Montenegro, V. & Bose, S. Quantum state transfer in optomechanical arrays. Phys. Rev. A 93, 062339 (2016).

27. 27.

Huang, B.-H. et al. Quantum state transfer in spin chains via shortcuts to adiabaticity. Phys. Rev. A 97, 012333 (2018).

28. 28.

Paz-Silva, G. A. & Viola, L. General transfer-function approach to noise filtering in open-loop quantum control. Phys. Rev. Lett. 113, 250501 (2014).

29. 29.

Norris, L. M., Paz-Silva, G. A. & Viola, L. Qubit noise spectroscopy for non-Gaussian dephasing environments. Phys. Rev. Lett. 116, 150503 (2016).

30. 30.

Cywiński, L., Lutchyn, R. M., Nave, C. P. & Das Sarma, S. How to enhance dephasing time in superconducting qubits. Phys. Rev. B 77, 174509 (2008).

31. 31.

Uhrig, G. S. Exact results on dynamical decoupling by π pulses in quantum information processes. New. J. Phys. 10, 083024 (2008).

32. 32.

Yuge, T., Sasaki, S. & Hirayama, Y. Measurement of the noise spectrum using a multiple-pulse sequence. Phys. Rev. Lett. 107, 170504 (2011).

33. 33.

Biercuk, M. J., Doherty, A. C. & Uys, H. Dynamical decoupling contruction as a filter-design problem. J. Phys. B: At. Mol. Opt. Phys. 44, 154002 (2011).

34. 34.

Alvarez, G. A. & Suter, D. Measuring the spectrum of colored noise by dynamical decoupling. Phys. Rev. Lett. 107, 230501 (2011).

35. 35.

Bylander, J. et al. Noise spectroscopy through dynamical decoupling with a superconducting flux qubit. Nat. Phys. 7, 565–570 (2011).

36. 36.

Kotler, S., Akerman, N., Glickman, Y. & Ozeri, R. Nonlinear Single-Spin Spectrum Analyzer. Phys. Rev. Lett. 110, 110503 (2013).

37. 37.

Häberle, T., Schmid-Lorch, D., Karrai, K., Reinhard, F. & Wrachtrup, J. High-dynamic-range imaging of nanoscale magnetic fields using optimal control of a single qubit. Phys. Rev. Lett. 111, 170801 (2013).

38. 38.

Nöbauer, T. et al. Smooth optimal quantum control for robust solid state spin magnetometry. Phys. Rev. Lett. 115, 190801 (2015).

39. 39.

Bonato, C. et al. Optimized quantum sensing with a single electron spin using real-time adaptive measurements. Nature Nanotech. 11, 247–252 (2016).

40. 40.

Hall, L. T., Cole, J. H., Hill, C. D. & Hollenberg, L. C. L. Sensing of fluctuating nanoscale magnetic fields using nitrogen-vacancy centers in diamond. Phys. Rev. Lett. 103, 220802 (2009).

41. 41.

Cole, J. C. & Hollenberg, L. C. L. Scanning quantum decoherence microscopy. Nanotechnology 20, 495401 (2009).

42. 42.

Bar-Gill, N. et al. Suppression of spin-bath dynamics for improved coherence of multi-spin-qubit systems. Nat. Comm. 10, 1038 (2012).

43. 43.

Alvarez, G., Shemesh, N. & Frydman, L. Diffusion-assisted selective dynamical recoupling: A new approach to measure background gradients in magnetic resonance. J. Chem. Phys. 140, 084205 (2014).

44. 44.

Smith, P. E. S., Bensky, G., Alvarez, G., Kurizki, G. & Frydman, L. Shift-driven modulations of spin-echo signals. PNAS 109, 5958 (2012).

45. 45.

Paz-Silva, G. A., Norris, L. M. & Viola, L. Multiqubit spectroscopy of Gaussian quantum noise. Phys. Rev. A 95, 022121 (2017).

46. 46.

Benedetti, C., Salari Sehdaran, F., Zandi, M. H. & Paris, M. G. A. Quantum probes for the cutoff frequency of Ohmic environments. Phys. Rev. A 97, 012126 (2018).

47. 47.

Zwick, A., Alvarez, G. A. & Kurizki, G. Maximizing Information on the Environment by Dynamically Controlled Qubit Probes. Phys. Rev. Applied 5, 014007 (2016).

48. 48.

Wu, L., Kurizki, G. & Brumer, P. Master Equation and Control of an Open Quantum System with Leakage. Phys. Rev. Lett. 102, 080405 (2009).

49. 49.

Frey, V. M. et al. Application of optimal band-limited control protocols to quantum noise sensing. Nat. Comm. 8, 2189 (2017).

50. 50.

Müller, M. M., Gherardini, S., Smerzi, A. & Caruso, F. Fisher information from stochastic quantum measurements. Phys. Rev. A 94, 042322 (2016).

51. 51.

Mueller, M. M., Gherardini, S. & Caruso, F. Quantum Zeno dynamics through stochastic protocols. Annalen der Physik 529(9), 1600206 (2017).

52. 52.

Müller, M. M., Gherardini, S. & Caruso, F. Stochastic quantum Zeno-based detection of noise correlations. Sci. Rep. 6, 38650 (2016).

53. 53.

Monz, T. et al. 14-Qubit-Entanglement: Creation and Coherence. Phys. Rev. Lett. 106, 130506 (2011).

54. 54.

Rach, N., Müller, M. M., Calarco, T. & Montangero, S. Dressing the chopped-random-basis optimization: A bandwidth-limited access to the trap-free landscape. Phys. Rev. A 92, 062343 (2015).

55. 55.

Nokkala, J., Galve, F., Zambrini, R., Maniscalco, S. & Piilo, J. Complex quantum networks as structured environments: engineering and probing. Sci. Rep. 6, 26861 (2016).

56. 56.

Knott, P. A. et al. Local versus global strategies in multiparameter estimation. Phys. Rev. A 94, 062312 (2016).

## Acknowledgements

The authors gratefully acknowledge Gershon Kurizki, Jörg Wrachtrup and Durga Dasari for useful discussions. This work was financially supported from the Fondazione CR Firenze through the project Q-BIOSCAN.

## Author information

Authors

### Contributions

M.M. and S.G. carried out the analytic calculations. M.M. performed the numerical simulations. F.C. led the theory and supervised the work. All authors contributed to the discussion, analysis of the results and the writing of the manuscript.

### Corresponding author

Correspondence to Filippo Caruso.

## Ethics declarations

### Competing Interests

The authors declare no competing interests.

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

## Rights and permissions

Reprints and Permissions

Müller, M.M., Gherardini, S. & Caruso, F. Noise-robust quantum sensing via optimal multi-probe spectroscopy. Sci Rep 8, 14278 (2018). https://doi.org/10.1038/s41598-018-32434-x

• Accepted:

• Published:

### Keywords

• Spectral Leakage
• Fisher Information
• Filter Operation Time
• Pulse Transition Function
• Dephasing Rate

• ### Relationship between subjecting the qubit to dynamical decoupling and to a sequence of projective measurements

• Fattah Sakuldee
•  & Łukasz Cywiński

Physical Review A (2020)

• ### Introduction to quantum optimal control for quantum sensing with nitrogen-vacancy centers in diamond

• Phila Rembold
• , Nimba Oshnik
• , Matthias M. Müller
• , Simone Montangero
• , Tommaso Calarco
•  & Elke Neu

AVS Quantum Science (2020)

• ### Experimental proof of quantum Zeno-assisted noise sensing

• Hoang-Van Do
• , Cosimo Lovecchio
• , Ivana Mastroserio
• , Nicole Fabbri
• , Francesco S Cataliotti
• , Stefano Gherardini
• , Matthias M Müller
• , Nicola Dalla Pozza
•  & Filippo Caruso

New Journal of Physics (2019)

• ### The dynamical-decoupling-based spatiotemporal noise spectroscopy

• Jan Krzywda
• , Piotr Szańkowski
•  & Łukasz Cywiński

New Journal of Physics (2019)

• ### Nitrogen-vacancy centers in diamond for nanoscale magnetic resonance imaging applications

• Alberto Boretti
• , Lorenzo Rosa
• , Jonathan Blackledge
•  & Stefania Castelletto

Beilstein Journal of Nanotechnology (2019)