betaFeedback

WorksPhysics and Astronomy

Efficient quantum phase estimation with adaptive entanglement-assisted Hadamard test

Abstract

The entanglement-assisted Hadamard test (EHT) is a practical method for estimating a quantum phase by amplifying the phase signal. However, the feasible amplification is fundamentally limited by the accuracy of the reference phase, such that the method is inefficient in the high-precision regime. In this work, we propose an algorithm, called adaptive entanglement-assisted Hadamard test (AEHT), that iteratively refines the reference phase, enabling progressively stronger amplification as the iteration goes by. We further consider the imperfect eigenstate preparation scenario, where a systematic bias is unavoidable when estimating the quantum phase with the conventional EHT. Such a bias can be suppressed by the proposed AEHT. Moreover, taking physical implementation into consideration, we adopt device-restart count to measure the cost of quantum phase estimation, rather than shot count. The numerical experiments confirm the effectiveness of the proposed AEHT compared with conventional methods under this measure. By unlocking the full amplification power of large entangled states, this work offers an efficient method to estimate high-precision quantum phase on near-term quantum processors.

Introduction

Quantum computation is expected to offer exponential advantages over its classical counterparts, potentially enabling the efficient solution of problems that are intractable for classical computers. Quantum phase estimation (QPE) is one of the most fundamental subroutines in quantum computing, providing a systematic procedure for extracting the eigenphase of a unitary operator given access to the corresponding eigenstate [1, 2, 3, 4]. QPE constitutes the computational backbone of Shor’s factoring algorithm [5, 6, 7, 8], the Harrow–Hassidim–Lloyd algorithm for linear systems of equations [9, 10], quantum entropy estimation [11], and quantum simulation of molecular Hamiltonians [12, 13, 14, 15, 16, 17]. However, estimating the quantum phase by conventional QPE [1, 2] demands coherence times that scale exponentially with the desired precision and are highly sensitive to experimental noise [18, 19]. Consequently, without full quantum error correction, conventional QPE algorithms quickly become impractical, which severely limits their applicability on near-term quantum devices.

Standard Hadamard test (SHT) [2, 20] provides a practical alternative with shallow circuits to estimate the quantum phase, which extracts the quantum phase θ\theta through repeated measurements (as shown in Figure 1). Specifically, suppose a coarse reference phase ϑ\vartheta is known, then by conducting a quantum circuit for multiple shot counts, the expectation value S^\hat{S} corresponds to the estimate of sin⁡(θ−ϑ)\sin(\theta-\vartheta), and therefore the estimated phase can be directly calculated θ^=arcsin⁡(S^)+ϑ\hat{\theta}=\arcsin(\hat{S})+\vartheta. Its statistical error nevertheless decreases only as the inverse square root of the shot counts, so estimating a phase to accuracy generally requires O(1/ϵ2)\mathcal{O}(1/\epsilon^2) shot counts.

Quantum circuit of standard Hadamard test with reference.

Figure 1. Quantum circuit of standard Hadamard test with reference.

For a further step, entanglement-assisted Hadamard test (EHT) [21, 22, 23, 24] use mm-qubit Greenberger-Horne-Zeilinger (GHZ) entangled state and parallel controlled unitary to amplify phase signal, i.e., the expectation value S^\hat{S} corresponds to the estimate of sin⁡(m(θ−ϑ))\sin(m(\theta-\vartheta)), and the quantum phase is estimated as θ^=1marcsin⁡(S^)+ϑ\hat{\theta}=\frac{1}{m}\arcsin(\hat{S})+\vartheta (as shown in Figure 2). With the assistance of quantum entanglement, to achieve an estimated phase with accuracy ϵ\epsilon, the required number of shot counts reduces to O(1/(mϵ)2)\mathcal{O}(1/(m\epsilon)^2). The larger the GHZ state that is utilized, the fewer shot counts are required. But in practice, the GHZ state size mm cannot be infinitely large, as large mm leads to m∣θ−ϑ∣>π2m\lvert\theta-\vartheta\rvert>\frac{\pi}{2}, making the arcsin⁡(S^)\arcsin(\hat{S}) ambiguous. In other words, a coarse reference phase therefore permits only a small amplification, preventing the direct use of large GHZ states even when sufficient hardware resources are available. This limitation becomes particularly important when high precision is required. The ambiguity problem can be avoided by estimating both sin⁡(θ−ϑ)\sin(\theta-\vartheta) and cos⁡(θ−ϑ)\cos(\theta-\vartheta). But meanwhile, the shot counts are in doubt, making it inefficient.

Quantum circuit of entanglement-assisted Hadamard test with m-qubit GHZ state

Figure 2. Quantum circuit of entanglement-assisted Hadamard test with mm-qubit GHZ state.

In this work, we address this limitation by developing an algorithm, called adaptive entanglement-assisted Hadamard test (AEHT). Starting from a coarse reference phase, we first use a modestly sized GHZ state whose amplification is safe given the current uncertainty. The measurements sharpen the estimate, and this improved estimate becomes the reference for the next round. With a tighter reference, a larger GHZ state becomes admissible, so the next round can amplify the remaining phase signal more strongly. Repeating this process allows the amplification to grow as the reference improves, keeping the required shot counts under control even at high precision. We also extend this procedure to the more realistic situation in which the prepared state is not an exact eigenstate. There the Hadamard signal has the form ρeiϑ\rho e^{i\vartheta}, where the amplitude ρ\rho is smaller than one. In reality, the amplitude is generally unknown, inducing a bias in phase estimation that cannot be removed even if more shot counts are provided. We show that the proposed AEHT algorithm suppresses this bias, such that the estimation error continues to decrease round by round. Adaptive phase estimation has been explored before, notably in entanglement-free interferometric schemes that use repeated phase shifts and Bayesian feedback [25]. Those methods, however, rely on many sequential applications of the unknown phase and therefore require long coherence times that remain unrealistic on near-term hardware. Here we target a more practical regime, in which the coherence time is limited but the processor instead provides many qubits that can be entangled and operated in parallel. We therefore keep the entanglement-assisted Hadamard test and make the reference adaptive, using GHZ amplification to trade for fewer shot counts.

The shot count has been used to quantify the realization cost of quantum algorithms [3, 11, 26]. However, such a measure is unfair when comparing EHT with different sizes of mm-qubit GHZ entangled states. The shot with large GHZ entangled states takes up more quantum systems, while the shot with small GHZ entangled states takes up fewer quantum systems. The available quantum systems is also a critical resource in quantum computing, but the shot count does not take this into account. In fact, on a large quantum processor, many shots can be executed in parallel within a single experimental cycle. For a quantum device, the truly time-consuming operations are loading, rearranging, and initializing, which is particularly pronounced on neutral-atom platforms [27, 28, 29, 30]. Therefore, we adopt the device-restart count to quantify the realization cost, instead of the shot count. Under this measure, the advantage of the adaptive scheme becomes clear. A fixed-amplification EHT must repeat the same circuit until the required precision is reached, so its restart count grows as O(1/ϵ2)O(1/\epsilon^2). In contrast, the AEHT progressively enlarges the GHZ state as the reference improves, keeping the per-round shot budget roughly constant; its restart count therefore grows only as O(1/ϵ)O(1/\epsilon), up to logarithmic factors, and the ratio to the fixed-amplification cost vanishes as ϵ→0\epsilon\to0. When the GHZ size is eventually limited by the available number of qubits, the adaptive scheme saturates and the scaling returns to O(1/ϵ2)O(1/\epsilon^2), but it still retains a constant-factor advantage over a fixed-amplification method. The numerical experiments are conducted to demonstrate the advantage of the proposed AEHT over the conventional EHT in terms of device-restart count. This work makes entanglement-assisted phase estimation practical in the high-precision regime by adapting the reference to the estimate and by measuring cost in terms of device-restart counts rather than shot counts.

The paper is organized as follows. In § 1.1 we review the standard and entanglement-assisted Hadamard tests and their shot count requirements. Section III introduces the adaptive entanglement-assisted Hadamard test for exact eigenstates and analyzes how the reference can be refined to permit larger amplification. Section IV extends the AEHT to imperfect state preparation scenario. Section V introduces the device-restart count metric, compares fixed-amplification and adaptive schemes, and discusses the advantage as well as the effect of hardware-limited amplification. Section VI presents numerical experiments for exact and imperfect eigenstates, including a circuit-noise robustness study. We conclude and discuss open directions in Sec. VII.

Hadamard-test-based Phase Estimation

Estimating the quantum phase associated with the eigenvalue of a unitary operator UU is a fundamental task in quantum algorithms [1, 2]. Given a unitary UU and one of its eigenstates ∣ϕ⟩|\phi\rangle satisfying U∣ϕ⟩=eiθ∣ϕ⟩U|\phi\rangle= e^{i\theta}|\phi\rangle, the goal of phase estimation is to estimate the eigenphase θ\theta to some desired precision. Conventional QPE algorithm, as demonstrated in Appendix A, requires deep quantum circuits, which in turn demand long coherence times from the quantum hardware. However, near-term quantum hardware cannot meet this requirement. Here we introduce two commonly used alternatives to estimate quantum phase: the standard Hadamard test and the entanglement-assisted Hadamard test. We also establish explicit finite-sample shot-count bounds that account for reference-phase uncertainty. These bounds quantify how a sufficient shot count depends jointly on the reference-phase uncertainty, amplification, target accuracy, and failure probability.

Phase estimation with standard Hadamard test

We first introduce the standard Hadamard test to estimate the eigenphase θ\theta. The quantum circuit for phase estimation with the standard Hadamard test is shown in Figure 1. At the beginning, we give a reference phase ϑ\vartheta, which is a guess of the true phase. Then, we prepare one ancilla in ∣0⟩|0\rangle, apply a Hadamard gate, and controlled-UU to one copy of the eigenstate ∣ϕ⟩|\phi\rangle of unitary UU. Via phase kickback, the ancilla state becomes 12(∣0⟩+eiθ∣1⟩)\frac{1}{\sqrt{2}}(|0\rangle+ e^{i\theta}|1\rangle). Then, apply the single-qubit reference phase gate Φ(ϑ)\Phi(\vartheta), which maps ∣0⟩→∣0⟩|0\rangle\to|0\rangle and ∣1⟩→−ie−iϑ∣1⟩|1\rangle\to-ie^{-i\vartheta}|1\rangle. Apply the final Hadamard gate and measure the ancilla. The measurement is denoted as X∈{−1,1}X \in\{-1,1\}. With NN independent shots, the average value is S^:=1N∑j=1NX(j)\hat{S} := \frac{1}{N}\sum_{j=1}^{N}X^{(j)}.

The expectation value of the measurement results is E[S^]=sin⁡(θ−ϑ)\mathbb{E}[\hat{S}] = \sin(\theta-\vartheta), which is derived in Appendix B. Therefore S^\hat{S} estimates sin⁡(θ−ϑ)\sin(\theta-\vartheta). The quantum phase can be directly estimated by

θ^=ϑ+arcsin⁡(S^).(1)\hat{\theta} = \vartheta+ \arcsin(\hat{S}). \tag*{(1)}

Note that arcsin⁡(S^)\arcsin(\hat{S}) might not be unique. To avoid the ambiguity, one has to guarantee the reference phase is close to the true phase, i.e., ∣θ−ϑ∣<π/2|\theta-\vartheta| < \pi/2. In reality, the value ∣θ−ϑ∣|\theta-\vartheta| and the true phase θ\theta are unknown. But one can conduct a few measurements to get a coarse estimation, and then set the estimate velopment. estimated coarse phase as the reference. In this case, one can assume ∣θ−ϑ∣≤Δ|\theta-\vartheta|\leq\Delta, where Δ<π/2\Delta<\pi/2 is some constant. According to Eq. (1), the phase error propagated from the sine-estimation error is approximately

δθ^≈δS^1−S^2≲δS^1−sin⁡2(Δ)\delta_{\hat{\theta}}\approx\frac{\delta_{\hat{S}}}{\sqrt{1-\hat{S}^{2}}}\lesssim\frac{\delta_{\hat{S}}}{\sqrt{1-\sin^{2}(\Delta)}}

where (1−S^2)−1/2(1-\hat{S}^{2})^{-1/2} is the derivative of arcsin⁡(S^)\arcsin(\hat{S}). If Δ\Delta approaches ±π/2\pm\pi/2, the upper bound of the estimation error could go to infinity. In this case, to achieve the required phase estimation accuracy δθ^≤ϵ\delta_{\hat{\theta}}\leq\epsilon, the estimation error δS^\delta_{\hat{S}} is supposed to be small enough, and the shot count is supposed to be sufficiently large, which is unacceptable in practice. Therefore, to guarantee the efficiency of phase estimation, the upper bound Δ\Delta is supposed to be sufficiently small. The analysis of the shot count is given in Lemma 1.

Lemma 1 (Shot count for the SHT) Let ∣ϕ⟩|\phi\rangle be an eigenstate of a unitary UU with U∣ϕ⟩=eiθ∣ϕ⟩U|\phi\rangle=e^{i\theta}|\phi\rangle, and let ϑ\vartheta be a reference phase satisfying ∣θ−ϑ∣≤Δ|\theta-\vartheta|\leq\Delta for some constant Δ<π/2\Delta<\pi/2. To estimate θ\theta via the standard Hadamard test within additive error ϵ\epsilon and with success probability at least 1−pfail1-p_{\mathrm{fail}}, it suffices to take a shot count

Nstd=⌈2rstd2ln⁡2pfail⌉.N_{\mathrm{std}}=\left\lceil\frac{2}{r_{\mathrm{std}}^{2}}\ln\frac{2}{p_{\mathrm{fail}}}\right\rceil.

where rstd=ϵ(cos⁡2Δ+ϵ2−ϵsin⁡Δ)/(1+ϵ2)r_{\mathrm{std}}=\epsilon\left(\sqrt{\cos^{2}\Delta+\epsilon^{2}}-\epsilon\sin\Delta\right)/(1+\epsilon^{2}).

The proof of Lemma 1 is shown in Appendix § 1.5.3 2. The value rstdr_{\mathrm{std}} can be written as the Taylor expansion form, i.e., rstd=ϵcos⁡Δ+O(ϵ2)r_{\mathrm{std}}=\epsilon\cos\Delta+O(\epsilon^{2}). Since the target accuracy is generally tiny, the higher-order terms O(ϵ2)O(\epsilon^{2}) are negligible. Thus, the shot count complexity of phase estimation with standard Hadamard test is O(1/ϵ2)O(1/\epsilon^{2}) for target accuracy ϵ\epsilon.

Phase estimation with entanglement-assisted Hadamard test

The standard Hadamard test requires O(1/ϵ2)O(1/\epsilon^{2}) shots, which is expensive on near-term devices. One way to reduce this shot count is to use quantum entanglement [21, 22, 23, 24]. Specifically, prepare an mm-qubit Greenberger-Horne-Zeilinger (GHZ) state as ancilla system

∣GHZm⟩:=12(∣0⟩⊗m+∣1⟩⊗m).|\mathrm{GHZ}_{m}\rangle:=\frac{1}{\sqrt{2}}\left(|0\rangle^{\otimes m}+|1\rangle^{\otimes m}\right).

Then apply controlled-UU in parallel to the mm-copies of the eigenstate ∣ϕ⟩|\phi\rangle of unitary UU. Afterwards, the phase block Φm(ϑ)\Phi_m(\vartheta) with reference phase ϑ\vartheta acts on the GHZ ancilla systems, which maps ∣0⟩⊗m→∣0⟩⊗m|0\rangle^{\otimes m}\to|0\rangle^{\otimes m} and ∣1⟩⊗m→−ie−imϑ∣1⟩⊗m|1\rangle^{\otimes m}\to-ie^{-im\vartheta}|1\rangle^{\otimes m}. After the final Hadamards, measure the ancilla qubits in the computational basis and denote the outcome as z∈{0,1}mz\in\{0,1\}^{m}, and the Hamming weight of the measurements is defined as ∣z∣:=∑j=1mzj|z|:=\sum_{j=1}^{m}z_j. The quantum circuit for the phase estimation with entanglement-assisted Hadamard test is shown in Figure 2.

Denote Y:=(−1)∣z∣∈{+1,−1}Y:=(-1)^{|z|}\in\{+1,-1\}, and the corresponding average value over NN independent shots is S^=1N∑j=1NY(j)\hat{S}=\frac{1}{N}\sum_{j=1}^{N}Y^{(j)}. The expectation value of the measurement results is E[Y]=sin⁡(m(θ−ϑ))\mathbb{E}[Y]=\sin(m(\theta-\vartheta)), which is derived in Appendix B. Therefore, S^\hat{S} estimates sin⁡(m(θ−ϑ))\sin(m(\theta-\vartheta)). Note that the phase signal is amplified by mm times, thus the quantity mm is called the amplification. The quantum phase can be directly estimated by

θ^:=ϑ+1marcsin⁡(S^).(2)\hat{\theta}:=\vartheta+\frac{1}{m}\arcsin(\hat{S}). \tag*{(2)}

Due to the ambiguity of arcsin⁡(S^)\arcsin(\hat{S}), similar to the standard Hadamard test, we require the residual phase to lie on an unambiguous branch, i.e., ∣θ−ϑ∣≤Δ|\theta-\vartheta|\leq\Delta with mΔ<π/2m\Delta<\pi/2.

The phase error propagated from the sine-estimation error is approximately

δθ^≈δS^m1−S^2≲δS^m1−sin⁡2(mΔ).(3)\delta_{\hat{\theta}}\approx\frac{\delta_{\hat{S}}}{m\sqrt{1-\hat{S}^{2}}}\lesssim\frac{\delta_{\hat{S}}}{m\sqrt{1-\sin^{2}(m\Delta)}}. \tag*{(3)}

where (1−S^2)−1/2(1-\hat{S}^{2})^{-1/2} is the derivative of arcsin⁡(S^)\arcsin(\hat{S}). When mΔm\Delta approaches to ±π/2\pm\pi/2, the upper bound of the estimation error could go to infinity. To address this problem, the choice of amplification mm should be constrained by m≤χ/Δm\leq\chi/\Delta, where χ<π/2\chi<\pi/2 is a reasonable constant called branch margin. The shot count to obtain the phase within the required accuracy is given in Lemma 2.

Lemma 2 (Shot count for the EHT) Let ∣ϕ⟩|\phi\rangle be an eigenstate of a unitary UU with U∣ϕ⟩=eiθ∣ϕ⟩U|\phi\rangle=e^{i\theta}|\phi\rangle, and let ϑ\vartheta be a reference phase satisfying ∣θ−ϑ∣≤Δ|\theta-\vartheta|\leq\Delta for some constant Δ<π2m\Delta<\frac{\pi}{2m}. Fix a branch margin χ<π/2\chi<\pi/2 and choose an integer amplification mm such that mΔ≤χm\Delta\leq\chi. To estimate the phase θ\theta via the mm-qubit GHZ state EHT within additive error ϵ\epsilon and with success probability at least 1−pfail1-p_{\mathrm{fail}}, it suffices to take a shot

count

NEHT=⌈2rEHT2ln⁡2pfail⌉,N_{\mathrm{EHT}}=\left\lceil\frac{2}{r_{\mathrm{EHT}}^2}\ln\frac{2}{p_{\mathrm{fail}}}\right\rceil,

where

rEHT=mϵ(cos⁡2(mΔ)+m2ϵ2−mϵsin⁡(mΔ))1+m2ϵ2.(4)r_{\mathrm{EHT}}=\frac{m\epsilon\left(\sqrt{\cos^2(m\Delta)+m^2\epsilon^2}-m\epsilon\sin(m\Delta)\right)}{1+m^2\epsilon^2}. \tag*{(4)}

The proof is shown in Appendix § 1.5.3 3. The value rEHTr_{\mathrm{EHT}} can be written as the Taylor expansion form rEHT=mϵcos⁡(mΔ)+O((mϵ)2)r_{\mathrm{EHT}}=m\epsilon\cos(m\Delta)+O((m\epsilon)^2). Since the target accuracy ϵ\epsilon is generally tiny, the high-order term O((mϵ)2)O((m\epsilon)^2) is negligible. Therefore, the shot count of phase estimation with mm-qubit GHZ state EHT is

NEHT≈2m2ϵ2cos⁡2(mΔ)ln⁡2pfail.(5)N_{\mathrm{EHT}}\approx\frac{2}{m^2\epsilon^2\cos^2(m\Delta)}\ln\frac{2}{p_{\mathrm{fail}}}. \tag*{(5)}

Considering the amplification that is upper bounded by m≤⌊χ/Δ⌋m\le\lfloor\chi/\Delta\rfloor, the natural choice of amplification is m=⌊χ/Δ⌋m=\lfloor\chi/\Delta\rfloor, because in the general case, the larger amplification mm implies fewer shot counts. Thus, we roughly have mΔ≈χm\Delta\approx\chi, and the shot count complexity becomes NEHT=O(1/(mϵ)2)N_{\mathrm{EHT}}=O(1/(m\epsilon)^2). Compared with the SHT, the EHT reduces the required number of shots by a factor of m2m^2. If we ignore the constant mm, then the shot count scales NEHT=O(1/ϵ2)N_{\mathrm{EHT}}=O(1/\epsilon^2). The algorithm of phase estimation with EHT in pseudo-code is provided in Algorithm 1. By setting the amplification m=1m=1, the algorithm collapses to the standard Hadamard test as introduced in § 1.1 A.

Algorithm 1: Phase estimation with EHT
Input: Reference ϑ\vartheta, amplification mm, reference bound Δ\Delta, accuracy ϵ\epsilon, failure probability pfailp_{\mathrm{fail}}.
Output: The estimated phase θ^\hat{\theta}.
1: r←(cos⁡2(mΔ)+m2ϵ2−mϵsin⁡(mΔ))mϵ1+m2ϵ2r\leftarrow\frac{\left(\sqrt{\cos^2(m\Delta)+m^2\epsilon^2}-m\epsilon\sin(m\Delta)\right)m\epsilon}{1+m^2\epsilon^2}
2: N←⌈2r2ln⁡2pfail⌉N\leftarrow\left\lceil\frac{2}{r^2}\ln\frac{2}{p_{\mathrm{fail}}}\right\rceil
3: Run NN entangled Hadamard shots with (m,ϑ)(m,\vartheta) and obtain Y(1),…,Y(N)∈{±1}Y^{(1)},\ldots,Y^{(N)}\in\{\pm1\}
4: S^←1N∑j=1NY(j)\hat{S}\leftarrow\frac{1}{N}\sum_{j=1}^{N}Y^{(j)}
5: Output the estimated phase θ^←ϑ+1marcsin⁡(S^)\hat{\theta}\leftarrow\vartheta+\frac{1}{m}\arcsin(\hat{S}).

Table 1.

Adaptive entanglement-assisted Hadamard test

Compared with the standard Hadamard test (§ 1.1 A), the shot count by entanglement-assisted Hadamard test is reduced by the factor of m2m^2, where mm is the amplification (§ 1.1 B). However, the feasible amplification is fundamentally limited by the accuracy of the reference phase, making the method inefficient in the high-precision regime. In this section, we propose an adaptive entanglement-assisted Hadamard test that iteratively refines the reference phase, enabling progressively larger amplification as the estimate improves.

Specifically, at the beginning, suppose we have a coarse reference phase ϑ0\vartheta_0, whose distance to the true phase θ\theta is upper bounded by ∣θ−ϑ0∣≤Δ0|\theta-\vartheta_0|\le\Delta_0, and the initial amplification is chosen as m0=⌊χΔ0⌋m_0=\left\lfloor\frac{\chi}{\Delta_0}\right\rfloor with a fixed branch margin χ<π/2\chi<\pi/2 and m0Δ0≤χm_0\Delta_0\le\chi. Set the target accuracy as ϵ0=γΔ0\epsilon_0=\gamma\Delta_0, where γ∈(0,1)\gamma\in(0,1) is the contraction factor. Then the estimated quantum phase θ^0\hat{\theta}_0 can be achieved by conducting Algorithm 1. In the following tt-th round, take the estimated phase in the previous round as the new reference phase, i.e., ϑt=θ^t−1\vartheta_t=\hat{\theta}_{t-1}, and the corresponding reference bound is the target accuracy in previous round Δt=ϵt−1=γtΔ0\Delta_t=\epsilon_{t-1}=\gamma^t\Delta_0. Set the amplification as mt=⌊χΔt⌋m_t=\left\lfloor\frac{\chi}{\Delta_t}\right\rfloor, set the target accuracy as ϵt=γϵt−1\epsilon_t=\gamma\epsilon_{t-1}. Conduct the Algorithm 1 to obtain the estimated phase θ^t\hat{\theta}_t of the tt-th round.

The estimated quantum phase of the final round θ^T−1\hat{\theta}_{T-1} is supposed to be the same as the true phase up to a precision ϵ\epsilon, i.e., ∣θ^T−1−θ∣≤γTΔ0≤ϵ|\hat{\theta}_{T-1}-\theta|\le\gamma^T\Delta_0\le\epsilon. Therefore, the total number of round TT should be

T=⌈log⁡1/γΔ0ϵ⌉.(6)T=\left\lceil\log_{1/\gamma}\frac{\Delta_0}{\epsilon}\right\rceil. \tag*{(6)}

For a total successful probability 1−pfail1-p_{\mathrm{fail}}, assuming the per-round failed probabilities ptp_t are equal, we set pt=1−(1−pfail)1/Tp_t=1-(1-p_{\mathrm{fail}})^{1/T}. The phase estimation with iterative entanglement-assisted Hadamard test in pseudo-code is summarized in Algorithm 2.

Algorithm 2: Phase estimation with AEHT
Input: Initial reference ϑ0\vartheta_0, initial reference bound Δ0\Delta_0, target accuracy ϵ\epsilon, contraction factor γ\gamma, branch margin χ\chi, total failure probability pfailp_{\mathrm{fail}}.
Output: The estimated phase θ^\hat{\theta}.
1: T←⌈log⁡1/γ(Δ0/ϵ)⌉T\leftarrow\left\lceil\log_{1/\gamma}(\Delta_0/\epsilon)\right\rceil
2: pround←1−(1−pfail)1/Tp_{\mathrm{round}}\leftarrow1-(1-p_{\mathrm{fail}})^{1/T}
3: for t←0t\leftarrow0 to T−1T-1 do
4: The reference bound of tt-th round Δt←γtΔ0\Delta_t\leftarrow\gamma^t\Delta_0.
5: The amplification mt←⌊χΔt⌋m_t\leftarrow\left\lfloor\frac{\chi}{\Delta_t}\right\rfloor.
6: The target phase estimation accuracy ϵt←γt+1Δ0\epsilon_t\leftarrow\gamma^{t+1}\Delta_0.
7: Conduct Algorithm 1 by taking reference phase ϑt\vartheta_t, amplification mtm_t, reference bound Δt\Delta_t, accuracy ϵt\epsilon_t, and failure probability proundp_{\mathrm{round}} as inputs, and obtain the quantum phase θ^t\hat{\theta}_t.
8: The reference for the next round is ϑt+1←θ^t\vartheta_{t+1}\leftarrow\hat{\theta}_t.
9: end for
10: Output the estimated phase θ^←θ^T−1\hat{\theta}\leftarrow\hat{\theta}_{T-1}.

Table 2.

By Lemma 2, it suffices to choose the shot count of the tt-th round as

Nt=⌈2rt2ln⁡2pround⌉,(7)N_t=\left\lceil\frac{2}{r_t^2}\ln\frac{2}{p_{\mathrm{round}}}\right\rceil, \tag*{(7)}

where

rt≔mtϵt(cos⁡2(mtΔt)+(mtϵt)2−mtϵtsin⁡(mtΔt))1+(mtϵt)2.r_t\coloneqq\frac{m_t\epsilon_t\left(\sqrt{\cos^2(m_t\Delta_t)+(m_t\epsilon_t)^2}-m_t\epsilon_t\sin(m_t\Delta_t)\right)}{1+(m_t\epsilon_t)^2}.

Multiply both numerator and denominator by cos⁡2(mtΔt)+(mtϵt)2+mtϵtsin⁡(mtΔt)\sqrt{\cos^{2}(m_t\Delta_t)+(m_t\epsilon_t)^2+m_t\epsilon_t\sin(m_t\Delta_t)}, this gives

rt=mtϵtcos⁡2(mtΔt)cos⁡2(mtΔt)+(mtϵt)2+mtϵtsin⁡(mtΔt)(8)r_t=\frac{m_t\epsilon_t\cos^{2}(m_t\Delta_t)}{\sqrt{\cos^{2}(m_t\Delta_t)+(m_t\epsilon_t)^2+m_t\epsilon_t\sin(m_t\Delta_t)}} \tag*{(8)}

Using mtΔt≤χm_t\Delta_t\le\chi and mtϵt≤γχm_t\epsilon_t\le\gamma\chi, we obtain the lower bound

rt≥γmtΔtcos⁡2χCχ,γ,(9)r_t\ge\frac{\gamma m_t\Delta_t\cos^{2}\chi}{C_{\chi,\gamma}}, \tag*{(9)}

where Cχ,γ:=1+γ2χ2+γχsin⁡χC_{\chi,\gamma}:=\sqrt{1+\gamma^2\chi^2+\gamma\chi\sin\chi}. Consequently, the shot count of the tt-th round satisfies

Nt≤1+2Cχ,γ2γ2mt2Δt2cos⁡4χln⁡2pround,(10)N_t\le1+\frac{2C_{\chi,\gamma}^{2}}{\gamma^2m_t^2\Delta_t^2\cos^{4}\chi}\ln\frac{2}{p_{\mathrm{round}}}, \tag*{(10)}

and summing over all TT rounds gives

NAEHT=∑t=0T−1Nt≤T+2Cχ,γ2γ2cos⁡4χln⁡2pround∑t=0T−11mt2Δt2.(11)N_{\mathrm{AEHT}}=\sum_{t=0}^{T-1}N_t\le T+\frac{2C_{\chi,\gamma}^{2}}{\gamma^2\cos^{4}\chi}\ln\frac{2}{p_{\mathrm{round}}}\sum_{t=0}^{T-1}\frac{1}{m_t^2\Delta_t^2}. \tag*{(11)}

For the optimal choice mt=⌊χ/Δt⌋≈χ/Δtm_t=\lfloor\chi/\Delta_t\rfloor\approx\chi/\Delta_t, we have mtΔt≈χm_t\Delta_t\approx\chi, so the per-round shot count is approximately constant:

Nt≈2Cχ,γ2γ2χ2cos⁡4χln⁡2pround.(12)N_t\approx\frac{2C_{\chi,\gamma}^{2}}{\gamma^2\chi^2\cos^{4}\chi}\ln\frac{2}{p_{\mathrm{round}}}. \tag*{(12)}

Using pround=1−(1−pfail)1/T≈pfail/Tp_{\mathrm{round}}=1-(1-p_{\mathrm{fail}})^{1/T}\approx p_{\mathrm{fail}}/T, the total shot count becomes

NAEHT≈T+2Cχ,γ2Tγ2χ2cos⁡4χln⁡2Tpfail.(13)N_{\mathrm{AEHT}}\approx T+\frac{2C_{\chi,\gamma}^{2}T}{\gamma^2\chi^2\cos^{4}\chi}\ln\frac{2T}{p_{\mathrm{fail}}}. \tag*{(13)}

By Eq. (6), T=O(log⁡1ϵ)T=O\left(\log\frac{1}{\epsilon}\right). Thus NAEHT=O(log⁡1ϵ)N_{\mathrm{AEHT}}=O\left(\log\frac{1}{\epsilon}\right), up to doubly logarithmic factors.

Phase estimation with imperfect state preparation

In this section, we consider a more practical setting where the prepared eigenstates are imperfect. Let ∣ϕtar⟩|\phi_{\mathrm{tar}}\rangle be the eigenstate of UU, with eigenphase θtar\theta_{\mathrm{tar}}, and let ∣ψ⟩|\psi\rangle denote the state actually prepared on the quantum device. In general, ∣ψ⟩|\psi\rangle contains components from eigenstates other than ∣ϕtar⟩|\phi_{\mathrm{tar}}\rangle and is therefore not an exact eigenstate of UU. Consequently, the measured overlap takes the form

⟨ψ∣U∣ψ⟩=ρeiθψ,(14)\langle\psi|U|\psi\rangle=\rho e^{i\theta_\psi}, \tag*{(14)}

where θψ\theta_\psi is the effective phase associated with the prepared state and ρ=∣⟨ψ∣U∣ψ⟩∣∈[0,1]\rho=|\langle\psi|U|\psi\rangle|\in[0,1] is the amplitude, which quantifies the attenuation of the Hadamard-test signal.

We decompose the total error relative to the target eigenphase into the preparation error ∣θψ−θtar∣|\theta_\psi-\theta_{\mathrm{tar}}| and the algorithmic error ∣θ^ψ−θψ∣|\hat{\theta}_\psi-\theta_\psi| in estimating θψ\theta_\psi, where θ^ψ\hat{\theta}_\psi refers to the estimated phase. The latter further consists of the amplitude-induced bias ϵbias\epsilon_{\mathrm{bias}} and the finite-shot statistical error ϵstat\epsilon_{\mathrm{stat}}. The preparation error is determined by the quality of ∣ψ⟩|\psi\rangle and cannot be reduced by increasing the shot count or by adaptive rounds. The algorithmic error, by contrast, can be systematically controlled. We first derive bounds on the preparation error and the amplitude-induced bias, and then develop an adaptive entanglement-assisted protocol that repeatedly updates the reference phase and jointly optimizes the amplification level and shot count. The resulting procedure suppresses the amplitude-induced bias round by round and estimates the effective phase θψ\theta_\psi to a prescribed accuracy with a success probability.

Error analysis

We now quantify the different error sources introduced above. We first relate the effective phase θψ\theta_\psi to the target eigenphase θtar\theta_{\mathrm{tar}} through the infidelity of the prepared state, thereby obtaining an upper bound on the preparation error. We then analyze the EHT signal generated by ∣ψ⟩|\psi\rangle and decompose the algorithmic error in estimating θψ\theta_\psi into a finite-shot statistical error and an amplitude-induced bias. This decomposition distinguishes the error intrinsic to imperfect state preparation itself from the errors introduced by the phase-estimation procedure, and paves the path for the adaptive protocol developed in the next subsection.

Preparation error

The imperfectly prepared state ∣ψ⟩|\psi\rangle can be decomposed as

∣ψ⟩=1−η∣ϕtar⟩+η∣ϕtar⊥⟩,(15)|\psi\rangle=\sqrt{1-\eta}|\phi_{\mathrm{tar}}\rangle+\sqrt{\eta}|\phi_{\mathrm{tar}}^{\perp}\rangle, \tag*{(15)}

where ∣ϕtar⟩|\phi_{\mathrm{tar}}\rangle is the target eigenstate and ∣ϕtar⊥⟩|\phi_{\mathrm{tar}}^{\perp}\rangle is the state perpendicular to it, i.e., ⟨ϕtar∣ϕtar⊥⟩=0\langle\phi_{\mathrm{tar}}|\phi_{\mathrm{tar}}^{\perp}\rangle=0; here η=1−∣⟨ϕtar∣ψ⟩∣2\eta=1-|\langle\phi_{\mathrm{tar}}|\psi\rangle|^2 is the state-preparation infidelity.

When the state is prepared imperfectly, the measurement does not access the target phase θtar\theta_{\mathrm{tar}} directly; instead, it accesses the effective phase θψ\theta_\psi defined in Eq. (14). The gap ∣θtar−θψ∣|\theta_{\mathrm{tar}}-\theta_\psi| is called the preparation error. When the infidelity η<1/2\eta<1/2, this error is upper bounded by

∣θtar−θψ∣≤arcsin⁡(η1−η)=η+O(η2).|\theta_{\mathrm{tar}}-\theta_\psi|\le\arcsin\left(\frac{\eta}{1-\eta}\right)=\eta+O(\eta^2).

The derivation of the upper bound is shown in Appendix § 1.11.

Algorithmic error

When the same entanglement-assisted Hadamard test is applied to an imperfectly prepared state ∣ψ⟩|\psi\rangle, each shot produces a parity outcome Y∈{−1,1}Y\in\{-1,1\}. For NN independent shots, the sample mean S^=1N∑j=1NY(j)\hat{S}=\frac{1}{N}\sum_{j=1}^{N}Y^{(j)} has expectation

E[S^]=ρmsin⁡(m(θψ−ϑ)),\mathbb{E}[\hat{S}]=\rho^m\sin\bigl(m(\theta_\psi-\vartheta)\bigr),

as derived in Appendix § 1.12. Compared with the exact-eigenstate case, the signal contains an additional attenuation factor ρm\rho^m, and the phase is replaced by the effective phase θψ\theta_\psi. If the exact amplitude ρ\rho is known, the effective phase can be estimated by

θ^ψ,ρ=ϑ+1marcsin⁡(S^ρm),(16)\hat{\theta}_{\psi,\rho} = \vartheta+ \frac{1}{m}\arcsin\left(\frac{\hat{S}}{\rho^m}\right), \tag*{(16)}

provided that ∣S^∣≤ρm|\hat{S}| \le\rho^m and the residual phase satisfies m∣θψ−ϑ∣<π/2m|\theta_\psi-\vartheta| < \pi/2. If the state is prepared perfectly, i.e., ρ=1\rho=1 and θψ=θtar\theta_\psi=\theta_{\mathrm{tar}}, then the estimator reduces to the exact-eigenstate case of § 1.1 B.

In practice, the exact amplitude ρ\rho is generally unknown, so Eq. (16) cannot be applied directly. We instead use the amplitude-unaware estimator

θ^ψ=ϑ+1marcsin⁡(S^),(17)\hat{\theta}_\psi= \vartheta+ \frac{1}{m}\arcsin(\hat{S}), \tag*{(17)}

which treats the measured signal as if it had unit amplitude. Ignoring the attenuation factor ρm\rho^m introduces a systematic bias. To distinguish this bias from finite-shot fluctuations, define the infinite-shot limit of the estimator as

θψ,∞:=ϑ+1marcsin⁡(E[S^]),\theta_{\psi,\infty} := \vartheta+ \frac{1}{m}\arcsin(\mathbb{E}[\hat{S}]),

where E[S^]=ρmsin⁡(m(θψ−ϑ))\mathbb{E}[\hat{S}] = \rho^m\sin(m(\theta_\psi-\vartheta)). The triangle inequality then bounds the algorithmic error by

∣θ^ψ−θψ∣≤∣θ^ψ−θψ,∞∣⏟statistical error εstat+∣θψ,∞−θψ∣⏟amplitude-induced bias εbias.(18)|\hat{\theta}_\psi-\theta_\psi| \le\underbrace{|\hat{\theta}_\psi-\theta_{\psi,\infty}|}_{\text{statistical error }\varepsilon_{\mathrm{stat}}} + \underbrace{|\theta_{\psi,\infty}-\theta_\psi|}_{\text{amplitude-induced bias }\varepsilon_{\mathrm{bias}}}. \tag*{(18)}

The statistical error εstat\varepsilon_{\mathrm{stat}} measures the fluctuation of the finite-shot estimate around its infinite-shot limit, whereas the amplitude-induced bias εbias\varepsilon_{\mathrm{bias}} measures the deviation of that limit from the effective phase.

Unlike statistical error εstat\varepsilon_{\mathrm{stat}}, this amplitude bias εbias\varepsilon_{\mathrm{bias}} persists even if the shot count N→+∞N \to+\infty. However, if we suppose the lower bound of amplitude ρ0≤ρ\rho_0 \le\rho is available, the corresponding bias can be guaranteed to be upper bounded as shown in Theorem 3.

Theorem 3 (Amplitude bias error bound) Let UU be a unitary and let ∣ψ⟩|\psi\rangle be a prepared state with ⟨ψ∣U∣ψ⟩=ρeiθψ\langle\psi|U|\psi\rangle=\rho e^{i\theta_\psi}, where θψ\theta_\psi is the effective phase and ρ=∣⟨ψ∣U∣ψ⟩∣\rho=|\langle\psi|U|\psi\rangle| is the signal amplitude. Assume that ρ\rho is lower bounded by a known constant ρ0∈[0,1]\rho_0 \in[0,1], i.e., ρ≥ρ0\rho\ge\rho_0. Let ϑ\vartheta be a reference phase satisfying ∣θψ−ϑ∣≤Δ|\theta_\psi-\vartheta| \le\Delta for a reference-error bound Δ>0\Delta>0, and choose an integer amplification mm and a branch margin χ∈(0,π/2)\chi\in(0,\pi/2) such that mΔ≤χm\Delta\le\chi. Then the amplitude-induced bias εbias\varepsilon_{\mathrm{bias}} satisfies

∣εbias∣≤1−ρmmtan⁡(mΔ).(19)|\varepsilon_{\mathrm{bias}}| \le\frac{1-\rho^m}{m}\tan(m\Delta). \tag*{(19)}

The proof is given in Appendix F. In the regime mΔ≈χm\Delta\approx\chi, the amplitude-induced bias bound scales as (1−ρm)/m(1-\rho^m)/m, which decreases with mm; this contrasts with the case of fixed Δ\Delta, where the bias bound increases with mm within the admissible branch.

Due to the ambiguity of arcsin⁡(S^)\arcsin(\hat{S}), we require the residual phase to lie on an unambiguous branch, i.e., ∣θ−ϑ∣≤Δ|\theta-\vartheta| \le\Delta with mΔ<π/2m\Delta< \pi/2. The statistical phase error is shown in Eq. (3). The shot count to obtain the phase within the required statistical error is given in Lemma 2.

Adaptive entanglement-assisted Hadamard test with imperfect state preparation

Initially, we have a coarse reference phase ϑ0\vartheta_0, whose distance to the effective phase is upper-bounded by ∣θψ−ϑ0∣≤Δ0|\theta_\psi-\vartheta_0| \le\Delta_0, and the amplitude ρ\rho is lower bounded by some value ρ≥ρ0\rho\ge\rho_0. At the tt-th round, we set the reference phase as the estimate from the previous round, i.e., ϑt=θ^ψ,t−1\vartheta_t=\hat{\theta}_{\psi,t-1}. Meanwhile, the corresponding reference bound is the target accuracy of the previous round Δt=ϵt−1\Delta_t=\epsilon_{t-1}, so that ∣θψ−ϑt∣≤Δt|\theta_\psi-\vartheta_t| \le\Delta_t. The goal of this round is to estimate the effective phase up to accuracy ϵt=γΔt\epsilon_t=\gamma\Delta_t for some constant γ∈(0,1)\gamma\in(0,1).

In the imperfect state preparation setting, the error contains two components: the bias caused by using only a lower bound ρ≥ρ0\rho\ge\rho_0 of amplitude; and the statistical error caused by finite sampling. Therefore, to guarantee the contraction

∣θ^ψ,t−θψ∣≤ϵt=γΔt,(20)|\hat{\theta}_{\psi,t}-\theta_\psi| \le\epsilon_t = \gamma\Delta_t, \tag*{(20)}

we split the round-wise error budget into

ϵstat,t:=cstatΔt,ϵbias,t:=cbiasΔt,\epsilon_{\mathrm{stat},t} := c_{\mathrm{stat}}\Delta_t,\qquad\epsilon_{\mathrm{bias},t} := c_{\mathrm{bias}}\Delta_t,

where cstat>0c_{\mathrm{stat}}>0 and cbias>0c_{\mathrm{bias}}>0 are real coefficients, satisfying cstat+cbias=γc_{\mathrm{stat}}+c_{\mathrm{bias}}=\gamma. The two parts can be considered as the budgets of the statistical error and the amplitude bias error, respectively. The amplitude bias error ϵbias\epsilon_{\mathrm{bias}} and the statistical error ϵstat\epsilon_{\mathrm{stat}} should be smaller than the corresponding budgets:

∣ϵbias,t∣≤ϵbias,t,∣ϵstat,t∣≤ϵstat,t.|\epsilon_{\mathrm{bias},t}| \le\epsilon_{\mathrm{bias},t},\qquad|\epsilon_{\mathrm{stat},t}| \le\epsilon_{\mathrm{stat},t}.

The amplification mtm_t is chosen under two constraints. First, as in the perfect-state case, mtm_t cannot be arbitrarily close to π2Δt\frac{\pi}{2\Delta_t}, which would lead to an infinite shot count. We therefore impose an upper bound χ\chi such that mtΔt≤χ<π/2m_t\Delta_t \le\chi< \pi/2. Second, the bias must stay within its budget, i.e., ∣ϵbias,t∣≤ϵbias,t|\epsilon_{\mathrm{bias},t}| \le\epsilon_{\mathrm{bias},t}. By Theorem 3, it is sufficient to choose the amplification of the tt-th round as

mt=max⁡{m | 1−ρ0mmtan⁡(mΔt)≤ϵbias,t, m∈[1,⌊χΔt⌋]}.(21)m_t = \max\left\{m \,\middle|\, \frac{1-\rho_0^m}{m}\tan(m\Delta_t) \le\epsilon_{\mathrm{bias},t},\ m \in\left[1,\left\lfloor\frac{\chi}{\Delta_t}\right\rfloor\right]\right\}. \tag*{(21)}

The choice of mtm_t can be efficiently determined by binary search. To guarantee that a feasible amplification exists, the inequality

(1−ρ0)tan⁡(Δt)≤cbiasΔt(22)(1-\rho_0)\tan(\Delta_t) \le c_{\mathrm{bias}}\Delta_t \tag*{(22)}

should be satisfied. For small Δt\Delta_t, we have tan⁡(Δt)/Δt≈1\tan(\Delta_t)/\Delta_t \approx1, and the condition reduces to cbias≳1−ρ0c_{\mathrm{bias}} \gtrsim1-\rho_0.

The remaining task is to choose enough shots so that the statistical error ϵstat\epsilon_{\mathrm{stat}} does not exceed its budget ϵstat\epsilon_{\mathrm{stat}} with success probability at least 1−pt1-p_t. By Lemma 2, it suffices to choose

Nt=⌈2rt2ln⁡2pt⌉(23)N_t=\left\lceil\frac{2}{r_t^2}\ln\frac{2}{p_t}\right\rceil \tag*{(23)}

where rt=mtϵstat,t(cos⁡2(mtΔt)+mt2ϵstat,t2−mtϵstat,tsin⁡(mtΔt))1+mt2ϵstat,t2r_t=\dfrac{m_t\epsilon_{\mathrm{stat},t}\left(\sqrt{\cos^2(m_t\Delta_t)+m_t^2\epsilon_{\mathrm{stat},t}^2}-m_t\epsilon_{\mathrm{stat},t}\sin(m_t\Delta_t)\right)}{1+m_t^2\epsilon_{\mathrm{stat},t}^2}.

The shot count depends on mtm_t, so mtm_t should be chosen to minimize it subject to the feasibility constraints.

For convenience, we set the failure probability to be the same in each round, i.e., pround=ptp_{\mathrm{round}}=p_t for all t=1,…,Tt=1,\ldots,T. Thus, for a given total success probability 1−pfail1-p_{\mathrm{fail}}, one can easily derive that

pround:=1−(1−pfail)1/T.p_{\mathrm{round}}:=1-(1-p_{\mathrm{fail}})^{1/T}.

Since we aim to estimate the effective phase θψ\theta_\psi up to a target accuracy ϵ\epsilon, we require ∣θ^ψ,T−1−θψ∣≤ϵT−1=γTΔ0≤ϵ|\hat{\theta}_{\psi,T-1}-\theta_\psi|\leq\epsilon_{T-1}=\gamma^T\Delta_0\leq\epsilon, where T−1T-1 is the final round. Thus the total number of rounds should be

T=⌈log⁡1/γΔ0ϵ⌉(24)T=\left\lceil\log_{1/\gamma}\frac{\Delta_0}{\epsilon}\right\rceil \tag*{(24)}

We summarize the adaptive procedure in Algorithm 3.

Algorithm 3: Adaptive algorithm for phase estimation with imperfect state preparation

Input: Initial reference ϑ0\vartheta_0, initial effective-phase bound Δ0\Delta_0, target accuracy ϵ>0\epsilon>0, total failure probability pfail∈(0,1)p_{\mathrm{fail}}\in(0,1), contraction γ∈(0,1)\gamma\in(0,1), coefficients cstatc_{\mathrm{stat}} and cbiasc_{\mathrm{bias}}, branch margin χ∈(0,π/2)\chi\in(0,\pi/2), amplitude lower bound ρ0\rho_0.

Output: The estimated phase θ^ψ\hat{\theta}_\psi.

  1. T←⌈log⁡1/γ(Δ0/ϵ)⌉T\leftarrow\left\lceil\log_{1/\gamma}(\Delta_0/\epsilon)\right\rceil

  2. pround←1−(1−pfail)1/Tp_{\mathrm{round}}\leftarrow1-(1-p_{\mathrm{fail}})^{1/T}

  3. for t=0t=0 to T−1T-1 do

  4. The reference bound of the tt-th round Δt←γtΔ0\Delta_t\leftarrow\gamma^t\Delta_0.

  5. The target phase estimation accuracy of tt-th round ϵt←γt+1Δ0\epsilon_t\leftarrow\gamma^{t+1}\Delta_0.

  6. Calculate the budgets for bias error and statistical error ϵbias,t←cbiasΔt\epsilon_{\mathrm{bias},t}\leftarrow c_{\mathrm{bias}}\Delta_t, ϵstat,t←cstatΔt\epsilon_{\mathrm{stat},t}\leftarrow c_{\mathrm{stat}}\Delta_t

  7. Determine the amplification mt←m_t\leftarrow Eq. (21).

  8. Obtain θ^ψ,t←\hat{\theta}_{\psi,t}\leftarrow Algorithm 1 with reference ϑt\vartheta_t, amplification mtm_t, reference bound Δt\Delta_t, accuracy ϵstat,t\epsilon_{\mathrm{stat},t}, and failure probability proundp_{\mathrm{round}}.

  9. The reference for the next round ϑt+1←θ^ψ,t\vartheta_{t+1}\leftarrow\hat{\theta}_{\psi,t}.

  10. end for

  11. Output the estimation phase θ^ψ←θ^ψ,T−1\hat{\theta}_\psi\leftarrow\hat{\theta}_{\psi,T-1}.

For a fixed reference phase ϑt=ϑ0\vartheta_t=\vartheta_0 and a fixed amplification mt=m0m_t=m_0, the amplitude mismatch produces a bias that cannot be removed by increasing the number of shots: additional measurements only suppress the statistical fluctuation around the bias. Consequently, the EHT generally exhibits an error floor determined by the imperfect state preparation and the unknown amplitude. In contrast, the AEHT repeatedly updates the reference phase and shrinks the error, so that the amplitude-induced algorithmic bias is forced to remain within the prescribed round-wise bias budget. Therefore, the AEHT separates the irreducible preparation error, which is fixed by the prepared state ∣ψ⟩|\psi\rangle, from the reducible algorithmic error, which can be systematically suppressed by the iterative procedure.

Comparison of Hardware Restart Time

In previous sections, the cost of phase estimation was quantified by the number of shots. However, on large-scale quantum processors, this metric does not fully capture the practical overhead. With a growing number of available qubits, many independent shots can be executed in parallel during a single experimental cycle. The limiting resource therefore shifts from the total number of shots to the number of times the full device must be initialized, executed, measured, and reset, referred to as the device-restart count. Such restarts are particularly costly on platforms like neutral-atom arrays, where atom loading and rearrangement introduce substantial latency [27, 28, 29, 30]. In this section, we provide a theoretical comparison of the restart overhead between the fixed-mm entanglement-assisted Hadamard test and the proposed adaptive protocol.

Suppose the quantum processor comprises QQ qubits. For an amplification factor mm, the entanglement-assisted Hadamard test circuit uses an mm-qubit GHZ ancilla and mnsysmn_{\mathrm{sys}} system-register copies, occupying a total of m(nsys+1)m(n_{\mathrm{sys}}+1) qubits, where nsysn_{\mathrm{sys}} refers to the number of system qubits. Within one device restart, the number of independent circuit instances that can be executed in parallel is therefore

κ(m)=⌊Qm(nsys+1)⌋(25)\kappa(m)=\left\lfloor\frac{Q}{m(n_{\mathrm{sys}}+1)}\right\rfloor \tag*{(25)}

Denote the shot count for tt-th round as NtN_t, then the corresponding number of device restarts is

R=∑t⌈Ntκ(mt)⌉(26)R=\sum_t\left\lceil\frac{N_t}{\kappa(m_t)}\right\rceil \tag*{(26)}

where the sum runs over all rounds in the protocol. For the purpose of asymptotic analysis, we neglect the ceiling and floor functions, which affect only lower-order factors and do not alter the scaling with respect to the target precision ϵ\epsilon.

Consider the EHT with a fixed amplification m0=∣χ/Δ0∣m_0=\lvert\chi/\Delta_0\rvert. Its shot count is given by Eq. (5) with m=m0m=m_0. Since each restart packs κ(m0)=⌊Q/[m0(nsys+1)]⌋\kappa(m_0)=\left\lfloor Q/[m_0(n_{\mathrm{sys}}+1)]\right\rfloor shots, the corresponding restart count is

REHT≈m0(nsys+1)QNEHT≈2(nsys+1)Δ0Qχcos⁡2χln⁡2pfail1ϵ2(27)R_{\mathrm{EHT}}\approx\frac{m_0(n_{\mathrm{sys}}+1)}{Q}N_{\mathrm{EHT}}\approx\frac{2(n_{\mathrm{sys}}+1)\Delta_0}{Q\chi\cos^2\chi}\ln\frac{2}{p_{\mathrm{fail}}}\frac{1}{\epsilon^2} \tag*{(27)}

where we used m0Δ0≈χm_0\Delta_0\approx\chi. Thus, the fixed-mm EHT exhibits a quadratic growth in restarts as the required precision tightens, i.e., REHT=O(1/ϵ2)R_{\mathrm{EHT}}=\mathcal{O}(1/\epsilon^2).

Consider the proposed AEHT scheme, the estimation proceeds over

T=⌈log⁡1/γΔ0ϵ⌉(28)T=\left\lceil\log_{1/\gamma}\frac{\Delta_0}{\epsilon}\right\rceil \tag*{(28)}

rounds, with Δt=γtΔ0\Delta_t=\gamma^t\Delta_0, mt=⌊χ/Δt⌋m_t=\lfloor\chi/\Delta_t\rfloor, and ϵt=γΔt\epsilon_t=\gamma\Delta_t. From Eq. (12), the per-round shot count is approximately constant,

Nt≈Nround:=2Cχ,γ2γ2χ2cos⁡4χln⁡2pround,(29)N_t\approx N_{\mathrm{round}}:=\frac{2C_{\chi,\gamma}^2}{\gamma^2\chi^2\cos^4\chi}\ln\frac{2}{p_{\mathrm{round}}}, \tag*{(29)}

where Cχ,γC_{\chi,\gamma} is defined in § 1.2 and pround=1−(1−pfail)1/Tp_{\mathrm{round}}=1-(1-p_{\mathrm{fail}})^{1/T}. For large TT, pround≈pfail/Tp_{\mathrm{round}}\approx p_{\mathrm{fail}}/T, so ln⁡(2/pround)\ln(2/p_{\mathrm{round}}) introduces only a doubly logarithmic dependence on ϵ\epsilon.

The number of restarts required in round tt is

Rt≈(nsys+1)mtQNt≈(nsys+1)χNroundQΔ0γ−t.(30)R_t\approx\frac{(n_{\mathrm{sys}}+1)m_t}{Q}N_t\approx\frac{(n_{\mathrm{sys}}+1)\chi N_{\mathrm{round}}}{Q\Delta_0}\gamma^{-t}. \tag*{(30)}

Summing over all TT rounds, the total restart count for the adaptive protocol is

RAEHT=∑t=0T−1Rt≈(nsys+1)χNroundQΔ0∑t=0T−1γ−t≈(nsys+1)χNroundQΔ0⋅γΔ0(1−γ)ϵ=2(nsys+1)Cχ,γ2Q(1−γ)γχcos⁡4χln⁡2pround⋅1ϵ.(31)\begin{aligned} R_{\mathrm{AEHT}}=\sum_{t=0}^{T-1}R_t\approx\frac{(n_{\mathrm{sys}}+1)\chi N_{\mathrm{round}}}{Q\Delta_0}\sum_{t=0}^{T-1}\gamma^{-t} \\ &\approx\frac{(n_{\mathrm{sys}}+1)\chi N_{\mathrm{round}}}{Q\Delta_0}\cdot\frac{\gamma\Delta_0}{(1-\gamma)\epsilon} \\ &=\frac{2(n_{\mathrm{sys}}+1)C_{\chi,\gamma}^2}{Q(1-\gamma)\gamma\chi\cos^4\chi}\ln\frac{2}{p_{\mathrm{round}}}\cdot\frac{1}{\epsilon}. \tag*{(31)} \end{aligned}

The proposed AEHT therefore yields a restart count that grows only as O(1/ϵ)O(1/\epsilon), up to doubly logarithmic corrections.

Advantage of the AEHT

Comparing the leading-order scaling of Eqs. (27) and (31), we obtain

RAEHTREHT≈Cχ,γ2(1−γ)γcos⁡2χ⋅ln⁡(2/pround)ln⁡(2/pfail)⋅ϵΔ0≈Cχ,γ2(1−γ)γcos⁡2χ(1+ln⁡Tln⁡(2/pfail))ϵΔ0.(32)\begin{aligned} \frac{R_{\mathrm{AEHT}}}{R_{\mathrm{EHT}}}\approx\frac{C_{\chi,\gamma}^2}{(1-\gamma)\gamma\cos^2\chi}\cdot\frac{\ln(2/p_{\mathrm{round}})}{\ln(2/p_{\mathrm{fail}})}\cdot\frac{\epsilon}{\Delta_0} \\ &\approx\frac{C_{\chi,\gamma}^2}{(1-\gamma)\gamma\cos^2\chi}\left(1+\frac{\ln T}{\ln(2/p_{\mathrm{fail}})}\right)\frac{\epsilon}{\Delta_0}. \tag*{(32)} \end{aligned}

Ignoring constants and using T=O(log⁡(1/ϵ))T=O(\log(1/\epsilon)), we obtain

RAEHTREHT=O(ϵ⋅log⁡log⁡1ϵ).(33)\frac{R_{\mathrm{AEHT}}}{R_{\mathrm{EHT}}}=O\left(\epsilon\cdot\log\log\frac{1}{\epsilon}\right). \tag*{(33)}

For high-precision estimation where 1≫ϵ1\gg\epsilon, the factor ϵ\epsilon dominates the ratio, while the logarithmic term grows only as log⁡log⁡(1/ϵ)\log\log(1/\epsilon). This demonstrates that the AEHT method achieves a superlinear reduction in device-restart count compared with the fixed-mm EHT approach in the high-precision regime.

Hardware-constraint amplification

In reality, the number of qubits on the quantum processors are finite Q<+∞Q<+\infty, implying the choice of amplification mm is also limited by the capability of quantum hardware, i.e.,

m≤mhw:=⌊Qnsys+1⌋(34)m\le m_{\mathrm{hw}}:=\left\lfloor\frac{Q}{n_{\mathrm{sys}}+1}\right\rfloor \tag*{(34)}

This is the largest amplification mm for which an amplification-mm entanglement-assisted Hadamard-test circuit fits within the QQ available qubits. In Algorithm 2, the ideal amplification is mtideal=⌊χ/Δt⌋m_t^{\mathrm{ideal}}=\lfloor\chi/\Delta_t\rfloor, while in Algorithm 3 the ideal amplification midealm^{\mathrm{ideal}} is given by Eq. (21). In both cases, the physical qubit number is incorporated by comparing the ideal value with Q/(nsys+1)Q/(n_{\mathrm{sys}}+1) and keeping the smaller one:

mt=min⁡{mtideal,mhw}.(35)m_t=\min\left\{m_t^{\mathrm{ideal}},m_{\mathrm{hw}}\right\}. \tag*{(35)}

To choose the amplification that corresponds to the fewest shot count, we design an optimization algorithm. The detailed derivation and the algorithm in pseudo-code are shown in Appendix G. When the reference error Δt\Delta_t is still large, the ideal amplification lies below mhwm_{\mathrm{hw}}, and the two algorithms reduce to their earlier forms. When Δt\Delta_t becomes sufficiently small, the amplification saturates at mhwm_{\mathrm{hw}}, and further precision is gained by increasing the shot count rather than by enlarging the GHZ state.

Once the amplification saturates, both schemes operate with a fixed, bounded amplification: the fixed-mm EHT method uses m0m_0, while the adaptive method saturates at mhwm_{\mathrm{hw}}. To see the resulting scaling, consider a saturated round with mt=mhwm_t=m_{\mathrm{hw}}. By Lemma 2 and ϵt=γΔt\epsilon_t=\gamma\Delta_t, its shot count is

Nt≈2mhw2γ2Δt2cos⁡2(mhwΔt)ln⁡2pround,(36)N_t\approx\frac{2}{m_{\mathrm{hw}}^2\gamma^2\Delta_t^2\cos^2(m_{\mathrm{hw}}\Delta_t)}\ln\frac{2}{p_{\mathrm{round}}}, \tag*{(36)}

so its restart count is

Rt≈(nsys+1)mhwQNt≈2(nsys+1)Qmhwγ2Δt2cos⁡2(mhwΔt)ln⁡2pround.(37)\begin{aligned} R_t\approx\frac{(n_{\mathrm{sys}}+1)m_{\mathrm{hw}}}{Q}N_t \\ &\approx\frac{2(n_{\mathrm{sys}}+1)}{Qm_{\mathrm{hw}}\gamma^2\Delta_t^2\cos^2(m_{\mathrm{hw}}\Delta_t)}\ln\frac{2}{p_{\mathrm{round}}}. \tag*{(37)} \end{aligned}

Since Δt=γtΔ0\Delta_t=\gamma^t\Delta_0, the sum over the saturated rounds is dominated by the final round and scales as 1/ϵ21/\epsilon^2, which is

RAEHTsat≈1mhwϵ2.(38)R_{\mathrm{AEHT}}^{\mathrm{sat}}\approx\frac{1}{m_{\mathrm{hw}}\epsilon^2}. \tag*{(38)}

The fixed-mm restart count in Eq. (27) similarly scales as REHT∼1/(m0ϵ2)R_{\mathrm{EHT}}\sim1/(m_0\epsilon^2). Ignoring constant factors, the ratio is therefore

RAEHTsatREHT≈m0mhw<1,(39)\frac{R_{\mathrm{AEHT}}^{\mathrm{sat}}}{R_{\mathrm{EHT}}}\approx\frac{m_0}{m_{\mathrm{hw}}}<1, \tag*{(39)}

because saturation requires mhw>m0m_{\mathrm{hw}}>m_0. Hence the AEHT still has a constant-factor advantage over the fixed-mm EHT in this regime.

Numerical experiments

We now numerically demonstrate the effectiveness of the adaptive protocol developed in this work. For concreteness, we encode the target phase θtar=2.0\theta_{\mathrm{tar}} = 2.0 into a single-qubit phase unitary

U=diag⁡(1,eiθtar).U = \operatorname{diag}(1,e^{i\theta_{\mathrm{tar}}}).

The corresponding eigenstate is simply ∣1⟩|1\rangle. All experiments use the initial reference ϑ0=1.8\vartheta_0 = 1.8, the initial bound Δ0=0.2\Delta_0 = 0.2, the branch margin χ=π/4\chi= \pi/4, and total success probability 1−pfail=0.951-p_{\mathrm{fail}} = 0.95.

To compare the device-restart count, we model a device with Q=2500Q = 2500 qubits and a one-qubit system register, and the corresponding hardware constraint amplification is mhw=1250m_{\mathrm{hw}} = 1250. An amplification-mm EHT circuit occupies 2m2m qubits, so the number of independent instances that fit in one initialization is

κ(m)=⌊25002m⌋.\kappa(m) = \left\lfloor\frac{2500}{2m} \right\rfloor.

If round tt uses NtN_t shots at amplification mtm_t, its restart cost is ⌈Nt/κ(mt)⌉\lceil N_t/\kappa(m_t)\rceil, and the schedule cost is

R=∑t⌈Ntκ(mt)⌉.(40)R = \sum_t \left\lceil\frac{N_t}{\kappa(m_t)} \right\rceil. \tag*{(40)}

In the following, we compare the hardware restart counts of the proposed adaptive-mm method and fixed-mm method. However, from Algorithm 3, the adaptive-mm method may certify a precision better than the requested target ϵ\epsilon, thereby paying more cost. To make a fair comparison, we replace the final-round precision by

ϵT−1=max⁡{ϵ,γTΔ0}(41)\epsilon_{T-1} = \max\{\epsilon,\gamma^T\Delta_0\} \tag*{(41)}

so that the last round does not overshoot the requested accuracy. The selection of the amplification factors uses the Algorithm 4 in Appendix G.

Restart reduction with perfect eigenstate preparation

Suppose quantum circuits are noiseless and we can perfectly prepare the eigenstate ∣1⟩|1\rangle. For different target accuracies, we compare the required device-restart count of the SHT method (pink-diamond curve), EHT method with a 3-qubit GHZ entangled state (green-triangle curve), and the proposed AEHT method (blue-circle curve), as shown in Figure 3. The three methods use the same hardware budget of Q=2500Q = 2500 qubits, allowing up to 1250 SHT shots, 416 EHT shots, or ⌊1250/mt⌋\lfloor1250/m_t\rfloor AEHT shots in round tt to run in parallel per restart. The device-restart counts therefore account for the parallel capacity of each method under the same hardware constraint. All three restart counts increase as the target accuracy becomes more stringent. Before the hardware limit is reached, the AEHT restart count grows much more slowly than those of the other two methods, and its advantage in device-restart count widens. Once the amplification saturates, the AEHT restart count grows faster than before, but it still retains an advantage of roughly two orders of magnitude over the other two methods. The numerical results agree with our analysis as shown in § 1.4. The AEHT method unlocks the amplification power of large entangled states, and the maximum amplification of the AEHT method increases from m=11m = 11 at target accuracy ϵ=10−2\epsilon= 10^{-2} to m=1250m = 1250 at target accuracy ϵ=10−4\epsilon= 10^{-4}.

Device-restart count for exact eigenstate preparation

Figure 3. Device-restart count for exact eigenstate preparation. The labels on the AEHT refer to the maximum amplification used.

We next focus on the target accuracy ϵ=10−3\epsilon= 10^{-3}. The amplification mtm_t and estimated phase error ϵt\epsilon_t with respect to the tt-th round are shown in Figure 4. In this case, the number of rounds is T=6T = 6. In the first round, due to the limitation of the reference phase, the maximal amplification can only be m0=2m_0 = 2. As tt increases, the estimated phase error (blue-circle curve) decreases, while the amplification mtm_t (orange curve) grows. Eventually, in the last round, the estimated phase error falls below the target accuracy (black dotted line), and the corresponding amplification becomes m5=207m_5 = 207.

Amplification and estimated phase error with respect to the round

Figure 4. The amplification mtm_t and estimated phase error ϵt\epsilon_t with respect to the increase of round tt in the Algorithm 2. The dotted line refers to the target accuracy ϵ=10−3\epsilon= 10^{-3}.

Restart reduction with imperfect eigenstate preparation

In reality, it is generally hard to prepare the desired state perfectly. Instead of the eigenstate ∣1⟩|1\rangle, what we actually prepare is

∣ψ⟩=η∣0⟩+1−η∣1⟩,η=0.01.|\psi\rangle= \sqrt{\eta}|0\rangle+ \sqrt{1-\eta}|1\rangle,\qquad\eta= 0.01.

The corresponding overlap is

⟨ψ∣U∣ψ⟩=η+(1−η)eiθtar:=ρeiθψ,\langle\psi|U|\psi\rangle= \eta+ (1-\eta)e^{i\theta_{\mathrm{tar}}} := \rho e^{i\theta_{\psi}},

When conducting experiments, the exact values are generally unknown, so we assume the amplitude is lower bounded by ρ0=1−2η=0.98\rho_0 = 1 - 2\eta= 0.98. As introduced in Section IV A, the error contains three parts: preparation error, statistical error, and amplitude bias error. The preparation error in this case is ∣θψ−θtar∣|\theta_{\psi}-\theta_{\mathrm{tar}}|, which is irreducible. Thus, in this section, the accuracy ϵ\epsilon refers to the algorithmic error ∣θ^ψ−θψ∣|\hat{\theta}_{\psi}-\theta_{\psi}|, where θ^ψ\hat{\theta}_{\psi} refers to the estimated phase, and the preparation error is excluded. The statistical error vanishes as the device-restart count increases.

For a fixed-mm EHT method, the amplitude bias error cannot be mitigated, no matter how many device-restart counts we take. The comparison of device-restart count over different target accuracy is shown in Figure 5. For the SHT method (pink-diamond curve) and the fixed-mm EHT method (green-triangle curve) with m=2m=2, as the target effective-phase accuracy ϵ\epsilon approaches the bias bound (dotted curve and dash-dot curve, respectively), the device-restart counts increase dramatically. For the two conventional methods, they can only approach the bias bound and cannot achieve an accuracy better than the bias bound. In contrast, the AEHT method is not limited by the bias bound and can estimate the quantum phase more accurately than the conventional methods with fewer device-restart counts.

Device-restart count for imperfect eigenstate preparation

Figure 5. Device-restart count for imperfect eigenstate preparation. The vertical dotted curve and dash-dot curve mark the bias bounds of SHT and Fixed-mm EHT (m=2m=2), respectively.

Circuit-noise robustness

In previous sections, we studied the upper bound of the device restart count to achieve target phase accuracy. Here, we demonstrate the robustness of the proposed AEHT method by simulating noisy quantum circuits. We suppose the prepared quantum states are imperfect as shown in Sec. VI B. When simulating the quantum circuit, we also assume the quantum gates are corrupted by a depolarizing channel Np\mathcal{N}_p, which maps the input state toward the maximally mixed state with probability pp, i.e.,

Np(ψ)=(1−p)ψ+pId,(42)\mathcal{N}_p(\psi) = (1-p)\psi+ p\frac{I}{d}, \tag*{(42)}

where pp refers to the noise level and I/dI/d refers to the maximally mixed state. In the simulation, we set the single-qubit and two-qubit gates to be corrupted by single-qubit and two-qubit depolarizing channels with probabilities p1=10−4p_1=10^{-4} and p2=10−3p_2=10^{-3}, respectively. Moreover, the readout error is set to pro=10−2p_{\mathrm{ro}}=10^{-2}. The numerical simulations were implemented using Qiskit [31] version 2.2.3 and executed on a CPU-based server equipped with Intel Xeon Gold 6226R processors operating at 2.90 GHz, with 64 total hardware threads and 1,006.6 GiB of available RAM. No GPU acceleration was used.

In the circuit-sampled numerical experiments, we set hardware to contain Q=2500Q=2500 qubits, and due to the classical memory limitation of the server we used, we set the amplification m≤8m\leq8. The achievable accuracy for different device-restart counts is shown in Figure 6. The dashed pink curve with hollow diamonds and the dashed blue curve with hollow circles denote the theoretical upper bounds on the achievable accuracy of the SHT and AEHT methods under imperfect state preparation, respectively. As the device-restart count increases, the SHT bound saturates at the bias limit indicated by the dotted horizontal line, whereas the AEHT bound is not limited by such a bias floor and keeps improving; this behavior is also shown in Figure 5. The dashed pink curve with solid diamonds and the dashed blue curve with solid circles show the actual errors of the SHT and AEHT methods obtained from sampling noisy circuits. As the device-restart count increases, the actual SHT error converges to a worse value because of circuit noise. In contrast, the actual AEHT error follows the trend of its upper bound and produces an increasingly accurate phase estimate. These numerical experiments demonstrate the robustness of the proposed AEHT method.

Circuit-sampled effective accuracy versus device restarts

Figure 6. Circuit-sampled effective accuracy versus device restarts under the same noise model for imperfect eigenstate preparation. For each target ϵ\epsilon, the plot shows the requested target accuracy and the realized noisy effective-phase error at the corresponding restart budget.

Conclusion and discussion

In this work, we proposed an AEHT for high-precision quantum-phase estimation. By iteratively refining the reference phase, the protocol permits progressively larger GHZ-state amplification and overcomes the reference-accuracy limitation of conventional fixed-amplification EHT methods. For exact eigenstates, the resulting shot complexity is O(log⁡1ϵ)\mathcal{O}\left(\log\frac{1}{\epsilon}\right) up to doubly logarithmic factors when the amplification does not reach the hardware limit. We further extended the method to imperfect eigenstate preparation. By separating the irreducible preparation error from the statistical error and amplitude-induced bias, the adaptive protocol systematically suppresses the algorithmic error, whereas a conventional fixed-amplification test generally exhibits a nonvanishing bias floor.

To better characterize practical cost, we introduced the device-restart count, which accounts for parallel circuit execution under a finite qubit budget. In the hardware-unconstrained regime, the adaptive protocol achieves a restart complexity of O(1/ϵ)O(1/\epsilon), up to logarithmic factors, compared with O(1/ϵ2)O(1/\epsilon^2) for fixed amplification. When the amplification reaches the hardware limit, the quadratic scaling is recovered, while a constant-factor advantage remains. Numerical results support these conclusions for both exact and imperfect eigenstates and demonstrate robustness under representative circuit noise.

The proposed method provides a hardware-aware route to precision phase estimation with substantially reduced device-restart overhead on near-term quantum processors. It would be interesting to demonstrate the proposed AEHT method on quantum hardware, such as neutral atom platform, in the future.

Code availability.– The code has been uploaded to Github, which can be found at https://github.com/HengzhunChen/EntangleHT.

Acknowledgements.– B.Zhao would like to thank Xuanqiang Zhao, Ge Bai and Qiushi Liu for their insightful discussions. This work was supported in part by the National Natural Science Foundation of China under Grant No. 12271109 and 12526211; by the Shanghai Pilot Program for Basic Research-Fudan University under Grant No. 21TQ1400100 (22TQ017); by the Scientific Research Innovation Capability Support Project for Young Faculty under Grant No. SRICSPYF-ZY2025159; and by the Xuemin Institute of Advanced Studies, Fudan University.

References

Conventional quantum phase estimation

Quantum phase estimation [1] addresses the following task: given a unitary operator UU and one of its eigenstates ∣ψ⟩\lvert\psi\rangle satisfying U∣ψ⟩=e2πiθ∣ψ⟩U\lvert\psi\rangle=e^{2\pi i\theta}\lvert\psi\rangle, estimate the unknown phase θ∈[0,1)\theta\in[0,1) to nn bits of precision.

The standard formulation employs two registers: an nn-qubit ancilla register initialized to ∣0⟩⊗n\lvert0\rangle^{\otimes n} and a target register prepared in ∣ψ⟩\lvert\psi\rangle. After applying Hadamard gates to all ancilla qubits, each ancilla qubit jj controls an application of U2jU^{2^j} to the target register. By the phase kickback mechanism, the ancilla register is transformed into the state 12n∑k=02n−1e2πiθk∣k⟩\frac{1}{\sqrt{2^n}}\sum_{k=0}^{2^n-1}e^{2\pi i\theta k}\lvert k\rangle, which is precisely the quantum Fourier transform of the nn-bit integer closest to 2nθ2^n\theta. Applying the inverse quantum Fourier transform (QFT−1QFT^{-1}) to the ancilla register and measuring in the computational basis then yields an nn-bit approximation of θ=0.θ1⋯θn\theta=0.\theta_1\cdots\theta_n. The circuits for QPE is shown in Figure 7.

Quantum circuit for QPE

Figure 7. Quantum circuit for QPE.

Obviously, the depth of the quantum circuit for QPE is large. Considering that quantum noise on near-term quantum devices is unavoidable, the noise accumulates with the depth of the circuit, making the measurement results unreliable. Therefore, such a method for estimating quantum phase is not practical for near-term quantum devices.

Expectation values of standard and entanglement-assisted Hadamard tests

The standard Hadamard test is recovered from the entanglement-assisted construction by setting m=1m=1. We therefore derive the expectation value for general m≥1m\ge1, covering both tests in a single proof.

Lemma S1. Assume U∣ϕ⟩=eiθ∣ϕ⟩U|\phi\rangle= e^{i\theta}|\phi\rangle. For any integer m≥1m \ge1, the mm-copy entanglement-assisted Hadamard phase estimation circuit with reference phase ϑ\vartheta and parity outcome Y=(−1)∣z∣Y = (-1)^{|z|} gives

E[Y]=sin⁡(m(θ−ϑ)).\mathbb{E}[Y] = \sin(m(\theta-\vartheta)).

Proof. Prepare ∣GHZm⟩|\mathrm{GHZ}_m\rangle on the ancillas and ∣ϕ⟩⊗m|\phi\rangle^{\otimes m} on the system registers. The initial state is

∣Φ0⟩=12(∣0⟩⊗m+∣1⟩⊗m)∣ϕ⟩⊗m.|\Phi_0\rangle= \frac{1}{\sqrt{2}}\left(|0\rangle^{\otimes m} + |1\rangle^{\otimes m}\right)|\phi\rangle^{\otimes m}.

After the parallel controlled-UU layer, the eigenvalue equation U∣ϕ⟩=eiθ∣ϕ⟩U|\phi\rangle= e^{i\theta}|\phi\rangle gives

∣Φ1⟩=12(∣0⟩⊗m+eimθ∣1⟩⊗m)∣ϕ⟩⊗m.|\Phi_1\rangle= \frac{1}{\sqrt{2}}\left(|0\rangle^{\otimes m} + e^{im\theta}|1\rangle^{\otimes m}\right)|\phi\rangle^{\otimes m}.

The reference phase block maps ∣1⟩⊗m↦−ie−imϑ∣1⟩⊗m|1\rangle^{\otimes m} \mapsto-ie^{-im\vartheta}|1\rangle^{\otimes m}, so the state before the final Hadamards is

∣Φ2⟩=12(∣0⟩⊗m+(−i)eim(θ−ϑ)∣1⟩⊗m)∣ϕ⟩⊗m.|\Phi_2\rangle= \frac{1}{\sqrt{2}}\left(|0\rangle^{\otimes m} + (-i)e^{im(\theta-\vartheta)}|1\rangle^{\otimes m}\right)|\phi\rangle^{\otimes m}.

We use the standard identities

H⊗m∣0⟩⊗m=12m∑z∈{0,1}m∣z⟩,H⊗m∣1⟩⊗m=12m∑z∈{0,1}m(−1)∣z∣∣z⟩.(43)H^{\otimes m}|0\rangle^{\otimes m} = \frac{1}{\sqrt{2^m}}\sum_{z\in\{0,1\}^m}|z\rangle,\qquad H^{\otimes m}|1\rangle^{\otimes m} = \frac{1}{\sqrt{2^m}}\sum_{z\in\{0,1\}^m}(-1)^{|z|}|z\rangle. \tag*{(43)}

Applying the final Hadamards to the ancillas therefore gives

∣Φ3⟩=12m+1∑z∈{0,1}m(1+(−1)∣z∣(−i)eim(θ−ϑ))∣z⟩∣ϕ⟩⊗m.|\Phi_3\rangle= \frac{1}{\sqrt{2^{m+1}}}\sum_{z\in\{0,1\}^m}\left(1+(-1)^{|z|}(-i)e^{im(\theta-\vartheta)}\right)|z\rangle|\phi\rangle^{\otimes m}.

Thus the probability of observing a particular ancilla string zz is

p(z)=∥12m+1(1+(−1)∣z∣(−i)eim(θ−ϑ))∣ϕ⟩⊗m∥2=12m+1∣1+(−1)∣z∣(−i)eim(θ−ϑ)∣2=12m(1+(−1)∣z∣sin⁡(m(θ−ϑ))).\begin{aligned} p(z) &= \left\|\frac{1}{\sqrt{2^{m+1}}}\left(1+(-1)^{|z|}(-i)e^{im(\theta-\vartheta)}\right)|\phi\rangle^{\otimes m}\right\|^2 \\ &= \frac{1}{2^{m+1}}\left|1+(-1)^{|z|}(-i)e^{im(\theta-\vartheta)}\right|^2 \\ &= \frac{1}{2^m}\left(1+(-1)^{|z|}\sin(m(\theta-\vartheta))\right). \end{aligned}

For the parity random variable Y=(−1)∣z∣Y = (-1)^{|z|},

E[Y]=∑z∈{0,1}m(−1)∣z∣p(z)=12m∑z[(−1)∣z∣+((−1)∣z∣)2sin⁡(m(θ−ϑ))]=sin⁡(m(θ−ϑ)),\begin{aligned} \mathbb{E}[Y] &= \sum_{z\in\{0,1\}^m}(-1)^{|z|}p(z) \\ &= \frac{1}{2^m}\sum_z\left[(-1)^{|z|}+\left((-1)^{|z|}\right)^2\sin(m(\theta-\vartheta))\right] \\ &= \sin(m(\theta-\vartheta)), \end{aligned}

because exactly half of all bit strings have even parity and half have odd parity. ■

For m=1m=1, the ancilla state reduces to ∣+⟩=(∣0⟩+∣1⟩)/2|+\rangle=(|0\rangle+|1\rangle)/\sqrt{2}, and the parity outcome is simply the single-qubit measurement outcome X=(−1)bX=(-1)^b. The circuit therefore reduces to the standard Hadamard test, giving E[X]=sin⁡(θ−ϑ)\mathbb{E}[X]=\sin(\theta-\vartheta).

Shot-count bounds for standard and entanglement-assisted Hadamard tests

We first establish a general inverse-sine shot-count bound, then apply it to prove the bounds for the standard and entanglement-assisted Hadamard tests in Lemmas 1 and 2, respectively.

General inverse-sine shot-count bound

We now record the inverse-sine shot count bound used throughout the paper. To motivate the choice below, first consider the unamplified case m=1m=1, with signal mean sin⁡θ\sin\theta and ∣θ∣≤Δ|\theta|\leq\Delta. We seek a tolerance rr such that, whenever the sine estimate deviates by at most rr, the resulting phase error is at most ϵ\epsilon. On the interval [−s,s][-s,s], the function arcsin⁡\arcsin is (1−s2)−1/2(1-s^2)^{-1/2}-Lipschitz. If ∣S^−sin⁡θ∣≤r|\widehat{S}-\sin\theta|\leq r, then

∣S^∣≤sin⁡Δ+r.|\widehat{S}|\leq\sin\Delta+r.

Thus, requiring r≤s−sin⁡Δr\leq s-\sin\Delta keeps S^\widehat{S} inside [−s,s][-s,s]. If, in addition, r≤ϵ1−s2r\leq\epsilon\sqrt{1-s^2}, then

∣θ^−θ∣=∣arcsin⁡(S^)−arcsin⁡(sin⁡θ)∣≤∣S^−sin⁡θ∣1−s2≤ϵ.|\widehat{\theta}-\theta|=|\arcsin(\widehat{S})-\arcsin(\sin\theta)|\leq\frac{|\widehat{S}-\sin\theta|}{\sqrt{1-s^2}}\leq\epsilon.

Hence, for fixed ss, the largest admissible tolerance is

r(s)=min⁡{s−sin⁡Δ, ϵ1−s2}.r(s)=\min\left\{s-\sin\Delta,\ \epsilon\sqrt{1-s^2}\right\}.

The first term keeps the estimator on the branch where arcsin⁡\arcsin is well defined, while the second term guarantees the desired phase accuracy. Optimizing over ss balances these two constraints, and the resulting optimal tolerance is exactly the value rr defined in the following lemma, after substituting Δ→mΔ\Delta\to m\Delta and ϵ→q/m\epsilon\to q/m.

Lemma S2 (Inverse-sine shot count). Let m≥1m\geq1 be an integer amplification factor, and let Δ≥0\Delta\geq0 be a local error bound. Fix a branch margin χ∈(0,π/2)\chi\in(0,\pi/2) and assume mΔ≤χm\Delta\leq\chi. Let X∈{±1}X\in\{\pm1\} be a random variable satisfying

E[X]=μ,∣μ∣≤sin⁡(mΔ).\mathbb{E}[X]=\mu,\qquad|\mu|\leq\sin(m\Delta).

Let S^=N−1∑j=1NX(j)\widehat{S}=N^{-1}\sum_{j=1}^{N}X^{(j)} be the empirical mean of NN shots. For a phase-accuracy target ϵ>0\epsilon>0, set q:=mϵq:=m\epsilon and define

r:=q(cos⁡2(mΔ)+q2−qsin⁡(mΔ))1+q2.r:=\frac{q\left(\sqrt{\cos^2(m\Delta)+q^2}-q\sin(m\Delta)\right)}{1+q^2}.

If the number of samples satisfies

N≥2r2ln⁡2pfail,N\geq\frac{2}{r^2}\ln\frac{2}{p_{\mathrm{fail}}},

then

P(1m∣arcsin⁡(S^)−arcsin⁡(μ)∣>ϵ)≤pfail.\mathbb{P}\left(\frac{1}{m}\left|\arcsin(\widehat{S})-\arcsin(\mu)\right|>\epsilon\right)\leq p_{\mathrm{fail}}.

As q→0q\to0,

r=qcos⁡(mΔ)−q2sin⁡(mΔ)+O(q3).r=q\cos(m\Delta)-q^2\sin(m\Delta)+O(q^3).

Proof. Write

a:=sin⁡(mΔ),c:=cos⁡(mΔ)>0.a:=\sin(m\Delta),\qquad c:=\cos(m\Delta)>0.

Let s∈(a,1)s\in(a,1) be the unique solution of

s−a=q1−s2.(44)s-a=q\sqrt{1-s^2}. \tag*{(44)}

Solving this quadratic equation gives

s=a+qc2+q21+q2,s = \frac{a + q\sqrt{c^2 + q^2}}{1 + q^2},

and direct substitution shows that the value

r:=s−a=q1−s2r := s-a = q\sqrt{1-s^2}

equals the expression stated in the lemma. On the event ∣S^−μ∣≤r|\hat{S}-\mu| \le r, we have

∣S^∣≤∣μ∣+∣S^−μ∣≤a+s−a=s,|\hat{S}| \le|\mu| + |\hat{S}-\mu| \le a+s-a=s,

so μ,S^∈[−s,s]\mu,\hat{S} \in[-s,s]. Since arcsin⁡(x)\arcsin(x) has derivative (1−x2)−1/2(1-x^2)^{-1/2}, it is (1−s2)−1/2(1-s^2)^{-1/2}-Lipschitz on the interval [−s,s][-s,s]. Hence

1m∣arcsin⁡(S^)−arcsin⁡(μ)∣≤∣S^−μ∣m1−s2≤rm1−s2=qm=ϵ.\frac{1}{m}\left|\arcsin(\hat{S})-\arcsin(\mu)\right| \le\frac{|\hat{S}-\mu|}{m\sqrt{1-s^2}} \le\frac{r}{m\sqrt{1-s^2}} = \frac{q}{m} = \epsilon.

Therefore

{1m∣arcsin⁡(S^)−arcsin⁡(μ)∣>ϵ}⊆{∣S^−μ∣>r}.\left\{\frac{1}{m}\left|\arcsin(\hat{S})-\arcsin(\mu)\right|>\epsilon\right\} \subseteq\{|\hat{S}-\mu|>r\}.

Hoeffding’s inequality [32] for averages of {±1}\{\pm1\}-valued random variables gives

P(∣S^−μ∣>r)≤2exp⁡(−Nr22)≤pfail.\mathbb{P}\left(|\hat{S}-\mu|>r\right) \le2\exp\left(-\frac{Nr^2}{2}\right) \le p_{\mathrm{fail}}.

Finally, since mΔ≤χ<π/2m\Delta\le\chi< \pi/2, we have c≥cos⁡χ>0c \ge\cos\chi> 0. Hence the Taylor expansions

c2+q2=c+q22c+O(q4),11+q2=1+O(q2).\sqrt{c^2+q^2}=c+\frac{q^2}{2c}+O(q^4), \qquad\frac{1}{1+q^2}=1+O(q^2).

Substituting these expansions into the expression for rr gives

r=qc−q2a+O(q3)=qcos⁡(mΔ)−q2sin⁡(mΔ)+O(q3).r=qc-q^2a+O(q^3)=q\cos(m\Delta)-q^2\sin(m\Delta)+O(q^3).

Standard Hadamard test

Lemma 1 (Shot count for the SHT). Let ∣ϕ⟩|\phi\rangle be an eigenstate of a unitary UU with U∣ϕ⟩=eiθ∣ϕ⟩U|\phi\rangle=e^{i\theta}|\phi\rangle, and let ϑ\vartheta be a reference phase satisfying ∣θ−ϑ∣≤Δ|\theta-\vartheta|\le\Delta for some constant Δ<π/2\Delta<\pi/2. To estimate θ\theta via the standard Hadamard test within additive error ϵ\epsilon and with success probability at least 1−pfail1-p_{\mathrm{fail}}, it suffices to take a shot count

Nstd=⌈2rstd2ln⁡2pfail⌉,N_{\mathrm{std}}=\left\lceil\frac{2}{r_{\mathrm{std}}^2}\ln\frac{2}{p_{\mathrm{fail}}}\right\rceil,

where rstd=ϵ(cos⁡2Δ+ϵ2−ϵsin⁡Δ)/(1+ϵ2)r_{\mathrm{std}}=\epsilon\left(\sqrt{\cos^2\Delta+\epsilon^2}-\epsilon\sin\Delta\right)/(1+\epsilon^2).

Proof. Apply Lemma S2 with m=1m=1 and μ=sin⁡(θ−ϑ)\mu=\sin(\theta-\vartheta). Since Δ<π/2\Delta<\pi/2, the local branch satisfies arcsin⁡(μ)=θ−ϑ\arcsin(\mu)=\theta-\vartheta, so the inverse-sine error in the lemma is exactly ∣θ^−θ∣|\hat{\theta}-\theta|.

Entanglement-assisted Hadamard test

Lemma 2 (Shot count for the EHT). Let ∣ϕ⟩|\phi\rangle be an eigenstate of a unitary UU with U∣ϕ⟩=eiθ∣ϕ⟩U|\phi\rangle=e^{i\theta}|\phi\rangle, and let ϑ\vartheta be a reference phase satisfying ∣θ−ϑ∣≤Δ|\theta-\vartheta|\le\Delta for some constant Δ<π2m\Delta<\frac{\pi}{2m}. Fix a branch margin χ<π/2\chi<\pi/2 and choose an integer amplification mm such

that mΔ≤χm\Delta\le\chi. To estimate the phase θ\theta via the mm-qubit GHZ state EHT within additive error ϵ\epsilon and with success probability at least 1−pfail1-p_{\mathrm{fail}}, it suffices to take a shot count

NEHT=⌈2rEHT2ln⁡2pfail⌉.N_{\mathrm{EHT}}=\left\lceil\frac{2}{r_{\mathrm{EHT}}^{2}}\ln\frac{2}{p_{\mathrm{fail}}}\right\rceil.

where

rEHT=mϵ(cos⁡2(mΔ)+m2ϵ2−mϵsin⁡(mΔ))1+m2ϵ2.r_{\mathrm{EHT}}=\frac{m\epsilon\left(\sqrt{\cos^{2}(m\Delta)+m^{2}\epsilon^{2}}-m\epsilon\sin(m\Delta)\right)}{1+m^{2}\epsilon^{2}}.

Proof. Apply Lemma S2 with μ=sin⁡(m(θ−ϑ))\mu=\sin(m(\theta-\vartheta)). Since ∣m(θ−ϑ)∣≤χ<π/2|m(\theta-\vartheta)|\le\chi<\pi/2, the local branch satisfies arcsin⁡(μ)=m(θ−ϑ)\arcsin(\mu)=m(\theta-\vartheta), so the inverse-sine error in the lemma gives the stated phase-error bound after division by mm. ■

Upper bound of preparation error

Lemma S3 Assume the infidelity η<1/2\eta<1/2. Define

ξ:=e−iθtar⟨ψ∣U∣ψ⟩.\xi:=e^{-i\theta_{\mathrm{tar}}}\langle\psi|U|\psi\rangle.

Then

∣ξ∣≥1−2η,∣arg⁡(ξ)∣≤arcsin⁡(η1−η).|\xi|\ge1-2\eta,\qquad|\arg(\xi)|\le\arcsin\left(\frac{\eta}{1-\eta}\right).

where the argument is taken on the local branch containing the positive real axis.

Proof. Since ∣ϕtar⊥⟩|\phi_{\mathrm{tar}}^{\perp}\rangle is orthogonal to the target eigenstate and U∣ϕtar⟩=eiθtar∣ϕtar⟩U|\phi_{\mathrm{tar}}\rangle=e^{i\theta_{\mathrm{tar}}}|\phi_{\mathrm{tar}}\rangle, the cross terms vanish and

ξ=e−iθtar⟨ψ∣U∣ψ⟩=(1−η)+ηe−iθtar⟨ϕtar⊥∣U∣ϕtar⊥⟩.\xi=e^{-i\theta_{\mathrm{tar}}}\langle\psi|U|\psi\rangle=(1-\eta)+\eta e^{-i\theta_{\mathrm{tar}}}\langle\phi_{\mathrm{tar}}^{\perp}|U|\phi_{\mathrm{tar}}^{\perp}\rangle.

Thus ξ=(1−η)+ηζ\xi=(1-\eta)+\eta\zeta with

ζ:=e−iθtar⟨ϕtar⊥∣U∣ϕtar⊥⟩,∣ζ∣≤1,\zeta:=e^{-i\theta_{\mathrm{tar}}}\langle\phi_{\mathrm{tar}}^{\perp}|U|\phi_{\mathrm{tar}}^{\perp}\rangle,\qquad|\zeta|\le1,

because UU is unitary and ∣ϕtar⊥⟩|\phi_{\mathrm{tar}}^{\perp}\rangle is normalized. Therefore ξ\xi lies in the closed disk of radius η\eta centered at 1−η1-\eta on the real axis. The reverse triangle inequality gives

∣ξ∣≥(1−η)−η=1−2η.|\xi|\ge(1-\eta)-\eta=1-2\eta.

Since η<1/2\eta<1/2, this disk does not contain the origin. The largest possible absolute argument is achieved by a ray from the origin tangent to the disk. In the resulting right triangle, the opposite side has length η\eta and the hypotenuse from the origin to the disk center has length 1−η1-\eta. Hence

∣sin⁡(arg⁡ξ)∣≤η1−η.|\sin(\arg\xi)|\le\frac{\eta}{1-\eta}.

The disk lies in the right half-plane, so ∣arg⁡ξ∣<π/2|\arg\xi|<\pi/2, and the claimed argument bound follows by applying arcsin. ■

Expectation value of entanglement-assisted Hadamard test with imperfect state preparation

Lemma S4 (Measured parity for imperfect states). For the parallel mm-copy circuit, the measured ancilla parity Y=(−1)∣z∣Y=(-1)^{|z|} satisfies

E[Y]=ρmsin⁡(m(θψ−ϑ)).(45)\mathbb{E}[Y]=\rho^{m}\sin\left(m(\theta_{\psi}-\vartheta)\right). \tag*{(45)}

Proof. For the parallel circuit, the state immediately after the controlled applications of UU and the reference block is

12(∣0⟩⊗m∣ψ⟩⊗m+(−i)e−imϑ∣1⟩⊗m(U∣ψ⟩)⊗m).\frac{1}{\sqrt{2}}\left(|0\rangle^{\otimes m}|\psi\rangle^{\otimes m}+(-i)e^{-im\vartheta}|1\rangle^{\otimes m}(U|\psi\rangle)^{\otimes m}\right).

Applying H⊗mH^{\otimes m} to the ancillas and using (B1), the probability of observing z∈{0,1}mz\in\{0,1\}^{m} is

p(z)=12m(1+(−1)∣z∣Re⁡((−i)e−imϑ(⟨ψ∣U∣ψ⟩)m))p(z)=\frac{1}{2^{m}}\left(1+(-1)^{|z|}\operatorname{Re}\left((-i)e^{-im\vartheta}\left(\langle\psi|U|\psi\rangle\right)^{m}\right)\right)
=12m(1+(−1)∣z∣ρmsin⁡(m(θψ−ϑ))).=\frac{1}{2^{m}}\left(1+(-1)^{|z|}\rho^{m}\sin\left(m(\theta_{\psi}-\vartheta)\right)\right).

Averaging Y=(−1)∣z∣Y=(-1)^{|z|} over this distribution gives the stated expectation. ■

Amplitude-induced bias error bound

Theorem 3 (Amplitude bias error bound). Let UU be a unitary and let ∣ψ⟩\lvert\psi\rangle be a prepared state with ⟨ψ∣U∣ψ⟩=ρeiθψ\langle\psi\lvert U\rvert\psi\rangle= \rho e^{i\theta_\psi}, where θψ\theta_\psi is the effective phase and ρ=∣⟨ψ∣U∣ψ⟩∣\rho= \lvert\langle\psi\lvert U\rvert\psi\rangle\rvert is the signal amplitude. Assume that ρ\rho is lower bounded by a known constant ρ0∈[0,1]\rho_0 \in[0,1], i.e., ρ≥ρ0\rho\ge\rho_0. Let ϑ\vartheta be a reference phase satisfying ∣θψ−ϑ∣≤Δ\lvert\theta_\psi-\vartheta\rvert\le\Delta for a reference-error bound Δ>0\Delta> 0, and choose an integer amplification mm and a branch margin χ∈(0,π/2)\chi\in(0,\pi/2) such that mΔ≤χm\Delta\le\chi. Then the amplitude-induced bias ϵbias\epsilon_{\mathrm{bias}} satisfies

∣ϵbias∣≤1−ρ0mmtan⁡(mΔ).(46)\lvert\epsilon_{\mathrm{bias}}\rvert\le\frac{1-\rho_0^m}{m}\tan(m\Delta). \tag*{(46)}

Proof. Let β:=m(θψ−ϑ)\beta:= m(\theta_\psi-\vartheta). The branch condition gives ∣β∣≤mΔ≤χ<π/2\lvert\beta\rvert\le m\Delta\le\chi< \pi/2, so arcsin⁡(sin⁡β)=β\arcsin(\sin\beta)=\beta. By the definition of the infinite-shot limit,

θψ,∞=ϑ+1marcsin⁡(ρmsin⁡β).\theta_{\psi,\infty}=\vartheta+\frac{1}{m}\arcsin(\rho^m\sin\beta).

Therefore, the amplitude-induced bias is

ϵbias=∣θψ,∞−θψ∣=1m∣arcsin⁡(ρmsin⁡β)−arcsin⁡(sin⁡β)∣.\epsilon_{\mathrm{bias}}=\lvert\theta_{\psi,\infty}-\theta_\psi\rvert=\frac{1}{m}\left\lvert\arcsin(\rho^m\sin\beta)-\arcsin(\sin\beta)\right\rvert.

Note that

arcsin⁡(ρmsin⁡β)−arcsin⁡(sin⁡β)=∫sin⁡βρmsin⁡βdu1−u2.\arcsin(\rho^m\sin\beta)-\arcsin(\sin\beta)=\int_{\sin\beta}^{\rho^m\sin\beta}\frac{\mathrm{d}u}{\sqrt{1-u^2}}.

The integration interval has length (1−ρm)∣sin⁡β∣(1-\rho^m)\lvert\sin\beta\rvert, and every point in it has absolute value at most sin⁡(mΔ)\sin(m\Delta). Therefore

∣ϵbias∣≤(1−ρm)∣sin⁡β∣m1−sin⁡2(mΔ)≤(1−ρm)sin⁡(mΔ)mcos⁡(mΔ)=1−ρmmtan⁡(mΔ).\lvert\epsilon_{\mathrm{bias}}\rvert\le\frac{(1-\rho^m)\lvert\sin\beta\rvert}{m\sqrt{1-\sin^2(m\Delta)}}\le\frac{(1-\rho^m)\sin(m\Delta)}{m\cos(m\Delta)}=\frac{1-\rho^m}{m}\tan(m\Delta).

Since ρ≥ρ0\rho\ge\rho_0, we have 1−ρm≤1−ρ0m1-\rho^m\le1-\rho_0^m, and the claimed bound

∣ϵbias∣≤1−ρ0mmtan⁡(mΔ)\lvert\epsilon_{\mathrm{bias}}\rvert\le\frac{1-\rho_0^m}{m}\tan(m\Delta)

follows. ■

Amplification selection

We state an amplification-selection rule that minimizes the certified device-restart count in each round for both exact and imperfect eigenstate preparation. Let Δ>0\Delta>0 be the current reference-error bound, and let ϵstat>0\epsilon_{\mathrm{stat}}>0 and ϵbias≥0\epsilon_{\mathrm{bias}}\ge0 be the statistical and bias budgets. For an amplitude lower bound ρ0∈[0,1]\rho_0\in[0,1], recall the amplitude-bias bound

B(m;Δ,ρ0):=1−ρ0mmtan⁡(mΔ)B(m;\Delta,\rho_0):=\frac{1-\rho_0^m}{m}\tan(m\Delta)

and define the feasible set

Mfeas:={m∈{1,…,mhw}:mΔ≤χ, B(m;Δ,ρ0)≤ϵbias}.\mathcal{M}_{\mathrm{feas}}:=\{m\in\{1,\ldots,m_{\mathrm{hw}}\}:m\Delta\le\chi,\ B(m;\Delta,\rho_0)\le\epsilon_{\mathrm{bias}}\}.

For exact eigenstate preparation, set ρ0=1\rho_0=1, so that B(m;Δ,1)=0B(m;\Delta,1)=0 for every admissible amplification. The entire round-wise accuracy budget can then be assigned to statistical error: ϵbias=0\epsilon_{\mathrm{bias}}=0 and ϵstat=ϵt\epsilon_{\mathrm{stat}}=\epsilon_t (equivalently, cbias=0c_{\mathrm{bias}}=0 and cstat=γc_{\mathrm{stat}}=\gamma when ϵt=γΔ\epsilon_t=\gamma\Delta). The feasible set reduces to

Mfeas={1,…,msearch},msearch:=min⁡{mhw,⌊χ/Δ⌋},\mathcal{M}_{\mathrm{feas}}=\{1,\ldots,m_{\mathrm{search}}\},\qquad m_{\mathrm{search}}:=\min\{m_{\mathrm{hw}},\lfloor\chi/\Delta\rfloor\},

provided that msearch≥1m_{\mathrm{search}}\ge1. Thus only the branch and hardware constraints remain. For imperfect preparation, the bias constraint additionally restricts this set.

For each m∈Mfeasm \in\mathcal{M}_{\mathrm{feas}}, let rmr_m be the inverse-sine value from Appendix § 1.5.3 1, evaluated at statistical accuracy ϵstat\epsilon_{\mathrm{stat}}. For a per-round failure probability pround∈(0,1)p_{\mathrm{round}} \in(0,1), define the certified shot and restart counts

Nm:=⌈2rm2ln⁡2pround⌉,Rm:=⌈Nmκ(m)⌉,N_m := \left\lceil\frac{2}{r_m^2}\ln\frac{2}{p_{\mathrm{round}}}\right\rceil,\qquad R_m := \left\lceil\frac{N_m}{\kappa(m)}\right\rceil,

where κ(m)\kappa(m) is the packing capacity. We choose the feasible amplification with the smallest packed restart count RmR_m. If several amplifications have the same restart count, we choose the one with smaller amplification. Without the integer ceilings, this restart objective is equivalent to maximizing κ(m)rm2\kappa(m)r_m^2 rather than rmr_m alone.

Within the range allowed by the branch condition and hardware cap, the bias bound B(m;Δ,ρ0)B(m;\Delta,\rho_0) is nondecreasing in mm for mΔ<π/2m\Delta< \pi/2. Consequently, if an amplification mm satisfies the bias constraint, then every smaller positive amplification also satisfies it. The feasible candidates therefore have the form {1,…,mfeas}\{1,\ldots,m_{\mathrm{feas}}\}, and the largest bias-feasible value mfeasm_{\mathrm{feas}} can be found by binary search. The restart cost itself need not be monotone because of inverse-sine conditioning and integer packing, so all these feasible candidates must still be compared. The resulting selection rule is summarized in Algorithm 4.

Algorithm 4: MINRESTARTAMP: restart-minimizing amplification selection

Input: Reference-error bound Δ\Delta, statistical budget ϵstat\epsilon_{\mathrm{stat}}, bias budget ϵbias\epsilon_{\mathrm{bias}}, failure probability pfailp_{\mathrm{fail}}, amplitude lower bound ρ0\rho_0 and branch margin χ\chi, hardware constraint mhwm_{\mathrm{hw}} and packing capacities κ(m)\kappa(m)

  1. msearch←min⁡{mhw,⌊χ/Δ⌋}m_{\mathrm{search}} \gets\min\{m_{\mathrm{hw}},\lfloor\chi/\Delta\rfloor\}

  2. if msearch<1m_{\mathrm{search}} < 1 or B(1;Δ,ρ0)>ϵbiasB(1;\Delta,\rho_0) > \epsilon_{\mathrm{bias}} then

  3. Return infeasible

  4. end if

  5. if ρ0=1\rho_0 = 1 then

  6. mfeas←msearchm_{\mathrm{feas}} \gets m_{\mathrm{search}}

  7. else

  8. Use binary search over m=1,…,msearchm=1,\ldots,m_{\mathrm{search}} to find the largest bias-feasible amplification mfeasm_{\mathrm{feas}} such that B(m;Δ,ρ0)≤ϵbiasB(m;\Delta,\rho_0) \le\epsilon_{\mathrm{bias}}

  9. end if

  10. Choose mbestm_{\mathrm{best}} in m=1,…,mfeasm=1,\ldots,m_{\mathrm{feas}} requiring the fewest packed restarts RmR_m and smaller amplification

  11. Return mbestm_{\mathrm{best}}

References

  1. [1]A. Y. Kitaev, Quantum measurements and the abelian stabilizer problem, arXiv preprint quant-ph/9511026 (1995).
  2. [2]M. A. Nielsen and I. L. Chuang, Quantum computation and quantum information (Cambridge university press, 2010).
  3. [3]U. Dorner, R. Demkowicz-Dobranski, B. J. Smith, J. S. Lundeen, W. Wasilewski, K. Banaszek, and I. A. Walmsley, Optimal quantum phase estimation, Physical review letters 102, 040403 (2009).pubmed.ncbi.nlm.nih.gov/19257407
  4. [4]D. S. Abrams and S. Lloyd, Quantum algorithm providing exponential speed increase for finding eigenvalues and eigenvectors, Physical Review Letters 83, 5162 (1999).DOI
  5. [5]P. W. Shor, Polynomial-time algorithms for prime factorization and discrete logarithms on a quantum computer, SIAM review 41, 303 (1999).
  6. [6]B. P. Lanyon, T. J. Weinhold, N. K. Langford, M. Barbieri, D. F. James, A. Gilchrist, and A. G. White, Experimental demonstration of a compiled version of shor’s algorithm with quantum entanglement, Physical review letters 99, 250505 (2007).pubmed.ncbi.nlm.nih.gov/18233509
  7. [7]E. Martin-Lopez, A. Laing, T. Lawson, R. Alvarez, X.-Q. Zhou, and J. L. O’Brien, Experimental realization of shor’s quantum factoring algorithm using qubit recycling, Nature photonics 6, 773 (2012).
  8. [8]T. Monz, D. Nigg, E. A. Martinez, M. F. Brandl, P. Schindler, R. Rines, S. X. Wang, I. L. Chuang, and R. Blatt, Realization of a scalable shor algorithm, Science 351, 1068 (2016).DOI
  9. [9]A. W. Harrow, A. Hassidim, and S. Lloyd, Quantum algorithm for linear systems of equations, Physical review letters 103, 150502 (2009).pubmed.ncbi.nlm.nih.gov/19905613
  10. [10]X.-D. Cai, C. Weedbrook, Z.-E. Su, M.-C. Chen, M. Gu, M.-J. Zhu, L. Li, N.-L. Liu, C.-Y. Lu, and J.-W. Pan, Experimental quantum computing to solve systems of linear equations, Physical review letters 110, 230501 (2013).DOI
  11. [11]Y. Wang, B. Zhao, and X. Wang, Quantum algorithms for estimating quantum entropies, Physical Review Applied 19, 044041 (2023).DOI
  12. [12]M. P. Cruz, G. Catarina, R. Gautier, and J. Fernández-Rossier, Optimizing quantum phase estimation for the simulation of hamiltonian eigenstates, Quantum Science & Technology 5, 044005 (2020).DOI
  13. [13]R. Santagati, J. Wang, A. A. Gentile, S. Paesani, N. Wiebe, J. R. McClean, S. Morley-Short, P. J. Shadbolt, D. Bonneau, J. W. Silverstone, et al., Witnessing eigenstates for quantum simulation of hamiltonian spectra, Science advances 4, eaap9646 (2018).DOI
  14. [14]B. P. Lanyon, J. D. Whitfield, G. G. Gillet, M. E. Goggin, M. P. Almeida, I. Kassal, J. D. Biamonte, M. Mohseni, B. J. Powell, M. Barbieri, et al., Towards quantum chemistry on a quantum computer, Nature chemistry 2, 106 (2010).DOI
  15. [15]J. Du, N. Xu, X. Peng, P. Wang, S. Wu, and D. Lu, Nmr implementation of a molecular hydrogen quantum simulation with adiabatic state preparation, Physical review letters 104, 030502 (2010).pubmed.ncbi.nlm.nih.gov/20366636
  16. [16]P. J. O’Malley, R. Babbush, I. D. Kivlichan, J. Romero, J. R. McClean, R. Barends, J. Kelly, P. Roushan, A. Tranter, N. Ding, et al., Scalable quantum simulation of molecular energies, Physical Review X 6, 031007 (2016).DOI
  17. [17]K. Kowalski, N. P. Bauman, G. H. Low, M. Roetteler, J. J. Rehr, and F. D. Vila, Capturing many-body correlation effects with quantum and classical computing, Phys. Rev. A 110, L060401 (2024).arxiv.org/abs/2402.11418
  18. [18]N. Wiebe and C. Granade, Efficient bayesian phase estimation, Physical review letters 117, 010503 (2016).DOI
  19. [19]M. A. Rubin and S. Kaushik, Loss-induced limits to phase measurement precision with maximally entangled states, Physical Review A—Atomic, Molecular, and Optical Physics 75, 053805 (2007).
  20. [20]M. Dobšíček, G. Johansson, V. Shumeiko, and G. Wendin, Arbitrary accuracy iterative quantum phase estimation algorithm using a single ancillary qubit: A two-qubit benchmark, Physical Review A—Atomic, Molecular, and Optical Physics 76, 030306 (2007).DOI
  21. [21]V. Giovannetti, S. Lloyd, and L. Maccone, Advances in quantum metrology, Nature photonics 5, 222 (2011).DOI
  22. [22]V. Giovannetti, S. Lloyd, and L. Maccone, Quantum-enhanced measurements: beating the standard quantum limit, Science 306, 1330 (2004).DOI
  23. [23]R. Campos, C. C. Gerry, and A. Benmoussa, Optical interferometry at the heisenberg limit with twin fock states and parity measurements, Physical Review A 68, 023810 (2003).DOI
  24. [24]J. A. Nielsen, J. S. Neergaard-Nielsen, T. Gehring, and U. L. Andersen, Deterministic quantum phase estimation beyond n00n states, Physical Review Letters 130, 123603 (2023).DOI
  25. [25]B. L. Higgins, D. W. Berry, S. D. Bartlett, H. M. Wiseman, and G. J. Pryde, Entanglement-free Heisenberg-limited phase estimation, Nature 450, 393 (2007).DOI
  26. [26]H. Ni, H. Li, and L. Ying, On low-depth algorithms for quantum phase estimationDOI
  27. [27]D. Bluvstein, S. J. Evered, A. A. Geim, S. H. Li, H. Zhou, T. Manovitz, S. Ebadi, M. Cain, M. Kalinowski, D. Hangleiter, J. P. Bonilla Ataides, N. Maskara, I. Cong, X. Gao, P. Sales Rodriguez, T. Karolyshyn, G. Semeghini, M. J. Gulans, M. Greiner, V. Vuletić, and M. D. Lukin, Logical quantum processor based on reconfigurable atom arrays, Nature 626, 58 (2024).
  28. [28]L. Henriet, L. Beguin, A. Signoles, T. Lahaye, A. Browaeys, G.-O. Reymond, and C. Jurczak, Quantum computing with neutral atoms, Quantum 4, 327 (2020).DOI
  29. [29]M. Saffman, Quantum computing with atomic qubits and Rydberg interactions: progress and challenges, Journal of Physics B: Atomic, Molecular and Optical Physics 49, 202001 (2016).DOI
  30. [30]S. Ebadi, T. T. Wang, H. Levine, A. Keesling, G. Semeghini, A. Omran, D. Bluvstein, R. Samajdar, H. Pichler, W. W. Ho, S. Choi, S. Sachdev, M. Greiner, V. Vuletić, and M. D. Lukin, Quantum phases of matter on a 256-atom programmable quantum simulator, Nature 595, 227 (2021).
  31. [31]A. Javadi-Abhari, M. Treinish, K. Kruslich, C. J. Wood, J. Lishman, J. Gacon, S. Martiel, P. D. Nation, L. S. Bishop, A. W. Cross, et al., Quantum computing with qiskit, arXiv preprint arXiv:2405.08810 (2024).
  32. [32]W. Hoeffding, Probability inequalities for sums of bounded random variables, Journal of the American statistical association 58, 13 (1963).

Paper details

vlnc:W_qckux2er
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 2

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Physics and Astronomy

Not recorded for this paper

View statement
Looking for related papers…
Contents