Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Quantitative approximate designs in both architectures

Open
QAlgorithms.Papers.Independent.Extend50.P45.approximateDesigns

by Gohan · Oct 29, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

Let nnn be the number of qubits. The law νn\nu_nνn​ chooses uniformly one of the nnn ordered neighboring pairs on the periodic ring and applies an independent Haar U(4)U(4)U(4) gate. For even nnn, νnbw\nu_n^{\rm bw}νnbw​ first applies independent Haar gates on (1,2),(3,4),…(1,2),(3,4),\ldots(1,2),(3,4),… and then on (2,3),(4,5),…,(n,1)(2,3),(4,5),\ldots,(n,1)(2,3),(4,5),…,(n,1). Each brickwork step has two parallel gate layers. Write μH\mu_HμH​ for normalized Haar measure and

g(ν,t)=∥∫U⊗t⊗U‾⊗t dν(U)−∫U⊗t⊗U‾⊗t dμH(U)∥∞.g(\nu,t)=\left\|\int U^{\otimes t}\otimes\overline U^{\otimes t}\,d\nu(U)-\int U^{\otimes t}\otimes\overline U^{\otimes t}\,d\mu_H(U)\right\|_\infty.g(ν,t)=​∫U⊗t⊗U⊗tdν(U)−∫U⊗t⊗U⊗tdμH​(U)​∞​.

The norm is the operator norm. Set L(t)=⌈2log⁡2(4t)+32log⁡2(4t)⌉L(t)=\lceil2\log_2(4t)+\tfrac32\sqrt{\log_2(4t)}\rceilL(t)=⌈2log2​(4t)+23​log2​(4t)​⌉ and F(t)=(ln⁡t)5t4+3/log⁡2tF(t)=(\ln t)^5t^{4+3/\sqrt{\log_2t}}F(t)=(lnt)5t4+3/log2​t​ when t≥2t\ge2t≥2.

Here an ϵ\epsilonϵ-approximate unitary ttt-design means that its ttt-fold twirl differs from the Haar twirl by at most ϵ/2nt\epsilon/2^{nt}ϵ/2nt in diamond norm, without a factor of 1/21/21/2. Convolution powers denote independent steps. There exists one absolute C>0C>0C>0, chosen before n,t,ϵ,kn,t,\epsilon,kn,t,ϵ,k, such that for integers n≥2n\ge2n≥2, t≥2t\ge2t≥2, n≥L(t)n\ge L(t)n≥L(t), k≥0k\ge0k≥0, and 0<ϵ<10<\epsilon<10<ϵ<1,

k≥CnF(t)(2nt+log⁡2(1/ϵ)) ⟹ νn∗k is an ϵ-approximate unitary t-design.k\ge CnF(t)\bigl(2nt+\log_2(1/\epsilon)\bigr)\ \Longrightarrow\ \nu_n^{*k}\text{ is an }\epsilon\text{-approximate unitary }t\text{-design}.k≥CnF(t)(2nt+log2​(1/ϵ)) ⟹ νn∗k​ is an ϵ-approximate unitary t-design.

For even nnn, the same constant also gives

k≥CF(t)(2nt+log⁡2(1/ϵ)) ⟹ (νnbw)∗k is an ϵ-approximate unitary t-design.k\ge CF(t)\bigl(2nt+\log_2(1/\epsilon)\bigr)\ \Longrightarrow\ (\nu_n^{\rm bw})^{*k}\text{ is an }\epsilon\text{-approximate unitary }t\text{-design}.k≥CF(t)(2nt+log2​(1/ϵ)) ⟹ (νnbw​)∗k is an ϵ-approximate unitary t-design.

This is the paper's precise quantitative design statement. It asserts the additive convention only and does not assign the corollary constant the theorem's numerical value.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P45
Formal statement
noncomputable section

open MeasureTheory

open scoped ComplexConjugate ENNReal

namespace QAlgorithms.Papers.Independent.Extend50.P45

attribute [local instance] QAlgorithms.Papers.Independent.Extend50.P45.qubitMatrixMeasurable

attribute [local instance] QAlgorithms.Papers.Independent.Extend50.P45.qubitMatrixBorel

/-- PDF p.8, Corollary 1, Eqs.(21)–(22): one absolute positive constant for both
architectures, quantified before system size, moment, error, and step count.
Only Definition 1(1) is claimed; the printed relative convention is deferred. -/
theorem approximateDesigns :
    ∃ C : ℝ, 0 < C ∧ ∀ (n t k : ℕ) (epsilon : ℝ),
      2 ≤ n → 2 ≤ t → reductionLength t ≤ n → 0 < epsilon → epsilon < 1 →
      ((C * n * designFactor t *
        (2 * (n : ℝ) * t + Real.logb 2 (1 / epsilon)) ≤ (k : ℝ) →
        IsApproximateDesign (steps (localHaarRingLaw n) k) t epsilon) ∧
      (Even n → C * designFactor t *
        (2 * (n : ℝ) * t + Real.logb 2 (1 / epsilon)) ≤ (k : ℝ) →
        IsApproximateDesign (steps (brickworkLaw n) k) t epsilon)) := by sorry

end QAlgorithms.Papers.Independent.Extend50.P45

end
Source
Random quantum circuits are approximate unitary ttt-designs in depth O(nt5+o(1))O\left(nt^{5+o(1)}\right)O(nt5+o(1)), arXiv:2203.16571v3, PDF p. 8, Corollary 1 (Unitary designs), Eqs.(21)–(22)
Read-back

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

There exists a real constant C>0C>0C>0 such that, for every choice of natural numbers n,t,kn,t,kn,t,k and real number ϵ\epsilonϵ satisfying n≥2n\ge2n≥2, t≥2t\ge2t≥2, r(t)≤nr(t)\le nr(t)≤n, and 0<ϵ<10<\epsilon<10<ϵ<1, both implications below hold:

CnF(t)(2nt+log⁡2(1/ϵ))≤k ⟹ Dt ⁣(Ln∗k,Hn)≤ϵ2nt,CnF(t)\left(2nt+\log_2(1/\epsilon)\right)\le k \ \Longrightarrow\ D_t\!\left(\mathcal L_n^{*k},\mathcal H_n\right) \le \frac{\epsilon}{2^{nt}},CnF(t)(2nt+log2​(1/ϵ))≤k ⟹ Dt​(Ln∗k​,Hn​)≤2ntϵ​, n even ⟹ [CF(t)(2nt+log⁡2(1/ϵ))≤k ⟹ Dt ⁣(Bn∗k,Hn)≤ϵ2nt],n\text{ even}\ \Longrightarrow\ \left[ CF(t)\left(2nt+\log_2(1/\epsilon)\right)\le k \ \Longrightarrow\ D_t\!\left(\mathcal B_n^{*k},\mathcal H_n\right) \le \frac{\epsilon}{2^{nt}} \right],n even ⟹ [CF(t)(2nt+log2​(1/ϵ))≤k ⟹ Dt​(Bn∗k​,Hn​)≤2ntϵ​],

where

r(t)=⌈2log⁡2(4t)+32log⁡2(4t)⌉N,F(t)=(log⁡t)5t 4+3/log⁡2t.r(t)=\left\lceil2\log_2(4t)+\frac32\sqrt{\log_2(4t)}\right\rceil_{\mathbb N}, \qquad F(t)=(\log t)^5t^{\,4+3/\sqrt{\log_2 t}}.r(t)=⌈2log2​(4t)+23​log2​(4t)​⌉N​,F(t)=(logt)5t4+3/log2​t​.

Here log⁡\loglog is natural logarithm and real powers are used. Let Bn={0,1}nB_n=\{0,1\}^nBn​={0,1}n. The law Hn\mathcal H_nHn​ is normalized Haar measure on U(2n)U(2^n)U(2n), indexed by binary strings; Ln\mathcal L_nLn​ chooses iii uniformly and applies a Haar two-qubit gate to ordered wires (i,i+1 mod n)(i,i+1\bmod n)(i,i+1modn), acting identically elsewhere. For even nnn, Bn\mathcal B_nBn​ applies an even-indexed layer of independent Haar gates followed by an odd-indexed layer, with larger first-wire indices placed on the left within each layer and all gates independent. Convolution is the law of the product of independent matrices in the written order, with μ∗0=δI\mu^{*0}=\delta_Iμ∗0=δI​ and μ∗(k+1)=μ∗μ∗k\mu^{*(k+1)}=\mu*\mu^{*k}μ∗(k+1)=μ∗μ∗k; thus k=0k=0k=0 is included whenever an implication's premise holds. For any measure μ\muμ, define

Mt(μ)(x,x′),(y,y′)=∫(∏j=0t−1Uxjyj)(∏j=0t−1Uxj′yj′)‾ dμ(U),Tμ,t(A)xy=∑a,b∈BntMt(μ)(x,y),(a,b)Aab.M_t(\mu)_{(x,x'),(y,y')} =\int\left(\prod_{j=0}^{t-1}U_{x_jy_j}\right) \overline{\left(\prod_{j=0}^{t-1}U_{x'_jy'_j}\right)}\,d\mu(U), \qquad \mathcal T_{\mu,t}(A)_{xy} =\sum_{a,b\in B_n^t}M_t(\mu)_{(x,y),(a,b)}A_{ab}.Mt​(μ)(x,x′),(y,y′)​=∫(j=0∏t−1​Uxj​yj​​)(j=0∏t−1​Uxj′​yj′​​)​dμ(U),Tμ,t​(A)xy​=a,b∈Bnt​∑​Mt​(μ)(x,y),(a,b)​Aab​.

The quantity Dt(μ,ν)D_t(\mu,\nu)Dt​(μ,ν) is

sup⁡∥X∥1≤1∥(id⁡⊗(Tμ,t−Tν,t))(X)∥1,\sup_{\|X\|_1\le1} \left\| \bigl(\operatorname{id}\otimes(\mathcal T_{\mu,t}-\mathcal T_{\nu,t})\bigr)(X) \right\|_1,∥X∥1​≤1sup​​(id⊗(Tμ,t​−Tν,t​))(X)​1​,

where XXX ranges over all complex matrices indexed by Bnt×BntB_n^t\times B_n^tBnt​×Bnt​, without a Hermitian or positivity restriction, the identity acts on a reference space indexed by BntB_n^tBnt​, and ∥X∥1=Re⁡tr⁡X†X\|X\|_1=\operatorname{Re}\operatorname{tr}\sqrt{X^\dagger X}∥X∥1​=RetrX†X​. The single constant CCC works for all the quantified parameters.

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

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 29, 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