Theorem 3.5 — Quantum Noise Stability Bound
ProvedQNoiseStab.theorem_3_5Let be a finite set, any set, a relation, , and . For every let . Consider any quantum query algorithm making phase queries to an input chosen uniformly at random from , and let be the probability that it outputs a with . Then
and when the bound tightens to
The theorem reduces upper bounds on the success probability of quantum query algorithms on uniform inputs to the purely classical question of how stable the events are under random resampling of coordinates. It is the tool behind the paper's time-space tradeoff lower bounds for hashing, sorting and matrix-vector products.
Formalization Note The input alphabet carries a bijection ; the algorithm is the published QAlgorithms.QueryAlg (query register , phase register , any finite workspace) with phase oracle for any with ; the maxima are encoded by a bound . Both clauses are stated, the second without the factor 2.
Differences from the source:
- encoding: → any with for all and ; reason: the maximum (with ) is such a and both bounds increase with ; no finiteness of is needed
- encoding: with "a bijective map v between X and [d]" (p.6) →
enc : X ≃ ZMod d, universally quantified; reason: the residues replace ; follows from the bijection - generalization: "some fixed d'th root of unity" (p.6) → any with ; reason: covers every fixed root the source may mean, including the primitive one
- encoding: initial state followed by → the published
QueryAlgwith an arbitrary input-independent unitstart; reason: the two give the same class of algorithms - generalization: output of the measured workspace → output
outof the measured registers ; reason: the proof measures (p.14); is the caseout = q ∘ Prod.snd - generalization: →
Efree : Finset (Fin n → X), any subset; reason: adds only , where the bound (a) is at least 2 - encoding: "the probability that a quantum query algorithm … given an input chosen uniformly at random … produces a y such that (x, y) ∈ R" →
successProb: the average over of the probability of a correct output; reason: equals for the purified uniform input (pp.6, 13) - encoding: , →
((1 - p) ^ T)⁻¹,p ∈ Set.Ioo 0 1; reason:
import Mathlib import Definitions.Def_QAlgorithms_Defs_Query import Definitions.Def_QNoiseStab_successProb import Definitions.Def_QNoiseStab_noiseProb import Definitions.Def_QNoiseStab_eventSet
namespace QNoiseStab
/-- **Theorem 3.5** (Quantum Noise Stability Bound; Beame–Holman–Kornerup, *A Noise Operator
Approach to Quantum Query Complexity and Time-Space Tradeoff Lower Bounds*, arXiv:2609.40334
(version of 2026-11-02, sha256 814fe20e…), p.13). Let `R ⊆ Xⁿ × Ŷ`, `A ⊆ [n]`, `p ∈ (0, 1)`,
`E_free ⊆ Xⁿ`, and for every `y ∈ Ŷ` let `E_y` be the set of `x ∈ Xⁿ ∖ E_free` with `(x, y) ∈ R`.
Then the probability that a quantum query algorithm making `T ≤ n` queries, given an input chosen
uniformly at random from `Xⁿ`, produces a `y` with `(x, y) ∈ R` is at most
`2 (1 − p)^{-T} max_{y∈Ŷ} max_{x∈E_y} Pr[N_p^A(x) ∈ E_y] + 2 |E_free| / |X|ⁿ`;
when `E_free = ∅` the bound can be tightened to
`(1 − p)^{-T} max_{y∈Ŷ} max_{x∈E_y} Pr[N_p^A(x) ∈ E_y]`.
**Formalization Note**
* `X` is any finite type with a bijection `enc : X ≃ ZMod d` (the paper's `v : X → [d]`, p.6); the
algorithm is the published `QAlgorithms.QueryAlg` with query register `Fin n`, phase register
`ZMod d` and any finite workspace `W`, querying the phase oracle `phaseQuery ω (enc ∘ x)` for any
`ω` with `ω ^ d = 1`. Its start state is an arbitrary input-independent unit vector (the paper's
`|0⟩_{QPW}` followed by `U_0` gives the same class).
* The output is `out` of the measured `QPW` registers (the paper's `q(w)` is `out = q ∘ Prod.snd`).
* The success probability is `successProb`, the average over the uniform input of the probability
of a correct output.
* `max_{y∈Ŷ} max_{x∈E_y} Pr[N_p^A(x) ∈ E_y]` is encoded by any `β ≥ 0` bounding all these
probabilities (the maximum is such a `β`, with `max ∅ = 0`; both bounds increase with `β`).
* `(1 − p)^{-T}` is `((1 − p)^T)⁻¹`. Both clauses are stated; clause (b) carries no factor `2`. -/
theorem theorem_3_5 {X Ŷ W : Type} [Fintype X] [DecidableEq X] [Fintype W] [DecidableEq W]
{n d T : ℕ} [NeZero d] (enc : X ≃ ZMod d) (ω : ℂ) (hω : ω ^ d = 1)
(R : Set ((Fin n → X) × Ŷ)) (A : Finset (Fin n)) (p : ℝ) (hp : p ∈ Set.Ioo (0 : ℝ) 1)
(Efree : Finset (Fin n → X)) (hT : T ≤ n) (alg : QAlgorithms.QueryAlg (Fin n) (ZMod d) W T)
(out : (Fin n × ZMod d) × W → Ŷ) (β : ℝ) (hβ0 : 0 ≤ β)
(hβ : ∀ y : Ŷ, ∀ x ∈ eventSet Efree R y, noiseProb p A x (eventSet Efree R y) ≤ β) :
successProb enc ω alg out R ≤
2 * ((1 - p) ^ T)⁻¹ * β + 2 * (Efree.card : ℝ) / (Fintype.card X : ℝ) ^ n ∧
(Efree = ∅ → successProb enc ω alg out R ≤ ((1 - p) ^ T)⁻¹ * β) := by sorry
end QNoiseStab
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.