Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma E.6.

Open
QAlgorithms.Papers.Independent.Gap48.P23.extremal_gate_bound

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

prove2quantum

For ℓ≥1\ell\ge1ℓ≥1, input covariance is with Tℓ(U)T^\ell(U)Tℓ(U) and output covariance with UUU, for every U∈U(2)U\in U(2)U∈U(2). The channel ΦTrℓ\Phi_{\rm Tr}^\ellΦTrℓ​ embeds through VℓV^\ellVℓ and keeps the first qubit; ΦUNOTℓ\Phi_{\rm UNOT}^\ellΦUNOTℓ​ measures the normalized coherent-state POVM and prepares the orthogonal state. Let DℓD_\ellDℓ​ be the explicit real dual Clebsch–Gordan matrix (C.49),(C.54). The unnormalized Choi order is output tensor input.

There are constants C>0,NC>0,NC>0,N such that for every ℓ≥max⁡{1,N}\ell\ge\max\{1,N\}ℓ≥max{1,N} the two physical channels on binary encoded (ℓ+1)(\ell+1)(ℓ+1)-dimensional inputs have exact one-qubit/CNOT gate-list realizations with

size⁡(ΦTrℓ),size⁡(ΦUNOTℓ)≤Cℓlog⁡ℓ.\operatorname{size}(\Phi_{\rm Tr}^\ell),\operatorname{size}(\Phi_{\rm UNOT}^\ell)\le C\ell\log\ell.size(ΦTrℓ​),size(ΦUNOTℓ​)≤Cℓlogℓ.

The construction uses real controlled rotations and modular shifts, with identity padding on unused binary labels. Ancillas start in zero and the environment is discarded.

This characterizes the physical postprocessing maps used in the template algorithm.

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 pp.78-79, Lemma E.6: exact implementations on binary encoded input
registers. The supplied input embedding is zero on unused binary labels;
controlled rotations and modular shifts use the identity padding above. The
threshold excludes ell=1 where ell log ell=0. -/
theorem extremal_gate_bound :
    ∃ C : ℝ, 0 < C ∧ ∃ N : ℕ, ∀ ell ≥ N, 1 ≤ ell →
      ∃ A B : OneOutputCircuit (Nat.clog 2 (ell+1)),
        circuitOutput A (finiteRegisterEmbedding (ell+1)) = partialTraceChannel ell ∧
        circuitOutput B (finiteRegisterEmbedding (ell+1)) = universalNotChannel ell ∧
        (A.circuit.size : ℝ) ≤ C * ell * Real.log ell ∧
        (B.circuit.size : ℝ) ≤ C * ell * Real.log ell ∧
        (∀ z y : Qubits (1+Nat.clog 2 (ell+1)),
          (∀ a, controlledBinaryEmbedding ell z a = 0) →
          paddedRotation ell z y = (1 : Op (Qubits (1+Nat.clog 2 (ell+1)))) z y ∧
          paddedDecrement ell z y = (1 : Op (Qubits (1+Nat.clog 2 (ell+1)))) z y) ∧
        (∀ z y : Qubits (1+Nat.clog 2 ((ell+1)+1)),
          (∀ a, controlledBinaryEmbedding (ell+1) z a = 0) →
          paddedIncrement ell z y = (1 : Op (Qubits (1+Nat.clog 2 ((ell+1)+1)))) z y) := by sorry

end QAlgorithms.Papers.Independent.Gap48.P23

end
Source
Quantum majority vote, arXiv:2211.11729v1, PDF p. 78, Lemma E.6.
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, for every natural number ℓ≥N\ell\ge Nℓ≥N with ℓ≥1\ell\ge1ℓ≥1, the following holds. Let qqq be the least natural number with ℓ+1≤2q\ell+1\le2^qℓ+1≤2q, and let EℓE_\ellEℓ​ be the matrix sending the coordinate vector ∣j⟩|j\rangle∣j⟩, 0≤j≤ℓ0\le j\le\ell0≤j≤ℓ, to the coordinate vector of the length-qqq, most-significant-bit-first binary representation of jjj. There exist two circuits AAA and BBB, each with qqq input qubits, some natural number of additional zero ancillas, and one designated output wire, such that their induced maps on every complex (ℓ+1)×(ℓ+1)(\ell+1)\times(\ell+1)(ℓ+1)×(ℓ+1) matrix are respectively Tℓ\mathcal T_\ellTℓ​ and Nℓ\mathcal N_\ellNℓ​, defined as follows:

Tℓ(X)a,b=∑z∈{0,1}ℓz0=a(JℓXJℓ†)z,z[0:=b],(Jℓ)z,j={(ℓj)−1/2,∣z∣=j,0,otherwise,\mathcal T_\ell(X)_{a,b} =\sum_{\substack{z\in\{0,1\}^{\ell}\\z_0=a}} (J_\ell XJ_\ell^\dagger)_{z,z[0:=b]}, \qquad (J_\ell)_{z,j} =\begin{cases}\binom{\ell}{j}^{-1/2},&|z|=j,\\0,&\text{otherwise},\end{cases}Tℓ​(X)a,b​=z∈{0,1}ℓz0​=a​∑​(Jℓ​XJℓ†​)z,z[0:=b]​,(Jℓ​)z,j​={(jℓ​)−1/2,0,​∣z∣=j,otherwise,​

and

Nℓ(X)=∫(ℓ+1)tr⁡ ⁣(uℓ(ϕ)uℓ(ϕ)†X)(I−ϕϕ†) dμ(ϕ),uℓ(ϕ)j=(ℓj)ϕ0ℓ−jϕ1j.\mathcal N_\ell(X) =\int(\ell+1)\operatorname{tr}\!\left(u_\ell(\phi)u_\ell(\phi)^\dagger X\right) (I-\phi\phi^\dagger)\,d\mu(\phi), \qquad u_\ell(\phi)_j=\sqrt{\binom{\ell}{j}}\phi_0^{\ell-j}\phi_1^j.Nℓ​(X)=∫(ℓ+1)tr(uℓ​(ϕ)uℓ​(ϕ)†X)(I−ϕϕ†)dμ(ϕ),uℓ​(ϕ)j​=(jℓ​)​ϕ0ℓ−j​ϕ1j​.

Here ∣z∣|z|∣z∣ counts the ones in zzz, and μ\muμ is normalized Haar measure on U(2)U(2)U(2) pushed forward by U↦U∣0⟩U\mapsto U|0\rangleU↦U∣0⟩. To obtain either circuit’s induced map, first embed XXX as EℓXEℓ†E_\ell XE_\ell^\daggerEℓ​XEℓ†​, append its zero ancillas, conjugate by its circuit matrix, and take the designated output’s partial trace. Both circuits use arbitrary one-qubit unitary gates and controlled-NOT gates on distinct wires, and each has at most Cℓln⁡ℓC\ell\ln\ellCℓlnℓ gates; no ancilla bound is asserted. In addition, define KℓK_\ellKℓ​ to embed (b,j)∈{0,1}×{0,…,ℓ}(b,j)\in\{0,1\}\times\{0,\ldots,\ell\}(b,j)∈{0,1}×{0,…,ℓ} into 1+q1+q1+q Boolean bits by putting bbb first and the binary representation of jjj afterward. On this finite register define the block matrix RℓR_\ellRℓ​, whose block at index jjj is

((ℓ−j)/ℓ−j/ℓj/ℓ(ℓ−j)/ℓ),\begin{pmatrix} \sqrt{(\ell-j)/\ell}&-\sqrt{j/\ell}\\ \sqrt{j/\ell}&\sqrt{(\ell-j)/\ell} \end{pmatrix},((ℓ−j)/ℓ​j/ℓ​​−j/ℓ​(ℓ−j)/ℓ​​),

and define Dℓ∣(b,j)⟩=∣(b,(j+ℓ+1−b) mod (ℓ+1))⟩D_\ell|(b,j)\rangle=|(b,(j+\ell+1-b)\bmod(\ell+1))\rangleDℓ​∣(b,j)⟩=∣(b,(j+ℓ+1−b)mod(ℓ+1))⟩. Set R~ℓ=KℓRℓKℓ†+I−KℓKℓ†\widetilde R_\ell=K_\ell R_\ell K_\ell^\dagger+I-K_\ell K_\ell^\daggerRℓ​=Kℓ​Rℓ​Kℓ†​+I−Kℓ​Kℓ†​ and D~ℓ=KℓDℓKℓ†+I−KℓKℓ†\widetilde D_\ell=K_\ell D_\ell K_\ell^\dagger+I-K_\ell K_\ell^\daggerDℓ​=Kℓ​Dℓ​Kℓ†​+I−Kℓ​Kℓ†​. For every pair of Boolean strings z,yz,yz,y of length 1+q1+q1+q, if (Kℓ)z,a=0(K_\ell)_{z,a}=0(Kℓ​)z,a​=0 for every column aaa, then

(R~ℓ)z,y=Iz,yand(D~ℓ)z,y=Iz,y.(\widetilde R_\ell)_{z,y}=I_{z,y} \quad\text{and}\quad (\widetilde D_\ell)_{z,y}=I_{z,y}.(Rℓ​)z,y​=Iz,y​and(Dℓ​)z,y​=Iz,y​.

Finally, let q′q'q′ be the least natural number with ℓ+2≤2q′\ell+2\le2^{q'}ℓ+2≤2q′, let Kℓ+1K_{\ell+1}Kℓ+1​ embed (b,j)(b,j)(b,j) with 0≤j≤ℓ+10\le j\le\ell+10≤j≤ℓ+1 in the same manner, and let Vℓ∣(b,j)⟩=∣(b,(j+1−b) mod (ℓ+2))⟩V_\ell|(b,j)\rangle=|(b,(j+1-b)\bmod(\ell+2))\rangleVℓ​∣(b,j)⟩=∣(b,(j+1−b)mod(ℓ+2))⟩. For every z,yz,yz,y of length 1+q′1+q'1+q′, if every entry in row zzz of Kℓ+1K_{\ell+1}Kℓ+1​ is zero, then the (z,y)(z,y)(z,y) entry of Kℓ+1VℓKℓ+1†+I−Kℓ+1Kℓ+1†K_{\ell+1}V_\ell K_{\ell+1}^\dagger+I-K_{\ell+1}K_{\ell+1}^\daggerKℓ+1​Vℓ​Kℓ+1†​+I−Kℓ+1​Kℓ+1†​ equals Iz,yI_{z,y}Iz,y​. Thus these final assertions concern the specified rows, for every column yyy.

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