Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§3.3: Hermitian tridiagonal circuit (64)–(66)

Open
QAlgorithms.Papers.Independent.Extend50.P44.tridiagonalHermitian

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

prove2quantum

Let N=2nN=2^nN=2n and let nonzero-scale real data specify the symmetric tridiagonal matrix, with fixed zero sentinel at 2N−12N-12N−1. On labels (t,m)(t,m)(t,m) use the transpose involution (64), which fixes mmm for even ttt and flips it for odd ttt. Construct the row oracle as column composed with transpose, retain H3, and insert Z before the data rotation as in (66).

The resulting three-flag circuit satisfies

U†=U,(⟨0∣⊗I)U(∣0⟩⊗I)=A/(3Ma).U^\dagger=U,\qquad (\langle0|\otimes I)U(|0\rangle\otimes I)=A/(3M_a).U†=U,(⟨0∣⊗I)U(∣0⟩⊗I)=A/(3Ma​).

The permutations are chosen before the data values. This is the distinct Hermitian circuit (66), rather than a Hermiticity claim for the original (63).

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.16-17, (64)-(66): a distinct transpose-based row oracle and Z
produce a Hermitian tridiagonal encoding without restoring the deletion flag. -/
theorem tridiagonalHermitian (n : ℕ) :
    ∃ B : Scheme n 2 (n + 1) 1, ∃ T : TransposeOracle B,
      TridiagonalLabels B ∧
      (∀ l, (T.transpose l).1 = l.1 ∧ (T.transpose l).2.val =
        if l.1.val % 2 = 0 then l.2.val else (l.2.val + 1) % 2) ∧
      Fintype.card (Bool × Fin 4) = 2 ^ 3 ∧
      ∀ a : Fin (2 * 2 ^ n - 1) → ℝ, 0 < tableMax (triTable n a) →
        B.matrix (triTable n a) = tridiagonal n a ∧
        QAlgorithms.IsBlockEncoding (false, 0) (B.simpleCircuit (triTable n a) true)
          (3 * tableMax (triTable n a)) 0 (tridiagonal n a) ∧
        (B.simpleCircuit (triTable n a) true)ᴴ = B.simpleCircuit (triTable n a) true := 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. 17, §3.3: Hermitian tridiagonal circuit (64)–(66)
Read-back

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

For every natural number nnn, including zero, put N=2nN=2^nN=2n and [r]={0,…,r−1}[r]=\{0,\ldots,r-1\}[r]={0,…,r−1}. There exist a scheme BBB and a label permutation τ\tauτ with the following properties. The scheme has parameter balance (n+1)+1=2+n(n+1)+1=2+n(n+1)+1=2+n, bijections c,r:[2N]×[2]→[4]×[N]c,r:[2N]\times[2]\to[4]\times[N]c,r:[2N]×[2]→[4]×[N], both slot sets {0,1,3}\{0,1,3\}{0,1,3}, and unitary slot matrices Hc,HrH_c,H_rHc​,Hr​ with zeroth column 1/31/\sqrt31/3​ on those slots and zero at slot 222. Valid labels map into their slot sets and are uniquely determined by their two output coordinates together. A label (u,t)(u,t)(u,t) is valid exactly when neither uuu is even with t=1t=1t=1, nor u=2N−1u=2N-1u=2N−1; for valid labels,

r(u,t)2=(⌊u/2⌋+t) mod N,c(u,t)2=(⌊u/2⌋+{u mod 2,t=0,0,t=1) mod N.r(u,t)_2=(\lfloor u/2\rfloor+t)\bmod N,\qquad c(u,t)_2= \left(\lfloor u/2\rfloor+ \begin{cases}u\bmod2,&t=0,\\0,&t=1\end{cases}\right)\bmod N.r(u,t)2​=(⌊u/2⌋+t)modN,c(u,t)2​=(⌊u/2⌋+{umod2,0,​t=0,t=1​)modN.

The permutation τ\tauτ is involutive, preserves each label’s data index and validity, satisfies r(ℓ)=c(τ(ℓ))r(\ell)=c(\tau(\ell))r(ℓ)=c(τ(ℓ)) for every label, and Hr=HcH_r=H_cHr​=Hc​; explicitly,

τ(u,t)={(u,t),u even,(u,(t+1) mod 2),u odd.\tau(u,t)= \begin{cases} (u,t),&u\text{ even},\\ (u,(t+1)\bmod2),&u\text{ odd}. \end{cases}τ(u,t)={(u,t),(u,(t+1)mod2),​u even,u odd.​

One Boolean flag and a slot in [4][4][4] give an ancillary index set of cardinality 232^323. For every real a:[2N−1]→Ra:[2N-1]\to\mathbb Ra:[2N−1]→R, extend it by a final zero to a~:[2N]→R\widetilde a:[2N]\to\mathbb Ra:[2N]→R, and assume A=max⁡u∣a~u∣>0A=\max_u|\widetilde a_u|>0A=maxu​∣au​∣>0. The scheme matrix, defined by summing a~u\widetilde a_uau​ over valid labels with prescribed output coordinates, equals the matrix KKK with diagonal a2ia_{2i}a2i​, adjacent entries a2min⁡(i,j)+1a_{2\min(i,j)+1}a2min(i,j)+1​, and zero elsewhere. Let R(q)=(q−i1−q2−i1−q2q)R(q)=\bigl(\begin{smallmatrix}q&-\mathrm i\sqrt{1-q^2}\\-\mathrm i\sqrt{1-q^2}&q\end{smallmatrix}\bigr)R(q)=(q−i1−q2​​−i1−q2​q​) and Z=diag⁡(1,−1)Z=\operatorname{diag}(1,-1)Z=diag(1,−1). The matrix UUU obtained by applying Hc,c−1H_c,c^{-1}Hc​,c−1, then R(a~u/A)ZR(\widetilde a_u/A)ZR(au​/A)Z to a single flag at every label, then r,Hr†r,H_r^\daggerr,Hr†​, is unitary, satisfies U†=UU^\dagger=UU†=U, and obeys

3A U((false,0),i),((false,0),j)=Kijfor all i,j∈[N].3A\,U_{((\mathrm{false},0),i),((\mathrm{false},0),j)}=K_{ij} \quad\text{for all }i,j\in[N].3AU((false,0),i),((false,0),j)​=Kij​for all i,j∈[N].
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