Skip to main content
KetQat

Appearance

Theorem · intermediate

Accuracy and success probability of phase estimation

Textbook phase estimation with t control qubits returns the integer nearest to 2^t phi with probability at least 4/pi^2, and returns an n-bit-accurate estimate with probability at least 1 - epsilon when t = n + ceil(log2(2 + 1/(2 epsilon))).

Established resultMachine-checkedUpdated 2026-12-01 · last verified 2026-12-01

AI-assisted text, machine-checked, not yet reviewed by a person. Citations resolve and an automated pass compared the statements with the cited sources. That is not peer review; check the sources for anything you depend on.

Run phase estimation with tt control qubits, T=2tT = 2^t, and let mm be the measured integer.

  1. Exact case. If Tφ∈ZT\varphi \in \Z, then m=Tφm = T\varphi with probability 1.

  2. Nearest integer. Let m∗m^\ast be an integer with ∣φ−m∗/T∣1≤1/(2T)\lvert\varphi - m^\ast/T\rvert_1 \le 1/(2T). Then Pr⁡[m=m∗]≥4/π2>0.405\Pr[m = m^\ast] \ge 4/\pi^2 > 0.405.

  3. Tail bound. Let b=⌊Tφ⌋b = \lfloor T\varphi \rfloor. For every integer e≥2e \ge 2, Pr⁡[ ∣m−b∣T>e ]≤12(e−1)\Pr\big[\, \lvert m - b \rvert_T > e \,\big] \le \dfrac{1}{2(e-1)}, where ∣x∣T\lvert x\rvert_T is the distance of xx to the nearest multiple of TT.

  4. Bits of precision. For n≥1n \ge 1 and 0<ε<10 < \varepsilon < 1, if

    t  ≥  n+⌈log⁡2 ⁣(2+12ε)⌉,t \;\ge\; n + \Big\lceil \log_2\!\Big(2 + \frac{1}{2\varepsilon}\Big) \Big\rceil ,

    then Pr⁡[∣m/T−φ∣1<2−n]≥1−ε\Pr\big[\lvert m/T - \varphi\rvert_1 < 2^{-n}\big] \ge 1 - \varepsilon.

The procedure uses T−1T - 1 controlled applications of UU. Since part 4 needs T=O(2n/ε)T = O(2^{n}/\varepsilon), additive accuracy δ=2−n\delta = 2^{-n} at constant failure probability costs O(1/δ)O(1/\delta) uses of UU: the Heisenberg scaling, against the O(1/δ2)O(1/\delta^2) of estimating the phase from independent single-use experiments.

Part 4 is the form given in section 5.2.1 of Nielsen and Chuang; the analysis via the Fourier transform is that of Cleve, Ekert, Macchiavello and Mosca.

Holds when

  • Exact gates; the target register holds an eigenvector ∣u⟩\ket{u} with U∣u⟩=e2πiφ∣u⟩U\ket{u} = e^{2\pi i\varphi}\ket{u}, φ∈[0,1)\varphi \in [0,1).
  • Distances between phases are taken modulo 1, ∣x∣1=min⁡z∈Z∣x−z∣\lvert x \rvert_1 = \min_{z \in \Z}\lvert x - z\rvert.

Proof

Proof of the accuracy bounds for phase estimationMachine-checked

By the outcome distribution, the measured integer mm has amplitude αm=T−1∑k=0T−1e2πikδm\alpha_m = T^{-1}\sum_{k=0}^{T-1} e^{2\pi i k\delta_m} with δm=φ−m/T\delta_m = \varphi - m/T, and ∣αm∣2=sin⁡2(πTδm)/(T2sin⁡2(πδm))\lvert\alpha_m\rvert^2 = \sin^2(\pi T\delta_m)/(T^2\sin^2(\pi\delta_m)). Both depend on δm\delta_m only modulo 1. Two elementary inequalities are used: for 0≤x≤π/20 \le x \le \pi/2, sin⁡x≥2x/π\sin x \ge 2x/\pi (concavity of sin⁡\sin on [0,π][0,\pi]); and for ∣x∣≤1/2\lvert x\rvert \le 1/2, ∣sin⁡πx∣≥2∣x∣\lvert\sin \pi x\rvert \ge 2\lvert x\rvert (the same inequality with x↦πxx \mapsto \pi x).

Part 1. If Tφ=m0∈ZT\varphi = m_0 \in \Z then δm0=0\delta_{m_0} = 0 and every term of the sum for αm0\alpha_{m_0} equals 1, so αm0=1\alpha_{m_0} = 1.

Part 2. Choose the representative of δ=δm∗\delta = \delta_{m^\ast} with ∣δ∣≤1/(2T)\lvert\delta\rvert \le 1/(2T). If δ=0\delta = 0 we are in Part 1. Otherwise sin⁡2(πδ)≤(πδ)2\sin^2(\pi\delta) \le (\pi\delta)^2, and πT∣δ∣≤π/2\pi T\lvert\delta\rvert \le \pi/2 gives sin⁡2(πTδ)≥(2T∣δ∣)2\sin^2(\pi T\delta) \ge (2T\lvert\delta\rvert)^2. Hence

Pr⁡[m=m∗]≥4T2δ2T2 π2δ2=4π2.\Pr[m = m^\ast] \ge \frac{4T^2\delta^2}{T^2\,\pi^2\delta^2} = \frac{4}{\pi^2} .

Part 3. Write Δ=φ−b/T∈[0,1/T)\Delta = \varphi - b/T \in [0, 1/T) and label outcomes by m=b+ℓm = b + \ell modulo TT with ℓ∈{−T/2+1,…,T/2}\ell \in \{-T/2 + 1, \dots, T/2\} (for T≥2T \ge 2), so that ∣m−b∣T=∣ℓ∣\lvert m - b\rvert_T = \lvert\ell\rvert. Then δm=Δ−ℓ/T\delta_m = \Delta - \ell/T, and this representative satisfies ∣δm∣≤1/2\lvert\delta_m\rvert \le 1/2: for ℓ≥1\ell \ge 1, −1/2≤δm<0-1/2 \le \delta_m < 0; for ℓ≤0\ell \le 0, 0≤δm<1/T+(T/2−1)/T=1/20 \le \delta_m < 1/T + (T/2 - 1)/T = 1/2. Bounding the numerator of the amplitude by ∣1−e2πiTδm∣≤2\lvert 1 - e^{2\pi i T\delta_m}\rvert \le 2 and the denominator by ∣1−e2πiδm∣=2∣sin⁡πδm∣≥4∣δm∣\lvert 1 - e^{2\pi i\delta_m}\rvert = 2\lvert\sin\pi\delta_m\rvert \ge 4\lvert\delta_m\rvert,

∣αm∣≤2T⋅4∣δm∣=12∣TΔ−ℓ∣.\lvert\alpha_m\rvert \le \frac{2}{T \cdot 4\lvert\delta_m\rvert} = \frac{1}{2\lvert T\Delta - \ell\rvert} .

Since 0≤TΔ<10 \le T\Delta < 1: for ℓ≥1\ell \ge 1, ∣TΔ−ℓ∣>ℓ−1\lvert T\Delta - \ell\rvert > \ell - 1; for ℓ≤−1\ell \le -1, ∣TΔ−ℓ∣≥∣ℓ∣\lvert T\Delta - \ell\rvert \ge \lvert\ell\rvert. Therefore, for e≥2e \ge 2,

Pr⁡[∣ℓ∣>e]≤14∑ℓ=e+1∞1(ℓ−1)2+14∑ℓ=e+1∞1ℓ2≤12∑j=e∞1j2≤12∫e−1∞dxx2=12(e−1),\Pr\big[\lvert\ell\rvert > e\big] \le \frac14 \sum_{\ell = e+1}^{\infty} \frac{1}{(\ell-1)^2} + \frac14 \sum_{\ell = e+1}^{\infty} \frac{1}{\ell^2} \le \frac12 \sum_{j = e}^{\infty} \frac{1}{j^2} \le \frac12 \int_{e-1}^{\infty} \frac{dx}{x^2} = \frac{1}{2(e-1)} ,

where the middle step uses 1/ℓ2≤1/(ℓ−1)21/\ell^2 \le 1/(\ell-1)^2 and the last uses 1/j2≤∫j−1jdx/x21/j^2 \le \int_{j-1}^{j} dx/x^2.

Part 4. Put e=2t−n−1e = 2^{t-n} - 1. The hypothesis on tt gives 2t−n≥2+1/(2ε)>22^{t-n} \ge 2 + 1/(2\varepsilon) > 2, and since 2t−n2^{t-n} is a power of 2, e≥3e \ge 3. If ∣m−b∣T≤e\lvert m - b\rvert_T \le e then

∣mT−φ∣1≤∣m−b∣TT+Δ<eT+1T=2t−n2t=2−n.\Big\lvert \frac{m}{T} - \varphi \Big\rvert_1 \le \frac{\lvert m - b\rvert_T}{T} + \Delta < \frac{e}{T} + \frac{1}{T} = \frac{2^{t-n}}{2^{t}} = 2^{-n} .

By Part 3 this fails with probability at most 1/(2(e−1))=1/(2(2t−n−2))1/(2(e-1)) = 1/(2(2^{t-n} - 2)), which is at most ε\varepsilon exactly when 2t−n≥2+1/(2ε)2^{t-n} \ge 2 + 1/(2\varepsilon), the hypothesis. The cost statement follows from ∑s=0t−12s=T−1\sum_{s=0}^{t-1} 2^s = T - 1 and T≤2n+1(2+1/(2ε))T \le 2^{n+1}(2 + 1/(2\varepsilon)) for the smallest admissible tt.

Parts 3 and 4 follow the argument of section 5.2.1 of Nielsen and Chuang, written out here with the representatives made explicit.

Builds on
Mentioned in

Open in the knowledge graph

Contributions about this record

Nobody has published a contribution about it yet.

Publish a result, reproduction or commentPropose a correction to this page

References

  1. Richard Cleve, Artur Ekert, Chiara Macchiavello, Michele Mosca (1998). Quantum algorithms revisited. Proceedings of the Royal Society A 454, 339-354. doi:10.1098/rspa.1998.0164arXiv:quant-ph/9708016
  2. Michael A. Nielsen, Isaac L. Chuang (2010). Quantum Computation and Quantum Information (10th Anniversary Edition). Cambridge University Press. doi:10.1017/CBO9780511976667

Contributors

  • KetQat maintainers · @ketqatConceptualization; Supervision (CRediT roles)
  • Claude (AI drafting assistant)Writing, original draft (CRediT roles)

Review history

  1. Automated source check · Pass · 2026-12-01 · Independent automated verification pass (AI, not the drafting session)

    Parts 1-4 re-derived (part 4 from part 3 with e = 2^(t-n) - 1, giving |m/T - phi| < e/T + 1/T = 2^-n, and 1/(2(e-1)) <= eps iff 2^(t-n) >= 2 + 1/(2 eps)); parts 2 and 3 checked numerically from the closed-form outcome distribution for t = 1..8 and 300 random phases each (minimum nearest-integer probability 0.4066 >= 4/pi^2; maximum of tail times 2(e-1) was 0.37 <= 1). Compared with Cleve-Ekert-Macchiavello-Mosca, arXiv:quant-ph/9708016, eq. (5.4) (4/pi^2) and Appendix C (tail bound and amplification by extra qubits); Nielsen-Chuang Section 5.2.1 (Performance and requirements) via the publisher's table of contents.

Revision history

  1. 2026-12-01Content release 2.1.0: 35 more topics, an independent source check of every record, intake hardening (#17)80537b7e
  2. 2026-11-30KetQat Commons: free learning paths, knowledge records, research problems, literature intake (#14)571c9b10

Current revision 1f5edca3b7bb2538. Source file knowledge/records/theorem/phase-estimation-accuracy.md in the content repository (readable there once it is public).