Skip to content

Menu

WorksPhysics and Astronomy

Quantum Computing Enhanced Search for Wavelike Dark Matter

Download PDFView on arXiv

Ask your agent about this work

Your agent reads this work through Valency, with its citations and similar works. Paste this at the start of a chat.

Use the Valency MCP. Work: W_8krx52yd. Fetch it with get_paper_by_id, then find its nearest works with find_similar_papers and tell me what it adds.

Works with any MCP client. Not connected yet? Connect your agent

Abstract

Identifying a weak, stochastic signal hidden within a broad frequency band is a central challenge in the search for wavelike dark matter. We explore quantum computing enhanced sensing based on the Grover search algorithm to address this problem and find that a long integration time stabilizes the accumulated sensing phase, reducing quantum signal processing (QSP) errors induced by dark matter fluctuations. We further propose alternating the signs of the QSP angles between oracle calls to suppress the coherent accumulation of the intrinsic QSP approximation errors during the search. Combining these strategies in a transmon-based benchmark, we obtain a projected sensitivity to axion dark matter beyond existing astrophysical limits. This opens access to substantial unexplored parameter space across the 1010-100 μeV100\,μ\mathrm{eV} mass range and offers an accelerated discovery channel for wavelike dark matter. With 10610^6 entangled sensing qubits, the projected sensitivity reaches the QCD axion band. Although illustrated with transmons, the protocol can be adapted to other experimental platforms for wavelike dark matter detection.

Introduction

Introduction. — Dark matter (DM) accounts for more than 80% of the matter in the Universe, yet its properties, in particular its mass, remain unknown. A class of well-motivated DM models is the ultralight DM, such as axions, axion-like particles, and dark photons, which can be approximated as classical waves [1, 2] with a typical frequency set by their mass. Quantum sensors can probe such wavelike DM through spin precession [3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], shifts atomic transition frequencies [18, 19, 20, 21, 22, 23], or induced electric field in the cavity that excites superconducting qubits [24, 25, 26]. Squeezing and entanglement can further improve sensitivity or signal rate [27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41]. Collective measurements [42] and quantum-error-correction-inspired protocols [43] have also been proposed to suppress sensor backgrounds, while spatially separated sensors can extract directional information of the wavelike DM [44]. However, the bottleneck is not only the feeble signal but also the wide frequency band to search. Theoretical models motivate a broad mass range for wavelike DM. For example, QCD axion production through vacuum or kinetic misalignment [45, 46, 47] can reproduce the observed DM abundance at masses from ∼10−11\sim10^{-11} eV to ∼10−1\sim10^{-1} eV, with 10 to 100 μ\mueV as a natural range, and axion-like particles may span an even larger mass range [48, 49, 50], not even mentioning other wavelike DM candidates. With the DM mass unknown, one might ask, similar to the sensitivity enhancement using quantum sensing techniques, whether we can take quantum advantage to search a wide frequency band.

Quantum search offers a way to expedite this scan. While a classical strategy requires approximately O(N)O(N) queries to search among NN candidates, Grover’s algorithm [51, 52] needs only O(N)O(\sqrt{N}) queries to identify a marked state. A recent proposal [53] applies this principle to search for the frequency of a monochromatic field with a fixed but unknown frequency and phase. In their scheme, the index register qubits set the energy splitting of the sensing qubit. The sensor accumulates a signal-induced phase during each elementary sensing unit (ESU), and quantum signal processing (QSP) maps a prescribed range of these phases onto an approximately constant sign on the sensor state, thereby realizing the oracle [54, 55]. Then, the Grover protocol expedites the signal identification, which can be confirmed by a dedicated measurement at that frequency. Quantum computing enhanced sensing has recently been demonstrated experimentally in superconducting transmon cavity systems [56, 57]. In these implementations, cavity Fock states label candidate frequencies, and the unknown signal drives frequency-selective transmon rotations that generate the phase oracle.

However, the random amplitudes and initial phases produce a fluctuating waveform of DM [58, 59, 60] that hinders the original search protocol. When an ESU’s sensing time is comparable with DM coherence time, the waveform varies within the sensing interval, and each ESU sees a different, essentially random DM intensity. Consequently, the phase imprinted on the sensor fluctuates. These variations change the interference within QSP. Thus, no QSP sequence can turn such fluctuating phase into a reliable constant sign. Applying quantum search to DM therefore raises three related questions, can the fluctuating field generate a sufficiently reproducible oracle, how much physical sensing time does this require, and how weak can the field be while a single search still succeeds with a stated probability?

This paper answers these three questions for wavelike DM. We address the first question by accumulating the off-resonant AC Stark phase over a long sensing time TT, over which many weakly correlated fluctuations average out so that the relative error in the sensed phase is suppressed. At a fixed mean phase, a longer TT can also sense a weaker DM signal. We then propagate the remaining phase fluctuations through QSP and the full register–sensor evolution to find the minimum detectable field at 95% expected success probability per search.

Stochastic DM wave and sensor response.— For wavelike DM with mass mam_a and local energy density ρDM\rho_{\mathrm{DM}}, the DM field at the sensor can be modeled as a linear combination of stochastic waves [58],

aξ(t)=ρDMma∑jAjf(vj)Δvcos⁡[(ma+qj)t+φj].(1)a_{\xi}(t)=\frac{\sqrt{\rho_{\mathrm{DM}}}}{m_a}\sum_j A_j\sqrt{f(v_j)\Delta v}\cos[(m_a+q_j)t+\varphi_j]. \tag*{(1)}

where f(v)f(v) is the normalized DM speed distribution, vjv_j is a representative speed in the jj-th bin of width Δv\Delta v, and qj=mavj2/2q_j=m_av_j^2/2 is the corresponding kinetic energy. The amplitudes AjA_j follow a Rayleigh distribution p(Aj)=Aje−Aj2/2p(A_j)=A_j e^{-A_j^2/2}, while the phases φj\varphi_j are uniform on [0,2π)[0,2\pi), independently across modes. Once the initial configuration ξ={Aj,φj}\xi=\{A_j,\varphi_j\} is chosen, these coefficients determine the entire waveform. We adopt a truncated Standard Halo Model for the DM’s speed distribution with characteristic speed v0=220 km s−1v_0=220\ \mathrm{km\,s}^{-1}. See SM Sec. S1.

Consider a sensing qubit SS with transition frequency ωS\omega_S. Its response to wavelike DM depends on both the microscopic DM interaction and the properties of the sensor. In the sensor’s energy basis, a diagonal interaction changes the sensor’s level separation, while an off-diagonal interaction can transfer population between levels. Here, we focus on the latter case:

H0=ωS2ZS,Hsig(ξ)(t)=Bξ(t)XS.(2)H_0=\frac{\omega_S}{2}Z_S,\qquad H_{\mathrm{sig}}^{(\xi)}(t)=B_\xi(t)X_S. \tag*{(2)}

where XSX_S and ZSZ_S are the Pauli operators, and BξB_\xi denotes the dimension-one DM-sensor coupling, which can be parametrized as

Bξ(t)=maBrmsρDMaξ(t),E[Bξ(t)2]=Brms2.(3)B_\xi(t)=\frac{m_aB_{\mathrm{rms}}}{\sqrt{\rho_{\mathrm{DM}}}}a_\xi(t),\qquad\mathbb{E}[B_\xi(t)^2]=B_{\mathrm{rms}}^2. \tag*{(3)}

in which E\mathbb{E} denotes the ensemble average over the configurations ξ={Aj,φj}\xi=\{A_j,\varphi_j\}, and BrmsB_{\mathrm{rms}} is the root-mean-square (RMS) coupling strength. As a benchmark, BrmsB_{\mathrm{rms}} is related to the axion-photon coupling as shown in Eq. (17), but we keep it general as our quantum-computing-enhanced protocol applies to generic axion-sensor couplings.

To search the DM’s frequency coherently, an index register QQ is coupled to the sensor such that different register states set the sensor’s splittings during each sensing unitary called the elementary sensing unit (ESU). Its NN active states, ∣k⟩Q\lvert k\rangle_Q with k=1,…,Nk=1,\ldots,N, label the frequency bins and set the sensor energy levels to ±ωk/2\pm\omega_k/2. During an ESU starting at t0t_0 with a sensing time TT, we modulate the signal B(t)B(t) to χ(t−t0)B(t)\chi(t-t_0)B(t) where χ\chi is a real, dimensionless, smooth function satisfying 0≤χ≤10\leq\chi\leq1 and χ(0)=χ(T)=0\chi(0)=\chi(T)=0. This can be realized, for instance, by a partial dynamical decoupling protocol. The full Hamiltonian is

HESU(ξ)(t)=∑k=1N∣k⟩⟨k∣Q⊗Hk(ξ)(t),H_{\mathrm{ESU}}^{(\xi)}(t)=\sum_{k=1}^{N}\lvert k\rangle\langle k\rvert_Q\otimes H_k^{(\xi)}(t),
Hk(ξ)(t)=ωk2ZS+χ(t−t0)Bξ(t)XS.(4)H_k^{(\xi)}(t)=\frac{\omega_k}{2}Z_S+\chi(t-t_0)B_\xi(t)X_S. \tag*{(4)}

To separate the oscillating DM drive from the sensor’s free evolution, we work in the frame rotating at mam_a, transforming the sensor state by eimatZS/2e^{im_atZ_S/2}. Applying the rotating-wave approximation (RWA), we obtain

H~k(ξ)(t)=δk2ZS+Brmsχ(t−t0)2∑jAjf(vj)Δv[e−i(qjt+φj)σ++ei(qjt+φj)σ−].(5)\widetilde{H}_k^{(\xi)}(t)=\frac{\delta_k}{2}Z_S+\frac{B_{\mathrm{rms}}\chi(t-t_0)}{2}\sum_j A_j\sqrt{f(v_j)\Delta v} \left[e^{-i(q_jt+\varphi_j)}\sigma_++e^{i(q_jt+\varphi_j)}\sigma_-\right]. \tag*{(5)}

Here σ±=(XS±iYS)/2\sigma_{\pm}=(X_S\pm iY_S)/2 are the ladder operator and δk=ωk−ma\delta_k=\omega_k-m_a is the detuning.

The above equation determines the evolution of the sensor state. Its evolution matrix is therefore Texp⁡[−i∫t0t0+Tdt H~k(ξ)(t)]\mathcal{T}\exp[-i\int_{t_0}^{t_0+T}dt\,\widetilde{H}_k^{(\xi)}(t)], where T\mathcal{T} denotes the time ordering. This matrix includes both the response to DM and the free evolution. Removing the latter in the interaction picture of $\delta_kZ_S/2 gives the ESU evolution matrix

Uk(ξ)(t0,T)=eiδk(t0+T)ZS/2Te−i∫t0t0+TH~k(ξ)(t)dte−iδkt0ZS/2.(6)U_k^{(\xi)}(t_0,T)=e^{i\delta_k(t_0+T)Z_S/2} \mathcal{T}e^{-i\int_{t_0}^{t_0+T}\widetilde{H}_k^{(\xi)}(t)dt}e^{-i\delta_kt_0Z_S/2}. \tag*{(6)}

This operation reduces to the identity ISI_S without a signal and otherwise captures the signal-induced phase and population transfer.

AC Stark phase and stochastic fluctuations

We first consider a signal in the monochromatic limit, Bξ(t)=2Brmscos⁡(mat+φ)B_\xi(t)=\sqrt{2}B_{\mathrm{rms}}\cos(m_at+\varphi) with fixed φ\varphi. A general ESU is

Uk(ξ)=ζk∣0⟩⟨0∣+ζk∗∣1⟩⟨1∣+λk∣0⟩⟨1∣−λk∗∣1⟩⟨0∣.(7)U_k^{(\xi)}=\zeta_k\lvert0\rangle\langle0\rvert+\zeta_k^*\lvert1\rangle\langle1\rvert+\lambda_k\lvert0\rangle\langle1\rvert-\lambda_k^*\lvert1\rangle\langle0\rvert. \tag*{(7)}

with ζk=1−∣λk∣2e−iθk\zeta_k=\sqrt{1-\lvert\lambda_k\rvert^2}e^{-i\theta_k} due to normalization. For large detuning, ∣δk∣≫Brms\lvert\delta_k\rvert\gg B_{\mathrm{rms}}, and sufficiently slow switching of χ(t)\chi(t), transitions between the sensor levels are strongly suppressed, ∣λk∣≪1\lvert\lambda_k\rvert\ll1. The evolution is then nearly diagonal with Uk≃e−iθkZSU_k\simeq e^{-i\theta_kZ_S} and the two sensor levels acquire opposite phases with small population transfer. This is an adiabatic AC Stark phase. The smooth control function χ(t−t0)\chi(t-t_0) switches the effective DM sensor coupling on and off. When this switching is slow on the inverse detuning scale, a sensor initially in ∣0⟩\lvert0\rangle follows the instantaneous eigenstate and returns to ∣0⟩\lvert0\rangle when the coupling vanishes. Its additional dynamical phase is then set by the time integral of the drive-induced energy shift. In the RWA, this eigenstate has energy (δk/2)1+2Brms2χ(t)2/δk2\left(\delta_k/2\right)\sqrt{1+2B_{\mathrm{rms}}^2\chi(t)^2/\delta_k^2}. Subtracting its free evolution term δk/2\delta_k/2 and integrating over the pulse, with t0=0t_0=0, gives

θk≃δk2∫0Tdt[1+2Brms2χ(t)2δk2−1]≃Brms22δk∫0Tdt χ(t)2.(8)\theta_k \simeq\frac{\delta_k}{2}\int_0^T \mathrm{d}t\left[\sqrt{1+\frac{2B_{\mathrm{rms}}^2\chi(t)^2}{\delta_k^2}}-1\right] \simeq\frac{B_{\mathrm{rms}}^2}{2\delta_k}\int_0^T \mathrm{d}t\,\chi(t)^2. \tag*{(8)}

The first line reproduces the result of Ref. [53], and the second line is its large-detuning expansion. Note that θk\theta_k is independent of φ\varphi and proportional to Brms2B_{\mathrm{rms}}^2. Therefore, a monochromatic drive produces the same θk\theta_k in each ESU.

The stochastic DM wave is instead a linear combination of different momentum modes with random amplitudes and phases. Because the velocity dispersion is v0∼10−3v_0\sim10^{-3} in our halo, the kinetic energy qj/ma=vj2/2q_j/m_a=v_j^2/2 gives a frequency spread of order 10−6ma10^{-6}m_a. Although narrow, this spectrum cannot be treated as monochromatic for T≫τDMT\gg\tau_{\mathrm{DM}} where τDM∼(mav02)−1\tau_{\mathrm{DM}}\sim(m_av_0^2)^{-1} denotes the DM coherent time. Interference between modes contains terms ∝cos⁡[(qj−ql)t+φj−φl]\propto\cos[(q_j-q_l)t+\varphi_j-\varphi_l], causing the drive intensity at the sensor to vary continuously in time. Here, the drive intensity is defined as the oscillation-period average of the squared amplitude of the DM signal, ⟨Bξ(t)2⟩2π/ma\langle B_\xi(t)^2\rangle_{2\pi/m_a}. Since the leading AC Stark shift is quadratic in the DM drive, this variation changes θk\theta_k from ESU to ESU.

The fluctuating DM signal can also lead to a nonzero population-transfer amplitude λk\lambda_k, which is small for modes far from resonance mav2≪δkm_av^2\ll\delta_k. To suppress λk\lambda_k, we adopt the odd/even binning strategy of Ref. [53]. The search band is divided into equal odd/even bins, and each bin consists of two intervals from ωk±β/2\omega_k\pm\beta/2 to ωk±β/2\omega_k\pm\beta/2 with width β\beta around the register-dependent frequency ωk\omega_k, leaving a gap around resonance. Choosing β≫mav02\beta\gg m_av_0^2 keeps the entire DM speed profile away from ωk\omega_k (see Sec. S2), suppressing the population transfer.

Long phase accumulation suppresses those fluctuations. When T≫τDMT\gg\tau_{\mathrm{DM}}, the ESU samples over many nearly uncorrelated DM signals so that the accumulated phase approach its ensemble average. With a smooth χ(t)\chi(t) and off-resonance interaction with every DM mode, the expected sensed phase is

θk‾=E[θk(ξ)]≃Brms22[∫0Tdt χ(t)2]∫dv f(v)δk−mav2/2.(9)\overline{\theta_k}=\mathbb{E}[\theta_k^{(\xi)}]\simeq\frac{B_{\mathrm{rms}}^2}{2}\left[\int_0^T\mathrm{d}t\,\chi(t)^2\right]\int\mathrm{d}v\,\frac{f(v)}{\delta_k-m_av^2/2}. \tag*{(9)}

The integral runs over the DM speeds, while δk−mav2/2\delta_k-m_av^2/2 represents the velocity-dependent detuning between the sensor transition frequency and the driving frequency of the DM mode with speed vv. Eq. (8) is recovered when f(v)f(v) peaks at a particular vv, reproducing the monochromatic limit.

Random initial phases cancel the interference terms in the ensemble mean, but a finite sensing interval leaves a residual phase variance, σθ,k2=E[(θk(ξ)−θˉk)2]\sigma_{\theta,k}^{2} = \mathbb{E}[(\theta_{k}^{(\xi)}-\bar{\theta}_{k})^{2}]. The relative standard deviation satisfies

σθ,k∣θˉk∣≃τeff,kT.(10)\frac{\sigma_{\theta,k}}{|\bar{\theta}_{k}|} \simeq\sqrt{\frac{\tau_{\mathrm{eff},k}}{T}}. \tag*{(10)}

where τeff,k≃τDM\tau_{\mathrm{eff},k} \simeq\tau_{\mathrm{DM}} is the effective correlation time determined by both the sensor response and the DM’s lineshape (see SM Sec. S2.C). Intuitively speaking, while the expected phase accumulates coherently, the stochastic error adds incoherently such that both θˉk\bar{\theta}_{k} and σθ,k2\sigma_{\theta,k}^{2} are ∝T\propto T. Thus, increasing TT suppresses the relative error of θk\theta_{k}.

Frequency selection with quantum signal processing.— Grover search usually requires a definite phase marking on the signal state ∣k∗⟩Q|k^{*}\rangle_{Q}, but an ESU produces a phase that depends on the field strength and frequency. Since the signal and background ESU phases lie in separate ranges, QSP maps them to approximately ±∣k⟩Q\pm|k\rangle_{Q}, hence implementing the Grover oracle. The QSP is achieved by interleaving LL ESUs, e−iθZSe^{-i\theta Z_{S}}, with L+1L+1 programmed sensor rotations, e−iϕℓXSe^{-i\phi_{\ell}X_{S}}. For a monochromatic signal, every ESU contributes the same phase θ\theta. The QSP sequence can generate an at-most-degree-LL polynomial P(cos⁡θ)P(\cos\theta) in the ∣0⟩|0\rangle-to-∣0⟩|0\rangle amplitude. We program XSX_{S} rotations with a particular list of ϕℓ\phi_{\ell} so that P(cos⁡θ)P(\cos\theta) is close to −1-1 for signal phases and +1+1 for background phases, producing a unitary close to the desired ±IS\pm I_{S} on the sensing qubit [53, 55]. Because the DM signal is stochastic, the actual oracle unitary is

Qk,r(ξ)=e−iηrϕLXSUk,r,L(ξ)⋯e−iηrϕ1XSUk,r,1(ξ)e−iηrϕ0XS,Q_{k,r}^{(\xi)} = e^{-i\eta_{r}\phi_{L}X_{S}}U_{k,r,L}^{(\xi)}\cdots e^{-i\eta_{r}\phi_{1}X_{S}}U_{k,r,1}^{(\xi)}e^{-i\eta_{r}\phi_{0}X_{S}},
Or(ξ)=∑k∣k⟩⟨k∣Q⊗Qk,r(ξ).(11)\mathcal{O}_{r}^{(\xi)} = \sum_{k}|k\rangle\langle k|_{Q}\otimes Q_{k,r}^{(\xi)}. \tag*{(11)}

The index rr labels oracle calls, with ηr=(−1)r−1\eta_{r}=(-1)^{r-1} specifying the sign applied to all QSP angles and the last index of UU labels the ESUs within each oracle. The QSP sequence length LL also depends on the chosen phase ranges. A narrower gap between the signal and background ranges (see panel (d) of Figure 1) requires a higher LL to approximate. Let the gap in x=cos⁡θx=\cos\theta be Δx\Delta_{x}. A suitable polynomial can reach QSP approximation error ϵQSP\epsilon_{\mathrm{QSP}} with L=O[Δx−1log⁡(1/ϵQSP)]L=O[\Delta_{x}^{-1}\log(1/\epsilon_{\mathrm{QSP}})] [53]. Here, ϵQSP\epsilon_{\mathrm{QSP}} is the largest deviation of P(x)P(x) from its target sign over the two ranges, with P(x)=⟨0∣QL(θ)∣0⟩P(x)=\langle0|Q_{L}(\theta)|0\rangle and x=cos⁡θx=\cos\theta, where QL(θ)Q_{L}(\theta) denotes the QSP unitary while sensing a monochromatic signal generating an ESU phase of θ\theta.

Figure 1. (a) Protocol of Grover search for a stochastic DM signal. Each Grover iteration consists of a QSP oracle, containing LL ESUs interleaved with sensor rotations, followed by a reflection on the register. All QSP angles flip sign between oracle calls, with ηr=(−1)r−1\eta_r=(-1)^{r-1} on call rr. (b) Each register state ∣k⟩Q|k\rangle_Q changes the sensor’s energy to ωk\omega_k. The off-resonant stochastic field with effective coupling Bξ(t)B_\xi(t) drives the sensor to produce an AC Stark phase with negligible population transfer. The curved arrow illustrates the sensor returning to ∣0⟩|0\rangle with an accumulated phase in the signal branch k⋆k_\star. (c) Register measurement probabilities after GG Grover iterations, with the amplified signal bin k⋆k_\star highlighted in red. (d) The QSP response P(cos⁡θ)P(\cos\theta) approximates +1+1 and −1-1 over the background and signal phase ranges, corresponding to oracle actions +IS+I_S and −IS-I_S, respectively. Here, Δθ\Delta_\theta denotes the gap between background and signal phase ranges and ϵQSP\epsilon_{\mathrm{QSP}} the maximum approximation error.

However, the polynomial response assumes that every ESU contributes the same phase. For stochastic DM, the ESU sensing phase fluctuates, so the QSP response deviates from P(cos⁡θ)P(\cos\theta) and acquires a stochastic error. Therefore, our numerical evaluation of Eq. (11) incorporates both the stochastic error and the QSP approximation error. As a benchmark, we set L=40L=40 and define the signal and background phase ranges as π/4<∣θ∣≤3π/4\pi/4<|\theta|\leq3\pi/4 and ∣θ∣≤3π/20|\theta|\leq3\pi/20, respectively, so Δx≃0.184\Delta_{x}\simeq0.184 and ϵQSP≃1.355×10−3\epsilon_{\mathrm{QSP}}\simeq1.355\times10^{-3}.

If ESU phases fluctuate around the same mean with little correlation between intervals, their small perturbations add as a random walk. At fixed single-ESU variance σθ2\sigma_{\theta}^{2} and Lσθ2≪1L\sigma_{\theta}^{2}\ll1, the added stochastic error is therefore proportional to Lσθ2L\sigma_{\theta}^{2} (see also Sec. S3.B). For θˉ=π/4\bar{\theta}=\pi/4, ma=10 μeVm_{a}=10\,\mu\mathrm{eV}, T=140 sT=140\,\mathrm{s}, and L=40L=40, Eq. (10) estimates an error of Lσθ,k2≈5×10−5L\sigma_{\theta,k}^{2}\approx5\times10^{-5} while the numerical result is 6.31×10−56.31\times10^{-5}. Therefore, the total ensemble-averaged error is 1.42×10−31.42\times10^{-3}.

Grover search and detection probability.— We now apply the Grover search protocol to determine the probability of finding the signal frequency bin. We initialize the register in a uniform superposition ∣s⟩Q=N−1/2∑k=1N∣k⟩Q|s\rangle_{Q}=N^{-1/2}\sum_{k=1}^{N}|k\rangle_{Q} and the sensor in ∣0⟩S|0\rangle_{S}. Each iteration applies the oracle in Eq. (11) and then a reflection Rs=2∣s⟩⟨s∣Q−IQR_{s}=2|s\rangle\langle s|_{Q}-I_{Q} on the register, where IQI_{Q} is the identity operator on the register. Hence, after GG Grover iterations, the register-sensor system is evolved by

Vξ(G)=∏r=G1[(Rs⊗IS)Or(ξ)].(12)V_{\xi}(G)=\prod_{r=G}^{1}\left[(R_{s}\otimes I_{S})\mathcal{O}_{r}^{(\xi)}\right]. \tag*{(12)}

For an ideal oracle (−IS-I_{S} on the signal bin and +IS+I_{S} elsewhere), after G=⌊πN/4⌋G=\left\lfloor\pi\sqrt{N}/4\right\rfloor iterations, its signal-bin readout probability is nearly maximized.

However, the oracle is always imperfect because of both the QSP approximation error and the DM-induced stochastic error. Repeating the same QSP sequence can accumulate coherent errors and reduce the search success probability. To suppress the QSP approximation error, we alternate between the original QSP sequence and a sequence with every QSP angle’s sign flipped. In the monochromatic limit, this sign flip implements the adjoint QSP unitary, so the dominant QSP approximation error cancels in each pair of Grover iterations. Only a subleading error remains as

ϵpair∼ϵQSPN.(13)\epsilon_{\mathrm{pair}}\sim\frac{\epsilon_{\mathrm{QSP}}}{N}. \tag*{(13)}

in each alternating-sign pair. Therefore, over N\sqrt{N} iterations, the accumulated QSP approximation error improves from O(NϵQSP)O(N\epsilon_{\mathrm{QSP}}) to O(ϵQSP)O(\epsilon_{\mathrm{QSP}}) with the our new protocol.

However, stochastic errors are independent between oracle calls and cannot be canceled. To account for their effects on both the register phase and the associated sensor states, our simulation evolves the register and sensor jointly through GG iterations. The derivation of this cancellation and a comparison of the search success probability with and without the alternation, including phase fluctuations, are given in Sec. S3.D.

For a given DM configuration ξ\xi, the final density operator is ρξ(G)=Vξ(G)∣s,0⟩⟨s,0∣Vξ(G)†\rho_{\xi}(G)=V_{\xi}(G)|s,0\rangle\langle s,0|V_{\xi}(G)^{\dagger}, where ∣s,0⟩=|s,0\rangle= ∣s⟩Q⊗∣0⟩S|s\rangle_Q \otimes|0\rangle_S. Reading out the register state and summing over both sensor outcomes gives the probability of the target label k∗k_*:

Pbin(ξ)=Tr⁡[(∣k∗⟩⟨k∗∣Q⊗IS)ρξ(G)].(14)P_{\mathrm{bin}}(\xi) = \operatorname{Tr}\left[\left(|k_*\rangle\langle k_*|_Q \otimes I_S\right)\rho_\xi(G)\right]. \tag*{(14)}

Since ξ\xi is totally random, averaging the conditional probability in Eq. (14) over its distribution phalo(ξ) dξ=∏j[Aje−Aj2/2 dAj dϕj/2π]p_{\mathrm{halo}}(\xi)\,d\xi= \prod_j\left[A_j e^{-A_j^2/2}\,dA_j\,d\phi_j/2\pi\right] gives the expected success probability of one search

P‾bin=∫dξ phalo(ξ)Pbin(ξ).(15)\overline{P}_{\mathrm{bin}} = \int d\xi\,p_{\mathrm{halo}}(\xi)P_{\mathrm{bin}}(\xi). \tag*{(15)}

In this work, we use Monte Carlo sampling over the initial DM configurations ξ\xi to numerically evaluate the expected success probability P‾bin\overline{P}_{\mathrm{bin}}. We interpret P‾bin\overline{P}_{\mathrm{bin}} as the probability that a single search correctly identifies the signal bin assuming the Standard Halo Model (see § 1.6.A).

To determine the weakest detectable signal at each DM mass, we fix TT and the circuit parameters and decrease BrmsB_{\mathrm{rms}}. Since ∣θk‾∣∝Brms2|\overline{\theta_k}| \propto B_{\mathrm{rms}}^2 in Eq. (9), the expected sensing phase eventually falls below the lower edge of the QSP signal phase range, causing the signal-bin oracle unitary to depart rapidly from −IS-I_S and reducing the search success probability. The projected 95% sensitivity can then be defined by the first crossing of

P‾bin(Brms)=0.95(16)\overline{P}_{\mathrm{bin}}(B_{\mathrm{rms}}) = 0.95 \tag*{(16)}

as BrmsB_{\mathrm{rms}} decreases. In other words, the crossing gives the minimum detectable BrmsB_{\mathrm{rms}} with a 95% success probability.

Axion sensitivity and sensing time.— To demonstrate the protocol, we consider axion masses ma∈[ma,min⁡,ma,max⁡]=[10−5 eV,10−4 eV]m_a \in[m_{a,\min},m_{a,\max}] = [10^{-5}\,\mathrm{eV},10^{-4}\,\mathrm{eV}]. This mass window is of interest for QCD axion dark matter and is targeted by the transmon-qubit search proposed in Ref. [25]. For the axion–photon interaction Laγ=−gaγγaF~μνFμν/4\mathcal{L}_{a\gamma} = -g_{a\gamma\gamma}a\widetilde{F}^{\mu\nu}F_{\mu\nu}/4, an applied magnetic field B0B_0 induces an oscillating electric field proportional to the axion field. The resulting transverse drive of the transmon takes the form of Eq. (2), with BrmsB_{\mathrm{rms}} determined by the axion–photon coupling gaγγg_{a\gamma\gamma} and the device parameters. In the harmonic-transmon approximation, this yields [25]

Brms=∣gaγγ∣B0ma∣κcos⁡Θ∣dCωkρDM2.(17)B_{\mathrm{rms}} = \frac{|g_{a\gamma\gamma}|B_0}{m_a}|\kappa\cos\Theta|d\sqrt{\frac{C\omega_k\rho_{\mathrm{DM}}}{2}}. \tag*{(17)}

Here, B0B_0 is the applied static magnetic field, CC the capacitance, ωk\omega_k the register-dependent sensing frequency and dd the effective electrode separation. The dimensionless factor κ\kappa describes the sensor’s electromagnetic response function, and Θ\Theta is the angle between the induced electric field and the sensitive axis. For simplicity, we will assume that κ=1\kappa= 1 and cos⁡Θ=1\cos\Theta= 1. For the benchmark we take B0=5 TB_0 = 5\,\mathrm{T}, C′=0.1 pFC' = 0.1\,\mathrm{pF}, d=100 μmd = 100\,\mu\mathrm{m}, with local axion density ρDM=0.4 GeV cm−3\rho_{\mathrm{DM}} = 0.4\,\mathrm{GeV}\,\mathrm{cm}^{-3}

We choose the frequency bin width β\beta conservatively to be one-order-of-magnitude larger than the DM bandwidth at ma,max⁡m_{a,\max}, i.e., β=10−9 eV\beta= 10^{-9}\,\mathrm{eV}. This choice ensures that the DM frequency spectrum remains off resonance in the appropriate run. With the odd/even binning strategy, each run takes half of the 9×1049 \times10^{4} basic intervals, two per label kk, giving a total number of N=(ma,max⁡−ma,min⁡)/(4β)=22500N = (m_{a,\max} - m_{a,\min})/(4\beta) = 22500 labels and requiring G=117G = 117 Grover iterations. We use an L=40L = 40 QSP sequence and fix T=5×105τDM(ma,min⁡)=140 sT = 5 \times10^{5}\tau_{\mathrm{DM}}(m_{a,\min}) = 140\,\mathrm{s} so that the total search time is ∼2GLT≈364 h\sim2GLT \approx364\,\mathrm{h}. We choose L=40L = 40 as, for our NN, it is roughly the smallest LL for which Pbin=95%P_{\mathrm{bin}} = 95\% is attainable, with the sensitivity mostly determined by θˉk\bar{\theta}_k (see Secs. S3 and § 1.6.A). We also discuss how a repeated search trades repeated sampling for a shorter sensing time, reducing the overall timing complexity, in § 1.6.B.

At each mass, we numerically evolve the density operator of the control qubit and sensor and calculate the expected success probability in Eq. (15). The halo distribution and evolution procedure are specified in SM § 1.3 and § 1.6. Applying the criterion in Eq. (16) then yields Brms,95B_{\mathrm{rms},95}, the drive strength corresponding to the projected 95% sensitivity. With these choices, Figure 2 gives ∣gaγγ,95∣≃3.18×10−12\lvert g_{a\gamma\gamma,95}\rvert\simeq3.18 \times10^{-12}–9.71×10−12 GeV−19.71 \times10^{-12}\,\mathrm{GeV}^{-1} over the mass range ma∈[ma,min⁡,ma,max⁡]m_a \in[m_{a,\min},m_{a,\max}]. The projected sensitivity substantially improves on existing astrophysical bounds, while the broadband search covers extensive mass regions unexplored by conventional narrowband cavity experiments. The dashed curves illustrate the further sensitivity improvement possible with entangled sensing qubits. For nsn_s entangled sensors, the phases add to nsθkn_s\theta_k. Since θk∝gaγγ2\theta_k \propto g_{a\gamma\gamma}^{2}, ideal coherent accumulation reduces the coupling threshold by a factor of 1/ns1/\sqrt{n_s}. Although ns=106n_s = 10^{6} seems aggressive, our benchmark is realistic given the long coherence and control sufficient to support the long sensing time T=140 sT = 140\,\mathrm{s} on the register. Preferably, the register qubits are already logical and error-corrected by many physical qubits. Long-term efforts toward million-qubit processors [62] also motivate considering 10610^{6} entangled sensors. Provided that collective coherence and control can be maintained throughout the search, this scaling would enable the search to probe the KSVZ QCD axion models, as well as much of the DFSZ band, in this mass range.

Figure 2. Projected single-search sensitivity for QSP sequence length L=40L = 40, number of frequency bins N=22500N = 22500 (corresponding to G=117G = 117 Grover iterations), and fixed ESU duration T=140 sT = 140\,\mathrm{s}. The blue curves (this work) show the projected 95% sensitivity reach for the number of sensing qubits ns=1n_s = 1 (solid), ns=102n_s = 10^2 (long dashed), ns=104n_s = 10^4 (short dashed), and 10610^6 (dot-dashed). The gold band shows the conventional QCD axion model range, with brown lines marking the KSVZ and DFSZ benchmarks. Green and red shaded regions show combined astrophysical and haloscope constraints [61], respectively.

Conclusion.— In this work, we demonstrate that Grover search can provide a sensitive broadband probe of wavelike DM, accounting for both the DM-induced stochastic fluctuations and the imperfect QSP. At a fixed mean sensing phase, longer sensing durations suppress the stochastic error. Alternating the signs of all QSP control angles further reduces the coherent accumulation of the QSP approximation error. Together, these measures substantially improve the search success probability

and enable reliable identification of the DM signal. Applying this protocol to axion DM, our benchmark with ESU time T=140 sT = 140\,\mathrm{s} achieves a projected 95% sensitivity beyond existing astrophysical bounds. The broadband search probes unexplored parameter space across the 10–100 μeV\mu\mathrm{eV} mass range. The sensitivity can be further extended with entangled sensing qubits. With 10610^{6} entangled sensing qubits, one would further extend this sensitivity to standard QCD axion benchmarks.

Acknowledgments

We thank Soonwon Choi for helpful discussions. In finalizing the draft, we became aware of an independent study on a similar topic. We would like to acknowledge Roni Harnik and Zachary Bogorad for coordinating the concurrent arXiv submission of both manuscripts. Y.B. and L-T. W. acknowledge the support from the Department of Energy grant DE-SC0009924, and the 2026 Joint Task Force Initiative (JTFI) Partnerships for Emerging Technologies seed fund. Y.C.’s work is supported by the National Research Foundation of Korea (NRF) Grant RS-2023-00211732, by the Samsung Science and Technology Foundation under Project Number SSTF-BA2302-05, by the POSCO Science Fellowship of POSCO TJ Park Foundation, and by the NRF Grant RS-2024-00405629. L.J.’s work is supported by the ARO (W911NF-23-1-0077), ARO MURI (W911NF-21-1-0325), AFOSR MURI (FA9550-21-1-0209, FA9550-23-1-0338), ONR MURI (N000142612102), NSF (OSI-2326767, OSI-2426975, EEC-2550064, OSI-2553578, OSI-2553619).

Stochastic DM field and coherence time

The stochastic axion field aξ(t)a_{\xi}(t) is a linear combination of velocity modes, as expressed in Eq. (1). For DM mass mam_a, a mode of speed vjv_j oscillates at ma+qjm_a+q_j, where qj=mavj2/2q_j=m_av_j^2/2. Each mode has an amplitude proportional to Ajf(vj)ΔvA_j\sqrt{f(v_j)\Delta v}, where AjA_j is Rayleigh distributed following a probability distribution p(Aj)=Ajexp⁡(−Aj2/2)p(A_j)=A_j\exp(-A_j^2/2), and φj\varphi_j is uniformly distributed on [0,2π)[0,2\pi) [58]. These coefficients are mutually independent, and each configuration ξ={Aj,φj}\xi=\{A_j,\varphi_j\} yields one realization of the DM waveform. The ensemble average E\mathbb{E} of a function g(ξ)g(\xi) is ∫dξ phalo(ξ)g(ξ)\int\mathrm{d}\xi\,p_{\rm halo}(\xi)g(\xi) with the joint probability measure

dξ phalo(ξ)=∏j[Aje−Aj2/2 dAj dφj2π].(18)\mathrm{d}\xi\,p_{\rm halo}(\xi)=\prod_j\left[A_j e^{-A_j^2/2}\,\mathrm{d}A_j\,\frac{\mathrm{d}\varphi_j}{2\pi}\right]. \tag*{(18)}

The root-mean-square (RMS) amplitude of the DM waveform is obtained by squaring the mode expansion and averaging over the random amplitudes and phases. The resulting expression contains diagonal terms, with the same mode appearing twice, and cross terms involving two distinct modes. Because the phases of different modes are independent and uniformly distributed, all cross terms vanish upon averaging. For each diagonal term, we obtain E[Aj2]=2\mathbb{E}[A_j^2]=2 and E[cos⁡2φj]=1/2\mathbb{E}[\cos^2\varphi_j]=1/2. Since the DM speed distribution satisfies ∫0∞f(v)dv=1\int_0^\infty f(v)\mathrm{d}v=1, we obtain

Bξ(t)=maBrmsρDMaξ(t),E[aξ(t)2]=ρDMma2,E[Bξ(t)2]=Brms2.(19)B_{\xi}(t)=\frac{m_a B_{\rm rms}}{\sqrt{\rho_{\rm DM}}}a_{\xi}(t),\qquad\mathbb{E}[a_{\xi}(t)^2]=\frac{\rho_{\rm DM}}{m_a^2},\qquad\mathbb{E}[B_{\xi}(t)^2]=B_{\rm rms}^2. \tag*{(19)}

Here, ρDM\rho_{\rm DM} is the local DM energy density, and Bξ(t)B_{\xi}(t) is the effective DM sensor coupling in Eq. (2), whose RMS coupling strength is BrmsB_{\rm rms}.

We adopt the Standard Halo Model, in which the DM velocities follow an isotropic Maxwell–Boltzmann distribution in the Galactic frame, truncated at the Galactic escape speed [63, 64]. The normalized three-dimensional velocity distribution is

Fgal(u)=e−u2/v02Nescπ3/2v03Θ(vesc−u),Nesc=erf⁡(vescv0)−2vescπv0e−vesc2/v02.(20)F_{\rm gal}(\mathbf{u})=\frac{e^{-u^2/v_0^2}}{\mathcal{N}_{\rm esc}\pi^{3/2}v_0^3}\Theta(v_{\rm esc}-u),\qquad\mathcal{N}_{\rm esc}=\operatorname{erf}\left(\frac{v_{\rm esc}}{v_0}\right)-\frac{2v_{\rm esc}}{\sqrt{\pi}v_0}e^{-v_{\rm esc}^2/v_0^2}. \tag*{(20)}

where u=∣u∣u=|\mathbf{u}| is the DM speed in the Galactic frame, v0v_0 sets the width of its distribution, and vescv_{\rm esc} is the Galactic escape speed at which the Heaviside function Θ\Theta truncates the velocity distribution. The factor Nesc\mathcal{N}_{\rm esc} keeps Fgal(u)F_{\rm gal}(\mathbf{u}) normalized once the high speed tail is removed.

The sensor moves through this distribution with a laboratory velocity vobs\mathbf{v}_{\rm obs}. A velocity v\mathbf{v} relative to the laboratory therefore corresponds to v+vobs\mathbf{v}+\mathbf{v}_{\rm obs} in the Galactic frame, so Flab(v)=Fgal(v+vobs)F_{\rm lab}(\mathbf{v})=F_{\rm gal}(\mathbf{v}+\mathbf{v}_{\rm obs}). Because the mode frequency only depends on its speed after the DM mass is fixed, the relevant mode spectrum is determined by the DM’s speed distribution which can be obtained by angular integration, f(v)=v2∫dΩ Flab(v)f(v)=v^2\int\mathrm{d}\Omega\,F_{\rm lab}(\mathbf{v}). This yields

f(v)=2πv2Nescπ3/2v03∫−1μmax⁡dμ e−(v2+vobs2+2vvobsμ)/v02,μmax⁡=min⁡(1,vesc2−v2−vobs22vvobs).(21)f(v)=\frac{2\pi v^2}{\mathcal{N}_{\rm esc}\pi^{3/2}v_0^3}\int_{-1}^{\mu_{\max}}\mathrm{d}\mu\,e^{-(v^2+v_{\rm obs}^2+2vv_{\rm obs}\mu)/v_0^2},\qquad\mu_{\max}=\min\left(1,\frac{v_{\rm esc}^2-v^2-v_{\rm obs}^2}{2vv_{\rm obs}}\right). \tag*{(21)}

where μ\mu is the cosine of the angle between v\mathbf{v} and vobs\mathbf{v}_{\rm obs}. Evaluating this integral gives

f(v)=vNescπv0vobs{e−(v−vobs)2/v02−e−(v+vobs)2/v02,0≤v≤vesc−vobs,e−(v−vobs)2/v02−e−vesc2/v02,vesc−vobs<v≤vesc+vobs,0,otherwise.(22)f(v)=\frac{v}{\mathcal{N}_{\rm esc}\sqrt{\pi}v_0v_{\rm obs}}\begin{cases} e^{-(v-v_{\rm obs})^2/v_0^2}-e^{-(v+v_{\rm obs})^2/v_0^2}, & 0\leq v\leq v_{\rm esc}-v_{\rm obs},\\ e^{-(v-v_{\rm obs})^2/v_0^2}-e^{-v_{\rm esc}^2/v_0^2}, & v_{\rm esc}-v_{\rm obs}<v\leq v_{\rm esc}+v_{\rm obs},\\ 0, & \text{otherwise}. \end{cases} \tag*{(22)}

At low laboratory speeds, every direction is allowed. Between vesc−vobsv_{\mathrm{esc}}-v_{\mathrm{obs}} and vesc+vobsv_{\mathrm{esc}}+v_{\mathrm{obs}}, some directions would correspond to a Galactic speed above the cutoff and are excluded. Above the latter speed no modes remain.

We adopt v0=220v_0=220, vobs=232v_{\mathrm{obs}}=232, and vesc=544v_{\mathrm{esc}}=544 in km s−1^{-1}. In the lab frame, the maximum DM speed is vmax⁡=vesc+vobsv_{\max}=v_{\mathrm{esc}}+v_{\mathrm{obs}}, which sets the largest kinetic frequency shift, qmax⁡=mavmax⁡2/2q_{\max}=m_a v_{\max}^2/2. For ma=100 μeVm_a=100\,\mu\mathrm{eV}, this gives qmax⁡≈3.35×10−10 eVq_{\max}\approx3.35\times10^{-10}\,\mathrm{eV}. The occupied DM spectrum therefore extends from mam_a to ma+qmax⁡m_a+q_{\max}.

Following Ref. [60], we take the DM coherence time in terms of the halo speed distribution f(v)f(v) defined in Eq. (22) as

τDM≃2πma∫dvvf(v)2.(23)\tau_{\mathrm{DM}}\simeq\frac{2\pi}{m_a}\int\frac{\mathrm{d}v}{v}f(v)^2. \tag*{(23)}

Evaluating this integral gives

τDM(ma)≈0.3892πmav0vobs(24)\tau_{\mathrm{DM}}(m_a)\approx0.389\frac{2\pi}{m_a v_0 v_{\mathrm{obs}}} \tag*{(24)}

For DM mass ma=10−5 eVm_a=10^{-5}\,\mathrm{eV}, the coherence time is around τDM(10−5 eV)≈2.83×10−4 s\tau_{\mathrm{DM}}(10^{-5}\,\mathrm{eV})\approx2.83\times10^{-4}\,\mathrm{s}.

Sensor evolution and phase fluctuations

The stochastic DM field induces both phase accumulation and population transfer in the sensing qubit. We first identify when an ESU can be approximated as a pure phase rotation and then calculate the phase statistics relevant to the search and their dependence on the sensing time.

Controlled Hamiltonian and ESU

The bare sensor has Hamiltonian H0=ωSZS/2H_0=\omega_S Z_S/2, where ωS\omega_S is its physical level separation. An index register label ∣k⟩Q\lvert k\rangle_Q sets the splitting to ωk\omega_k. During a sensing window that begins at t0t_0 and lasts for a duration TT, the joint lab-frame Hamiltonian is given by Eq. (4). This controlled Hamiltonian can be realized, for example, by introducing an Ising interaction ∑iJiZQ,iZS/2\sum_i J_i Z_{Q,i}Z_S/2, which gives ωk=ωS+∑i(−1)kiJi\omega_k=\omega_S+\sum_i(-1)^{k_i}J_i, where kik_i denotes the bit value of the iith register qubit and JiJ_i is its coupling to the sensor [53].

To separate the oscillating DM signal from the sensor frequency, define Ra(t)=eimatZS/2R_a(t)=e^{i m_a t Z_S/2} and transform the state as ∣ψrot(t)⟩=Ra(t)∣ψ(t)⟩\lvert\psi_{\mathrm{rot}}(t)\rangle=R_a(t)\lvert\psi(t)\rangle. The corresponding Hamiltonian then transforms as

Hrot,k(ξ)(t)=Ra(t)Hk(ξ)(t)Ra†(t)+iR˙a(t)Ra†(t)=δk2ZS+Brmsχ(t−t0)2∑jAjf(vj)Δv{[e−i(qjt+φj)+ei[(2ma+qj)t+φj]]σ++H.c.},(25)H_{\mathrm{rot},k}^{(\xi)}(t)=R_a(t)H_k^{(\xi)}(t)R_a^\dagger(t)+i\dot{R}_a(t)R_a^\dagger(t) =\frac{\delta_k}{2}Z_S+\frac{B_{\mathrm{rms}}\chi(t-t_0)}{2}\sum_j A_j\sqrt{f(v_j)\Delta v}\left\{\left[e^{-i(q_jt+\varphi_j)}+e^{i[(2m_a+q_j)t+\varphi_j]}\right]\sigma_++\mathrm{H.c.}\right\}, \tag*{(25)}

where δk=ωk−ma\delta_k=\omega_k-m_a and σ±\sigma_\pm denotes the ladder operators. Each mode contains a slowly rotating term with frequency qj=mavj2/2q_j=m_a v_j^2/2 and a rapidly rotating term near 2ma2m_a. The latter is negligible as it averages out over the sensing time, and the rotating wave approximation (RWA) therefore yields H~k(ξ)(t)\widetilde{H}_k^{(\xi)}(t) in Eq. (5).

Removing the free precession generated by δkZS/2\delta_k Z_S/2 gives the ESU unitary

Uk(ξ)(t0,T)≃eiδk(t0+T)ZS/2Texp⁡[−i∫t0t0+TH~k(ξ)(t) dt]e−iδkt0ZS/2.(26)U_k^{(\xi)}(t_0,T)\simeq e^{i\delta_k(t_0+T)Z_S/2}\mathcal{T}\exp\left[-i\int_{t_0}^{t_0+T}\widetilde{H}_k^{(\xi)}(t)\,\mathrm{d}t\right]e^{-i\delta_k t_0 Z_S/2}. \tag*{(26)}

Equivalently, we can remove the free precession phase by transforming to the interaction picture. Applying the unitary transformation eiδktZS/2e^{i\delta_k tZ_S/2} eliminates the free term from H~k(ξ)\widetilde{H}_k^{(\xi)} and yields the interaction Hamiltonian

HI,k(ξ)(t)=Brmsχ(t−t0)2∑jAjf(vj)Δv[ei(Δk,jt−φj)σ++e−i(Δk,jt−φj)σ−].(27)H_{I,k}^{(\xi)}(t)=\frac{B_{\mathrm{rms}}\chi(t-t_0)}{2}\sum_j A_j\sqrt{f(v_j)\Delta v}\left[e^{i(\Delta_{k,j}t-\varphi_j)}\sigma_++e^{-i(\Delta_{k,j}t-\varphi_j)}\sigma_-\right]. \tag*{(27)}

Here, Δk,j=δk−qj\Delta_{k,j}=\delta_k-q_j is the detuning between the sensor and the jjth mode. The ESU evolution operator can then be obtained directly from this interaction Hamiltonian as Uk(ξ)(t0,T)=Texp⁡[−i∫t0t0+THI,k(ξ)(t) dt]U_k^{(\xi)}(t_0,T)=\mathcal{T}\exp[-i\int_{t_0}^{t_0+T}H_{I,k}^{(\xi)}(t)\,\mathrm{d}t].

For a specified DM waveform, this propagator can be evaluated through direct numerical integration of the two-level Schrödinger equation, yielding the full ESU matrix. See Sec. S2.D for more details. Combining these matrices with the programmed QSP sequence and register reflections then gives the complete Grover iteration.

To study the ESU of a stochastic signal with good analytical control, we now expand in the weak-signal limit. For an initial ∣0⟩|0\rangle, we define the return amplitude ζk=⟨0∣Uk(ξ)∣0⟩\zeta_k = \langle0|U_k^{(\xi)}|0\rangle and transition amplitude λk=⟨1∣Uk(ξ)∣0⟩\lambda_k = \langle1|U_k^{(\xi)}|0\rangle. The traceless two-level interaction Hamiltonian generates an SU(2)SU(2) propagator,

Uk(ξ)=(ζk−λk∗λkζk∗)(28)U_k^{(\xi)} = \begin{pmatrix} \zeta_k & -\lambda_k^* \\ \lambda_k & \zeta_k^* \end{pmatrix} \tag*{(28)}

with ∣ζk∣2+∣λk∣2=1|\zeta_k|^2 + |\lambda_k|^2 = 1. To second order in the signal, the Dyson expansion gives

Uk(ξ)∣0⟩=∣0⟩−i∫t0t0+Tdt HI,k(ξ)(t)∣0⟩−∫t0t0+Tdt1∫t0t1dt2 HI,k(ξ)(t1)HI,k(ξ)(t2)∣0⟩+⋯ .(29)U_k^{(\xi)}|0\rangle= |0\rangle- i\int_{t_0}^{t_0+T} \mathrm{d}t\,H_{I,k}^{(\xi)}(t)|0\rangle- \int_{t_0}^{t_0+T}\mathrm{d}t_1\int_{t_0}^{t_1}\mathrm{d}t_2\,H_{I,k}^{(\xi)}(t_1)H_{I,k}^{(\xi)}(t_2)|0\rangle+\cdots. \tag*{(29)}

Because HI,k(ξ)H_{I,k}^{(\xi)} is always off-diagonal for the sensor, λk\lambda_k is linear in the drive strength, while the perturbation to ζk\zeta_k is quadratic in the signal. Their dependence on the sensing duration and detuning is described by

FT(Δ)=∫0Tdt χ(t)eiΔt,Kjl=∫0Tdt1∫0t1dt2 χ(t1)χ(t2)eiΔk,jt1−iΔk,lt2.(30)\mathcal{F}_T(\Delta)=\int_0^T\mathrm{d}t\,\chi(t)e^{i\Delta t},\qquad K_{jl}=\int_0^T\mathrm{d}t_1\int_0^{t_1}\mathrm{d}t_2\,\chi(t_1)\chi(t_2)e^{i\Delta_{k,j}t_1-i\Delta_{k,l}t_2}. \tag*{(30)}

The time here is measured from the start of the sensing process. The function FT\mathcal{F}_T describes a single transition, while KjlK_{jl} describes a return through mode ll at the earlier time t2t_2 and mode jj at the later time t1t_1. Substitution into the Dyson expansion gives

λk(1)=−iBrms2∑jAjf(vj)Δv eiφj−iΔk,jt0FT(Δk,j)∗,(31)\lambda_k^{(1)}=-\frac{iB_{\mathrm{rms}}}{2}\sum_j A_j\sqrt{f(v_j)}\Delta v\,e^{i\varphi_j-i\Delta_{k,j}t_0}\mathcal{F}_T(\Delta_{k,j})^*, \tag*{(31)}
θk(2)=Brms24Im⁡∑j,lAjAlf(vj)f(vl) Δv ei[φl−φj+(Δk,j−Δk,l)t0]Kjl,(32)\theta_k^{(2)}=\frac{B_{\mathrm{rms}}^2}{4}\operatorname{Im}\sum_{j,l}A_jA_l\sqrt{f(v_j)f(v_l)}\,\Delta v\,e^{i[\varphi_l-\varphi_j+(\Delta_{k,j}-\Delta_{k,l})t_0]}K_{jl}, \tag*{(32)}

where we assume λk\lambda_k is small. Over a sufficiently long sensing time TT, the leading phase can accumulate to order unity while the population transfers remain suppressed, as we justify below. In this regime, the ESU matrix is approximately diagonal, and can be written as Uk≃e−iθk(2)ZSU_k\simeq e^{-i\theta_k^{(2)}Z_S}, which describes the accumulated phase rotation.

As shown in Eq. (31), the sensor transition amplitude is proportional to FT(Δ)\mathcal{F}_T(\Delta). Following Ref. [53], we suppress this transition error by smoothly turning the DM–sensor coupling on and off using an envelope function χ(t)\chi(t). Writing χ(t)=w(t/T)\chi(t)=w(t/T) and defining x=t/Tx=t/T, we assume that ww and its derivatives up to order p−1p-1 vanish at x=0x=0 and x=1x=1. For Δ≠0\Delta\ne0, integrating Eq. (30) by parts pp times then gives

∣FT(Δ)∣≤T(∣Δ∣T)p∫01∣w(p)(x)∣dx,p=1,2,….(33)|\mathcal{F}_T(\Delta)|\le\frac{T}{(|\Delta|T)^p}\int_0^1|w^{(p)}(x)|\mathrm{d}x,\qquad p=1,2,\ldots. \tag*{(33)}

When ∣Δ∣T≫1|\Delta|T\gg1, the oscillatory contributions to FT(Δ)\mathcal{F}_T(\Delta) largely cancel. Smoothly turning the coupling on and off eliminates the boundary terms that would otherwise weaken this cancellation. We adopt the same envelope function χ(t)=w(t/T)\chi(t)=w(t/T) as in Ref. [53], normalized to unit peak as

w(x)={exp⁡[4−1x(1−x)],0<x<1,0,otherwise.(34)w(x)= \begin{cases} \exp\left[4-\dfrac{1}{x(1-x)}\right], & 0<x<1,\\ 0, & \text{otherwise}. \end{cases} \tag*{(34)}

All derivatives of ww vanish at both endpoints, so the bound in Eq. (33) applies at every order pp. The function w(t/T)w(t/T) also affects θk\theta_k and its variance through the dimensionless integrals

ηp=∫01w(x)pdx.(35)\eta_p=\int_0^1w(x)^p\mathrm{d}x. \tag*{(35)}

The long-duration mean value of θk\theta_k depends on η2=0.2891131037\eta_2=0.2891131037, whereas the variance involves η4=0.2122085942\eta_4=0.2122085942, as derived in Sec. S2.C.

Odd/even frequency binning

To suppress transition errors arising from the off-diagonal elements of the ESU matrix, the frequency bins must be sufficiently separated from the DM spectrum. Because mam_a is unknown, the control frequencies and corresponding acceptance bin width must be arranged to maintain this separation across the entire search band. We therefore adopt the odd/even binning scheme of Ref. [53], and choose the bin width to accommodate the finite bandwidth of the DM halo.

The search band is divided into equal intervals of width β\beta and searched in two separate, interleaved runs. In each run as shown in Figure S1, a register label kk represents two nonadjacent bins, while the corresponding control frequency ωk\omega_k lies in the gap between them. The binning used in the second run is shifted by one interval relative to that used in the first, thereby covering the bins omitted from the first run. For a search band starting at ωmin⁡\omega_{\min} with a total width 4Nβ4N\beta, define groups of four intervals of width β\beta:

Figure S1. Odd/even binning and an example signal placement. (a) Schematic of the construction in Fig. 3(d) of Ref. [53], redrawn here. Intervals of the same color on each row form one bin and share a control frequency (dot) in their gap. For DM, its detected frequency is typically ω≈ma\omega\approx m_a. Odd and even runs are searched separately and together cover the band. (b) Two neighboring odd bins, each comprising two intervals of width β\beta. A DM signal with a typical frequency mam_a at the left endpoint of Ik,3I_{k,3} has a detuning of ma−ωkodd=β/2m_a-\omega_k^{\mathrm{odd}}=\beta/2. The next-to-nearby control frequency in the same run is 7β/27\beta/2 away, consistent with the minimum 5β/25\beta/2 detuning required by QSP. The red curve shows the halo frequency density, with arbitrary height and horizontal width drawn to scale, taking β=10−5ma\beta=10^{-5}m_a for this illustration such that qmax⁡≃0.335βq_{\max}\simeq0.335\beta for the halo parameters in § 1.3.

Ik,a=[ωmin⁡+(4(k−1)+a−1)β,ωmin⁡+(4(k−1)+a)β],k=1,…,N,a=1,2,3,4.(36)I_{k,a}=\left[\omega_{\min}+\left(4(k-1)+a-1\right)\beta,\omega_{\min}+\left(4(k-1)+a\right)\beta\right],\quad k=1,\ldots,N,\quad a=1,2,3,4. \tag*{(36)}

Here, kk labels the group, and aa labels a bin within that group, with the final endpoint included in the full search band. In the odd run, label kk covers Ik,1I_{k,1} and Ik,3I_{k,3}, with their common control frequency at ωmin⁡+(4(k−1)+3/2)β\omega_{\min}+\left(4(k-1)+3/2\right)\beta. The even run uses Ik,2I_{k,2} and Ik,4I_{k,4}, with control frequency at ωmin⁡+(4(k−1)+5/2)β\omega_{\min}+\left(4(k-1)+5/2\right)\beta [53]. Together, the two runs cover the entire search band. A signal lying close to the control frequency in one run, which may violate the assumed B≪δkB\ll\delta_k, is therefore assigned to an off-resonant bin in the other run such that a successful search is guaranteed.

Neglecting the DM’s bandwidth, the DM signal’s detuning from the nearby assigned control frequency lies approximately between β/2\beta/2 and 3β/23\beta/2, while that from every other bin is at least 5β/25\beta/2. With a weak DM signal, having a minimum detuning of β/2\beta/2 suppresses transitions between levels. Then, the gap between 3β/23\beta/2 and 5β/25\beta/2 separates the target’s larger AC Stark phase from the background phases for QSP.

Phase statistics at large detuning and long sensing times

The phase in Eq. (32) is quadratic in the random mode amplitudes. With E[Aj2]=2\mathbb{E}[A_j^2]=2, E[Aj4]=8\mathbb{E}[A_j^4]=8, and the independence of φi\varphi_i, we obtain

E[AjAlei(φl−φj)]=2δjl,\mathbb{E}\left[A_jA_l e^{i(\varphi_l-\varphi_j)}\right]=2\delta_{jl},
E[AjAlAmAnei(φl−φj+φn−φm)]=4(δjlδmn+δjnδlm).(37)\mathbb{E}\left[A_jA_lA_mA_n e^{i(\varphi_l-\varphi_j+\varphi_n-\varphi_m)}\right]=4\left(\delta_{jl}\delta_{mn}+\delta_{jn}\delta_{lm}\right). \tag*{(37)}

where δjl\delta_{jl} is the Kronecker delta. Applying these identities to the phase kernel yields its finite-time mean and variance,

E[θk(2)]=Brms22∑jf(vj)Δv Im⁡Kjj,(38)\mathbb{E}\left[\theta_k^{(2)}\right] = \frac{B_{\mathrm{rms}}^2}{2}\sum_j f(v_j)\Delta v\,\operatorname{Im} K_{jj}, \tag*{(38)}
Var⁡θk(2)=Brms416∑j,lf(vj)f(vl)(Δv)2∣Kjl−Klj∗∣2.(39)\operatorname{Var}\theta_k^{(2)} = \frac{B_{\mathrm{rms}}^4}{16}\sum_{j,l} f(v_j)f(v_l)(\Delta v)^2\left|K_{jl}-K_{lj}^{*}\right|^2. \tag*{(39)}

Here, the diagonal mode pairings, Im⁡Kjj\operatorname{Im} K_{jj}, determine the mean, whereas the variance also receives contributions from crossed pairings between different modes through Kjl−Klj∗K_{jl}-K_{lj}^{*}. Both of the terms can therefore be expressed in terms of the Hermitian phase kernel Hjl=(Kjl−Klj∗)/(2i)\mathcal{H}_{jl}=(K_{jl}-K_{lj}^{*})/(2i). Its diagonal elements Hjj=Im⁡Kjj\mathcal{H}_{jj}=\operatorname{Im}K_{jj} determine the mean, while ∣Hjl∣2\left|\mathcal{H}_{jl}\right|^2 weights each mode pairing in the variance. To evaluate this kernel for smooth, off-resonant driving, we first integrate the inner integral in Eq. (30) by parts. Using χ(0)=0\chi(0)=0, we obtain

∫0tdt′ χ(t′)e−iΔk,lt′=iχ(t)e−iΔk,ltΔk,l−iΔk,l∫0tdt′ χ′(t′)e−iΔk,lt′.(40)\int_0^t \mathrm{d}t'\,\chi(t')e^{-i\Delta_{k,l}t'}=\frac{i\chi(t)e^{-i\Delta_{k,l}t}}{\Delta_{k,l}}-\frac{i}{\Delta_{k,l}}\int_0^t\mathrm{d}t'\,\chi'(t')e^{-i\Delta_{k,l}t'}. \tag*{(40)}

For a fixed smooth envelope χ(t)=w(t/T)\chi(t)=w(t/T) and ∣Δ∣T≫1\left|\Delta\right|T\gg1, the second term involving the derivative of χ\chi is strongly suppressed. Keeping only the leading boundary contribution gives Kjl≃i∫0Tdt χ(t)2ei(ql−qj)t/Δk,lK_{jl}\simeq i\int_0^T\mathrm{d}t\,\chi(t)^2e^{i(q_l-q_j)t}/\Delta_{k,l}. Combining this expression with the corresponding Klj∗K_{lj}^{*} term yields

Hjl≃12(1δk−qj+1δk−ql)∫0Tdt χ(t)2ei(ql−qj)t.(41)\mathcal{H}_{jl}\simeq\frac{1}{2}\left(\frac{1}{\delta_k-q_j}+\frac{1}{\delta_k-q_l}\right)\int_0^T\mathrm{d}t\,\chi(t)^2e^{i(q_l-q_j)t}. \tag*{(41)}

This approximation preserves the individual detuning of each mode, while the factor ei(ql−qj)te^{i(q_l-q_j)t} captures the interference between each pair of modes over the sensing window.

We now assume that the detuning is sufficiently large, i.e., qmax⁡≪∣δk∣q_{\max}\ll\left|\delta_k\right|, so both inverse detunings in Eq. (41) reduce to 1/δk1/\delta_k. Substituting into Eq. (32) gives

θk(2)≃Brms24δk∫t0t0+Tdt χ(t−t0)2∣∑jAjf(vj)Δv e−i(qjt+ϕj)∣2.(42)\theta_k^{(2)}\simeq\frac{B_{\mathrm{rms}}^2}{4\delta_k}\int_{t_0}^{t_0+T}\mathrm{d}t\,\chi(t-t_0)^2\left|\sum_j A_j\sqrt{f(v_j)\Delta v}\,e^{-i(q_jt+\phi_j)}\right|^2. \tag*{(42)}

The phase variance in the small-Δv\Delta v limit is therefore

Var⁡θk(2)≃Brms44δk2∫0Tdt∫0Tdt′ χ(t)2χ(t′)2∣∫0vmax⁡dv f(v)e−imav2(t−t′)/2∣2.(43)\operatorname{Var}\theta_k^{(2)}\simeq\frac{B_{\mathrm{rms}}^4}{4\delta_k^2}\int_0^T\mathrm{d}t\int_0^T\mathrm{d}t'\,\chi(t)^2\chi(t')^2\left|\int_0^{v_{\max}}\mathrm{d}v\,f(v)e^{-im_av^2(t-t')/2}\right|^2. \tag*{(43)}

Both times tt and t′t' lie in [0,T][0,T], so their difference τ=t−t′\tau=t-t' spans [−T,T][-T,T]. We now consider the long duration limit, T≫τDMT\gg\tau_{\mathrm{DM}}. The variance is dominated by time separations over which the DM intensity remains correlated, and for a fixed smooth function χ(t)=w(t/T)\chi(t)=w(t/T), χ(t)\chi(t) varies negligibly over this scale. We can therefore approximate χ(t)2χ(t−τ)2≃χ(t)4\chi(t)^2\chi(t-\tau)^2\simeq\chi(t)^4, so that the leading time integral becomes ∫0Tdt χ(t)4=Tη4\int_0^T\mathrm{d}t\,\chi(t)^4=T\eta_4. After changing variables to the time difference τ\tau, the remaining integral in this limit is

∫−TTdτ∣∫0vmax⁡dv f(v)e−imav2τ/2∣2≃2π∫0vmax⁡dv f(v)2mav.(44)\int_{-T}^{T}\mathrm{d}\tau\left|\int_0^{v_{\max}}\mathrm{d}v\,f(v)e^{-im_av^2\tau/2}\right|^2\simeq2\pi\int_0^{v_{\max}}\mathrm{d}v\,\frac{f(v)^2}{m_av}. \tag*{(44)}

Restoring the physical duration TT, the mean acquires the weight factor, ∫0Tdt χ(t)2=Tη2\int_0^T\mathrm{d}t\,\chi(t)^2=T\eta_2, while the long duration variance follows from Eq. (44). Combining these results, we obtain the long duration mean and standard deviation,

θ‾k≃Brms2Tη22δk,σθ,k≃Brms22∣δk∣[2πTη4∫0vmax⁡dv f(v)2mav]1/2.(45)\overline{\theta}_k\simeq\frac{B_{\mathrm{rms}}^2T\eta_2}{2\delta_k},\qquad\sigma_{\theta,k}\simeq\frac{B_{\mathrm{rms}}^2}{2\left|\delta_k\right|}\left[2\pi T\eta_4\int_0^{v_{\max}}\mathrm{d}v\,\frac{f(v)^2}{m_av}\right]^{1/2}. \tag*{(45)}

Their ratio is

σθ,k∣θ‾k∣≃Teff,kT.(46)\frac{\sigma_{\theta,k}}{\left|\overline{\theta}_k\right|}\simeq\sqrt{\frac{T_{\mathrm{eff},k}}{T}}. \tag*{(46)}

where the effective correlation time is

τeff,k≔2πη4η22∫0vmax⁡dv f(v)2mav.(47)\tau_{\mathrm{eff},k} \coloneqq\frac{2\pi\eta_4}{\eta_2^2}\int_0^{v_{\max}} \mathrm{d}v\,\frac{f(v)^2}{m_a v}. \tag*{(47)}

These results show that, at fixed drive strength, the mean phase grows linearly with TT, while its relative standard deviation decreases as T−1/2T^{-1/2}. At fixed mean phase, increasing the sensing duration allows a weaker effective DM–sensor coupling, Brms∝T−1/2B_{\mathrm{rms}} \propto T^{-1/2}, and simultaneously reduces the absolute phase fluctuation as σθ,k∝T−1/2\sigma_{\theta,k} \propto T^{-1/2}. A longer sensing duration therefore produces a more stable accumulated phase.

Direct numerical evolution of the ESU

For a fixed DM configuration ξ\xi, the ESU evolution can be constructed numerically from the two-level RWA Hamiltonian. For a given branch kk and sensing interval [t0,t0+T][t_0,t_0+T], we write

H~k(ξ)(t)=12(δkh(t)h(t)∗−δk),h(t)=Brmsχ(t−t0)∑jAjf(vj)Δv e−i(qjt+φj).(48)\widetilde{H}_k^{(\xi)}(t)=\frac{1}{2}\begin{pmatrix}\delta_k & h(t)\\ h(t)^* & -\delta_k\end{pmatrix},\qquad h(t)=B_{\mathrm{rms}}\chi(t-t_0)\sum_j A_j\sqrt{f(v_j)}\Delta v\,e^{-i(q_jt+\varphi_j)}. \tag*{(48)}

Divide the sensing interval into NtN_t steps of duration Δt=T/Nt\Delta t=T/N_t. At the midpoint of each step, tn=t0+(n+1/2)Δtt_n=t_0+(n+1/2)\Delta t, set hn=h(tn)h_n=h(t_n) and Ωn=δk2+∣hn∣2\Omega_n=\sqrt{\delta_k^2+|h_n|^2}, for n=0,…,Nt−1n=0,\ldots,N_t-1. Since H~k(ξ)(tn)2=Ωn2IS/4\widetilde{H}_k^{(\xi)}(t_n)^2=\Omega_n^2 I_S/4, treating the Hamiltonian as constant over each step gives an evolution operator for a duration Δt\Delta t

Mn=e−iH~k(ξ)(tn)Δt=cos⁡(ΩnΔt/2)IS−isin⁡(ΩnΔt/2)Ωn(δkhnhn∗−δk).(49)M_n=e^{-i\widetilde{H}_k^{(\xi)}(t_n)\Delta t}=\cos(\Omega_n\Delta t/2)I_S-i\frac{\sin(\Omega_n\Delta t/2)}{\Omega_n}\begin{pmatrix}\delta_k & h_n\\ h_n^* & -\delta_k\end{pmatrix}. \tag*{(49)}

Let U~[n]\widetilde{U}^{[n]} denote the propagator accumulated after nn steps. Starting from the identity, the ESU evolution is composed as

U~[0]=IS,U~[n+1]=MnU~[n],U~[Nt]=MNt−1⋯M1M0.(50)\widetilde{U}^{[0]}=I_S,\qquad\widetilde{U}^{[n+1]}=M_n\widetilde{U}^{[n]},\qquad\widetilde{U}^{[N_t]}=M_{N_t-1}\cdots M_1M_0. \tag*{(50)}

After removing the free precession proportional to δk\delta_k, one can obtain the ESU matrix in Eq. (7) numerically. The signal-induced phase can then be extracted from its diagonal element as θk=−arg⁡ζk\theta_k=-\arg\zeta_k. For T≫τDMT\gg\tau_{\mathrm{DM}}, the intensity integral in Eq. (42) contains contributions from many uncorrelated time intervals. A central-limit argument therefore predicts an approximately Gaussian phase distribution, with the mean and variance calculated in Eq. (45).

We test this prediction using 10310^3 independent ESUs with different realizations of the random initial axion configuration ξ\xi. Figure S2 shows that the simulated θk\theta_k distribution agrees with the Gaussian prediction within the sampling uncertainty, supporting the Gaussian approximation in this long-duration regime.

Distribution of the accumulated ESU phase

Figure S2. Distribution of the accumulated ESU phase θk\theta_k for 1000 realizations of the stochastic DM waveform, with T=140 sT = 140\,\mathrm{s}, θˉk=π/4\bar{\theta}_k = \pi/4, and ma=10−5 eVm_a = 10^{-5}\,\mathrm{eV}. The histogram shows (θk−θˉk)/σθ,k(\theta_k-\bar{\theta}_k)/\sigma_{\theta,k}. The dashed curve shows the Gaussian prediction for θk\theta_k, with mean θˉk=π/4\bar{\theta}_k = \pi/4 and variance given by Eq. (46). We see that in the large-TT regime, the true θk\theta_k distribution is well approximated by a Gaussian distribution.

QSP for identical ESUs

QSP converts the signal-dependent ESU phase into the sign required for oracle. For a single marked signal bin label ∣k∗⟩\lvert k^*\rangle, the ideal oracle acts as Oid∣k⟩∣ψ⟩S=(−1)δk,k∗∣k⟩∣ψ⟩SO_{\mathrm{id}}\lvert k\rangle\lvert\psi\rangle_S=(-1)^{\delta_{k,k^*}}\lvert k\rangle\lvert\psi\rangle_S for any sensor state ∣ψ⟩S\lvert\psi\rangle_S, where δk,k∗\delta_{k,k^*} is one for the marked label and zero otherwise. QSP produces this response by interleaving ESU with programmed phase rotations [53, 54, 55]. For a fixed phase θ\theta, each ESU implements U(θ)=e−iθZSU(\theta)=e^{-i\theta Z_S}. With LL ESUs and L+1L+1 rotations RX(ϕ)=e−iϕXSR_X(\phi)=e^{-i\phi X_S}, the QSP unitary on each branch is

QL(θ)=RX(ϕL)U(θ)⋯RX(ϕ1)U(θ)RX(ϕ0).(51)Q_L(\theta)=R_X(\phi_L)U(\theta)\cdots R_X(\phi_1)U(\theta)R_X(\phi_0). \tag*{(51)}

The programmed angles ϕℓ\phi_\ell control interference between the ZSZ_S and XSX_S rotations. In this paper, we adopt a commonly used symmetric sequence of QSP control angles satisfying

ϕL=ϕ0−π2,ϕℓ=ϕL−ℓ(1≤ℓ≤L−1).(52)\phi_L=\phi_0-\frac{\pi}{2},\qquad\phi_\ell=\phi_{L-\ell}\quad(1\le\ell\le L-1). \tag*{(52)}

For identical ESUs, this choice makes the diagonal entries of QL(θ)Q_L(\theta) real.

The fixed phase QSP response, P(x)≡Re⁡⟨0∣QL(θ)∣0⟩P(x) \equiv\operatorname{Re}\langle0|Q_L(\theta)|0\rangle, with x=cos⁡θx = \cos\theta, is a polynomial of degree at most LL, with ∣P(x)∣≤1|P(x)| \le1 on [−1,1][-1,1]. We choose PP to approximate the target sign ς(θ)\varsigma(\theta), which is required to be −1-1 on the signal phase interval Wsig\mathcal{W}_{\mathrm{sig}} and +1+1 on the background phase interval Wbg\mathcal{W}_{\mathrm{bg}}. The QSP approximation error is the maximum scalar error over these intervals,

ϵQSP=max⁡θ∈Wsig∪Wbg[1−ς(θ)P(cos⁡θ)].(53)\epsilon_{\mathrm{QSP}} = \max_{\theta\in\mathcal{W}_{\mathrm{sig}}\cup\mathcal{W}_{\mathrm{bg}}} \left[1-\varsigma(\theta)P(\cos\theta)\right]. \tag*{(53)}

This scalar error bounds the deviation of the QSP unitary from its target oracle sign. Since every QSP block belongs to SU(2)SU(2), it satisfies Q+Q†=2Re⁡(Q00)ISQ + Q^\dagger= 2\operatorname{Re}(Q_{00})I_S, where Q00=⟨0∣Q∣0⟩Q_{00} = \langle0|Q|0\rangle. Therefore,

∥QL−ςIS∥=2[1−ςRe⁡(Q00)]≤2ϵQSP.(54)\lVert Q_L-\varsigma I_S\rVert= \sqrt{2[1-\varsigma\operatorname{Re}(Q_{00})]} \le\sqrt{2\epsilon_{\mathrm{QSP}}}. \tag*{(54)}

Here, the operator norm is the largest singular value of the matrix difference. This error bound holds for any sensor input and therefore controls both population transfer, represented by the off-diagonal entries of QQ, and deviations from the target sign ς\varsigma.

The gap between Wsig\mathcal{W}_{\mathrm{sig}} and Wbg\mathcal{W}_{\mathrm{bg}} sets the required sequence length. A narrower gap admits more phases but requires a longer sequence for the same accuracy. For separation Δx\Delta_x in x=cos⁡θx = \cos\theta, bounded polynomial constructions achieve error ϵQSP\epsilon_{\mathrm{QSP}} with L=O[Δx−1log⁡(1/ϵQSP)]L = O[\Delta_x^{-1}\log(1/\epsilon_{\mathrm{QSP}})] [53]. Thus, ϵQSP\epsilon_{\mathrm{QSP}} decreases exponentially in LΔxL\Delta_x when an appropriate set of ϕℓ\phi_\ell is chosen. For the L=40L = 40 sequence used in this paper, we choose the target signal phase range θk∈Wsig=[π/4,3π/4]\theta_k \in\mathcal{W}_{\mathrm{sig}} = [\pi/4,3\pi/4] and the background phase range with ∣θk∣≤3π/20|\theta_k| \le3\pi/20. In terms of x=cos⁡θkx = \cos\theta_k, the corresponding even polynomial separates the regions ∣x∣≤cos⁡(π/4)|x| \le\cos(\pi/4) and ∣x∣≥cos⁡(3π/20)|x| \ge\cos(3\pi/20), with a gap Δx=cos⁡(3π/20)−cos⁡(π/4)≈0.184\Delta_x = \cos(3\pi/20)-\cos(\pi/4) \approx0.184. Numerical checks give maximum error ϵQSP≈1.36×10−3\epsilon_{\mathrm{QSP}} \approx1.36 \times10^{-3} in the monochromatic limit, where all ESUs are identical. The error bound does not apply to the gap 3π/20≤θk≤π/43\pi/20 \le\theta_k \le\pi/4 where P(x)P(x) is left unconstrained.

For the frequency bins other than the signal bin, the larger detuning strongly suppresses the accumulated phase. We therefore approximate the background sensing phase as zero. The corresponding ESUs reduce to identity operations while the programmed rotations remain, generating a QSP unitary on background bins as

Qb=exp⁡[−i(∑ℓ=0Lϕℓ)XS].(55)Q_b = \exp\left[-i\left(\sum_{\ell=0}^{L}\phi_\ell\right)X_S\right]. \tag*{(55)}

For the L=40L = 40 sequence used in this paper, numerical evaluation gives Qb≈0.9986IS+0.0520iXSQ_b \approx0.9986I_S + 0.0520iX_S.

DM-induced phase fluctuations and stochastic errors

For stochastic DM, the accumulated phase fluctuates around its mean value from one ESU to another. Even when these fluctuations remain within Wsig\mathcal{W}_{\mathrm{sig}} or Wbg\mathcal{W}_{\mathrm{bg}}, variations among ESUs can alter the interference within a QSP sequence.

To isolate the effect of phase fluctuations, we fix the QSP angles and choose a mean phase θˉ\bar{\theta} within the Wsig\mathcal{W}_{\mathrm{sig}}. Let QL(ξ)Q_L^{(\xi)} denote the oracle matrix in Eq. (51), with the phase of ESU ℓ\ell replaced by θℓ(ξ)=θˉ+δθℓ(ξ)\theta_{\ell}^{(\xi)} = \bar{\theta} + \delta\theta_{\ell}^{(\xi)}, the QSP approximation error at this mean phase is ϵ0(θˉ)=1−ζRe⁡⟨0∣QL(θˉ)∣0⟩\epsilon_0(\bar{\theta}) = 1 - \zeta\operatorname{Re}\langle0|Q_L(\bar{\theta})|0\rangle, which is bounded by ϵQSP\epsilon_{\mathrm{QSP}}. As θℓ(ξ)\theta_{\ell}^{(\xi)} fluctuates around θˉ\bar{\theta}, the expected error is

ϵˉ(θˉ)=E[1−ζRe⁡⟨0∣QL(ξ)∣0⟩].(56)\bar{\epsilon}(\bar{\theta}) = \mathbb{E}\left[1 - \zeta\operatorname{Re}\langle0|Q_L^{(\xi)}|0\rangle\right]. \tag*{(56)}

This quantity is evaluated at the chosen mean phase rather than maximized over all possible θℓ(ξ)\theta_{\ell}^{(\xi)}. Subtracting the baseline ϵ0(θˉ)\epsilon_0(\bar{\theta}) isolates the DM-induced stochastic error, Δϵfluc=ϵˉ−ϵ0\Delta\epsilon_{\mathrm{fluc}} = \bar{\epsilon} - \epsilon_0.

Because δθ\delta\theta are approximately uncorrelated between ESUs as the sensing time T≫τeff,kT \gg\tau_{\mathrm{eff},k}, the leading perturbations to the oracle accumulate as a random walk. Therefore, the mean squared operator distance from QL(ξ)Q_L^{(\xi)} to QL(θˉ)Q_L(\bar{\theta}) grows in proportion to the number of ESUs. For a fixed single-ESU variance σθ2\sigma_{\theta}^{2}, the stochastic error scales as Δϵfluc∝Lσθ2\Delta\epsilon_{\mathrm{fluc}} \propto L\sigma_{\theta}^{2}. Hence, we note a trade-off as we change LL. While the QSP approximation error is suppressed as LL increases, the per-oracle stochastic error and timing complexity increases.

At ma=10−5 eVm_a = 10^{-5}\,\mathrm{eV}, θˉ=π/4\bar{\theta} = \pi/4, T=140 sT = 140\,\mathrm{s}, and L=40L = 40, the standard deviation of the sensed phase is σθ≈1.777×10−3\sigma_{\theta} \approx1.777 \times10^{-3}. Direct evaluation at this reference phase gives ϵ0(π/4)≈1.355×10−3\epsilon_0(\pi/4) \approx1.355 \times10^{-3}, close to the maximum scalar error ϵQSP\epsilon_{\mathrm{QSP}} for this sequence. The stochastic DM signal increases the error by Δϵfluc≈6.31×10−5\Delta\epsilon_{\mathrm{fluc}} \approx6.31 \times10^{-5}, yielding ϵˉ(π/4)≈1.42×10−3\bar{\epsilon}(\pi/4) \approx1.42 \times10^{-3}. Figure S3 compares these contributions as LL varies. A longer sequence can reduce the QSP approximation error with appropriate QSP control phases ϕℓ\phi_\ell. However, it also introduces more stochastic errors and increases the sensing time per oracle to LTLT. The competition between these effects produces an optimal sequence length LL that minimizes the total QSP error, as shown in the figure. At a fixed mean phase, shorter sensing time TT produces larger stochastic errors. Therefore, increasing TT improves the QSP accuracy as discussed in the main text.

Figure S3. Scalar QSP errors at fixed θˉ=π/4\bar{\theta} = \pi/4: the total ϵˉ\bar{\epsilon}, the QSP approximation error ϵ0\epsilon_0, and stochastic error Δϵfluc\Delta\epsilon_{\mathrm{fluc}}. We fix the ESU sensing time TT in each panel so that the standard deviation of the sensed phase σθ,k\sigma_{\theta,k} is fixed. These σθ,k\sigma_{\theta,k} are 0.0018, 0.0056, and 0.018 for T=140T = 140, 14, and 1.4 s, respectively. The coupling strength BrmsB_{\mathrm{rms}} is adjusted between panels so that the expected sensed phase θˉ\bar{\theta} remains the same for a fair comparison.

Note that these single-oracle errors are distinct from the final search failure probability. The Grover search success probability depends on how errors from successive oracle calls accumulate, as discussed below.

Search on the register space

To perform the Grover search, we initialize the index register to a uniform superposition ∣s⟩=N−1/2∑k=1N∣k⟩|s\rangle= N^{-1/2}\sum_{k=1}^{N}|k\rangle over the NN frequency bin labels and the sensor in ∣0⟩S|0\rangle_S. Each oracle call is followed by a register reflection Rs=2∣s⟩⟨s∣−IQR_s = 2|s\rangle\langle s| - I_Q so that the full unitary is Rs⊗ISR_s \otimes I_S. The index r=0,…,Gr = 0,\ldots,G counts the number of completed Grover iterations, with r=0r = 0 corresponding to the initial state and GG to the final iteration before readout. We choose G=⌊πN/4⌋G = \lfloor\pi\sqrt{N}/4 \rfloor, which gives G=117G = 117 for N=22500N = 22500.

Assuming that the background phase is negligible, all N−1N-1 background labels undergo the same unitary QbQ_b and remain equally weighted after each reflection. Their normalized superposition is ∣B⟩=(N−1)−1/2∑k≠k∗∣k⟩|B\rangle= (N-1)^{-1/2}\sum_{k\ne k_*}|k\rangle. The signal and background components can then be described by the sensor state amplitude vectors, ar=(ar,0,ar,1)T\mathbf{a}_r = (a_{r,0},a_{r,1})^T and br=(br,0,br,1)T\mathbf{b}_r = (b_{r,0},b_{r,1})^T, whose entries correspond to the component in the sensor basis states ∣0⟩S|0\rangle_S and ∣1⟩S|1\rangle_S. The two vectors are not individually normalized; instead, their squared norms satisfy ∥ar∥2+∥br∥2=1\lVert\mathbf{a}_r\rVert^2+\lVert\mathbf{b}_r\rVert^2=1. As an example, the initial sensor state is

a0=1N(10),b0=N−1N(10).(57)\mathbf{a}_0 = \frac{1}{\sqrt{N}}\begin{pmatrix}1\\0\end{pmatrix},\qquad\mathbf{b}_0 = \sqrt{\frac{N-1}{N}}\begin{pmatrix}1\\0\end{pmatrix}. \tag*{(57)}

On the rrth iteration, the signal QSP unitary Qs,rQ_{s,r} acts on ar−1\mathbf{a}_{r-1} and the background QSP unitary QbQ_b acts on br−1\mathbf{b}_{r-1}. The subsequent register reflection mixes these two vectors identically for both sensor components. With cG=1−2/Nc_G=1-2/N and sG=2N−1/Ns_G=2\sqrt{N-1}/N, the resulting four-dimensional evolution is

\begin{pmatrix}\mathbf{a}_r\\\mathbf{b}_r\end{pmatrix} = \begin{pmatrix} -c_GQ_{s,r} & s_GQ_b\\ s_GQ_{s,r} & c_GQ_b \end{pmatrix} \begin{pmatrix}\mathbf{a}_{r-1}\\\mathbf{b}_{r-1}\end{pmatrix}. \tag*{(58)}\end{pmatrix}

Each displayed matrix entry is a 2×22\times2 unitary acting on the two-level sensor state, so the full matrix acts on four complex amplitudes. At the final iteration r=Gr=G, the probability of measuring the signal label, summed over both sensor outcomes, is

Pbin(ξ)=aG†aG=∣aG,0∣2+∣aG,1∣2.(59)P_{\mathrm{bin}}(\xi)=\mathbf{a}_G^\dagger\mathbf{a}_G=|a_{G,0}|^2+|a_{G,1}|^2. \tag*{(59)}

For an ideal oracle, Qs,r=−ISQ_{s,r}=-I_S and Qb=ISQ_b=I_S so that the sensor returns to its initial state ∣0⟩S|0\rangle_S, and the repeated Grover iterations reduce to the ideal Grover rotation,

Pid=sin⁡2[(2G+1)α],α=arcsin⁡(N−1/2).(60)P_{\mathrm{id}}=\sin^2[(2G+1)\alpha],\qquad\alpha=\arcsin(N^{-1/2}). \tag*{(60)}

For N=22500N=22500, G=117G=117, this gives Pid=0.99998P_{\mathrm{id}}=0.99998. With both the QSP approximation error and the stochastic error, however, the sensor state may not perfectly return to ∣0⟩S|0\rangle_S and may obtain register-dependent components, weaken the Grover amplification to ∣k∗⟩|k_*\rangle from ∣s⟩|s\rangle. Eq. (58) then accounts for these kk-dependent sensor states through all GG Grover iterations so that the dependence on Qs,rQ_{s,r} and QbQ_b in the search’s success probability given in Eq. (59) can be tracked explicitly.

Suppressing search error with an alternating-sign protocol

Following the procedure in Sec. S3.C, we can estimate the search success probability Pbin(ξ)P_{\mathrm{bin}}(\xi) of a given QSP sequence. For the L=40L=40 benchmark, the marked bin has ϵ(π/4)≃1.42×10−3\epsilon(\pi/4)\simeq1.42\times10^{-3}, corresponding to an RMS operator error of 2ϵ≃0.053\sqrt{2}\epsilon\simeq0.053. Taking this as a representative single-call error, a crude estimate that assumes coherent accumulation over G=117G=117 calls gives G2ϵ≫1G\sqrt{2}\epsilon\gg1. This suggests that oracle errors could substantially degrade the search.

Reducing the QSP approximation error would naively improve the search success probability. However, this generally requires longer sequences, which increase both the single-oracle sensing time and the stochastic error. Instead, we find that combining the original QSP oracle with a sign-flipped QSP oracle suppresses coherent accumulation of the static error at fixed LL, making L=40L=40 sufficient to find the marked bin in our benchmark.

To see how this works, we first take the monochromatic limit such that the ESUs experience no stochastic error. Equation (58) then applies with fixed signal and background matrices QsQ_s and QbQ_b for the sensor state. Let G+=(Rs⊗IS)O+G_+=(R_s\otimes I_S)\mathcal{O}_+ denote one search step, where O+=diag⁡(Qs,Qb)\mathcal{O}_+=\operatorname{diag}(Q_s,Q_b) is the oracle for signal and background. Two calls in the conventional Grover search procedure with the same-sign protocol give

G+2=(cG2Qs2+sG2QbQscGsG(Qb2−QsQb)cGsG(QbQs−Qs2)sG2QsQb+cG2Qb2).(61)G_+^2= \begin{pmatrix} c_G^2Q_s^2+s_G^2Q_bQ_s & c_Gs_G(Q_b^2-Q_sQ_b)\\ c_Gs_G(Q_bQ_s-Q_s^2) & s_G^2Q_sQ_b+c_G^2Q_b^2 \end{pmatrix}. \tag*{(61)}

The diagonal terms contain Qs2Q_s^2 and Qb2Q_b^2 with coefficient cG2=(1−2/N)2≃1c_G^2=(1-2/N)^2\simeq1. A fixed departure of these unitaries from the target signs (−IS(-I_S and IS)I_S) is therefore repeated. This error accumulates and affects the success probability even when the error of one call is small.

Suppose instead that the next oracle uses O−=O+†O_-=O_+^\dagger, and let’s define G−=(Rs⊗IS)O−G_-=(R_s\otimes I_S)O_-. The two-step product becomes

G−G+=(cG2IS+sG2Qs†QscGsG(IS−Qs†Qb)cGsG(Qb†Qs−IS)sG2Qs†Qb+cG2IS).(62)G_-G_+=\begin{pmatrix} c_G^2I_S+s_G^2Q_s^\dagger Q_s & c_Gs_G(I_S-Q_s^\dagger Q_b) \\ c_Gs_G(Q_b^\dagger Q_s-I_S) & s_G^2Q_s^\dagger Q_b+c_G^2I_S \end{pmatrix}. \tag*{(62)}

Because Qs/b†Qs/b=ISQ_{s/b}^\dagger Q_{s/b}=I_S, the term ∝cG2\propto c_G^2 in G−G+G_-G_+ are now exactly proportionate to ISI_S rather than Qs/b2Q_{s/b}^2. The remaining deviations from the ideal case carry a much smaller factor sGcGs_Gc_G or sG2s_G^2, whereas the repeated same-sign call G+2G_+^2 retains the terms ∼O(cG2)\sim O(c_G^2), which is large.

For a quantitative comparison, let GidG_{\mathrm{id}} be the ideal Grover iteration unitary with Qs=−ISQ_s=-I_S and Qb=ISQ_b=I_S. Then, from Eq. (54), we have

∥G+G+−Gid2∥≤22ϵQSP,∥G−G+−Gid2∥=sG∥Qs+Qb∥≤2sG2ϵQSP.(63)\begin{aligned} \lVert G_+G_+-G_{\mathrm{id}}^2\rVert&\leq2\sqrt{2\epsilon_{\mathrm{QSP}}},\\ \lVert G_-G_+-G_{\mathrm{id}}^2\rVert&=s_G\lVert Q_s+Q_b\rVert\leq2s_G\sqrt{2\epsilon_{\mathrm{QSP}}}. \tag*{(63)} \end{aligned}

The first bound follows by adding the error bounds of the two steps. For the second bound, we multiply the matrix difference by Rs⊗ISR_s\otimes I_S, which leaves its norm unchanged. The diagonal blocks then vanish. Only the off-diagonal term of the matrix difference sG(IS+Qs†Qb)s_G(I_S+Q_s^\dagger Q_b) and its adjoint remain. Since QsQ_s is unitary, the norm of this matrix is sG∥Qs+Qb∥s_G\lVert Q_s+Q_b\rVert. Finally, Qs+Qb=(Qs+IS)+(Qb−IS)Q_s+Q_b=(Q_s+I_S)+(Q_b-I_S) gives the last inequality. Thus, the maximum error in two calls is reduced by sG≃2/Ns_G\simeq2/\sqrt{N} in the monochromatic. A similar argument also applies in the presence of small stochastic error.

Figure S4 showcases this error suppression. We define the squared errors over two Grover iterations as ϵpair++=12∥G+G+−Gid2∥2\epsilon_{\mathrm{pair}}^{++}=\frac{1}{2}\lVert G_+G_+-G_{\mathrm{id}}^2\rVert^2 and ϵpair−+=12∥G−G+−Gid2∥2\epsilon_{\mathrm{pair}}^{-+}=\frac{1}{2}\lVert G_-G_+-G_{\mathrm{id}}^2\rVert^2. In the monochromatic limit with background oracle QbQ_b, Eq. (63) relates these errors to the single-QSP error ϵ0=12∥Qs+IS∥2\epsilon_0=\frac{1}{2}\lVert Q_s+I_S\rVert^2, with ϵpair++≃(1+cG)2ϵ0≃4ϵ0\epsilon_{\mathrm{pair}}^{++}\simeq(1+c_G)^2\epsilon_0\simeq4\epsilon_0 and ϵpair−+=sG2ϵ0≃4ϵ0/N≪ϵpair++\epsilon_{\mathrm{pair}}^{-+}=s_G^2\epsilon_0\simeq4\epsilon_0/N\ll\epsilon_{\mathrm{pair}}^{++} for large number of frequency bins NN. The alternating-sign protocol therefore suppresses the static error without increasing the QSP sequence length.

Figure S4. QSP approximation error suppression from alternating the signs of all QSP control angles, for identical diagonal ESUs with θ=π/4\theta=\pi/4, background oracle QbQ_b, and N=22500N=22500. The gray dashed curve shows the single-QSP error ϵ0\epsilon_0. The red and blue curves show the two-step squared errors ϵpair++\epsilon_{\mathrm{pair}}^{++} and ϵpair−+\epsilon_{\mathrm{pair}}^{-+} for the same-sign and the alternating-sign protocols respectively. As discussed in the text, we find that ϵpair++≃4ϵ0/N≃ϵpair−+/N\epsilon_{\mathrm{pair}}^{++}\simeq4\epsilon_0/N\simeq\epsilon_{\mathrm{pair}}^{-+}/N can suppresses the intrinsic QSP approximation error significantly.

Figure S5. Single-search miss probability Pmiss(1)=1−P‾binP_{\mathrm{miss}}^{(1)}=1-\overline{P}_{\mathrm{bin}} for repeated QSP angles (same-sign, red) and alternating signs of all angles between oracle calls (alternating, blue), with T=140T=140, 1414, and 1.4 s1.4\,\mathrm{s}. The green and orange curves show the alternating protocol’s miss probability due to QSP approximation error Pid−P0P_{\mathrm{id}}-P_{0} and that due to the stochastic error P0−P‾binP_{0}-\overline{P}_{\mathrm{bin}}, respectively, as decomposed in Eq. (65). The dotted line marks the finite-iteration residual 1−Pid=1.70×10−51-P_{\mathrm{id}}=1.70\times10^{-5}, existing even for ideal Grover search algorithm. All panels use a fixed mean phase for the marked bin θˉk∗=π/4\bar{\theta}_{k^*}=\pi/4 and G=117G=117.

To obtain Qs/b†Q_{s/b}^{\dagger} using QSP, we simply flip the signs of all QSP angles in the symmetric sequence in Eq. (52). In the monochromatic limit where all ESUs are identical, each factor in Eq. (52) is a symmetric matrix. The symmetry of the control angles, together with RX(ϕL)=iXSRX(ϕ0)R_X(\phi_L)=iX_SR_X(\phi_0), implies QLT=XSQLXSQ_L^T=X_SQ_LX_S. The two diagonal entries of QLQ_L are therefore equal. Since QL∈SU(2)Q_L\in\mathrm{SU}(2), these entries are also complex conjugates and must consequently be real. Let Q+ϕQ_{+\phi} and Q−ϕQ_{-\phi} denote the original and sign-flipped sequence. Since ZSRX(ϕ)ZS=RX(−ϕ)Z_SR_X(\phi)Z_S=R_X(-\phi) and ZSU(θ)ZS=U(θ)Z_SU(\theta)Z_S=U(\theta), we have

Q−ϕ(θ)=ZSQ+ϕ(θ)ZS=Q+ϕ(θ)†.(64)Q_{-\phi}(\theta)=Z_SQ_{+\phi}(\theta)Z_S=Q_{+\phi}(\theta)^\dagger. \tag*{(64)}

The above relation holds exactly in the monochromatic limit, while the actual DM signal between ESUs introduce additional stochastic error. The sign flip therefore suppresses the QSP approximation error but not the stochastic error.

Figure S5 compares the two protocols for N=22500N=22500, G=117G=117, ma=10−5 eVm_a=10^{-5}\,\mathrm{eV}, and β=10−9 eV\beta=10^{-9}\,\mathrm{eV}. Both use the same QSP sequence up to sign for each even length from L=10L=10 to 6060. The “same-sign” protocol repeats ϕ\phi, whereas the “alternating” protocol alternates between ϕ\phi and −ϕ-\phi. For each ESU duration, BrmsB_{\mathrm{rms}} is adjusted to keep the marked mean phase at π/4\pi/4, so shorter ESU sensing time TT have larger phase variance.

Let P0P_0 denote the success probability obtained with the ESU phase variance set to zero and the ideal-±IS\pm I_S-oracle probability PidP_{\mathrm{id}} is given by Eq. (60). The single-search miss probability can then be separated exactly as

Pmiss(1)=1−P‾bin=(1−Pid)+(Pid−P0)+(P0−P‾bin).(65)\begin{aligned} P_{\mathrm{miss}}^{(1)} &= 1-\overline{P}_{\mathrm{bin}} \\ &= (1-P_{\mathrm{id}})+(P_{\mathrm{id}}-P_0)+(P_0-\overline{P}_{\mathrm{bin}}). \tag*{(65)} \end{aligned}

The first term is the finite-iteration error, exist even with ideal Grover search algorithm. The second measures the search loss from intrinsic QSP approximation errors, and the third come from the DM-induced stochastic noise.

The red curves show that the same-sign protocol can produce larger accumulated QSP approximation errors over the full search, even as increasing LL improves the single-call approximation. Alternating between the original QSP oracle and sign-flipped oracle suppresses these oscillations and gives more stable performance. The contribution from the QSP approximation error (green) generally decreases rapidly with LL, initially reducing the total miss probability (blue). However, the contribution from the stochastic error (orange) grows with LL and eventually limits this improvement. Shorter ESUs average the field intensity less effectively, producing larger phase variance at the same mean phase. Consequently, the miss probability increases as TT decreases at fixed LL.

Search probability and sensitivity

Ensemble average and the 95% sensitivity

The ensemble-averaged success probability of a single search, P‾bin\overline{P}_{\mathrm{bin}}, is defined in Eq. (15). We evaluate this quantity numerically using Monte Carlo sampling. Specifically, we draw MM independent initial DM field configurations, ξi={Aj,φj}\xi_i = \{A_j,\varphi_j\}, such that we use the Monte Carlo method to calculate P‾bin\overline{P}_{\mathrm{bin}} numerically. Each configuration determines the DM waveform throughout one complete search. For each realization, we construct the ESU matrices as described in Sec. S2.D, compose the QSP oracles and register reflections, and calculate the corresponding success probability Pbin(ξi)P_{\mathrm{bin}(\xi_i)} using Eq. (14). The ensemble average is then

P‾bin=1M∑i=1MPbin(ξi).(66)\overline{P}_{\mathrm{bin}} = \frac{1}{M}\sum_{i=1}^{M} P_{\mathrm{bin}}(\xi_i). \tag*{(66)}

To determine the sensitivity, we fix the DM mass mam_a, the sensing duration TT, and the QSP sequence length LL. We then decrease the field strength from the reference value Brmsref=Brms,π/4B_{\mathrm{rms}}^{\mathrm{ref}} = B_{\mathrm{rms},\pi/4}, defined by requiring the mean accumulated phase in the signal bin to satisfy θk∗=π/4\theta_{k^*} = \pi/4. The first point at which the average success probability falls to 0.95 defines the single-search sensitivity boundary,

P‾bin(Brms95%)=0.95,Pmiss(1)(Brms95%)=0.05.(67)\overline{P}_{\mathrm{bin}}\left(B_{\mathrm{rms}}^{95\%}\right) = 0.95,\qquad P_{\mathrm{miss}}^{(1)}\left(B_{\mathrm{rms}}^{95\%}\right) = 0.05. \tag*{(67)}

As shown in Figure S6 and Table S1, the success probability at the reference field ranges from 99.1% to 99.4%. The 95% boundary is reached after reducing the field strength by 7% and lies close to the reference value.

Figure S6. Average search success probability near the 95% threshold for representative DM masses. The horizontal axis shows the fractional change in the field strength BrmsB_{\mathrm{rms}} relative to the reference value BrmsrefB_{\mathrm{rms}}^{\mathrm{ref}} in percentage. The colored curves show the averaged success probability P‾bin\overline{P}_{\mathrm{bin}} of different stochastic DM signal with different mass for T=5×105τDM(10 μeV)=140 sT = 5 \times10^{5}\tau_{\mathrm{DM}}(10\,\mu\mathrm{eV}) = 140\,\mathrm{s}, L=40L = 40, N=22500N = 22500, G=117G = 117, and detuning δ\delta equal to the bin width β\beta. The gray curve shows the corresponding result with a monochromatic signal while keeping the same finite length QSP sequence.

mam_a (μeV\mu\mathrm{eV})B‾rms,95\overline{B}_{\mathrm{rms},95} (eV)gaγγ,95g_{a\gamma\gamma,95} (GeV−1\mathrm{GeV}^{-1})P‾bin\overline{P}_{\mathrm{bin}} at reference
101.47×10−131.47 \times10^{-13}3.18×10−123.18 \times10^{-12}0.994
201.47×10−131.47 \times10^{-13}4.48×10−124.48 \times10^{-12}0.991
501.45×10−131.45 \times10^{-13}7.01×10−127.01 \times10^{-12}0.991
1001.43×10−131.43 \times10^{-13}9.71×10−129.71 \times10^{-12}0.992

Table S1. Representative 95% single-search sensitivities to the effective DM–sensor coupling strength BrmsB_{\mathrm{rms}} and the axion–photon coupling gaγγg_{a\gamma\gamma}, for fixed T=5×105τDM(10 μeV)=140 sT = 5 \times10^{5}\tau_{\mathrm{DM}}(10\ \mu\mathrm{eV}) = 140\,\mathrm{s}, L=40L = 40, N=22500N = 22500, and G=117G = 117, with alternating QSP phases. The final column gives the success probability at the reference field BrmsrefB_{\mathrm{rms}}^{\mathrm{ref}}, defined by θˉk∗=π/4\bar{\theta}_{k_*} = \pi/4.

Detection probability after repeated searches

If a search misses the signal, the full protocol can be repeated to increase the cumulative success probability. In each repetition, the control register and sensor are reinitialized, the complete QSP and Grover search protocol is executed, and the resulting signal bin is verified. Let nn denote the number of repeated searches. Assuming independent DM field realizations and the same average success probability for each search, the probabilities of missing the signal in all nn searches and detecting it at least once are

Pmiss(n)=(1−P‾bin)n,Pdet(n)=1−(1−P‾bin)n.(68)P_{\mathrm{miss}}^{(n)} = (1 - \overline{P}_{\mathrm{bin}})^{n}, \qquad P_{\mathrm{det}}^{(n)} = 1 - (1 - \overline{P}_{\mathrm{bin}})^{n}. \tag*{(68)}

Table S2 applies this repeated search strategy to shorter sensing durations. Each row is calibrated to the same mean phase, θˉk∗=π/4\bar{\theta}_{k_*} = \pi/4, so a shorter sensing duration requires a stronger field. However, shortening the sensing duration of each ESU increases the phase fluctuations and reduces the success probability of an individual search. This loss can be compensated by repeating the complete search. We define n95n_{95} as the smallest integer nn for which the cumulative detection probability satisfies Pdet(n)≥0.95P_{\mathrm{det}}^{(n)} \ge0.95.

T/τDM(ma)T/\tau_{\mathrm{DM}}(m_a)P‾bin\overline{P}_{\mathrm{bin}}n95n_{95}Pdet(n95)P_{\mathrm{det}}^{(n_{95})}Brms,π/4B_{\mathrm{rms},\pi/4} (eV)n952GLTn_{95}^{2}GLT (h)
5×1025 \times10^{2}0.37270.9615.04×10−125.04 \times10^{-12}2.55
5×1035 \times10^{3}0.84020.9751.59×10−121.59 \times10^{-12}7.28
5×1045 \times10^{4}0.97810.9785.04×10−135.04 \times10^{-13}36.4
5×1055 \times10^{5}0.99410.9941.59×10−131.59 \times10^{-13}364

Table S2. Comparison of sensing durations and search repetitions at ma=10−5 eVm_a = 10^{-5}\,\mathrm{eV}. All rows use L=40L = 40, N=22500N = 22500, and G=117G = 117. Each is independently calibrated to the same mean phase, θˉk∗=π/4\bar{\theta}_{k_*} = \pi/4.

For T=5×103τDM(10−5 eV)=1.4 sT = 5 \times10^{3}\tau_{\mathrm{DM}}(10^{-5}\,\mathrm{eV}) = 1.4\,\mathrm{s}, the single-search success probability at the reference field is 84.0%, so two independent searches yield a cumulative detection probability of 97.5%. We can therefore lower the field strength until the two search detection probability falls to 95%. According to Eq. (68), this requires (1−P‾bin)2=0.05(1 - \overline{P}_{\mathrm{bin}})^2 = 0.05, or P‾bin=1−0.05≃0.776\overline{P}_{\mathrm{bin}} = 1 - \sqrt{0.05} \simeq0.776 for each search. At the mass ma=10−5 eVm_a = 10^{-5}\,\mathrm{eV} used in Table S2, the corresponding effective DM–sensor coupling strength is Brms,95(n=2)=1.45×10−12 eVB_{\mathrm{rms},95}^{(n=2)} = 1.45 \times10^{-12}\,\mathrm{eV}. For comparison, a single search with T=5×105τDM(10−5 eV)T = 5 \times10^{5}\tau_{\mathrm{DM}}(10^{-5}\,\mathrm{eV}) reaches a 95% success probability at Brms,95≃1.47×10−13 eVB_{\mathrm{rms},95} \simeq1.47 \times10^{-13}\,\mathrm{eV} (Table S1). The two shorter searches require a total sensing time of 7.28 h, compared with 364 h for the single longer search. This comparison illustrates the trade off between sensing time and sensitivity. Repeated shorter searches achieve the desired detection probability in less time for stronger signals, whereas a longer search can detect weaker signals. We leave the optimization of this search strategy here to a future study.

References

  1. [1]Y. Bao, D. Y. Cheong, N. L. Rodd, J. Takach, L-T. Wang, and K. Zhou, Phys. Rev. Lett. 136, 171601 (2026), arXiv:2510.05198 [hep-ph].DOI
  2. [2]Y. Bao, D. Y. Cheong, N. L. Rodd, J. Takach, L-T. Wang, and K. Zhou, (2026), arXiv:2607.27313 [hep-ph].arxiv.org/abs/2607.27313
  3. [3]P. W. Graham and S. Rajendran, Phys. Rev. D 88, 035023 (2013), arXiv:1306.6088 [hep-ph].DOI
  4. [4]D. Budker, P. W. Graham, M. Ledbetter, S. Rajendran, and A. Sushkov, Phys. Rev. X 4, 021030 (2014), arXiv:1306.6089 [hep-ph].DOI
  5. [5]P. W. Graham, D. E. Kaplan, J. Mardon, S. Rajendran, W. A. Terrano, L. Tramh, and T. Wilkason, Phys. Rev. D 97, 055006 (2018), arXiv:1709.07852 [hep-ph].DOI
  6. [6]C. Abel et al., Phys. Rev. X 7, 041034 (2017), arXiv:1708.06367 [hep-ph].DOI
  7. [7]T. Wu et al., Phys. Rev. Lett. 122, 191302 (2019), arXiv:1901.10843 [hep-ex].DOI
  8. [8]A. Garcon et al., Sci. Adv. 5, eaax4539 (2019), arXiv:1902.04644 [hep-ex].DOI
  9. [9]T. S. Roussy et al., Phys. Rev. Lett. 126, 171301 (2021), arXiv:2006.15787 [hep-ph].DOI
  10. [10]Aybas et al., Phys. Rev. Lett. 126, 141802 (2021), arXiv:2101.01241 [hep-ex].DOI
  11. [11]K. Wei et al., Rept. Prog. Phys. 88, 057801 (2025), arXiv:2306.08039 [hep-ph].DOI
  12. [12]M. Jiang, H. Su, G. Garcon, X. Peng, and D. Budker, Nature Phys. 17, 1402 (2021), arXiv:2102.01448 [hep-ph].DOI
  13. [13]I. M. Bloch, G. Ronen, R. Shaham, O. Katz, T. Volansky, and O. Katz, Sci. Adv. 8, abl8919 (2022), arXiv:2105.04603 [hep-ph].DOI
  14. [14]I. M. Bloch, R. Shaham, Y. Hochberg, E. Kuflik, T. Volansky, and O. Katz, Nature Commun. 14, 5784 (2023), arXiv:2209.13588 [hep-ph].DOI
  15. [15]A. Arza et al., (2025), arXiv:2511.16553 [hep-ph].arxiv.org/abs/2511.16553
  16. [16]P. Zhao, O. Behrens, M. Benning, P. Fierlinger, X. Han, M. Huber, F. Kuchler, Y. V. Stadnik, and P. Wunderl, Phys. Rev. D 112, 112016 (2025), arXiv:2511.08064 [hep-ph].DOI
  17. [17]A. Rigoulet, S. Nanos, I. K. Kominis, and D. Antypas, Phys. Rev. D 113, 072011 (2026), arXiv:2601.09638 [physics.atom-ph].arxiv.org/abs/2601.09638
  18. [18]A. Arvanitaki, J. Huang, and K. Van Tilburg, Phys. Rev. D 91, 015015 (2015), arXiv:1405.2925 [hep-ph].DOI
  19. [19]K. Van Tilburg, N. Leefer, L. Bougas, and D. Budker, Phys. Rev. Lett. 115, 011802 (2015), arXiv:1503.06886 [physics.atom-ph].DOI
  20. [20]A. Hees, J. Guéna, M. Abgrall, S. Bize, and P. Wolf, Phys. Rev. Lett. 117, 061301 (2016), arXiv:1604.08514 [gr-qc].DOI
  21. [21]C. J. Kennedy, E. Oelker, J. M. Robinson, T. Bothwell, D. Kedar, W. R. Milner, G. E. Marti, A. Derevianko, and J. Ye, Phys. Rev. Lett. 125, 201302 (2020), arXiv:2008.08773 [physics.atom-ph].DOI
  22. [22]M. Filzinger, S. Dörscher, R. Lange, J. Klose, M. Steinel, E. Benkler, E. Peik, C. Lisdat, and N. Huntemann, Phys. Rev. Lett. 130, 253001 (2023), arXiv:2301.03433 [physics.atom-ph].DOI
  23. [23]J. Arakawa et al., (2026), arXiv:2602.16804 [hep-ph].arxiv.org/abs/2602.16804
  24. [24]S. Chen, H. Fukuda, T. Inada, T. Moroi, T. Nitta, and T. Sichanugrist, Phys. Rev. Lett. 131, 211001 (2023), arXiv:2212.03884 [hep-ph].arxiv.org/abs/2212.03884
  25. [25]S. Chen, H. Fukuda, T. Inada, T. Moroi, T. Nitta, and T. Sichanugrist, Phys. Rev. D 110, 115021 (2024), arXiv:2407.19755 [hep-ph].arxiv.org/abs/2407.19755
  26. [26]R. Kang, Q. Hu, X. Cai, W. Yu, J. Zhou, X. Rong, and J. Du, Phys. Rev. Lett. 135, 181004 (2025), arXiv:2503.18315 [hep-ph].arxiv.org/abs/2503.18315
  27. [27]H. Zheng, M. Silveri, R. T. Brierley, S. M. Girvin, and K. W. Lehnert, (2016), arXiv:1607.02529 [hep-ph].arxiv.org/abs/1607.02529
  28. [28]M. Malnou, D. A. Palken, B. M. Brubaker, L. Vale, G. C. Hilton, and K. W. Lehnert, Phys. Rev. X 9, 021023 (2019), [Erratum: Phys.Rev.X 10, 039902 (2020)], arXiv:1809.06470 [quant-ph].DOI
  29. [29]K. M. Backes et al. (HAYSTAC), Nature 590, 238 (2021), arXiv:2008.01853 [quant-ph].DOI
  30. [30]K. Wurtz, B. M. Brubaker, Y. Jiang, E. P. Ruddy, D. A. Palken, and K. W. Lehnert, PRX Quantum 2, 040350 (2021), arXiv:2107.04147 [quant-ph].arxiv.org/abs/2107.04147
  31. [31]A. J. Brady, C. Gao, R. Harnik, Z. Liu, Z. Zhang, and Q. Zhuang, PRX Quantum 3, 030333 (2022), arXiv:2203.05375 [quant-ph].DOI
  32. [32]S. Chen, H. Fukuda, T. Inada, T. Moroi, T. Nitta, and T. Sichanugrist, Phys. Rev. Lett. 133, 021801 (2024), arXiv:2311.10413 [hep-ph].DOI
  33. [33]A. Ito, R. Kitano, W. Nakano, and R. Takai, JHEP 02, 124 (2024), arXiv:2311.11632 [hep-ph].DOI
  34. [34]M. H. Zaheer, N. J. Matjelo, D. B. Hume, M. S. Safronova, and D. R. Leibbrandt, Phys. Rev. A 111, 012601 (2025), arXiv:2302.12956 [quant-ph].arxiv.org/abs/2302.12956
  35. [35]M. J. Jewell et al. (HAYSTAC), Phys. Rev. D 107, 072007 (2023), arXiv:2301.09721 [hep-ex].arxiv.org/abs/2301.09721
  36. [36]X. Bai et al. (HAYSTAC), Phys. Rev. Lett. 134, 151006 (2025), arXiv:2409.08998 [hep-ex].DOI
  37. [37]T. Sichanugrist, H. Fukuda, T. Moroi, K. Nakayama, S. Chigusa, N. Mizoochi, M. Hazumi, and Y. Matsuzaki, Phys. Rev. A 111, 042605 (2025), arXiv:2410.21699 [quant-ph].arxiv.org/abs/2410.21699
  38. [38]H. Shi, A. J. Brady, W. Görecki, L. Maccone, R. Di Candia, and Q. Zhuang, npj Quantum Inf. 11, 48 (2025), arXiv:2409.04656 [quant-ph].DOI
  39. [39]P. He, J. Shu, B. Xu, and J. Xu, (2025), arXiv:2512.14821 [hep-ph].arxiv.org/abs/2512.14821
  40. [40]P. Zheng et al., Phys. Rev. Lett. 136, 171002 (2026), arXiv:2507.23538 [quant-ph].DOI
  41. [41]B. Freiman, X. You, A. C. Y. Li, R. Cervantes, T. Kim, A. Grassellino, R. Harnik, and Y. Lu, (2025), arXiv:2510.26754 [quant-ph].arxiv.org/abs/2510.26754
  42. [42]S. Chen, H. Fukuda, Y. Iiyama, Y. Mino, T. Moroi, M. Nakahara, T. Nitta, and T. Sichanugrist, Phys. Rev. D 113, 055014 (2026), arXiv:2510.01816 [hep-ph].arxiv.org/abs/2510.01816
  43. [43]H. Fukuda, T. Moroi, and T. Sichanugrist, Phys. Rev. Lett. 137, 021001 (2026), arXiv:2511.03253 [hep-ph].DOI
  44. [44]H. Fukuda, Y. Matsuzaki, and T. Sichanugrist, Phys. Rev. Lett. 135, 241802 (2025), arXiv:2506.19614 [hep-ph].DOI
  45. [45]D. J. E. Marsh, Phys. Rept. 643, 1 (2016), arXiv:1510.07633 [astro-ph.CO].DOI
  46. [46]R. T. Co, J. Hall, and K. Harigaya, Phys. Rev. Lett. 124, 251802 (2020), arXiv:1910.14152 [hep-ph].DOI
  47. [47]C. A. J. O’Hare, PoS COSMICWISPers, 040 (2024), arXiv:2403.17697 [hep-ph].DOI
  48. [48]P. Arias, D. Cadamuro, M. Goodsell, J. Jaeckel, J. Redondo, and A. Ringwald, JCAP 06, 013 (2012), arXiv:1201.5902 [hep-ph].DOI
  49. [49]P. Svrcek and E. Witten, JHEP 06, 051 (2006), arXiv:hep-th/0605206.
  50. [50]A. Arvanitaki, S. Dimopoulos, S. Dubovsky, N. Kaloper, and J. March-Russell, Phys. Rev. D 81, 123530 (2010), arXiv:0905.4720 [hep-th].DOI
  51. [51]L. K. Grover, (1996), 10.1145/237814.237866, arXiv:quant-ph/9605043.arxiv.org/abs/quant-ph/9605043
  52. [52]L. K. Grover, Phys. Rev. Lett. 79, 325 (1997), arXiv:quant-ph/9706033.DOI
  53. [53]R. R. Allen, F. Machado, I. L. Chuang, H.-Y. Huang, and S. Choi, (2025), arXiv:2501.07625 [quant-ph].arxiv.org/abs/2501.07625
  54. [54]G. H. Low and I. L. Chuang, Phys. Rev. Lett. 118, 010501 (2017), arXiv:1606.02685 [quant-ph].DOI
  55. [55]J. M. Martyn, Z. M. Rossi, A. K. Tan, and I. L. Chuang, PRX Quantum 2, 040203 (2021), arXiv:2105.02859 [quant-ph].DOI
  56. [56]Y. Xu et al., (2026), arXiv:2609.07613 [quant-ph].arxiv.org/abs/2609.07613
  57. [57]M. Ouellet, P. Sen, X. Wang, S. Roy, X. Song, V. Kremenetski, S. Prabhu, V. Fatemi, and P. L. McMahon, (2026), arXiv:2609.35016 [quant-ph].arxiv.org/abs/2609.35016
  58. [58]J. W. Foster, N. L. Rodd, and B. R. Safdi, Phys. Rev. D 97, 123006 (2018), arXiv:1711.10489 [astro-ph.CO].DOI
  59. [59]G. P. Centers et al., Nature Commun. 12, 7321 (2021), arXiv:1905.13650 [astro-ph.CO].DOI
  60. [60]D. Y. Cheong, N. L. Rodd, and L.-T. Wang, Phys. Rev. D 111, 015028 (2025), arXiv:2408.04696 [hep-ph].
  61. [61]C. O’Hare, “cajohare/axionlimits: Axionlimits,” https://cajohare.github.io/AxionLimits/ (2020).DOI
  62. [62]Google Quantum AI, “Our focused and responsible approach to quantum computing,” Accessed 16 October 2026.
  63. [63]K. Freese, M. Lisanti, and C. Savage, Rev. Mod. Phys. 85, 1561 (2013), arXiv:1209.3339 [astro-ph.CO].DOI
  64. [64]D. Baxter et al., Eur. Phys. J. C 81, 907 (2021), arXiv:2105.00599 [hep-ex].DOI

AI tools statement

No AI-use declaration is available for this version in Valency.

The available record does not establish whether AI systems or models contributed to this work.

How AI tools are recorded

Paper details

Cite this paper

Publication

Published
Version
Latest

Data & code

No code, data or supplementary files were declared for this version.

Pick where to look, or just type