Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§2.1.1: simplified base block encoding (11)–(12)

Open
QAlgorithms.Papers.Independent.Extend50.P44.simplifiedConstruction

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

prove2quantum

Let N,D,M,SN,D,M,SN,D,M,S be powers of two with DM=NSDM=NSDM=NS. Fix reversible labels enumerating the structural entries bijectively, with no invalid labels and equal full row and column sparsities SSS. For any real supplied data table with Ma=max⁡j∣aj∣>0M_a=\max_j|a_j|>0Ma​=maxj​∣aj​∣>0, circuit (11) is an exact unitary block encoding:

(⟨0∣⊗I)U(∣0⟩⊗I)=ASMa.(\langle0|\otimes I)U(|0\rangle\otimes I)=\frac{A}{S M_a}.(⟨0∣⊗I)U(∣0⟩⊗I)=SMa​A​.

It uses one table loading of DDD items and 1+log⁡2S1+\log_2 S1+log2​S flag qubits. Exactness refers to ideal rotations; finite rotation synthesis is a separate approximation. This is the introductory unpadded form of the base construction.

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 pp.5-6, (11)-(12): no padding or invalid labels, equal full sparsities. -/
theorem simplifiedConstruction (B : Scheme n s d m) (a : Fin (2 ^ d) → ℝ)
    (ha : 0 < tableMax a) (hv : ∀ l, B.valid l = true)
    (hc : B.columnSlots = Finset.univ) (hr : B.rowSlots = Finset.univ) :
    QAlgorithms.IsBlockEncoding (false, 0) (B.simpleCircuit a)
      ((2 ^ s : ℕ) * tableMax a) 0 (B.matrix a) ∧
    loadingCost (baseLoadingSchedule (2 ^ d)) = 2 ^ d ∧
    Fintype.card (Bool × Fin (2 ^ s)) = 2 ^ (s + 1) := 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. 6, §2.1.1: simplified base block encoding (11)–(12)
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, let 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 be a scheme with d+m=s+nd+m=s+nd+m=s+n, label bijections C,R:L→Js×JnC,R:L\to J_s\times J_nC,R:L→Js​×Jn​, a Boolean validity function, nonempty column and row slot sets, and unitary slot matrices Hc,HrH_c,H_rHc​,Hr​; valid labels map into their respective slot sets and have distinct pairs of column and row system positions, while each slot matrix has a first column uniform on its slot set and zero elsewhere. Assume every label is valid, both slot sets equal all of JsJ_sJs​, and the real table a:Jd→Ra:J_d\to\mathbb Ra:Jd​→R has M=max⁡j∣aj∣>0M=\max_j|a_j|>0M=maxj​∣aj​∣>0. Put

Aij=∑ℓ∈L: R(ℓ)2=i, C(ℓ)2=jaℓ1.A_{ij}=\sum_{\ell\in L:\,R(\ell)_2=i,\,C(\ell)_2=j}a_{\ell_1}.Aij​=ℓ∈L:R(ℓ)2​=i,C(ℓ)2​=j∑​aℓ1​​.

Define D(q)D(q)D(q) to have diagonal entries qqq and off-diagonal entries −i1−q2-\mathrm i\sqrt{1-q^2}−i1−q2​, and define K(b,ℓ),(c,k)=1ℓ=kD(ak1/M)b,cK_{(b,\ell),(c,k)}=\mathbf1_{\ell=k}D(a_{k_1}/M)_{b,c}K(b,ℓ),(c,k)​=1ℓ=k​D(ak1​​/M)b,c​. Let PC,PRP_C,P_RPC​,PR​ implement C,RC,RC,R while preserving the Boolean flag, and let D(H)\mathcal D(H)D(H) apply HHH to the slot while preserving the flag and system index. For U=D(Hr)†PRKPC†D(Hc)U=\mathcal D(H_r)^\dagger P_RKP_C^\dagger\mathcal D(H_c)U=D(Hr​)†PR​KPC†​D(Hc​), regrouped onto ((b,t),i)((b,t),i)((b,t),i), the conclusion is that UUU is unitary and

∥2sM [U((false,0),i), ((false,0),j)]i,j−A∥op≤0.\left\|2^sM\,[U_{((\mathrm{false},0),i),\,((\mathrm{false},0),j)}]_{i,j}-A\right\|_{\mathrm{op}}\le0.​2sM[U((false,0),i),((false,0),j)​]i,j​−A​op​≤0.

The one-entry loading schedule [2d][2^d][2d] has sum 2d2^d2d, and the flag-and-slot index set has cardinality 2s+12^{s+1}2s+1. Individual table entries may be zero.

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