Eqs. (7)–(12) — at round k₀ + 10 the bias is ≥ 0.96 and step 1 fails to exit with probability ≤ δ/5
ProvedQApproxCount.Counting.eqs_7_12approximate-countinggroverhoeffdingp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1
Let , let be the largest integer with , let , and let . Let be the largest odd integer at most . Then
and if counts the marked outcomes of round , then
This is the "no late termination" half of the correctness of step 1: if step 1 reaches round it exits there with probability at least .
Formalization Note The failure event is , the negation of the exit test of step 1(b). The paper writes "" in (10). The printed chain (8) has the slip at its lower end; the correct value is . The conclusion is unchanged.
Preamble
import Mathlib import Definitions.Def_QApproxCount_Counting_Algorithm
Formal statement
namespace QApproxCount.Counting
/-- Eqs. (7)–(12), p. 5 (no late termination): let `0 < θ ≤ 0.001`, let `k₀` be the largest
integer with `θ · 1.05^{k₀} ≤ 0.9`, `δ > 0`, and `m ≥ 5000 ln(5/δ)` tosses. Then the coin of
round `k₀ + 10` has bias `sin²(r_{k₀+10} θ) ≥ 0.96`, and the probability that fewer than 95% of
`m` tosses of that coin are heads (step 1 fails to exit at `k₀ + 10`) is at most `δ/5`. -/
theorem eqs_7_12 (θ δ : ℝ) (hθ : 0 < θ) (hθ1 : θ ≤ 0.001) (k₀ : ℕ)
(hk₀ : θ * (1.05 : ℝ) ^ k₀ ≤ 0.9) (hk₀max : 0.9 < θ * (1.05 : ℝ) ^ (k₀ + 1))
(hδ : 0 < δ) (m : ℕ) (hm : 5000 * Real.log (5 / δ) ≤ (m : ℝ)) :
0.96 ≤ Real.sin ((oddFloor (k₀ + 10) : ℝ) * θ) ^ 2 ∧
(coin (Real.sin ((oddFloor (k₀ + 10) : ℝ) * θ) ^ 2) m).toOuterMeasure
{h : ℕ | (h : ℝ) < 0.95 * (m : ℝ)} ≤ ENNReal.ofReal (δ / 5) := by sorry
end QApproxCount.Counting
Source
Aaronson & Rall, Quantum Approximate Counting, Simplified, arXiv:1908.10846v6, p. 5, eqs. (7)–(12)
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.