Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 4: prescribed two-ancilla Hamiltonian lift

Open
QAlgorithms.Papers.Independent.Advance50.P49.prescribed_hamiltonian_lift

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

prove2quantum

Use the physical register Hn=(C2)⊗n\mathcal H_n=(\mathbb C^2)^{\otimes n}Hn​=(C2)⊗n. Rotational invariance means commuting with U⊗nU^{\otimes n}U⊗n for every one-qubit unitary UUU. The legal spins are j=n/2−rj=n/2-rj=n/2−r, r=0,…,⌊n/2⌋r=0,\ldots,\lfloor n/2\rfloorr=0,…,⌊n/2⌋, and Πj\Pi_jΠj​ is the actual spectral projector of J2J^2J2 at j(j+1)j(j+1)j(j+1). Write Rab=(XaXb+YaYb+ZaZb)/2R_{ab}=(X_aX_b+Y_aY_b+Z_aZ_b)/2Rab​=(Xa​Xb​+Ya​Yb​+Za​Zb​)/2 and Vk,vk\mathcal V_k,\mathfrak v_kVk​,vk​ for the group of finite compositions of kkk-local invariant gates and its generated real Lie algebra, including scalar phases. Exchange-only circuits contain finite products of e−itRabe^{-itR_{ab}}e−itRab​ with real ttt. Set C0=IC_0=IC0​=I and, for even l>0l>0l>0, Cl=(l/2)!−1∑i1,…,il distinctRi1i2⋯Ril−1ilC_l=(l/2)!^{-1}\sum_{i_1,\ldots,i_l\ \mathrm{distinct}}R_{i_1i_2}\cdots R_{i_{l-1}i_l}Cl​=(l/2)!−1∑i1​,…,il​ distinct​Ri1​i2​​⋯Ril−1​il​​. Extend Cl=0C_l=0Cl​=0 above 2⌊n/2⌋2\lfloor n/2\rfloor2⌊n/2⌋. Its sector eigenvalue is cl(j)=Tr⁡(ClΠj)/Tr⁡(Πj)c_l(j)=\operatorname{Tr}(C_l\Pi_j)/\operatorname{Tr}(\Pi_j)cl​(j)=Tr(Cl​Πj​)/Tr(Πj​). All body-index sums below are over even indices.

Let n≥1n\ge1n≥1 and let HHH be Hermitian and invariant. Set Ql=R12⋯Rl−1,lQ_l=R_{12}\cdots R_{l-1,l}Ql​=R12​⋯Rl−1,l​ and

Q~l=2−l/2[2Q2⊗I+∑s=4l2s/2(Qs⊗I−Qs−2⊗Rab)].\widetilde Q_l=2^{-l/2}\left[2Q_2\otimes I+\sum_{s=4}^{l}2^{s/2}(Q_s\otimes I-Q_{s-2}\otimes R_{ab})\right].Q​l​=2−l/2[2Q2​⊗I+s=4∑l​2s/2(Qs​⊗I−Qs−2​⊗Rab​)].

Let P\mathcal PP average over permutations of data wires only, E~l=n!P(Q~l)/((n−l)!(l/2)!)\widetilde E_l=n!\mathcal P(\widetilde Q_l)/((n-l)!(l/2)!)El​=n!P(Q​l​)/((n−l)!(l/2)!), and define

H~=(H−Tr⁡(H)I/2n)⊗I+∑l=22⌊n/2⌋Tr⁡(HCl)Tr⁡(Cl2)(E~l−Cl⊗I).\widetilde H=(H-\operatorname{Tr}(H)I/2^n)\otimes I+\sum_{l=2}^{2\lfloor n/2\rfloor}\frac{\operatorname{Tr}(HC_l)}{\operatorname{Tr}(C_l^2)}(\widetilde E_l-C_l\otimes I).H=(H−Tr(H)I/2n)⊗I+l=2∑2⌊n/2⌋​Tr(Cl2​)Tr(HCl​)​(El​−Cl​⊗I).

Then H~\widetilde HH is Hermitian, iH~i\widetilde HiH lies in the real Lie algebra of the chain exchanges Rr,r+1,Rn,a,RabR_{r,r+1},R_{n,a},R_{ab}Rr,r+1​,Rn,a​,Rab​ without an identity generator, and for every vector ψ\psiψ,

H~(ψ⊗∣00⟩)=((H−Tr⁡(H)I/2n)ψ)⊗∣00⟩,\widetilde H(\psi\otimes|00\rangle)=((H-\operatorname{Tr}(H)I/2^n)\psi)\otimes|00\rangle,H(ψ⊗∣00⟩)=((H−Tr(H)I/2n)ψ)⊗∣00⟩, e−itH~(ψ⊗∣00⟩)=eiTr⁡(H)t/2n(e−itHψ)⊗∣00⟩(t∈R).e^{-it\widetilde H}(\psi\otimes|00\rangle)=e^{i\operatorname{Tr}(H)t/2^n}(e^{-itH}\psi)\otimes|00\rangle\quad(t\in\mathbb R).e−itH(ψ⊗∣00⟩)=eiTr(H)t/2n(e−itHψ)⊗∣00⟩(t∈R).

This retains the prescribed construction and its scalar phase rather than introducing an arbitrary implementing Hamiltonian.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Advance50_P49
Formal statement
noncomputable section

namespace QAlgorithms.Papers.Independent.Advance50.P49

open scoped Classical Matrix ComplexConjugate Matrix.Norms.Frobenius

open MeasureTheory

attribute [local instance 100] LieRing.ofAssociativeRing

-- Specialize the frozen generic aliases without declaring new aliases.

local notation "Op" => (fun n : ℕ => QAlgorithms.Papers.Independent.Information100.P21.Op (Qubits n))

local notation "Vec" => (fun n : ℕ => QAlgorithms.Papers.Independent.Information100.P21.Vec (Qubits n))

-- The frozen support predicate takes the support before the operator.

local notation "WireSupported" => QAlgorithms.Papers.Independent.Information100.P69.Supported

/-- PDF pp.32–33, Theorem 4, I8/I17/I21–I24. The lift is fully prescribed;
I23's stray subscript is removed. The named last data wire requires n≥1. -/
theorem prescribed_hamiltonian_lift (n : ℕ) (hn : 1 ≤ n) (H : Op n)
    (hH : H.IsHermitian) (hSym : RotationInvariant H) :
    (liftHamiltonian H).IsHermitian ∧
    Complex.I • liftHamiltonian H ∈ exchangeLie (n+2) true false ∧
    (∀ psi : Vec n,
      act (liftHamiltonian H) (tensorState psi (zeroKet 2)) =
        tensorState (act (H-(Matrix.trace H/(2 : ℂ)^n) • (1 : Op n)) psi) (zeroKet 2)) ∧
    (∀ (t : ℝ) (psi : Vec n),
      act (evolve (liftHamiltonian H) t) (tensorState psi (zeroKet 2)) =
        Complex.exp (Complex.I * Matrix.trace H * (t : ℂ)/(2 : ℂ)^n) •
          tensorState (act (evolve H t) psi) (zeroKet 2)) := by sorry

end QAlgorithms.Papers.Independent.Advance50.P49

end
Source
Rotationally-Invariant Circuits: Universality with the exchange interaction and two ancilla qubits, arXiv:2202.01963v1, PDF p. 33, Theorem 4: prescribed two-ancilla Hamiltonian lift
Read-back

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

For every integer n≥1n\geq1n≥1 and every Hermitian matrix HHH on Hn=C{0,1}n\mathcal H_n=\mathbb C^{\{0,1\}^n}Hn​=C{0,1}n that commutes with U⊗nU^{\otimes n}U⊗n for every unitary 2×22\times22×2 matrix UUU, the following assertions hold. Here matrix action is ordinary matrix–vector multiplication, ∣0m⟩|0_m\rangle∣0m​⟩ is the basis vector indexed by the all-zero mmm-bit string, and ⊠\boxtimes⊠ denotes tensoring registers in their concatenated bit order. To specify the lifted matrix, let X,Y,ZX,Y,ZX,Y,Z be the Pauli matrices, let σa\sigma_aσa​ act as σ\sigmaσ on wire aaa and as identity elsewhere, and put Eab=12(XaXb+YaYb+ZaZb)E_{ab}=\tfrac12(X_aX_b+Y_aY_b+Z_aZ_b)Eab​=21​(Xa​Xb​+Ya​Yb​+Za​Zb​). For even 2r≤n2r\leq n2r≤n, put Qn,2r=E0,1E2,3⋯E2r−2,2r−1Q_{n,2r}=E_{0,1}E_{2,3}\cdots E_{2r-2,2r-1}Qn,2r​=E0,1​E2,3​⋯E2r−2,2r−1​, with Qn,0=IQ_{n,0}=IQn,0​=I; set Qn,2r=0Q_{n,2r}=0Qn,2r​=0 when 2r>n2r>n2r>n. Define Cn,2r=(r!)−1∑ι:{0,…,2r−1}↪{0,…,n−1}∏a=0r−1Eι(2a),ι(2a+1)C_{n,2r}=(r!)^{-1}\sum_{\iota:\{0,\ldots,2r-1\}\hookrightarrow\{0,\ldots,n-1\}}\prod_{a=0}^{r-1}E_{\iota(2a),\iota(2a+1)}Cn,2r​=(r!)−1∑ι:{0,…,2r−1}↪{0,…,n−1}​∏a=0r−1​Eι(2a),ι(2a+1)​. On two extra wires let Eanc=12(X⊗X+Y⊗Y+Z⊗Z)E_{\mathrm{anc}}=\tfrac12(X\otimes X+Y\otimes Y+Z\otimes Z)Eanc​=21​(X⊗X+Y⊗Y+Z⊗Z), and, for r≥1r\geq1r≥1, define

Ln,2r=2−r(2Qn,2⊠I+∑a=2r2a(Qn,2a⊠I−Qn,2a−2⊠Eanc)),C~n,2r=n!(n−2r)! r!1n!∑p∈Sn(Sp⊠I)Ln,2r(Sp⊠I)†,L_{n,2r}=2^{-r}\left(2Q_{n,2}\boxtimes I+ \sum_{a=2}^{r}2^a\bigl(Q_{n,2a}\boxtimes I- Q_{n,2a-2}\boxtimes E_{\mathrm{anc}}\bigr)\right),\qquad \widetilde C_{n,2r}= \frac{n!}{(n-2r)!\,r!}\frac1{n!} \sum_{p\in S_n}(S_p\boxtimes I)L_{n,2r}(S_p\boxtimes I)^\dagger ,Ln,2r​=2−r(2Qn,2​⊠I+a=2∑r​2a(Qn,2a​⊠I−Qn,2a−2​⊠Eanc​)),Cn,2r​=(n−2r)!r!n!​n!1​p∈Sn​∑​(Sp​⊠I)Ln,2r​(Sp​⊠I)†,

where Sp∣x⟩=∣x∘p−1⟩S_p|x\rangle=|x\circ p^{-1}\rangleSp​∣x⟩=∣x∘p−1⟩. With ϵ2r=Re⁡(tr⁡(HCn,2r)/tr⁡(Cn,2r2))\epsilon_{2r}=\operatorname{Re}\bigl(\operatorname{tr}(HC_{n,2r})/\operatorname{tr}(C_{n,2r}^2)\bigr)ϵ2r​=Re(tr(HCn,2r​)/tr(Cn,2r2​)), the matrix in the conclusion is

H~=(H−tr⁡H2nI)⊠I+∑r=1⌊n/2⌋ϵ2r(C~n,2r−Cn,2r⊠I).\widetilde H= \left(H-\frac{\operatorname{tr}H}{2^n}I\right)\boxtimes I+ \sum_{r=1}^{\lfloor n/2\rfloor}\epsilon_{2r} \bigl(\widetilde C_{n,2r}-C_{n,2r}\boxtimes I\bigr).H=(H−2ntrH​I)⊠I+r=1∑⌊n/2⌋​ϵ2r​(Cn,2r​−Cn,2r​⊠I).

The declaration asserts that H~\widetilde HH is Hermitian; that iH~i\widetilde HiH belongs to the real Lie algebra generated by iEa,a+1iE_{a,a+1}iEa,a+1​ on the n+2n+2n+2 wires, without an additional scalar generator; and that, for every vector ψ∈Hn\psi\in\mathcal H_nψ∈Hn​ and every real ttt,

H~(ψ⊠∣02⟩)=(H−tr⁡H2nI)ψ⊠∣02⟩,e−itH~(ψ⊠∣02⟩)=e i(tr⁡H)t/2n(e−itHψ⊠∣02⟩).\widetilde H(\psi\boxtimes|0_2\rangle)= \left(H-\frac{\operatorname{tr}H}{2^n}I\right)\psi\boxtimes|0_2\rangle,\qquad e^{-it\widetilde H}(\psi\boxtimes|0_2\rangle)= e^{\,i(\operatorname{tr}H)t/2^n} \bigl(e^{-itH}\psi\boxtimes|0_2\rangle\bigr).H(ψ⊠∣02​⟩)=(H−2ntrH​I)ψ⊠∣02​⟩,e−itH(ψ⊠∣02​⟩)=ei(trH)t/2n(e−itHψ⊠∣02​⟩).

No normalization is required of ψ\psiψ. Empty sums are zero and empty products are identity; in particular, the correction sum is empty when n=1n=1n=1.

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