Skip to main content
Scientific Reports logoLink to Scientific Reports
. 2025 Dec 11;16:617. doi: 10.1038/s41598-025-30179-y

Phase estimation algorithms for quantum enhanced magnetometry with artificial atoms

Vladimir Slepnev 1, Azat Gubaydullin 1,, Valerii Vinokur 1,
PMCID: PMC12775413  PMID: 41381610

Abstract

We develop the quantum approach to magnetometry utilizing phase estimation algorithms, demonstrating improvements in the estimation of magnetic flux in both precision and dynamical range. We propose the modifications to conventional algorithms including the signal modulation and proximity time measurements. We demonstrate that our approach extends the dynamical range and improves the precision of magnetic flux detection. We show that our approach enhances performance of superconducting qubits and enables higher information gain without compromising dynamical range, paving the way toward achieving the Heisenberg limit. Combining adaptive algorithms with device-specific calibration, our methods bridge the gap between theoretical advancements and practical quantum sensing applications, offering a powerful framework for metrology using superconducting qubits.

Keywords: Phase estimation algorithms, Qubits, Sensing, Quantum magnetometry

Subject terms: Optics and photonics, Physics

Introduction

Quantum sensing and metrology represent powerful frameworks for achieving precise measurements of physical quantities by exploiting the inherent quantum properties of probe systems 1,2. These quantum sensors enable measuring a broad spectrum of phenomena, including gravitational forces, electromagnetic fields, and photon propagation, with unprecedented precision that surpasses the fundamental limits of classical techniques. Quantum sensors find applications in diverse fields, ranging from fundamental physics 35 to medical imaging 6,7, industrial diagnostics 8,9, and advanced technological applications 10, establishing their indispensable role across various domains.

Many leading platforms for quantum sensing including the nitrogen-vacancy (NV) centers in diamond 11, cold-atom magnetometry  12, dc-superconducting quantum interference devices (SQUIDs) 13,14 and superconducting qubits 15,16 attract significant attention. Superconducting qubits, in particular, offer exceptional opportunities for enhanced sensitivity in detecting weak magnetic fields and other environmental perturbations, primarily due to their ability to exploit quantum coherence and entanglement. Transmon qubits 15 are applied in magnetometry 1618 due to their flux tunability and promising relaxation times. In this work, we explore fluxonium qubits 1921 for quantum sensing, which offer longer coherence Inline graphic and dephasing Inline graphic times, higher inductance, and reduced susceptibility to charge noise.

Phase estimation algorithms (PEAs) are an integral part of quantum sensing protocols 22,23, serving as key tools for enhancing measurement precision. These algorithms 2427, developed originally for quantum computing tasks such as Shor’s factorization algorithm 28,29 and Lloyd’s algorithm for solving linear systems 30, have become equally vital in quantum metrology 3143. By enabling the precise estimation of unknown parameters that influence the quantum sensor’s energy spectrum, PEAs facilitate enhanced sensing. Optimizing the design of chip architecture incorporating superconducting qubits  17,21 and employing advanced PEAs promises to significantly improve the magnetic flux sensitivity, pushing up the limits of quantum-enhanced sensing.

Magnetometry with superconducting qubits

Quantum magnetometry using superconducting qubits leverages the sensitivity of the qubit’s transition frequency to external magnetic flux. A qubit device 44, often described as an artificial atom 16, carries the fundamental unit of quantum information, analogous to the classical bit. However, a qubit is a quantum two-level system that can exist not only in its two basic states, its ground state Inline graphic and excited state Inline graphic, but, also in a superposition of these states. The possibility of such a superposition enables qubits4547 to outperform their classical counterparts in certain computational tasks 48 and sensing applications 49. The qubit’s main transition frequency between the ground and excited states, Inline graphic, varies with the magnetic flux threading the superconducting loop interrupted by tunnel junctions 15,50, enabling precise magnetic field measurements, see Methods section for details. The key to improving the sensitivity of qubit-based magnetometers lies in optimizing the interaction between the qubit and the external flux. To quantify this interaction, the concept of a passport function was introduced 16, which characterizes the probability of the qubit to be in a particular state as a function of the phase accumulation time Inline graphic and the external flux Inline graphic. This probability function provides a reference for determining unknown flux values which are extracted by comparing the measured probabilities to the estimated predictions.

To measure the pattern of the passport function, the Ramsey sequence is employed to facilitate phase accumulation in the qubit. The sequence consists of two Inline graphic pulses, Hadamard gates, applied at the frequency Inline graphic, which is the drive frequency of the control pulses, and which are separated by the phase accumulation time Inline graphic. Following the first pulse, the qubit state evolves around the z-axis on the Bloch sphere at a frequency Inline graphic, accumulating phase over the time Inline graphic. The total acquired phase is then Inline graphic. Here Inline graphic is the transition frequency of the qubit at the working flux bias point Inline graphic.

The qubit’s coherence is destroyed, as usual, by decoherence processes with the dephasing time Inline graphic; this dephasing time is used as a critical factor characterizing decoherence. The dephasing rate, Inline graphic, is determined by energy relaxation time, Inline graphic, and pure dephasing characteristic Inline graphic; this implies that Inline graphic. For modern superconducting qubits 21, it is the 1/f noise that often dominates the dephasing process 5157, leading to a Gaussian decay in the qubit’s coherence as Inline graphic. The relaxation rate remains relatively constant when the qubit operates away from its sweet spot, while the dephasing rate is more sensitive to external noise sources, resulting in faster decay of the coherence over time 20. Different measurement schemes have recently been implemented to study the relaxation mechanisms associated with quasiparticles 58 and two-level systems (TLS) 59.

The probability of finding the qubit in its ground state after completing the Ramsey sequence is given by

graphic file with name d33e437.gif 1

This probability depends on the external flux Inline graphic and the dephasing rate Inline graphic. After each measurement, the qubit is reinitialized to its initial state, and the experiment is repeated. If N repetitions yield Inline graphic detections that the qubit is in its ground state, we can estimate this probability as Inline graphic. For small flux variations, the detuning rate can be approximated as Inline graphic.

Using this approximation, one obtains the following expression for the measured external flux

graphic file with name d33e469.gif 2

This expression shows the periodic nature of the measurement outcome, introducing an ambiguity in the determination of Inline graphic due to the cosine function’s periodicity. To resolve this ambiguity, PEAs such as the Kitaev  60 and quantum Fourier transform (QFT)  6163 algorithms are employed. These algorithms refine the phase accumulation time Inline graphic to narrow down the possible flux values, ultimately enabling an unambiguous flux determination.

The precision of magnetic flux measurements is characterized by the flux resolution precision Inline graphic  16

graphic file with name d33e503.gif 3

where Inline graphic represents the duration of one measurement iteration, and Inline graphic is the total measurement time for a given Inline graphic. This expression illustrates the complex interplay between phase accumulation time, decoherence, and the number of measurement repetitions in determining the flux resolution.

By optimizing the phase accumulation time Inline graphic, it is possible to achieve enhanced sensitivity. The optimal accumulation time Inline graphic balances the trade-off between the coherence time Inline graphic and the measurement dynamics. Depending on the relationship between the reset time Inline graphic  64,65 (0.25 - 1 Inline graphic), gate time Inline graphic (Inline graphic 6 ns)  66,67, and coherence  68 time Inline graphic, the optimal Inline graphic can range between Inline graphic and Inline graphic, ensuring the best measurement precision. If Inline graphic, then Inline graphic, and if Inline graphic, then Inline graphic.

To further enhance the magnetometer’s sensitivity, when using phase estimation algorithms like Kitaev and Fourier algorithms, we systematically vary the phase accumulation time in order to refine the flux estimate. For precision analysis, we use a parameter  16,69:

graphic file with name d33e615.gif 4

which is independent of the total measurement time. These algorithms utilize the properties of the probability function Inline graphic in order to achieve precise and unambiguous flux measurements, surpassing the classical shot-noise limit and approaching quantum-limited precision.

We apply these optimized measurement protocols to superconducting qubits, with a particular focus on fluxonium, a qubit architecture known for its long coherence times 7072 and tuneable high sensitivity to magnetic flux. Our results demonstrate that careful optimization of both, Ramsey measurement protocol and phase estimation algorithms, can significantly enhance the precision of quantum magnetometry.

Kitaev algorithm

The standard Kitaev algorithm  60 consists of multiple steps, with the number of steps m determined by the qubit’s characteristics; typically, Inline graphic, where Inline graphic is the minimum phase accumulation time constrained by the gate operation time Inline graphic. The k-th step of the algorithm, with enumeration starting from zero, involves performing Inline graphic steps of the following operations:

  1. The qubit is initialized into the state Inline graphic using an Hadamard gate, the algorithm can be optimized by using an initial state correction, see Methods, “Initial state correction”.

  2. The qubit evolves under the influence of an external magnetic flux for a duration Inline graphic.

  3. The qubit is rotated out of the xy-plane using a second Hadamard gate and its state is measured using a z-projective single-shot measurement. The probability of measuring a zero is given by Eq. (1).

Throughout the measurements, statistics are accumulated, and the presumed distribution is updated using Bayesian learning. Initially, it is assumed that the field lies within the range Inline graphic, where Inline graphic. The number of measurements Inline graphic is chosen in a way that after Inline graphic measurements in the k-th step, the field range is halved with a confidence Inline graphic. This means that the probability of the actual field being outside the narrowed range is Inline graphic. At the first step, the phase accumulation time is doubled, ensuring the algorithm remains unambiguous within the new range. This narrowing continues through all m steps:

graphic file with name d33e733.gif 5
graphic file with name d33e738.gif 6

In the absence of dephasing, the number of measurements would remain constant across all steps. However, as evident from Eq. (3) and the relationship Inline graphic, the number of measurements in the k-th step must be

graphic file with name d33e754.gif 7

assuming that the qubit is fully coherent at the initial step.

In this work, we develop a quantum metrological framework for magnetic flux sensing based on phase estimation algorithms (PEA), demonstrating enhanced precision and an expanded dynamical range. We introduce a modified PEAs that integrates signal modulation and proximity time measurements to improve sensitivity to flux variations while remaining resilient to realistic noise sources. To further advance performance, we propose the Reflected Kitaev Algorithm and systematically benchmark it towards the standard Kitaev, Fourier, and Linear Ascending Metrological Algorithm (LAMA). We also present an Enhanced LAMA variant, which extends the operational range by two orders of magnitude and significantly reduces convergence error. In the following sections, we explain the details of the proposed modifications to PEA, numerical simulations, and performance evaluations.

Detailed description of the proposed methods

Proximity time measurements

The measurement range Inline graphic in the Kitaev algorithm is Inline graphic. This range can be increased in two ways. The first one involves reducing Inline graphic by moving the qubit closer to the sweet spot. However, this adjustment may lead to an increased noise proportion from non-flux sources, thus reducing measurement accuracy.

The second way of increasing the measurement range is to influence the minimum phase accumulation time Inline graphic. This time depends on several factors. The primary constraint is the time for Inline graphic gates, which imposes a lower bound of Inline graphic ns. Each Inline graphic gate requires approximately 10 ns, necessitating two such rotations per iteration. A secondary limitation is the quality of the pulse generator. Resolving the gate duration issue can increase the measurement range by two orders of magnitude.

When performing N measurements with a phase accumulation time Inline graphic, the estimated field is expressed via an Eq. (2). Given the inherent imprecision in measuring the field, we assume that the probability density of the external field Inline graphic is described by a sum of Gaussian distributions. Each Gaussian distribution uses a mean value given by Equation (2) and a dispersion defined by Eq. (3) and denoted as Inline graphic. Although the use of a Gaussian distribution is not entirely rigorous, the central limit theorem justifies its application for large N. In this context, our probability density will resemble a “fence” with a period

graphic file with name d33e827.gif 8

This implies that subsequently performing a series of analogous measurements with a phase accumulation time Inline graphic yields a distribution with a period of Inline graphic and a dispersion Inline graphic. We consider the results of various measurements to be statistically independent events. Then the final probability density can be represented as the normalized product of the first two densities. This product resembles a modulated signal, with an envelope shaped like a Gaussian distribution having a period of

graphic file with name d33e845.gif 9

and a dispersion

graphic file with name d33e850.gif 10

Here the index 2N indicates the total number of measurements in a given set of measurements. A qualitative plot of the probability density distribution of the field is shown in Fig. 1. Thus, the measurement range depends not on Inline graphic, but on Inline graphic, enabling its increase by a factor of Inline graphic.

Fig. 1.

Fig. 1

The unnormalized probability density of the field distribution, represented in arbitrary units on the Y-axis, is shown in red for the first measurement with a phase accumulation time Inline graphic, and in green for the measurement with Inline graphic. The resulting probability density from both measurements, along with its envelope, is shown in purple. It is seen that the phase change of the resulting signal acquires a period of Inline graphic, i.e. Inline graphic, which effectively expands the measurement range by factor of 20. The arrows at the top of the figure indicate the flux range in which the measurements are unambiguous for a standard measurement with Inline graphic (red) and for a pair of measurements with times Inline graphic and Inline graphic (purple). The greater the range of the flow of a pair of measurements, the closer the phase selection times for each pair of measurements are to each other.

Signal modulation

We analyze a pair of measurements with phase accumulation times Inline graphic and Inline graphic. This is the simplest pattern utilizing the signal modulation effect. However, the Kitaev algorithm involves multiple steps, allowing for the construction of more accurate measurement patterns. Let us consider the specific case of Equation (10) where Inline graphic, and assume Inline graphic. In this scenario, the dispersion is given by

graphic file with name d33e938.gif 11

Next, let us consider a set of three measurements with phase accumulation times Inline graphic, Inline graphic, and Inline graphic. This results in an envelope with the same period as the two-measurement case but with a dispersion

graphic file with name d33e956.gif 12

It can be seen that the dispersion decreases by half with Inline graphic. Assuming Inline graphic and Inline graphic, we consider that N Ramsey experiments are conducted for each phase accumulation time. Thus, measuring at three times takes 1.5 times longer than at two times. We see that according to Eq. (3), Inline graphic. Therefore, reducing the number of iterations per measurement at three times by a factor of 1.5 results in an envelope with a dispersion that is approximately 1.6 times smaller than that of the two-time measurement, given the same total measurement duration. Furthermore, increasing the number of measurements can further reduce the dispersion.

For measurements at k times Inline graphic with a total number of iterations N, which is equivalent to achieving dispersion Inline graphic for a single phase accumulation time Inline graphic, the dispersion is

graphic file with name d33e1006.gif 13
graphic file with name d33e1010.gif 14

Reflected Kitaev algorithm

In the implementation of the Reflected Kitaev Algorithm, we seek to eliminate the phase accumulation measurements performed at short times, which are typically associated with lower classical precision. To achieve this, we relocate all steps, except for the final two, to the regime of longer phase accumulation times. The number of measurements at each time interval Inline graphic is chosen to match that of the standard Kitaev steps for the same Inline graphic. The demonstration of the selection of phase accumulation times for the Standard and Reflected Kitaev algorithm is given in Fig. 2.

Fig. 2.

Fig. 2

Pulse diagrams for Kitaev algorithm (a) and Reflected Kitaev algorithm (b). The transparent blocks represent initialization and reading, and the shaded blocks represent rotations by Inline graphic around the Y axis. A two-way arrow indicates the time delay between pulses. Inline graphic is minimum phase set time. (a) Four-step Kitaev performs measurements in the time range from Inline graphic to Inline graphic. (b) Reflected Kitaev performs measurement steps in the time range from Inline graphic to Inline graphic. Due to higher estimation times, the measurement accuracy of this algorithm is slightly higher than that of Kitaev. The measurement range is also higher (by a factor of 4) since it is determined not by the minimum phase set time Inline graphic but by the minimum difference between the 1st and 2nd steps Inline graphic. Improving the range by a factor of 4 requires an increase in the number of steps to 6 and some increase in the algorithm running time.

Here is a general formula for choosing the phase set times for m steps

graphic file with name d33e1034.gif 15

where Inline graphic is the minimum time step provided by the pulse generator. The reliability of convergence is preserved because the set of steps Inline graphic is equivalent to step Inline graphic in the standard Kitaev algorithm, the set Inline graphic is equivalent to step Inline graphic, etc, see “Signal modulation”.

It is noteworthy that the last two measurements coincide with those in the standard Kitaev algorithm, as they are conducted at longer Inline graphic, where classical precision is inherently higher. When comparing this algorithm to the standard Kitaev algorithm, it is important to emphasize that our measurements are conducted primarily in the regime of longer phase accumulation times. As a consequence, the impact of decoherence becomes more pronounced, necessitating an increased number of measurements to maintain the reliability of the results. This requirement is also applicable to standard phase estimation algorithms. Notably, there exists a minimum number of measurements necessary to ensure the algorithm’s convergence towards the true value of the field.

If additional measurements at the optimal point are not required to achieve the desired accuracy, the algorithm can be modified in a different manner. Specifically, we do not alter the placement of existing points in the standard Kitaev algorithm but instead add additional measurements that are spaced closer together than Inline graphic between the times for the 0th and 1st steps. For simplicity, let us assume that Inline graphic, where Inline graphic. Then, the times for the m-step algorithm will be given by the set:

graphic file with name d33e1143.gif 16

This algorithm does not shift the measurement points to increase accuracy but instead extends the measurement range through a modulation effect. We will refer to this action as to the small Reflected Kitaev algorithm. Figure 3 illustrates a comparative analysis of the flux probability density distribution across various steps for the standard Kitaev algorithm, the Fourier algorithm, the Reflected Kitaev algorithm, and the Enhanced Linear Ascending Metrological Algorithm.

Fig. 3.

Fig. 3

Flux probability density distribution at various steps of the algorithms: (a) Kitaev, (b) Fourier, (c) Reflected Kitaev, and (d) ELAMA. The Kitaev and Fourier algorithms were computed similarly to those in Table 3. In the reflected Kitaev and ELAMA algorithms, the number of steps was reduced from 12 to 8 and from 1300 to 130, respectively, for better clarity. Kitaev’s algorithm gets a broad peak and narrows it as it works. The Fourier algorithm receives a large peak number and then discards them, leaving one correct one. The Reflected Kitaev algorithm combines these two methods in a sense. It creates a large sample of narrow peaks, as in the case of Fourier, the envelope of which is a broad peak like in Kitaev. Then, the envelope narrows until it is equal to the distance between the peaks. Thus, only one peak remains as a result. The behavior of ELAMA is generally similar to the Reflected Kitaev.

The Kitaev algorithm, see Fig. 3a, demonstrates a gradual reduction in the uncertainty of the flux estimate over successive steps. At each step, the algorithm effectively halves the range of possible flux values by doubling the phase accumulation time. The Fourier algorithm, see Fig. 3b, uses a different approach. The first measurement is carried out when the maximum phase set time. As a result, the algorithm immediately gets narrow peaks in the probability density distribution. However, this measurement is ambiguous over the entire flux range. Therefore, further measurements are carried out at shorter phase estimation times. The extra peaks are gradually discarded until only one peak corresponds to the measured flux. Since the sets of phase estimation times are the same in the Fourier and Kitaev algorithms, and the algorithms differ only in the order of selection of these times, they give identical probability density distributions of the flux at the end of their work. It is worth noting that Kitaev gives particular results at each step of its work, while Fourier gets an unambiguous result only at the last step of the algorithm.

The Reflected Kitaev algorithm (RKA), see Fig. 3c, improves the convergence process by concentrating measurements on longer phase accumulation times, where classical precision is inherently higher. It combines the approach of the Kitaev and Fourier algorithms. This approach immediately gets narrow peaks, as in Fourier’s work. At the same time, the envelope of these peaks behaves like the density of the field distribution during the Kitaev algorithm is running. Also, the flux range in such a measurement is determined not by the Ramsey sequence minimum time but by the sample period of the pulse generator, which can be two orders of magnitude less.

It is evident that algorithms based on closely spaced measurements cannot utilize a frequency shift (denoted as FS) approach that accounts for the measured field until they reach the stage where they begin to behave like the classical Kitaev algorithm. The details of the correction of the initial state by shifting the carrier frequency of the Ramsey pulse are given in Methods, “Initial state correction”. In the case of the reflected Kitaev algorithm, this only occurs at the final step, while in the small reflected Kitaev algorithm, it happens during the last Inline graphic steps. The remaining steps must be performed using an FS approach that does not take the measured field into account. This slightly reduces the final accuracy, but still provides an advantage over the standard Kitaev algorithm.

Enhanced linear ascending metrological algorithm

The presence of noise leads to the need to carry out a large number (at least hundreds) of measurements to ensure the convergence of algorithms. The number of steps in Kitaev’s algorithm is small because it is limited by the Inline graphic. Thus, dozens of measurements are performed at each step of the algorithm. Due to the large number of measurements required at each step of the Kitaev algorithm, it becomes suboptimal, due to uncertainty of the Inline graphic in Eq. (2).  Based on this observation, the LAMA algorithm 73 was proposed, where the phase accumulation times grow linearly rather than exponentially as in the Kitaev algorithm. In LAMA, only a single measurement is taken at each step, compared to at least 20 measurements per step in Kitaev. Consequently, the phase accumulation times in LAMA follow the sequence Inline graphic. Interestingly, only one Ramsey experiment is conducted at the time Inline graphic, which does not provide sufficient accuracy on its own. However, the algorithm avoids issues related to resolving ambiguities on the scale of Inline graphic. This effect is well explained by the modulation effect of the signal. Indeed, by performing measurements with a step size of Inline graphic, we obtain a large set of closely spaced points, providing high accuracy despite the lower precision of each individual measurement.

However, there are imperfections in the standard LAMA algorithm that are addressed in the proposed ELAMA algorithm. First, as described above, instead of using the minimal phase accumulation time Inline graphic, determined by the gate rotation time, we can use the minimal step size of the pulse generator, which is two orders of magnitude smaller. This will extend the measurement range by two orders of magnitude. Second, we can avoid performing measurements at small phase accumulation times, where classical accuracy is low. Indeed, the resolution of the field ambiguity is mainly determined not by the individual measurements but by the closely spaced pairs of measurements, which resolve ambiguities equally well at all Inline graphic. Thus, we can start our algorithm at time Inline graphic, and then proceed upwards with the minimal step size provided by the pulse generator, Inline graphic, following the sequence Inline graphic. After a certain number of steps, the probability of convergence error will be sufficiently low.

In Fig. 3d we present the ELAMA algorithm’s convergence. The figure shows a rapid narrowing of the probability density distribution across a sequence of closely spaced steps. By continuously increasing the phase accumulation times, ELAMA effectively resolves flux ambiguities and achieves high precision in fewer steps. ELAMA demonstrates the fastest and most reliable convergence, making it highly suitable for high-precision quantum metrology applications.

Numerical comparison of various algorithms

We modeled the work of different algorithms numerically to compare their effectiveness. First, we compared the operation of various algorithms without reference to real devices. That allowed us to identify the strengths of several algorithms in the general case. Next, we performed numerical calculations for a certain qubit using the Python libraries Qiskit and Braket. We have considered the noiseless model, as well as the white noise and 1/f noise model. We have presented the calculation methods and qubit parameters in Methods “Qubit parameters and calculation methods” and “Sensitivity”.

Modeling of various PEA without reference to the device

We simulate algorithms under the assumption that Inline graphic. We randomly select the field with a uniform distribution over the segment for each algorithm run. We digitize the field distribution by an array with 40, 000 possible values and considered it dimensionless. We model the single-shot measurement in the Ramsey experiment by a pseudorandom number generator. We assume that the algorithm generates an error if the square deviation of the measurement result from the correct field is more than 400. Since some algorithms converge faster than others, we assume that the algorithms continued to make measurements after convergence at the optimal point Inline graphic. The results are shown in the Table 1. For compactness, we introduced the following notations: K stands for Kitaev PEA, F denotes the PEA of the quantum Fourier transform, RK denotes the Reflected Kitaev PEA, and SRK denotes Small Reflected Kitaev PEA. Furter, Inline graphic is the number of runs of the algorithm, Inline graphic is the number of runs of the algorithm during which it converged incorrectly, Inline graphic is the variance of the measurement error, Inline graphic is the total number of measurement iterations in one run of the algorithm, and Inline graphic is the number of iterations at the optimal phase estimation time. We applied initial state correction by adjusting the carrier frequency of the Ramsey pulses. This adjustment was performed using three methods: taking into account the previously measured field (this method is denoted as MF FS), without considering the previously measured field (this method is denoted as non-MF FS), and a mixed approach combining both methods, see Methods “Initial state correction” for details.

Table 1.

Numerical simulations of various phase estimation algorithms were performed. The indices Inline graphic, Inline graphic, and Inline graphic denote algorithms that (i) do not use, (ii) fully use, and (iii) partially use the already measured field, respectively. The parameters were set to Inline graphic and Inline graphic.

Algorithm Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic
K 10, 000 3734 Inline graphic 263 123 1
Inline graphic 10, 000 44 Inline graphic 263 115 1
Inline graphic 10, 000 11 Inline graphic 263 123 1
F 10, 000 3528 Inline graphic 263 123 1
Inline graphic 10, 000 876 Inline graphic 263 123 1
Inline graphic 10, 000 9 Inline graphic 263 120 8
Inline graphic 10, 000 6 Inline graphic 263 41 256
Inline graphic 10, 000 161 Inline graphic 263 41 256
Inline graphic 10, 000 18 Inline graphic 263 41 256
Inline graphic 10, 000 0 Inline graphic 263 8 256
Inline graphic 10, 000 0 Inline graphic 512 278 1
Inline graphic 10, 000 352 Inline graphic 512 278 1
Inline graphic 10, 000 1 Inline graphic 512 275 8
Inline graphic 10, 000 35 Inline graphic 512 144 256
Inline graphic 10, 000 0 Inline graphic 512 144 256
Inline graphic 10, 000 0 Inline graphic 512 256 257
Inline graphic 10, 000 0 Inline graphic 512 1 1

The simulation results generally agree with the estimates and reasoning given above, in particular, MF FS surpasses non-MF FS in accuracy for the Reflected Kitaev algorithm. However, it can not guarantee convergence because this algorithm cannot uniquely determine the field before completing its work. A combination of non-MF FS and MF FS gives an average result between them both in accuracy and convergence. That allows the mixed approach to achieve sufficiently high accuracy and guaranteed convergence with a small number of measurements.

We note that ELAMA can provide reliable convergence even with the use of MF FS. Integrating the advantages of all methods, it reaches the best combination of measurement accuracy and reliability. The reasons why ELAMA is so effective require further investigation. The increase in accuracy is understandable and comparable to MF FS RK, but unlike it, ELAMA provides guaranteed convergence that surpasses all other algorithms. Perhaps this is because LAMA performs Bayesian learning after each measurement. That is 256 times in ELAMA and 512 times in LAMA, while all other algorithms perform it only 10 times. Such frequent Bayesian learning requires serious simulation capacity.

Noiseless qubit simulations

Here, we use the Local Simulator 75 qubit simulator without noise for modeling. The calculation methods are identical to those used for Table 1. The minimum phase accumulation difference was set to Inline graphic ns, minimum phase accumulation time was set to Inline graphic ns 74, and Inline graphic is the total runtime of the algorithm. The parameters of the simulated qubit are given in “Qubit parameters and calculation methods”. The results are presented in Table 2 and in Figs. 4c and 6e,f.

Table 2.

Numerical simulation of various phase estimation algorithms using the braket library (noiseless model). Indexes Inline graphic, Inline graphic, and Inline graphic indicate non-MF FS, MF FS, and mixed approach algorithms. The index Inline graphic denotes algorithms that use additional measurements at the optimal point. We model the algorithms like they were running on a magnetometer based on the qubit described in Methods “Qubit parameters and calculation methods”.

Algorithm Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic (ms)
non PEA 34 51 0.2
K 10, 000 1360 84 124 3.0 0.26
Inline graphic 10, 000 15 78 115 6.1 0.25
Inline graphic 10, 000 1 69 102 3.6 0.26
Inline graphic 10, 000 5 70 103 6.8 0.26
F 10, 000 1350 83 123 3.0 0.26
Inline graphic 10, 000 160 87 128 2.9 0.26
Inline graphic 10, 000 0 98 145 322 0.48
RK 10, 000 986 51 76 326 0.58
Inline graphic 10, 000 0 52 76 613 0.56
Inline graphic 10, 000 12 50 74 332 0.56
Inline graphic 10, 000 0 51 76 617 0.56
LAMA 10, 000 0 55 82 4.5 0.33
Inline graphic 10, 000 0 53 79 4.7 0.33
Inline graphic 10, 000 0 45 66 373 2.71
Inline graphic 10, 000 0 45 66 708 2.43

Fig. 4.

Fig. 4

The demonstration of the effectiveness of various algorithms. Calculations using (a) the 1/f-noise model, (b) white noise model and (c) noiseless model. The blue line on (a) figure represents classical measurements taken at a fixed phase accumulation time. The orange line indicates the optimal accuracy that can be achieved, for example, by taking long-term measurements at the optimal phase set time after the PEA protocol completion. The green shaded area highlights the standard algorithms; the red shaded area corresponds to algorithms utilizing correction of the initial state by shifting the carrier frequency of the Ramsey pulse, frequency shift (FS); and the blue shaded area represents algorithms that leverage both FS and the signal modulation effect. Note that the frequency shift increases the accuracy, and the effect of signal modulation significantly increases the dynamical range of measurements.

Fig. 6.

Fig. 6

The information gain of various algorithms as a function of the total phase accumulation time (a,c,e) and the total runtime of the algorithm (b,d,f) is calculated using 1/f-noise model (a,b), white noise model (c,d) and noiseless model (e,f) of the Ramsey experiment. All algorithms were tested under the same parameters as those listed in Tables 3 and 4. The indices Inline graphic, Inline graphic, and Inline graphic denote algorithms that do not use, fully use, and partially use the already measured field, respectively. The black lines in the left-hand figures represent the shot noise limits (SNL): the solid line corresponds to measurements starting at Inline graphic, applicable to the Reflected Kitaev FS non-MF (Inline graphic), Reflected Kitaev FS Mixed (Inline graphic) and Small Reflected Kitaev FS Mixed (Inline graphic) algorithms; the dash-dotted line corresponds to measurements starting at Inline graphic, applicable to the Reflected Kitaev (RK), Reflected Kitaev FS MF (Inline graphic) and ELAMA FS MF (Inline graphic) algorithms; the dashed line corresponds to measurements starting at Inline graphic, applicable to the Kitaev FS non-MF (Inline graphic) and Kitaev FS Mixed (Inline graphic) algorithms; and the dotted lines represent the shot noise limits for measurements starting at Inline graphic, applicable to the LAMA, LAMA FS MF (Inline graphic), Kitaev (K), Kitaev FS MF (Inline graphic), Fourier (F), and Fourier FS MF (Inline graphic) algorithms. The blue lines indicate the corresponding Heisenberg limits (HL). All algorithms lie between SNL and HL, which confirms the calculation’s correctness and the algorithm’s quantum nature. The pace of information gain of algorithms using the effect of “signal modulation” is higher than that of Kitaev and lower than that of Fourier, which is consistent with the data in Fig. 3. Note that both the RK and ELAMA algorithms near completion exhibit a transition from HL scaling to a slope similar to SNL behavior.

It can be noted that in noiseless mode, FS does not give a significant gain in measurement accuracy. Indeed, the main advantage of FS is the optimization of the last multiplier of the Eq. (3). But without noise, it is already minimal and equal to 1. Nevertheless, FS still does a satisfactory job with the uncertainty of the sign of the inverse cosine and significantly reduces the probability of an error in the algorithm.

Another feature is that in this mode, Reflected Kitaev significantly exceeds the standard Kitaev in accuracy. This is because the main idea of Reflected Kitaev is to increase the phase set times closer to the optimal one Inline graphic. The ELAMA is also superior to LAMA in accuracy. The gain here is not so high since LAMA is already close enough to the optimum, and further algorithm improvement is difficult. However, the main advantage of algorithms based on the effect of signal modulation is a gain in the dynamical range of about 2 orders of magnitude.

The 1/f noise model

In this case, we model a qubit with Gaussian dephasing corresponding to the 1/f noise model, see Fig. 5 and Methods “Sensitivity”, commonly used in experimental analyses. We selected the phase set times to be identical across all noise models for consistent comparison. These times are optimal for the 1/f noise model. But they are good enough for white noise. Obviously, in noiseless mode, it would be more profitable to make the times as large as possible, but such consideration is too idealized and uninteresting. The total running time of the algorithms is different for different noise models. This is due to the differing measurements number at each step based on the qubit attenuation measure according to the Eq. (7). The calculation methods and qubit parameters are identical to those used for “Noiseless qubit simulations”. The results are presented in Table 3 and in Figs. 4a and 6a,b. The accuracy of the magnetometer at the optimal phase accumulation time for fluxonium qubit  20 is analytically estimated in Table 6.

Fig. 5.

Fig. 5

Qubit attenuation. The excited state population was calculated numerically using the qiskit library (blue solid line). The analytical fit Inline graphic, where t is the waiting time (orange dashed line), corresponds to the white noise model. The analytical attenuation Inline graphic for simulation using numpy.random.rand (green dashed line) corresponds to the 1/f noise mode. Noiseless mode when simulating using the braket library (red dashed line).

Table 3.

Numerical simulations of various phase estimation algorithms were performed. The indices Inline graphic, Inline graphic, and Inline graphic denote algorithms in scenarios: (i) do not use, (ii) fully use, and (iii) partially use the already measured field, respectively (see Methods “Initial state correction”). The index Inline graphic denotes algorithms that use additional measurements at the optimal point. It was assumed that the algorithms were implemented on a magnetometer based on qubit 2 from Table 6.

Algorithm Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic (ms) Inline graphic
non PEA 52 77 0.14 1.5
K 10, 000 1388 110 162 2.3 0.32 1.3
Inline graphic 10, 000 7 99 147 4.8 0.33 1.3
Inline graphic 10, 000 0 79 117 3.2 0.32 1.1
Inline graphic 10, 000 4 79 117 6 0.32 1.1
F 10, 000 1360 112 166 2.2 0.32 1.3
Inline graphic 10, 000 556 122 180 2.1 0.32 1.4
Inline graphic 10, 000 0 107 159 295 0.55 1.1
RK 10, 000 888 79 117 210 0.83 1.5
Inline graphic 10, 000 0 74 109 428 0.84 1.4
Inline graphic 10, 000 9 62 91 270 0.84 1.2
Inline graphic 10, 000 0 71 105 445 0.84 1.4
LAMA 10, 000 0 85 126 2.9 0.33 1.5
Inline graphic 10, 000 0 67 99 3.7 0.33 1.3
Inline graphic 10, 000 0 58 86 287 2.71 1.3
Inline graphic 10, 000 0 60 88 530 2.71 1.3

Table 6.

The accuracy of the magnetometer at the optimal phase accumulation time for fluxonium 20 qubit.

A (Inline graphic) S (Inline graphic) Inline graphic (Inline graphic) Inline graphic (Inline graphic) Inline graphic (Inline graphic) Inline graphic (Inline graphic) Inline graphic (Inline graphic) Inline graphic (Inline graphic)
4.3 1400 Inline graphic 1.5 1.1 0.7 52 76

The dynamical range of algorithms utilizing the signal modulation effect exceeds that of standard algorithms by two orders of magnitude, reaching up to Inline graphic. The numerical calculation of accuracy for non-PEA coincides with the analytical one. The presence of noise worsened the accuracy of the algorithms by 1.5 times. However, MF FS allows us to reduce this drop in accuracy to 1.1 for some algorithms.

Algorithms that utilise the signal modulation effect significantly outperform conventional algorithms in terms of final information gain. This advantage arises from the additional information extracted due to their extended range of measurable fields.

The white noise model

In this section we present results of simulations including only the white noise, which dephasing mechanism leading to exponential coherence decay we described in Methods  “Sensitivity”. The qubit state decay rate is measured using the Ramsey experiment to conduct Bayesian learning and to select the optimal number of measurements at each step, see Fig. 5. The attenuation model is well approximated by the exponential decay. We model the Ramsey sequence process in the algorithms using the qiskit library (we do not use the pulse-level control, we artificially perform phase set by the rz gate). The calculation methods and qubit parameters are identical to those used for “Noiseless qubit simulations”. We present the results in the Table 4 and in Figs. 4b and 6c,d.

Table 4.

Numerical simulation of various phase estimation algorithms using the qiskit library. Indexes Inline graphic, Inline graphic, and Inline graphic indicate non-MF FS, MF FS, and mixed approach algorithms. The index Inline graphic denotes algorithms that use additional measurements at the optimal point. We model the algorithms like they were running on a magnetometer based on the qubit described in Methods “Qubit parameters and calculation methods”.

Algorithm Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic Inline graphic (ms) Inline graphic Inline graphic
non PEA 66 97 0.11 1.9 1.3
K 10, 000 1356 135 199 1.9 0.44 1.6 1.2
Inline graphic 10, 000 18 120 178 3.9 0.44 1.5 1.2
Inline graphic 10, 000 1 93 137 2.7 0.44 1.3 1.2
Inline graphic 10, 000 11 94 139 5.0 0.44 1.3 1.2
F 10, 000 1415 136 202 1.8 0.44 1.6 1.2
Inline graphic 10, 000 963 151 223 1.7 0.44 1.7 1.2
Inline graphic 10, 000 0 122 180 300 0.66 1.2 1.1
RK 10, 000 995 108 160 154 1.3 2.1 1.4
Inline graphic 10, 000 0 100 148 316 1.3 1.9 1.4
Inline graphic 10, 000 22 79 117 211 1.3 1.6 1.3
Inline graphic 10, 000 1 94 139 336 1.3 1.8 1.3
LAMA 10, 000 23 112 165 2.2 0.33 2.0 1.3
Inline graphic 10, 000 2 85 125 2.9 0.33 1.6 1.3
Inline graphic 10, 000 0 72 106 232 2.71 1.6 1.2
Inline graphic 10, 000 0 78 115 406 3.21 1.7 1.3

Overall, the results of algorithms computed with white noise are approximately Inline graphic lower than those obtained using 1/f noise model. This discrepancy arises primarily because the white noise simulations model relaxation with an exponential decay, while 1/f noise model assumes a Gaussian decay. The impact of this difference is less pronounced in algorithms that involve a larger number of measurements at shorter phase accumulation times (e.g. K, F, SRK), where the accuracy is less compromised. In contrast, algorithms such as RK and LAMA, which focus on measurements near the optimal phase accumulation time, exhibit a more significant decline in accuracy. Nonetheless, algorithms operating close to optimal times still maintain accuracy comparable to conventional methods and significantly outperform them in terms of dynamical range.

Discussion

Figure 6 demonstrates the information gain dynamics of various algorithms. Notice that all algorithms lie between Heisenberg limits (HL) and classical shot-noise limit (SNL), which emphasizes their quantum nature (see methods “Sensitivity”). By incorporating modifications to the phase estimation algorithm (PEA), as detailed in “Detailed description of the proposed methods”, we further enhance the scaling of the conventional PEAs towards the HL, without exploiting the conventional quantum entanglement. We utlise our modified PEAs, i.e. RK and ELAMA, and implemented our advanced measurement strategies, including the signal modulation and proximity time measurements, to optimise the phase accumulation and sensitivity precision, which results we further discuss in details and perform comparison.

The information gain depends on the accuracy and range of measurements, see Methods “Sensitivity”. We can roughly estimate it as the logarithm of the ratio of the measured field range to the resulting measurement inaccuracy. Therefore, you can raise the accuracy or expand the measured field range to improve the information gain without significantly increasing the algorithm running time. Improving the accuracy of measurements using algorithmic methods is difficult since the proposed algorithms are already quite close to the optimum of measurements in Inline graphic, see Fig. 4. An increase in the measurement range is possible, for example, by using more efficient approaches to selecting phase set times, such as the signal modulation method. Thanks to it, the corresponding algorithms can receive up to 7 bits of additional information. A further increase in the accuracy of qubit control can additionally increase this value.

The Figure 6 is convenient for comparing and analysing the dynamics of algorithms. In this comparison, it should be borne in mind that algorithms using non-MF FS (indicated by the index Inline graphic and Inline graphic in all graphs and tables of this work) have a doubled measurement range compared to their counterparts, which allows them to obtain an additional bit of information.

  • Let’s highlight separately the algorithms that do not use the effect of signal modulation: Kitaev, Fourier, and LAMA (in Fig. 4 circled in green and red). They require little work time, but their information gain is also low.

  • All versions of the RK (see “Reflected Kitaev algorithm”) algorithms require more time to work, but they provide significantly more information about the field. First of all, this is achieved due to the higher measurement range, explained in details in sections “Proximity time measurements” and  “Signal modulation” .

  • SRK is a cross between RK and algorithms that do not use signal modulation. In this algorithm, most measurements take place at short phase set times. That expands the range of measured fields without significantly increasing the algorithm running time. However, this approach of measuring away from the optimal point in terms of phase estimation time leads to a measurement accuracy decrease.

  • ELAMA, see section “Enhanced linear ascending metrological algorithm”, provides a wide dynamical range and the highest measurement accuracy, but its convergence takes a long time. The long-running time is because this algorithm steps fill the entire time-space from Inline graphic to Inline graphic in increments of Inline graphic. With the discussed parameters consideration of the qubit and pulse generator, this is 1300 measurements, while about 400 is sufficient for reliable algorithm convergence for a given range of fields. If the algorithms are run on qubits with a shorter dephasing time or using generators with a lower digitization step, the ratio Inline graphic will decrease, and ELAMA’s operating time will be closer to RK’s operating time. At the same time, ELAMA will retain the advantages of accuracy and reliability.

In addition, we compare algorithms performance, by focusing on the modified PEAs which achieved the best results. We summarize their strengths and weaknesses, and present the conditions under which the algorithm choice is optimal, see Table 5:

  • Inline graphic and Inline graphic take the least time. Inline graphic has a higher accuracy, and Inline graphic has a higher dynamical range. Of the shortcomings, Inline graphic more often makes convergence errors. These algorithms are preferred if fast measurements are required and there is no need for a wide measurement range.

  • Inline graphic is the fastest algorithm providing a wide dynamical range of measurements. However, it pays for this with low accuracy. This algorithm is preferable if fast measurements are required and there is a need for a wide measurement range, while high accuracy is not necessary.

  • Inline graphic and Inline graphic provide good accuracy and high measurement range with moderate operating time. Inline graphic wins in terms of accuracy, but it cannot ensure the reliability of convergence. Inline graphic is worse in accuracy but better in dynamical range and reliability.

  • Inline graphic is the most powerful tool in terms of accuracy and reliability. It surpasses Inline graphic in accuracy, even if additional measurements are carried out at the optimal time point (designation Inline graphic), although Inline graphic wins in terms of range. Of the disadvantages, Inline graphic requires high execution time and capacity of classical computational resources.

Table 5.

The final best algorithms comparison. Numerical calculations are given in the 1/f noise model. The indices Inline graphic, and Inline graphic denote algorithms in scenarios: (ii) fully use, and (iii) partially use the already measured field, respectively (see Methods “Initial state correction”). The index Inline graphic denotes algorithms that use additional measurements at the optimal point. It was assumed that the algorithms were implemented on a magnetometer based on qubit 2 from Table 6.

graphic file with name 41598_2025_30179_Tab5_HTML.jpg

Conclusions

We have carried out a comprehensive study of phase estimation algorithms applied to quantum magnetometry, particularly focusing on superconducting qubits. By systematically analyzing both standard and optimized algorithms, including the Kitaev, Fourier, and our proposed Reflected Kitaev (RK) and Enhanced Linear Ascending Metrological Algorithm (ELAMA), we demonstrated significant improvements in magnetic flux sensitivity and dynamical range. Our results show that the optimizations we introduced, such as signal modulation and the correction of initial states through Ramsey pulse frequency shifts, enable the RK and ELAMA to outperform standard methods in both dynamical range and precision. ELAMA’s enhanced performance, especially at longer phase accumulation times, positions it as a robust tool for quantum-enhanced magnetometry, surpassing the standard noise limit and approaching HL scaling with fewer measurement steps. Although RK showed slightly less accuracy than ELAMA, it offers larger dynamical range, and requires much less classical computational resources since it less often conducts Bayesian Learning.

Future research will explore additional enhancements to quantum magnetometry, such as the use of entangled qubits and multilevel artificial atoms, which promise to further improve sensitivity. Moreover, the integration of quantum error correction techniques could extend coherence times and lead to practical implementations of quantum-enhanced magnetometry across a broader range of systems. These developments will pave the way for even greater accuracy in fundamental physics measurements and applications requiring extreme precision, such as gravitational wave detection and secure communication protocols.

Methods

Initial state correction

Correction of the initial state of Inline graphic can enhance the sensitivity and solve the ambiguity of the inverse cosine sign problem. The correction consists of an additional Inline graphic rotation, which can be carried out either by changing the carrier frequency of the Ramsey pulses or by applying an additional field to the measuring contour of the qubit. We will consider rotations by changing the pulse frequency carrier by Inline graphic since this method does not require an additional control line connected to the qubit. In this case, Inline graphic.

We use three types of frequency shifts in this work.

  1. The frequency shift for the Fourier algorithm consists of shifting the frequency at the Inline graphic-th step by
    graphic file with name d33e3466.gif 17
    where Inline graphic is one of the most likely values of the field measured at the Inline graphic-th step.
  2. Frequency shift  69 without using the already measured field (non-MF FS) for the rest of the algorithms consists of splitting a set of N measurements at a given time Inline graphic into two equal subsets of N/2 measurements. We conduct the first subset of measurements with no changes and do the frequency shift
    graphic file with name d33e3498.gif 18
    in the second subset.
  3. The frequency shift using the already measured field Inline graphic (MF FS) consists of shift
    graphic file with name d33e3512.gif 19
    for measurements on time Inline graphic. We do not carry out the frequency shift on the zero measurement, at which we do not know anything about the field yet.

We also use a mixed shift, which conducts MF FS on one set of steps and non-MS FS on the other set. In Kitaev’s algorithm, non-MF FS is performed only at the first step. In the small Reflected Kitaev algorithm, we perform non-MF FS at the first q steps. In the Reflected Kitaev algorithm, we perform non-MF FS at all steps except the last one. The remaining steps use MF FS.

Qubit parameters and calculation methods

The Hamiltonian of the fluxonium is given by

graphic file with name d33e3526.gif 20

where Inline graphic, Inline graphic, and Inline graphic are the charging, inductive, and Josephson energies, respectively. Here, Inline graphic is the magnetic flux quantum, Inline graphic is the phase induced by the external flux Inline graphic, Inline graphic is the superconducting phase of the island, Inline graphic is the number of Cooper pairs on the capacitor, and Inline graphic is the offset charge on the island 20.

The potential energy of the superconducting loop containing the Josephson junctions array is approximated by Inline graphic, and it strongly depends on the external flux. In Fig. 7 we show: Fig. 7a potential energy of fluxonium at half flux a quantum; Fig. 7b numerically evaluated spectra of the first four energy levels; and Fig. 7c,d shows phase and charge matrix elements for corresponding transitions. The qubit’s main transition frequency, denoted as Inline graphic, is related to the effective magnetic moment Inline graphic, which quantifies the sensitivity of the qubit to changes in the magnetic flux.

graphic file with name d33e3599.gif 21

Fig. 7.

Fig. 7

Spectral characteristics of fluxonium qubit 20. (a) Potential energy Inline graphic of fluxonium at half flux a quantum of the external flux Inline graphic. (b) Spectra of the main transitions in fluxonium: Inline graphic, Inline graphic, Inline graphic, Inline graphic. (c,d) Phase and charge matrix elements for transitions Inline graphic, Inline graphic, Inline graphic, Inline graphic. (e) The derivative of the qubit’s main transition frequency with respect to the magnetic flux, denoted as Inline graphic. The frequencies of transitions Inline graphic, Inline graphic, and Inline graphic intersect near the maximum of the derivative of Inline graphic. At the same time, the matrix elements of transitions Inline graphic and Inline graphic are not zero. Therefore, it is necessary to choose the measurement point carefully, according to the possibility of leakage of states.

The optimal point for magnetometry selected close to the maximum of the derivative of the qubit’s main transition Inline graphic, see Fig. 7e, accounting the shift to avoid crossing of the interlevel transition spectra and considering the decrease of the 1/f flux noise contribution, and thus maximizes the sensitivity to the external flux.

The algorithm for the calculation consists of the following steps:

  • Analysing the qubit parameters and identifying the range of the maximum sensitivity of the qubit to the external flux Inline graphic, see Table 6.

  • Determining the decoherence time Inline graphic and the optimal phase accumulation time Inline graphic for the given external flux value, see Table 6.

  • Estimating the classical measurements accuracy at the optimal phase accumulation time for magnetic flux sensitivity Inline graphic (Eq. 4) and field dynamical range Inline graphic, denoted according to  16, see Table 6.

  • Selecting the nature of the dephasing according to the analytical solution (see “The 1/f noise model” for details). Next, to numerically verify the measurement accuracy without using the phase estimation algorithm (row “non PEA” in Table3). Then, to ensure consistency between the analytical and numerical calculations.

  • Performing the standard protocol for evaluating the dephasing rate of the qubit using a simulation of the Ramsey experiment, see “The white noise model” for details and Fig. 5.

  • Selecting a phase estimation algorithm and determining the optimal number of the steps based on the obtained optimal phase accumulation time.

  • Executing Monte Carlo simulations and recording the resulting parameters of the algorithms in Tables  23 and 4.

Sensitivity

The performance of quantum sensing algorithms can be quantified using the sensitivity and the total time to reach the final result. To analyze the proposed modified PEAs algorithms, how they evolve during the field acquisition and compare their efficiency, we utilize the concept of the information gain 16. The amount of information acquired during a particular step of the algorithm evolution can be explained via the Shannon entropy. The Shannon entropy of the magnetic flux probability density after the Inline graphic step is given by:

graphic file with name d33e3926.gif 22

where k is the number of field digitization steps, Inline graphic is the estimated probability to measure flux Inline graphic after the Inline graphic step of the algorithm, and Inline graphic denotes the partitioning of the interval Inline graphic into k equal segments. Inline graphic depends on the outcomes of all measurements up to and including step n. At the start of the algorithm, the initial uniform distribution, is characterized by the maximum entropy Inline graphic. The information gain is given by Inline graphic, providing the amount of information acquired by the algorithm during the measurement.

Corresponding to the metrology using a superconducting qubit, i.e. fluxonium described by the Hamiltonian Eq. (20), the precision of flux estimation, see Eq. (3), in a standard (classical) measurement scales as Inline graphic. The ultimately attainable precision limited by the scaling law arising from the Heisenberg relation Inline graphic, considering Eq. (21), for fluxonium qubit is given by: Inline graphic.

The standard (classical) measurement is performed at a minimal effective phase accumulation time Inline graphic. In our simulations, we optimize the phase accumulation time Inline graphic; the qubit performance is characterized by the dephasing time Inline graphic, a critical parameter for quantifying quantum performance. The dephasing rate, Inline graphic, is determined by the energy relaxation time Inline graphic and the pure dephasing rate Inline graphic, following the relationship Inline graphic.

The dominant dephasing mechanisms in superconducting qubits include white noise, leading to exponential coherence decay described by Inline graphic, and 1/f-noise, characterized by Gaussian decay Inline graphic. The latter primarily arises from magnetic flux fluctuations and environmental two-level systems (TLS). To investigate these mechanisms, we performed numerical simulations using three distinct platforms: Braket 75, for an ideal noiseless qubit model; Qiskit-aer.AerSimulator 76,77, assuming white noise as a simplified decoherence representation; and numpy.random.rand(...) 78, capturing the more realistic 1/f-noise effects. In this framework, the qubit interacts with a classical noise source Inline graphic, inducing a stochastic phase shift Inline graphic. The resulting coherence decay function, Inline graphic, is determined by the noise spectral density Inline graphic. Specifically, white noise with constant spectral density Inline graphic yields exponential decay with Inline graphic. Conversely, 1/f-noise produces a Gaussian decay, with dephasing rate Inline graphic.

Flux noise is crucial for fluxonium-based quantum sensing and arises predominantly from magnetic flux fluctuations through the superconducting loop, manifesting primarily as 1/f-type noise at low frequencies. The high inductance of fluxonium, achieved through an array of Josephson junctions forming the superconducting quantum interference device (SQUID), enhances its sensitivity to external magnetic fields but simultaneously increases susceptibility to flux-induced dephasing. For fluxonium qubits, the intrinsic inductance substantially exceeds that of conventional SQUIDs or transmon qubits, enhancing the effective antenna area but also amplifying the impact of flux noise. Mitigating flux noise involves optimizing qubit design and fabrication techniques to reduce two-level system (TLS) density and flux vortex trapping. Advanced approaches, such as integrating auxiliary antennas through flux transformers  69 or careful geometric design of the SQUID loop 17, offer pathways to significantly improve flux noise resilience and thus enhance the overall accuracy and sensitivity of fluxonium-based quantum magnetometers.

Acknowledgements

The work was supported by Terra Quantum AG. We are grateful to G. S. Paraoanu, N. S. Kirsanov,  A. V. Lebedev,  G. Blatter,  and M. Perelstein for discussions.

Author contributions

A.G., V.S., and V.V. conceptualized the work, V.S., A.G., and V.V carried out calculations, all authors discussed the results, V.S., A.G., and V.V. wrote the manuscript text, V.S. and A.G. prepared figures, all authors reviewed and discussed manuscript, V.V. supervised the work.

Funding

This research received no external funding. The work was supported by Terra Quantum AG.

Data Availability

All relevant data and figures supporting the main conclusions of the document are available on request to the corresponding authors, Azat Gubaydullin (azg@terraquantum.swiss) and Valerii Vinokur (vv@terraquantum.swiss).

Declarations

Competing interests

The authors declare no competing interests.

Footnotes

Publisher’s note

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

Contributor Information

Azat Gubaydullin, Email: azg@terraquantum.swiss.

Valerii Vinokur, Email: vv@terraquantum.swiss.

References

  • 1.Giovannetti, V., Lloyd, S. & Maccone, L. Advances in quantum metrology. Nat. Photon.5, 222–229 (2011). [Google Scholar]
  • 2.Degen, C. L., Reinhard, F. & Cappellaro, P. Quantum sensing. Rev. Mod. Phys.89, 035002 (2017). [Google Scholar]
  • 3.Tetienne, J.-P. et al. Quantum imaging of current flow in graphene. Sci. Adv.3, 1602429 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 4.Paulsen, M. et al. An ultra-low field SQUID magnetometer for measuring antiferromagnetic and weakly remanent magnetic materials at low temperatures. Rev. Sci. Instrum.94, 103904 (2023). [DOI] [PubMed] [Google Scholar]
  • 5.van Heck, B., Fuchs, T., Plugge, J., Bosch, W. A. & Oosterkamp, T. H. Magnetic cooling and vibration isolation of a sub-kHz mechanical resonator. J. Low Temp. Phys.210, 588–609 (2023). [Google Scholar]
  • 6.Zhang, R. et al. Recording brain activities in unshielded earth’s field with optically pumped atomic magnetometers. Sci. Adv.6, 8792 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 7.Faley, M. I. et al. High-Tc SQUID biomagnetometers. Supercond. Sci. Technol.30, 083001 (2017). [Google Scholar]
  • 8.Vinding, M. C. et al. The Swedish National facility for magnetoencephalography Parkinson’s disease dataset. Sci. Data11, 150 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 9.Fu, K.-M.C., Iwata, G. Z., Wickenbrock, A. & Budker, D. Sensitive magnetometry in challenging environments. AVS Quantum Sci.2, 044702 (2020). [Google Scholar]
  • 10.Goldie, D. J., Withington, S., Thomas, C. N., Ade, P. A. R. & Sudiwala, R. V. A route to large-scale ultra-low noise detector arrays for far-infrared space applications. 10.48550/arXiv.2206.15151. arXiv:2206.15151 (2022).
  • 11.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 (2018). [Google Scholar]
  • 12.Ma, et al. Adaptive cold-atom magnetometry mitigating the trade-off between sensitivity and dynamic range. Sci. Adv.11, eadt3938. 10.1126/sciadv.adt3938 (2025). [DOI] [PubMed]
  • 13.Kleiner, R., Koelle, D., Ludwig, F. & Clarke, J. Superconducting quantum interference devices: State of the art and applications. Proc. IEEE92(10), 1534–1548 (2004). [Google Scholar]
  • 14.Cantor, R. & Koelle, D. Practical DC SQUIDS: Configuration and performance. In The SQUID Handbook, 171–217. 10.1002/3527603646.ch5 (Wiley, 2004).
  • 15.Koch, J. et al. Charge-insensitive qubit design derived from the Cooper pair box. Phys. Rev. A76, 042319 (2007). [Google Scholar]
  • 16.Danilin, S. et al. Quantum-enhanced magnetometry by phase estimation algorithms with a single artificial atom. NPJ Quantum Inf.4, 29 (2018). [Google Scholar]
  • 17.Danilin, S., Nugent, N. & Weides, M. Quantum sensing with tunable superconducting qubits: optimization and speed-up. New J. Phys.26, 103029 (2024). [Google Scholar]
  • 18.Gusarov, N., Perelshtein, M., Hakonen, P. & Paraoanu, G. Optimized emulation of quantum magnetometry via superconducting qubits. Phys. Rev. A107, 052609 (2023). [Google Scholar]
  • 19.Manucharyan, V. E., Koch, J., Glazman, L. I. & Devoret, M. H. Fluxonium: single cooper-pair circuit free of charge offsets. Science326, 113 (2009). [DOI] [PubMed] [Google Scholar]
  • 20.Bao, F. et al. Fluxonium: An alternative qubit platform for high-fidelity operations. Phys. Rev. Lett.129, 010502 (2022). [DOI] [PubMed] [Google Scholar]
  • 21.Somoroff, A. et al. Millisecond coherence in a superconducting qubit. Phys. Rev. Lett.130, 267001 (2023). [DOI] [PubMed] [Google Scholar]
  • 22.Sekatski, P., Skotiniotis, M., Kołodyński, J. & Dürr, W. Quantum metrology with full and fast quantum control. Quantum1, 27 (2017). [Google Scholar]
  • 23.Zemlyanov, V. V. et al. Phase estimation algorithm for the multibeam optical metrology. Sci. Rep.10, 8715 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 24.Lesovik, G. B., Suslov, M. V. & Blatter, G. Quantum counting algorithm and its application in mesoscopic physics. Phys. Rev. A82, 012316 (2010). [Google Scholar]
  • 25.Griffiths, R. B. & Niu, C.-S. Semiclassical Fourier transform for quantum computation. Phys. Rev. Lett.76, 3228 (1996). [DOI] [PubMed] [Google Scholar]
  • 26.Suslov, M. V., Lesovik, G. B. & Blatter, G. Quantum abacus for counting and factorizing numbers. Phys. Rev. A83, 052317 (2011). [Google Scholar]
  • 27.Zopes, J. & Degen, C. L. Reconstruction-free quantum sensing of arbitrary waveforms. Phys. Rev. Appl.12, 054028 (2019). [Google Scholar]
  • 28.Shor, P. W. Algorithms for quantum computation: discrete logarithms and factoring. In Proc. 35th Annual Symposium on Foundations of Computer Science, 124–134 (1994).
  • 29.Smolin, J. A., Smith, G. & Vargo, A. Oversimplifying quantum factoring. Nature499, 163–165 (2013). [DOI] [PubMed] [Google Scholar]
  • 30.Harrow, A. W., Hassidim, A. & Lloyd, S. Quantum algorithm for linear systems of equations. Phys. Rev. Lett.103, 150502 (2009). [DOI] [PubMed] [Google Scholar]
  • 31.Lebedev, A. V., Treutlein, P. & Blatter, G. Sequential quantum-enhanced measurement with an atomic ensemble. Phys. Rev. A89, 012118 (2014). [Google Scholar]
  • 32.Vaidman, L. & Mitrani, Z. Qubits versus bits for measuring an integral of a classical field. Phys. Rev. Lett.92, 217902 (2004). [DOI] [PubMed] [Google Scholar]
  • 33.Giedke, G. et al. Quantum measurement of a mesoscopic spin ensemble. Phys. Rev. A74, 032316 (2006). [Google Scholar]
  • 34.Said, R. S., Berry, D. W. & Twamley, J. Nanoscale magnetometry using a single-spin system in diamond. Phys. Rev. B83, 125410 (2011). [Google Scholar]
  • 35.Higgins, B. L. et al. Entanglement-free Heisenberg-limited phase estimation. Nature450, 393–396 (2007). [DOI] [PubMed] [Google Scholar]
  • 36.Waldherr, G. et al. High-dynamic-range magnetometry with a single nuclear spin in diamond. Nat. Nanotech.7, 105–108 (2012). [DOI] [PubMed] [Google Scholar]
  • 37.Budker, D. & Romalis, M. Optical magnetometry. Nat. Phys.3, 227–234 (2007). [Google Scholar]
  • 38.Wood, A. A. et al. T2-limited sensing of static magnetic fields via fast rotation of quantum spins. Phys. Rev. B98, 174114 (2018). [Google Scholar]
  • 39.Wood, A. A., Stacey, A. & Martin, A. M. DC quantum magnetometry below the Ramsey limit. Phys. Rev. Appl.18, 054019 (2022). [Google Scholar]
  • 40.Puebla, R. et al. Versatile atomic magnetometry assisted by Bayesian inference. Phys. Rev. Appl.16, 024044 (2021). [Google Scholar]
  • 41.Baumgart, I., Cai, J.-M., Retzker, A., Plenio, M. B. & Wunderlich, C. Ultrasensitive magnetometer using a single atom. Phys. Rev. Lett.116, 240801 (2016). [DOI] [PubMed] [Google Scholar]
  • 42.Wang, N. et al. Zero-field magnetometry using hyperfine-biased nitrogen-vacancy centers near diamond surfaces. Phys. Rev. Res.4, 013098 (2022). [Google Scholar]
  • 43.Wolf, T. et al. Subpicotesla diamond magnetometry. Phys. Rev. X5, 041001 (2015). [Google Scholar]
  • 44.Schumacher, B. Quantum coding. Phys. Rev. A51, 2738 (1995). [DOI] [PubMed] [Google Scholar]
  • 45.Deutsch, D. Quantum theory, the Church—Turing principle and the universal quantum computer. Proc. R. Soc. Lond. A 40097–40117 (1985).
  • 46.Shor, P. W. Scheme for reducing decoherence in quantum computer memory. Phys. Rev. A52, R2493(R) (1995). [DOI] [PubMed] [Google Scholar]
  • 47.Knill, E. & Laflamme, R. Theory of quantum error-correcting codes. Phys. Rev. A55, 900 (1997). [Google Scholar]
  • 48.Beckman, D., Chari, A. N., Devabhaktuni, S. & Preskill, J. Efficient networks for quantum factoring. Phys. Rev. A54, 1034 (1996). [DOI] [PubMed] [Google Scholar]
  • 49.Il’ichev, E. & Greenberg, Ya. S. Flux qubit as a sensor of magnetic flux. EPL77, 58005 (2007). [Google Scholar]
  • 50.Barends, R. et al. Coherent Josephson qubit suitable for scalable quantum integrated circuits. Phys. Rev. Lett.111, 080502 (2013). [DOI] [PubMed] [Google Scholar]
  • 51.Kumar, P. et al. Origin and reduction of magnetic flux noise in superconducting devices. Phys. Rev. Appl.6, 041001(R) (2016). [Google Scholar]
  • 52.Anton, S. M. et al. Magnetic flux noise in dc SQUIDs: Temperature and geometry dependence. Phys. Rev. Lett.110, 147002 (2013). [DOI] [PubMed] [Google Scholar]
  • 53.Bialczak, R. C. et al. 1/f flux noise in Josephson phase qubits. Phys. Rev. Lett.99, 187006 (2007). [DOI] [PubMed] [Google Scholar]
  • 54.Yoshihara, F., Harrabi, K., Niskanen, A. O., Nakamura, Y. & Tsai, J. S. Decoherence of flux qubits due to 1/f flux noise. Phys. Rev. Lett.97, 167001 (2006). [DOI] [PubMed] [Google Scholar]
  • 55.Lutchyn, R., Glazman, L. & Larkin, A. Quasiparticle decay rate of Josephson charge qubit oscillations. Phys. Rev. B72, 014517 (2005). [Google Scholar]
  • 56.Rower, D. A. et al. Evolution of flux noise in superconducting qubits with weak magnetic fields. Phys. Rev. Lett.130, 220602 (2023). [DOI] [PubMed] [Google Scholar]
  • 57.Mehmandoost, M. & Dobrovitski, V. V. Decoherence induced by a sparse bath of two-level fluctuators: Peculiar features of noise in high-quality qubits. Phys. Rev. Res.6, 033175 (2024). [Google Scholar]
  • 58.Krause, J. et al. Quasiparticle effects in magnetic-field-resilient 3D transmons. Phys. Rev. Appl.22, 044063. 10.1103/PhysRevApplied.22.044063 (2024). [Google Scholar]
  • 59.Zhuang, Z., et al. Non-Markovian Relaxation Spectroscopy of Fluxonium Qubits 10.48550/arXiv.2503.16381. arXiv:2503.16381 (2025).
  • 60.Kitaev A. Y., Quantum measurements and the Abelian stabilizer problem. ArXiv 10.48550/arXiv.quant-ph/9511026. arXiv:quant-ph/9511026 (2005).
  • 61.Cleve, R., Ekert, A., Macchiavello, C. & Mosca, M. Quantum algorithms revisited. Proc. R. Soc. Lond. A454, 339–354 (1998). [Google Scholar]
  • 62.van Dam, W., D’Ariano, G. M., Ekert, A., Macchiavello, C. & Mosca, M. Optimal quantum circuits for general phase estimation. Phys. Rev. Lett.98, 090501 (2007). [DOI] [PubMed] [Google Scholar]
  • 63.Nielsen, M. A. & Chuang, I. L. Quantum Computation and Quantum Information: 10th Anniversary Edition (Cambridge University Press, 2010).
  • 64.McEwen, M. et al. Removing leakage-induced correlated errors in superconducting quantum error correction. Nat. Commun.12, 1761 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 65.Magnard, P. et al. Fast and unconditional all-microwave reset of a superconducting qubit. Phys. Rev. Lett.121, 060502 (2018). [DOI] [PubMed] [Google Scholar]
  • 66.Abdumalikov, A. A. Jr. et al. Experimental realization of non-Abelian non-adiabatic geometric gates. Nature496, 482–485 (2013). [DOI] [PubMed] [Google Scholar]
  • 67.Rower, D. A. et al. Suppressing counter-rotating errors for fast single-qubit gates with fluxonium. PRX Quantum5, 040342 (2024). [Google Scholar]
  • 68.Chang, T., Cohen, T., Holzman, I., Catelani, G. & Stern, M. Tunable superconducting flux qubits with long coherence times. Phys. Rev. Appl.19, 024066 (2023). [Google Scholar]
  • 69.Slepnev, V., Gubaydullin, A. & Vinokur, V. Fluxonium-based superconducting qubit magnetometer: optimization of phase estimation algorithms. Phys. Rev. B110, 214423 (2024). [Google Scholar]
  • 70.Nguyen, L. B. et al. High-coherence fluxonium qubit. Phys. Rev. X9, 041041 (2019). [Google Scholar]
  • 71.Somoroff, A. et al. Millisecond coherence in a superconducting qubit. Phys. Rev. Lett.130, 267001 (2023). [DOI] [PubMed] [Google Scholar]
  • 72.Somoroff, A. et al. Fluxonium qubits in a flip-chip package. Phys. Rev. Appl.21, 024015 (2024). [Google Scholar]
  • 73.Perelshtein, M. R. et al. Linear ascending metrological algorithm. Phys. Rev. Res.3, 013257 (2021). [Google Scholar]
  • 74.Shirer, K. Subsampling techniques for achieving waveform precision in picoseconds. Zurich Instruments (2022).
  • 75.Amazon Braket SDK: LocalSimulator (Version v1.88.2.post0). https://github.com/aws/amazon-braket-sdk-python
  • 76.Aleksandrowicz, Gadi et al. Qiskit: An open-source framework for quantum computing. Zenodo10.5281/zenodo.2562110 (2019). [Google Scholar]
  • 77.Qiskit Aer: High-performance simulator for quantum circuits (Version Qiskit 1.3.0). Qiskit Development Team. https://docs.quantum.ibm.com/
  • 78.Harris, C. R. et al. Array programming with NumPy. Nature585, 357–362 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Data Availability Statement

All relevant data and figures supporting the main conclusions of the document are available on request to the corresponding authors, Azat Gubaydullin (azg@terraquantum.swiss) and Valerii Vinokur (vv@terraquantum.swiss).


Articles from Scientific Reports are provided here courtesy of Nature Publishing Group

RESOURCES