Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 4.8.

Open
QAlgorithms.Papers.Independent.Gap48.P23.template_gate_bound

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

prove2quantum

Work in finite-dimensional complex Hilbert spaces with the indicated computational bases. A channel is a fixed completely positive trace-preserving map, independent of the unknown word xxx and common basis UUU. Write ρxU=U⊗n∣x⟩⟨x∣U†⊗n\rho_x^U=U^{\otimes n}|x\rangle\langle x|U^{\dagger\otimes n}ρxU​=U⊗n∣x⟩⟨x∣U†⊗n. For an input promise PPP, let Ff,P(Φ)F_{f,P}(\Phi)Ff,P​(Φ) be the minimum of ⟨f(x)∣U†Φ(ρxU)U∣f(x)⟩\langle f(x)|U^\dagger\Phi(\rho_x^U)U|f(x)\rangle⟨f(x)∣U†Φ(ρxU​)U∣f(x)⟩ over every allowed xxx and U∈U(d)U\in U(d)U∈U(d), and let Ff,PF_{f,P}Ff,P​ be its supremum over channels. An omitted PPP means all words. Boolean functions use d=2d=2d=2; positive odd nnn is imposed whenever symmetry and equivariance of a Boolean function are required.

With all one-qubit gates and CNOT available, there are universal C>0,NC>0,NC>0,N such that, for every positive odd n≥Nn\ge Nn≥N and every allowed real interpolation vector, the full template channel has an exact gate-list realization with

size⁡(At)≤Cn4log⁡n.\operatorname{size}(A_t)\le Cn^4\log n.size(At​)≤Cn4logn.

The realization initializes zero ancillas, applies gates on named wires, retains one qubit, and traces the rest. Equality is on all operators.

This is the stated interface for the corresponding result of the paper.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Gap48_P23
Formal statement
noncomputable section

namespace QAlgorithms.Papers.Independent.Gap48.P23

open MeasureTheory

open scoped ComplexConjugate Matrix ComplexOrder

attribute [local instance] Classical.propDecidable

attribute [local instance] Classical.decEq

-- Exact frozen coordinate helpers; no paper-local redeclarations.

open QAlgorithms.Papers.Independent.Information100.P58 (Word)

open QAlgorithms.Papers.Independent.Information100.P21 (Op)

open QAlgorithms.Papers.Independent.Information100.P63 (tensorPower)

/-- PDF p.33, Theorem 4.8: constants are uniform over n and all real rotation
parameters. Exact continuous gates are assumed as in the source proof; no
finite-precision Turing computation of arbitrary real constants is asserted. -/
theorem template_gate_bound :
    ∃ C : ℝ, 0 < C ∧ ∃ N : ℕ, ∀ n ≥ N, 1 ≤ n → Odd n →
      ∀ (alpha : RealSchurCoefficients n), LawfulCoefficients alpha →
      ∀ t : TwoRowShape n → ℝ, (∀ k, 0 ≤ t k ∧ t k ≤ 1) →
        ∃ circuit : OneOutputCircuit n,
          circuitOutput circuit (wordBinaryEmbedding n) = template alpha t ∧
          (circuit.circuit.size : ℝ) ≤ C * (n:ℝ)^4 * Real.log n := by sorry

end QAlgorithms.Papers.Independent.Gap48.P23

end
Source
Quantum majority vote, arXiv:2211.11729v1, PDF p. 33, Theorem 4.8.
Read-back

What the Lean code literally says, in plain math · gpt-6.1-sol

There exist a real constant C>0C>0C>0 and a natural number NNN such that the following holds for every natural number n≥Nn\ge Nn≥N with n≥1n\ge1n≥1 and nnn odd. Write Kn={0,…,⌊n/2⌋}K_n=\{0,\ldots,\lfloor n/2\rfloor\}Kn​={0,…,⌊n/2⌋}, ℓk=n−2k\ell_k=n-2kℓk​=n−2k, and mk=(nk)−(nk−1)m_k=\binom nk-\binom n{k-1}mk​=(kn​)−(k−1n​), where the second binomial coefficient is replaced by zero when k=0k=0k=0. Let αk,r,p\alpha_{k,r,p}αk,r,p​ be any real coefficients, indexed by k∈Knk\in K_nk∈Kn​, 0≤r<mk0\le r<m_k0≤r<mk​, and permutations ppp of the nnn positions. For 0≤w≤ℓk0\le w\le\ell_k0≤w≤ℓk​, define sk,ws_{k,w}sk,w​ on binary words of length nnn to be the tensor product of the vector that has amplitude (ℓkw)−1/2\binom{\ell_k}{w}^{-1/2}(wℓk​​)−1/2 on length-ℓk\ell_kℓk​ words with exactly www ones and zero elsewhere, followed by kkk copies of (∣01⟩−∣10⟩)/2(|01\rangle-|10\rangle)/\sqrt2(∣01⟩−∣10⟩)/2​. A ket ∣x⟩|x\rangle∣x⟩ here is the coordinate vector at xxx. Let Rp∣x⟩=∣x∘p−1⟩R_p|x\rangle=|x\circ p^{-1}\rangleRp​∣x⟩=∣x∘p−1⟩, and define vk,w,0=sk,wv_{k,w,0}=s_{k,w}vk,w,0​=sk,w​ and vk,w,r=∑pαk,r,pRpsk,wv_{k,w,r}=\sum_p\alpha_{k,r,p}R_ps_{k,w}vk,w,r​=∑p​αk,r,p​Rp​sk,w​ for r≠0r\ne0r=0. Assume, for every kkk, that the vectors vk,0,rv_{k,0,r}vk,0,r​ are orthonormal and their complex linear span equals the span of all Rpsk,0R_ps_{k,0}Rp​sk,0​. Form the matrix W(k,w,r),x=vk,w,r(x)‾W_{(k,w,r),x}=\overline{v_{k,w,r}(x)}W(k,w,r),x​=vk,w,r​(x)​ and the matrices

Bk(X)w,v=∑r=0mk−1(WXW†)(k,w,r),(k,v,r).B_k(X)_{w,v}=\sum_{r=0}^{m_k-1}(WXW^\dagger)_{(k,w,r),(k,v,r)}.Bk​(X)w,v​=r=0∑mk​−1​(WXW†)(k,w,r),(k,v,r)​.

For each positive integer ℓ\ellℓ, let JℓJ_\ellJℓ​ have entries (Jℓ)z,w=(ℓw)−1/2(J_\ell)_{z,w}=\binom{\ell}{w}^{-1/2}(Jℓ​)z,w​=(wℓ​)−1/2 when the Boolean string zzz has weight www, and zero otherwise, and define

Tℓ(Y)a,b=∑z∈{0,1}ℓz0=a(JℓYJℓ†)z,z[0:=b].\mathcal T_\ell(Y)_{a,b} =\sum_{\substack{z\in\{0,1\}^{\ell}\\z_0=a}} (J_\ell YJ_\ell^\dagger)_{z,z[0:=b]}.Tℓ​(Y)a,b​=z∈{0,1}ℓz0​=a​∑​(Jℓ​YJℓ†​)z,z[0:=b]​.

Also put uℓ(ϕ)w=(ℓw)ϕ0ℓ−wϕ1wu_\ell(\phi)_w=\sqrt{\binom{\ell}{w}}\phi_0^{\ell-w}\phi_1^wuℓ​(ϕ)w​=(wℓ​)​ϕ0ℓ−w​ϕ1w​ and

Nℓ(Y)=∫(ℓ+1)tr⁡ ⁣(uℓ(ϕ)uℓ(ϕ)†Y)(I−ϕϕ†) dμ(ϕ),\mathcal N_\ell(Y) =\int(\ell+1)\operatorname{tr}\!\left(u_\ell(\phi)u_\ell(\phi)^\dagger Y\right) \left(I-\phi\phi^\dagger\right)\,d\mu(\phi),Nℓ​(Y)=∫(ℓ+1)tr(uℓ​(ϕ)uℓ​(ϕ)†Y)(I−ϕϕ†)dμ(ϕ),

where μ\muμ is the image of normalized Haar measure on U(2)U(2)U(2) under U↦U∣0⟩U\mapsto U|0\rangleU↦U∣0⟩. For every real family tkt_ktk​ satisfying 0≤tk≤10\le t_k\le10≤tk​≤1, there exists a circuit on n+an+an+a qubits for some natural number aaa, with one designated output wire, whose induced map is exactly

X⟼∑k∈Kn[tkTℓk(Bk(X))+(1−tk)Nℓk(Bk(X))].X\longmapsto\sum_{k\in K_n} \left[t_k\mathcal T_{\ell_k}(B_k(X))+(1-t_k)\mathcal N_{\ell_k}(B_k(X))\right].X⟼k∈Kn​∑​[tk​Tℓk​​(Bk​(X))+(1−tk​)Nℓk​​(Bk​(X))].

The induced map means: identify binary words with Boolean strings, append aaa zero ancillas to XXX, conjugate by the circuit matrix, and retain only the designated output qubit by partial trace. The circuit is a finite ordered list of arbitrary one-qubit unitary gates and controlled-NOT gates on distinct wires, with earlier gates acting first, and its number of gates is at most Cn4ln⁡nCn^4\ln nCn4lnn. Equality of the maps holds on every complex input matrix. There is no bound here on the number of added ancillas, and the circuit conclusion is restricted to the stated positive odd nnn above the threshold.

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

    Confirmed by the moderator at approval.

  • Endorsed by Goku · Oct 22, 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 paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me