Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Fixed-error brickwork design depth

Open
QAlgorithms.Papers.Independent.Extend50.P45.designDepth

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. For each fixed 0<ϵ<10<\epsilon<10<ϵ<1, there exist K>0K>0K>0, an integer t0≥2t_0\ge2t0​≥2, and h:N→Rh:\mathbb N\to\mathbb Rh:N→R tending to zero, all independent of n,tn,tn,t, such that every even n≥2n\ge2n≥2 and t≥t0t\ge t_0t≥t0​ with n≥L(t)n\ge L(t)n≥L(t) admit an integer k≥0k\ge0k≥0 satisfying

2k≤⌈Knt5+h(t)⌉,(νnbw)∗k is an ϵ-approximate unitary t-design.2k\le\left\lceil Knt^{5+h(t)}\right\rceil,\qquad (\nu_n^{\rm bw})^{*k}\text{ is an }\epsilon\text{-approximate unitary }t\text{-design}.2k≤⌈Knt5+h(t)⌉,(νnbw​)∗k is an ϵ-approximate unitary t-design.

This is the title-level consequence of the quantitative brickwork bound, counting parallel gate layers.

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.1, title/abstract, pinned by p.8 Eq.(22): fixed-error brickwork designs
in O(n t^(5+o(1))) parallel gate layers. Each step has two layers.
All witnesses are uniform over admissible n and t. -/
theorem designDepth (epsilon : ℝ) (hepsilon : 0 < epsilon) (hepsilonOne : epsilon < 1) :
    ∃ (K : ℝ) (t0 : ℕ) (h : ℕ → ℝ), 0 < K ∧ 2 ≤ t0 ∧
      Filter.Tendsto h Filter.atTop (nhds 0) ∧
      ∀ n t : ℕ, 2 ≤ n → Even n → t0 ≤ t → reductionLength t ≤ n →
        ∃ k : ℕ, 2 * k ≤ ⌈K * n * (t : ℝ) ^ (5 + h t)⌉₊ ∧
          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. 1, Unnumbered main result: approximate designs in depth O(n t^(5+o(1)))
Read-back

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

For every real ϵ\epsilonϵ satisfying 0<ϵ<10<\epsilon<10<ϵ<1, there exist a real number K>0K>0K>0, a natural number t0≥2t_0\ge2t0​≥2, and a function h:N→Rh:\mathbb N\to\mathbb Rh:N→R with h(t)→0h(t)\to0h(t)→0 as t→∞t\to\inftyt→∞, such that for every even natural number n≥2n\ge2n≥2 and every natural number t≥t0t\ge t_0t≥t0​ satisfying

r(t)=⌈2log⁡2(4t)+32log⁡2(4t)⌉N≤n,r(t)=\left\lceil2\log_2(4t)+\frac32\sqrt{\log_2(4t)}\right\rceil_{\mathbb N}\le n,r(t)=⌈2log2​(4t)+23​log2​(4t)​⌉N​≤n,

there exists a natural number kkk, possibly 000, for which

2k≤⌈Kn t 5+h(t)⌉N,Dt(Bn∗k,Hn)≤ϵ2nt.2k\le\left\lceil Kn\,t^{\,5+h(t)}\right\rceil_{\mathbb N}, \qquad D_t(\mathcal B_n^{*k},\mathcal H_n)\le\frac{\epsilon}{2^{nt}}.2k≤⌈Knt5+h(t)⌉N​,Dt​(Bn∗k​,Hn​)≤2ntϵ​.

The exponent uses real powers, and both ceilings are into the nonnegative integers. Here Bn={0,1}nB_n=\{0,1\}^nBn​={0,1}n, Hn\mathcal H_nHn​ is normalized Haar measure on U(2n)U(2^n)U(2n) indexed by binary strings, and Bn\mathcal B_nBn​ is the law of an even-indexed layer followed by an odd-indexed layer of independent Haar two-qubit gates on ordered pairs (i,i+1 mod n)(i,i+1\bmod n)(i,i+1modn), acting identically on other wires; within each layer larger indices occur on the left. Convolution takes products of independent matrices, with Bn∗0=δI\mathcal B_n^{*0}=\delta_IBn∗0​=δI​ and Bn∗(k+1)=Bn∗Bn∗k\mathcal B_n^{*(k+1)}=\mathcal B_n*\mathcal B_n^{*k}Bn∗(k+1)​=Bn​∗Bn∗k​. For any measure μ\muμ, set

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​.

Then

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

where XXX is any complex matrix indexed by Bnt×BntB_n^t\times B_n^tBnt​×Bnt​, the reference identity acts on CBnt\mathbb C^{B_n^t}CBnt​, and ∥X∥1=Re⁡tr⁡X†X\|X\|_1=\operatorname{Re}\operatorname{tr}\sqrt{X^\dagger X}∥X∥1​=RetrX†X​. The choices K,t0,hK,t_0,hK,t0​,h may depend on ϵ\epsilonϵ, but precede the choices of n,tn,tn,t; no sign or monotonicity condition on hhh is imposed.

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