Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Quantum agnostic learning needs Ω(d/ε² + log(1/δ)/ε²) quantum examples

Open
QAlgorithms.LearningSurvey.quantumAgnostic_sampleLowerBound

by Goku · Oct 13, 2026 · Mathlib 0df444a (Lean v4.33.1)

learning-surveylecture-notesquantum-information

This is the optimal lower bound on the quantum sample complexity of agnostic learning, with the threshold on the VC dimension that the proof requires.

Let CCC be a concept class of Boolean functions on {0,1}n\{0,1\}^n{0,1}n with VC dimension ddd. For a distribution DDD on {0,1}n×{0,1}\{0,1\}^{n}\times\{0,1\}{0,1}n×{0,1} write errD(h)=Pr⁡(x,b)∼D[h(x)≠b]\mathrm{err}_D(h)=\Pr_{(x,b)\sim D}[h(x)\neq b]errD​(h)=Pr(x,b)∼D​[h(x)=b] and optD(C)=min⁡c∈CerrD(c)\mathrm{opt}_D(C)=\min_{c\in C}\mathrm{err}_D(c)optD​(C)=minc∈C​errD​(c). An (ε,δ)(\varepsilon,\delta)(ε,δ)-quantum agnostic learner for CCC with TTT examples is a POVM {Mh}h∈C\{M_h\}_{h\in C}{Mh​}h∈C​ on TTT copies of ∑(x,b)D(x,b) ∣x,b⟩\sum_{(x,b)}\sqrt{D(x,b)}\,|x,b\rangle∑(x,b)​D(x,b)​∣x,b⟩ such that for every distribution DDD the outcome hhh satisfies errD(h)≤optD(C)+ε\mathrm{err}_D(h)\le\mathrm{opt}_D(C)+\varepsilonerrD​(h)≤optD​(C)+ε with probability at least 1−δ1-\delta1−δ.

There are an absolute constant K>0K>0K>0 and a threshold d0d_0d0​ such that for all nnn, all d≥d0d\ge d_0d≥d0​, every concept class CCC of VC dimension ddd, all δ∈(0,1/2)\delta\in(0,1/2)δ∈(0,1/2) and ε∈(0,1/10)\varepsilon\in(0,1/10)ε∈(0,1/10), every (ε,δ)(\varepsilon,\delta)(ε,δ)-quantum agnostic learner for CCC uses

T ≥ K(dε2+1ε2log⁡1δ)T\ \ge\ K\Big(\frac{d}{\varepsilon^2}+\frac{1}{\varepsilon^2}\log\frac{1}{\delta}\Big)T ≥ K(ε2d​+ε21​logδ1​)

examples.

It shows that quantum examples give no advantage for agnostic learning either: the bound matches the classical sample complexity up to constants.

Formalization Note The source prints the bound for every ddd; it is false at d=0d=0d=0 (one concept, no examples needed) and at small ddd with δ\deltaδ close to 1/21/21/2 (for C={c,¬c}C=\{c,\neg c\}C={c,¬c} one example measured in the computational basis is an (ε,1/2−ε/2)(\varepsilon,1/2-\varepsilon/2)(ε,1/2−ε/2)-learner). The threshold d0d_0d0​ is the source's "sufficiently large constant" from the code argument. The learner is proper: its outcomes are the concepts of CCC.

Preamble
import Definitions.Def_QAlgorithms_Defs_LearningHardInstances
set_option autoImplicit false
Formal statement
namespace QAlgorithms.LearningSurvey

open MeasureTheory QAlgorithms.Learning



/-- survey p.14, Theorem 4.15 ([AW17]): optimal quantum agnostic sample-complexity lower bound.
Let `C` be a concept class on `{0,1}^n` with VC dimension `d`. For every `δ ∈ (0, 1/2)` and
`ε ∈ (0, 1/10)`, every `(ε, δ)`-quantum agnostic learner for `C` (a POVM on `T` copies of
`Σ_{(x,b)} √D(x,b) |x, b⟩` whose outcomes are concepts of `C`, outputting with probability
`≥ 1 − δ` an `h ∈ C` with `err_D(h) ≤ opt_D(C) + ε`, for every distribution `D`) uses
`T = Ω(d/ε² + (1/ε²) log(1/δ))` copies.

Corrected statement (trap 30): the `Ω` carries a threshold `d₀` on `d` (the source's proof needs
the linear code of p.14, which exists for `d` a sufficiently large constant). Without it the
printed statement is false: at `d = 0` the class has at most one concept and `T = 0` suffices; at
`d = 1`, for `C = {c, ¬c}`, one copy measured in the computational basis (output `c` iff the label
agrees with `c`) is an `(ε, 1/2 − ε/2)`-learner, while `K/ε² → ∞` as `ε → 0`. -/
theorem quantumAgnostic_sampleLowerBound :
    ∃ K : ℝ, 0 < K ∧ ∃ d₀ : ℕ, ∀ (n d : ℕ) (C : Finset (Qubits n → Bool)), d₀ ≤ d →
      vcDimClass C = d →
      ∀ δ ε : ℝ, 0 < δ → δ < 1 / 2 → 0 < ε → ε < 1 / 10 →
      ∀ (T : ℕ) (M : {c // c ∈ C} →
          Matrix (Fin T → Qubits n × Bool) (Fin T → Qubits n × Bool) ℂ),
        IsQAgnosticLearner C ε δ T M →
        K * ((d : ℝ) / ε ^ 2 + (1 / ε ^ 2) * Real.log (1 / δ)) ≤ (T : ℝ) := by sorry


end QAlgorithms.LearningSurvey
Source
Srinivasan Arunachalam and Ronald de Wolf, A Survey of Quantum Learning Theory, 2017, v3, PDF p. 14, Theorem 4.15. https://arxiv.org/pdf/1701.06806v3
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

There exist a real constant K>0K > 0K>0 and a threshold d0∈Nd_0 \in \mathbb{N}d0​∈N such that the following holds for all natural numbers n,dn, dn,d with d0≤dd_0 \le dd0​≤d and every finite concept class CCC of Boolean functions c:{0,1}n→{0,1}c : \{0,1\}^n \to \{0,1\}c:{0,1}n→{0,1} whose VC dimension equals ddd. The VC dimension is defined exactly as above: the largest size of a subset of {0,1}n\{0,1\}^n{0,1}n shattered by the family of positive sets {x:c(x)=1}\{x : c(x) = 1\}{x:c(x)=1}, c∈Cc \in Cc∈C.

For all reals δ,ε\delta, \varepsilonδ,ε with 0<δ<1/20 < \delta < 1/20<δ<1/2 and 0<ε<1/100 < \varepsilon < 1/100<ε<1/10, take every T∈NT \in \mathbb{N}T∈N (including T=0T=0T=0) and every family (Mc)c∈C(M_c)_{c \in C}(Mc​)c∈C​ of complex square matrices. This family is indexed by the elements of CCC, and each matrix acts on the space with basis ({0,1}n×{0,1})T(\{0,1\}^n \times \{0,1\})^T({0,1}n×{0,1})T. If MMM is a quantum agnostic learner for CCC with parameters (ε,δ,T)(\varepsilon,\delta,T)(ε,δ,T), then

K(dε2+1ε2ln⁡1δ)≤T.K\left(\frac{d}{\varepsilon^2} + \frac{1}{\varepsilon^2}\ln\frac{1}{\delta}\right) \le T .K(ε2d​+ε21​lnδ1​)≤T.

Being a quantum agnostic learner means two things:

  1. MMM is a POVM. Each McM_cMc​ is positive semidefinite and ∑c∈CMc=I\sum_{c \in C} M_c = I∑c∈C​Mc​=I. This forces C≠∅C \neq \emptysetC=∅.
  2. Success on every distribution. For every D:{0,1}n×{0,1}→RD : \{0,1\}^n \times \{0,1\} \to \mathbb{R}D:{0,1}n×{0,1}→R with D≥0D \ge 0D≥0 and ∑D=1\sum D = 1∑D=1,
∑h∈C : errD(h)≤optD(C)+εRe⁡Tr⁡ ⁣(Mh ∣ϕD⊗T⟩⟨ϕD⊗T∣)  ≥  1−δ.\sum_{h \in C \,:\, \mathrm{err}_D(h) \le \mathrm{opt}_D(C) + \varepsilon} \operatorname{Re}\operatorname{Tr}\!\big(M_h\, |\phi_D^{\otimes T}\rangle\langle\phi_D^{\otimes T}|\big) \;\ge\; 1 - \delta .h∈C:errD​(h)≤optD​(C)+ε∑​ReTr(Mh​∣ϕD⊗T​⟩⟨ϕD⊗T​∣)≥1−δ.

The symbols in this condition are defined as follows:

  • The state ϕD\phi_DϕD​ has amplitude D(x,b)\sqrt{D(x,b)}D(x,b)​ at each basis vector (x,b)(x,b)(x,b).
  • Its TTT-fold tensor power has amplitude ∏iϕD(zi)\prod_i \phi_D(z_i)∏i​ϕD​(zi​) at z=(z1,…,zT)z = (z_1,\dots,z_T)z=(z1​,…,zT​).
  • The error of hhh is errD(h)=∑(x,b):h(x)≠bD(x,b)\mathrm{err}_D(h) = \sum_{(x,b) : h(x) \ne b} D(x,b)errD​(h)=∑(x,b):h(x)=b​D(x,b).
  • The optimal error is optD(C)=inf⁡c∈CerrD(c)\mathrm{opt}_D(C) = \inf_{c \in C} \mathrm{err}_D(c)optD​(C)=infc∈C​errD​(c), which is a minimum since CCC is finite.

The constants KKK and d0d_0d0​ are fixed before all other quantities.

Human review
  • Endorsed by Shuze Chen · Oct 13, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Goku · Oct 13, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me