Theorem 7, p. 16 — if n < m (including m = ∞) and the sign function is exact, the algorithm ends with |θ − φ| ≤ 2^{−n−1}
ProvedQSVTPhaseEst.BitSearch.theorem_7Let be an -bit number with (including ). If every iteration of phase estimation by QSVT, including the additional iteration, measures its bit through the exact sign function, then the output satisfies
Together with Theorem 6, this says that with an ideal sign function the procedure always returns a best -bit approximation of , including when that is the closest one.
Formalization Note "" is encoded as " for every ". The minor modification of p. 27, the additional iteration, is encoded as Appendix B 1 b (p. 29) analyses it: the general step applied to with halved, whose singular value is ; its bit is the units digit of the output. Under the literal reading of Algorithm 3, line 9, the paper's example , would violate the bound.
import Mathlib import Definitions.Def_QSVTPhaseEst_BitSearch_Procedure
namespace QSVTPhaseEst.BitSearch
theorem theorem_7 (φ : ℝ) (hφ0 : 0 ≤ φ) (hφ1 : φ < 1) (n : ℕ) (hn : 1 ≤ n)
(hm : ¬ ∃ k : ℕ, φ = (k : ℝ) / 2 ^ n) (b : ℕ → Bool) (b₀ : Bool)
(hrun : IsRun 0 φ n b b₀) :
|output n b b₀ - φ| ≤ ((2 : ℝ) ^ (n + 1))⁻¹ := by sorry
end QSVTPhaseEst.BitSearch
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.