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 t control qubits,
T=2t, and let m be the measured integer.
Exact case. If Tφ∈Z, then m=Tφ with probability 1.
Nearest integer. Let m∗ be an integer with
∣φ−m∗/T∣1≤1/(2T). Then Pr[m=m∗]≥4/π2>0.405.
Tail bound. Let b=⌊Tφ⌋. For every integer e≥2,
Pr[∣m−b∣T>e]≤2(e−1)1, where
∣x∣T is the distance of x to the nearest multiple of T.
Bits of precision. For n≥1 and 0<ε<1, if
t≥n+⌈log2(2+2ε1)⌉,
then Pr[∣m/T−φ∣1<2−n]≥1−ε.
The procedure uses T−1 controlled applications of U. Since part 4 needs
T=O(2n/ε), additive accuracy δ=2−n at constant failure
probability costs O(1/δ) uses of U: the Heisenberg scaling, against the
O(1/δ2) of estimating the phase from independent single-use experiments.
By the outcome distribution, the
measured integer m has amplitude
αm=T−1∑k=0T−1e2πikδm with δm=φ−m/T, and
∣αm∣2=sin2(πTδm)/(T2sin2(πδm)). Both depend on
δm only modulo 1. Two elementary inequalities are used: for 0≤x≤π/2,
sinx≥2x/π (concavity of sin on [0,π]); and for ∣x∣≤1/2,
∣sinπx∣≥2∣x∣ (the same inequality with x↦πx).
Part 1. If Tφ=m0∈Z then δm0=0 and every term of the sum
for αm0 equals 1, so αm0=1.
Part 2. Choose the representative of δ=δm∗ with
∣δ∣≤1/(2T). If δ=0 we are in Part 1. Otherwise
sin2(πδ)≤(πδ)2, and πT∣δ∣≤π/2 gives
sin2(πTδ)≥(2T∣δ∣)2. Hence
Pr[m=m∗]≥T2π2δ24T2δ2=π24.
Part 3. Write Δ=φ−b/T∈[0,1/T) and label outcomes by
m=b+ℓ modulo T with ℓ∈{−T/2+1,…,T/2} (for T≥2), so
that ∣m−b∣T=∣ℓ∣. Then δm=Δ−ℓ/T, and this
representative satisfies ∣δm∣≤1/2: for ℓ≥1,
−1/2≤δm<0; for ℓ≤0,
0≤δm<1/T+(T/2−1)/T=1/2. Bounding the numerator of the amplitude by
∣1−e2πiTδm∣≤2 and the denominator by
∣1−e2πiδm∣=2∣sinπδm∣≥4∣δm∣,
∣αm∣≤T⋅4∣δm∣2=2∣TΔ−ℓ∣1.
Since 0≤TΔ<1: for ℓ≥1, ∣TΔ−ℓ∣>ℓ−1; for
ℓ≤−1, ∣TΔ−ℓ∣≥∣ℓ∣. Therefore, for e≥2,
where the middle step uses 1/ℓ2≤1/(ℓ−1)2 and the last uses
1/j2≤∫j−1jdx/x2.
Part 4. Put e=2t−n−1. The hypothesis on t gives
2t−n≥2+1/(2ε)>2, and since 2t−n is a power of 2, e≥3. If
∣m−b∣T≤e then
Tm−φ1≤T∣m−b∣T+Δ<Te+T1=2t2t−n=2−n.
By Part 3 this fails with probability at most
1/(2(e−1))=1/(2(2t−n−2)), which is at most ε exactly when
2t−n≥2+1/(2ε), the hypothesis. The cost statement follows from
∑s=0t−12s=T−1 and T≤2n+1(2+1/(2ε)) for the smallest
admissible t.
Parts 3 and 4 follow the argument of section 5.2.1 of
Nielsen and Chuang, written out here with the
representatives made explicit.
Claude (AI drafting assistant)Writing, original draft (CRediT roles)
Review history
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
2026-12-01Content release 2.1.0: 35 more topics, an independent source check of every record, intake hardening (#17)80537b7e
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).