Eqs. (15)–(28) — the probability that step 1 exits at some round k ≤ k₀ is at most δ/4 (union bound)
ProvedQApproxCount.Counting.eqs_15_28approximate-countingchernoffp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1union-bound
Let , let be the largest integer with , let and , and let be the largest odd integer at most . If , then
By the union bound, the left-hand side bounds the probability that step 1 terminates too early, at some .
Formalization Note The printed step (26) has a numerical slip: from (25) as printed, , not . The chain still closes, since . The statement here is the conclusion (28), which is true.
Preamble
import Mathlib import Definitions.Def_QApproxCount_Counting_Algorithm
Formal statement
namespace QApproxCount.Counting
/-- Eqs. (15)–(28), p. 6 (no early termination): let `0 < θ ≤ 0.001`, let `k₀` be the largest
integer with `θ · 1.05^{k₀} ≤ 0.9`, `0 < δ < 1`, and `m ≥ 5000 ln(5/δ)`. Then the sum over the
rounds `k = 0, …, k₀` of the probability that at least 95% of `m` tosses of a coin with bias
`sin²(r_k θ)` are heads is at most `δ/4` (union bound for exiting step 1 at or before `k₀`). -/
theorem eqs_15_28 (θ δ : ℝ) (hθ : 0 < θ) (hθ1 : θ ≤ 0.001) (k₀ : ℕ)
(hk₀ : θ * (1.05 : ℝ) ^ k₀ ≤ 0.9) (hk₀max : 0.9 < θ * (1.05 : ℝ) ^ (k₀ + 1))
(hδ : 0 < δ) (hδ1 : δ < 1) (m : ℕ) (hm : 5000 * Real.log (5 / δ) ≤ (m : ℝ)) :
∑ k ∈ Finset.range (k₀ + 1),
(coin (Real.sin ((oddFloor k : ℝ) * θ) ^ 2) m).toOuterMeasure
{h : ℕ | 0.95 * (m : ℝ) ≤ (h : ℝ)} ≤ ENNReal.ofReal (δ / 4) := by sorry
end QApproxCount.Counting
Source
Aaronson & Rall, Quantum Approximate Counting, Simplified, arXiv:1908.10846v6, p. 6, eqs. (15)–(28)
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.