Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§2.2: split data-loading circuit before amplification (19)–(20)

Open
QAlgorithms.Papers.Independent.Extend50.P44.splitConstruction

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

prove2quantum

Fix a compatible padded base scheme with supported sparsities Sc,SrS_c,S_rSc​,Sr​, and a real data table with positive maximum magnitude MaM_aMa​. All active structural entries are nonzero; padding uses the stated zero-support convention. Let 0≤p≤10\le p\le10≤p≤1. Replace the data rotation by two independent flagged rotations with selected amplitudes sgn⁡(aj)∣aj∣p/Map\operatorname{sgn}(a_j)|a_j|^p/M_a^psgn(aj​)∣aj​∣p/Map​ and ∣aj∣1−p/Ma1−p|a_j|^{1-p}/M_a^{1-p}∣aj​∣1−p/Ma1−p​.

The resulting unitary circuit (19) satisfies

(⟨0∣⊗I)Up(∣0⟩⊗I)=AScSrMa,(\langle0|\otimes I)U_p(|0\rangle\otimes I)=\frac{A}{\sqrt{S_cS_r}M_a},(⟨0∣⊗I)Up​(∣0⟩⊗I)=Sc​Sr​​Ma​A​,

the same selected block as circuit (16). It has two data-loading stages, hence 2D2D2D supplied-item loads. This is the exact split before any singular-value amplification.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P44
Formal statement
noncomputable section

namespace QAlgorithms.Papers.Independent.Extend50.P44

open scoped BigOperators ComplexConjugate Matrix

open QAlgorithms.Papers.Independent.Frontier18.P11 (complexMatrix)

open QAlgorithms.Papers.Independent.Information100.P34 (permutationMatrix)

open QAlgorithms.Papers.Independent.Next46.P21 (tCount)

variable {n s d m : ℕ}

/-- PDF p.8, (19)-(20): splitting the rotation retains every selected entry
and the normalization; zero padding follows the explicit support convention. -/
theorem splitConstruction (B : Scheme n s d m) (a : Fin (2 ^ d) → ℝ)
    (active : Finset (Fin (2 ^ d))) (hactive : active.Nonempty)
    (hpadding : ∀ j, j ∉ active → a j = 0)
    (ha : 0 < tableMax a) (p : ℝ) (hp : 0 ≤ p ∧ p ≤ 1)
    (hnz : ∀ l, B.valid l = true → a l.1 ≠ 0) :
    QAlgorithms.IsBlockEncoding ((false, false, false), 0) (B.splitCircuit a p)
      (B.baseAlpha a) 0 (B.matrix a) ∧
    (∀ i j, B.splitCircuit a p (((false, false, false), 0), i)
      (((false, false, false), 0), j) =
      B.baseCircuit a false (((false, false), 0), i) (((false, false), 0), j)) ∧
    loadingCost (doubleLoadingSchedule active.card) = 2 * active.card := by sorry

end QAlgorithms.Papers.Independent.Extend50.P44

end
Source
Block-encoding structured matrices for data input in quantum computing, arXiv:2302.10949v2, PDF p. 8, §2.2: split data-loading circuit before amplification (19)–(20)
Read-back

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

For natural numbers n,s,d,mn,s,d,mn,s,d,m, put Jt={0,…,2t−1}J_t=\{0,\ldots,2^t-1\}Jt​={0,…,2t−1} and L=Jd×JmL=J_d\times J_mL=Jd​×Jm​. Let BBB supply d+m=s+nd+m=s+nd+m=s+n, bijections C,R:L→Js×JnC,R:L\to J_s\times J_nC,R:L→Js​×Jn​, Boolean validity vvv, nonempty slot sets Sc,SrS_c,S_rSc​,Sr​, and unitaries Hc,HrH_c,H_rHc​,Hr​ whose first columns are uniform positive amplitudes on those sets and zero elsewhere; valid labels map into the corresponding slot sets and are uniquely determined by their column and row system positions. Let a:Jd→Ra:J_d\to\mathbb Ra:Jd​→R, let active⊆Jd\mathrm{active}\subseteq J_dactive⊆Jd​ be nonempty with aj=0a_j=0aj​=0 outside it, assume M=max⁡j∣aj∣>0M=\max_j|a_j|>0M=maxj​∣aj​∣>0, take p∈[0,1]p\in[0,1]p∈[0,1], and assume aℓ1≠0a_{\ell_1}\ne0aℓ1​​=0 for every valid label ℓ\ellℓ. Define s(x,t)=0s(x,t)=0s(x,t)=0 for x=0x=0x=0 and s(x,t)=∣x∣ts(x,t)=|x|^ts(x,t)=∣x∣t otherwise, and

qj=sign⁡(aj)s(aj,p)Mp,rj=s(aj,1−p)M1−p,α=∣Sc∣∣Sr∣ M.q_j=\frac{\operatorname{sign}(a_j)s(a_j,p)}{M^p}, \qquad r_j=\frac{s(a_j,1-p)}{M^{1-p}}, \qquad \alpha=\sqrt{|S_c||S_r|}\,M.qj​=Mpsign(aj​)s(aj​,p)​,rj​=M1−ps(aj​,1−p)​,α=∣Sc​∣∣Sr​∣​M.

Let D(q)D(q)D(q) have diagonal entries qqq and off-diagonal entries −i1−q2-\mathrm i\sqrt{1-q^2}−i1−q2​. The split middle matrix preserves the label, applies D(qj)D(q_j)D(qj​) and D(rj)D(r_j)D(rj​) to its first two Boolean flags, and preserves its third flag on valid labels and flips it on invalid labels. The base middle matrix preserves the label, applies D(aj/M)D(a_j/M)D(aj​/M) to its first Boolean flag, and preserves or flips its second flag by the same validity rule. Form UsplitU_{\mathrm{split}}Usplit​ and UbaseU_{\mathrm{base}}Ubase​ by surrounding each middle matrix with D(Hr)†PR\mathcal D(H_r)^\dagger P_RD(Hr​)†PR​ on the left and PC†D(Hc)P_C^\dagger\mathcal D(H_c)PC†​D(Hc​) on the right, where PC,PRP_C,P_RPC​,PR​ implement the label bijections and D(H)\mathcal D(H)D(H) acts only on the slot. With Aij=∑ℓ: v(ℓ)=true, R(ℓ)2=i, C(ℓ)2=jaℓ1A_{ij}=\sum_{\ell:\,v(\ell)=\mathrm{true},\,R(\ell)_2=i,\,C(\ell)_2=j}a_{\ell_1}Aij​=∑ℓ:v(ℓ)=true,R(ℓ)2​=i,C(ℓ)2​=j​aℓ1​​, the conclusion is that UsplitU_{\mathrm{split}}Usplit​ is unitary,

∥α[Usplit, (((false,false,false),0),i), (((false,false,false),0),j)]i,j−A∥op≤0,\left\|\alpha[U_{\mathrm{split},\,(((\mathrm{false},\mathrm{false},\mathrm{false}),0),i),\,(((\mathrm{false},\mathrm{false},\mathrm{false}),0),j)}]_{i,j}-A\right\|_{\mathrm{op}}\le0,​α[Usplit,(((false,false,false),0),i),(((false,false,false),0),j)​]i,j​−A​op​≤0,

and, for every i,j∈Jni,j\in J_ni,j∈Jn​, this all-false, zero-slot block entry equals the corresponding all-false, zero-slot block entry of UbaseU_{\mathrm{base}}Ubase​. Finally, the loading schedule [∣active∣,∣active∣][|\mathrm{active}|,|\mathrm{active}|][∣active∣,∣active∣] has sum 2∣active∣2|\mathrm{active}|2∣active∣. The endpoints p=0,1p=0,1p=0,1 are included, with s(0,0)=0s(0,0)=0s(0,0)=0; the nonzero-entry hypothesis applies only to valid labels.

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

    Confirmed by the moderator at approval.

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