Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Path independence and integrated trace formula for l-body phases

Open
QAlgorithms.Papers.Independent.Advance50.P49.phase_path_independence

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 T≥0T\ge0T≥0 and let an integrable Hermitian invariant Hamiltonian H(t)H(t)H(t) have an actual unitary propagator U(t)U(t)U(t) on [0,T][0,T][0,T], with U(0)=IU(0)=IU(0)=I, satisfying the integral Schrödinger equation U(t)=I+∫0t−iH(s)U(s) dsU(t)=I+\int_0^t-iH(s)U(s)\,dsU(t)=I+∫0t​−iH(s)U(s)ds and integrable −iHU-iHU−iHU. For any integer weights c(j)c(j)c(j), put C=∑jc(j)ΠjC=\sum_jc(j)\Pi_jC=∑j​c(j)Πj​ and θj=arg⁡det⁡(U(T)∣Hj)\theta_j=\arg\det(U(T)|_{\mathcal H_j})θj​=argdet(U(T)∣Hj​​). Then, in R/(2πZ)\mathbb R/(2\pi\mathbb Z)R/(2πZ),

∑jc(j)θj=−∫0TTr⁡(H(t)C) dt.\sum_jc(j)\theta_j=-\int_0^T\operatorname{Tr}(H(t)C)\,dt.j∑​c(j)θj​=−∫0T​Tr(H(t)C)dt.

In particular Φl(U(T))=−∫0TTr⁡(H(t)Cl) dt\Phi_l(U(T))=-\int_0^T\operatorname{Tr}(H(t)C_l)\,dtΦl​(U(T))=−∫0T​Tr(H(t)Cl​)dt for every even lll, with zero extension above the physical range. These depend on the endpoint alone. The integral formulation supplies absolute continuity and includes the piecewise continuous controls of finite circuits.

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 p.24, G2–G5: integrated trace and path independence for an actual
integrable propagator. All equalities of phases take place modulo 2π. -/
theorem phase_path_independence (n : ℕ) (H U : ℝ → Op n) (T : ℝ)
    (hPath : SchrodingerPropagator H U T) :
    (∀ c : Spin n → ℤ, chargePhase (U T) c =
      ((-∫ t in (0 : ℝ)..T, (Matrix.trace (H t * chargeOperator n c)).re : ℝ) : Real.Angle)) ∧
    (∀ l : ℕ, Even l → bodyPhase (U T) l =
      ((-∫ t in (0 : ℝ)..T, (Matrix.trace (H t * central n l)).re : ℝ) : Real.Angle)) := 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. 24, Path independence and integrated trace formula for l-body phases
Read-back

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

For every natural number nnn, including 000, let Hn=C{0,1}n\mathcal H_n=\mathbb C^{\{0,1\}^n}Hn​=C{0,1}n, and let H,U:R→End⁡(Hn)H,U:\mathbb R\to\operatorname{End}(\mathcal H_n)H,U:R→End(Hn​) and T∈RT\in\mathbb RT∈R. Assume T≥0T\ge0T≥0; every entry of H(t)H(t)H(t) and of −iH(t)U(t)-iH(t)U(t)−iH(t)U(t) is integrable on [0,T][0,T][0,T]; for every t∈[0,T]t\in[0,T]t∈[0,T], H(t)H(t)H(t) is Hermitian and commutes with R⊗nR^{\otimes n}R⊗n for every unitary 2×22\times22×2 matrix RRR, while U(t)U(t)U(t) is unitary and has the same commutation property; and, entrywise, U(t)=I+∫0t−iH(s)U(s) dsU(t)=I+\int_0^t-iH(s)U(s)\,dsU(t)=I+∫0t​−iH(s)U(s)ds. Here (R⊗n)xy=∏qRxqyq(R^{\otimes n})_{xy}=\prod_qR_{x_qy_q}(R⊗n)xy​=∏q​Rxq​yq​​. Define Sn={0,…,⌊n/2⌋}S_n=\{0,\ldots,\lfloor n/2\rfloor\}Sn​={0,…,⌊n/2⌋}, sj=n/2−js_j=n/2-jsj​=n/2−j, Jα=12∑q=0n−1σα(q)J_\alpha=\frac12\sum_{q=0}^{n-1}\sigma_\alpha^{(q)}Jα​=21​∑q=0n−1​σα(q)​ for the standard Pauli matrices, and Ctot=JX2+JY2+JZ2C_{\mathrm{tot}}=J_X^2+J_Y^2+J_Z^2Ctot​=JX2​+JY2​+JZ2​, where σα(q)\sigma_\alpha^{(q)}σα(q)​ acts on wire qqq and as the identity elsewhere. Define, with factors ordered by increasing rrr,

Pj=∏r∈Snr≠jCtot−sr(sr+1)Isj(sj+1)−sr(sr+1).P_j=\prod_{\substack{r\in S_n\\r\ne j}} \frac{C_{\mathrm{tot}}-s_r(s_r+1)I}{s_j(s_j+1)-s_r(s_r+1)}.Pj​=r∈Sn​r=j​∏​sj​(sj​+1)−sr​(sr​+1)Ctot​−sr​(sr​+1)I​.

For wires a,ba,ba,b, put Eab=12(σX(a)σX(b)+σY(a)σY(b)+σZ(a)σZ(b))E_{ab}=\frac12(\sigma_X^{(a)}\sigma_X^{(b)}+\sigma_Y^{(a)}\sigma_Y^{(b)}+\sigma_Z^{(a)}\sigma_Z^{(b)})Eab​=21​(σX(a)​σX(b)​+σY(a)​σY(b)​+σZ(a)​σZ(b)​). For even ℓ\ellℓ, define Cn,ℓ=1(ℓ/2)!∑ι:{0,…,ℓ−1}↪{0,…,n−1}∏q=0ℓ/2−1Eι(2q),ι(2q+1)C_{n,\ell}=\frac1{(\ell/2)!}\sum_{\iota:\{0,\ldots,\ell-1\}\hookrightarrow\{0,\ldots,n-1\}}\prod_{q=0}^{\ell/2-1}E_{\iota(2q),\iota(2q+1)}Cn,ℓ​=(ℓ/2)!1​∑ι:{0,…,ℓ−1}↪{0,…,n−1}​∏q=0ℓ/2−1​Eι(2q),ι(2q+1)​, with products in increasing qqq, and set Cn,ℓ=0C_{n,\ell}=0Cn,ℓ​=0 for odd ℓ\ellℓ. Put eℓj=⌊Re⁡(tr⁡(Cn,ℓPj)/tr⁡Pj)⌋e_{\ell j}=\left\lfloor\operatorname{Re}\bigl(\operatorname{tr}(C_{n,\ell}P_j)/\operatorname{tr}P_j\bigr)\right\rflooreℓj​=⌊Re(tr(Cn,ℓ​Pj​)/trPj​)⌋ and θj(V)=[arg⁡det⁡(VPj+I−Pj)]\theta_j(V)=[\arg\det(VP_j+I-P_j)]θj​(V)=[argdet(VPj​+I−Pj​)], where brackets denote a real number modulo 2π2\pi2π. Define Bℓ(V)=∑jeℓjθj(V)B_\ell(V)=\sum_j e_{\ell j}\theta_j(V)Bℓ​(V)=∑j​eℓj​θj​(V) when ℓ\ellℓ is even and ℓ≤2⌊n/2⌋\ell\le2\lfloor n/2\rfloorℓ≤2⌊n/2⌋, and Bℓ(V)=0B_\ell(V)=0Bℓ​(V)=0 otherwise. Then, for every integer-valued function c:Sn→Zc:S_n\to\mathbb Zc:Sn​→Z, and also for every even natural number ℓ\ellℓ, respectively,

∑j∈Sncjθj(U(T))=[−∫0TRe⁡tr⁡ ⁣(H(t)∑j∈SncjPj) dt],Bℓ(U(T))=[−∫0TRe⁡tr⁡(H(t)Cn,ℓ) dt].\sum_{j\in S_n}c_j\theta_j(U(T)) =\left[-\int_0^T\operatorname{Re}\operatorname{tr}\!\left(H(t)\sum_{j\in S_n}c_jP_j\right)\,dt\right], \qquad B_\ell(U(T)) =\left[-\int_0^T\operatorname{Re}\operatorname{tr}(H(t)C_{n,\ell})\,dt\right].j∈Sn​∑​cj​θj​(U(T))=​−∫0T​Retr​H(t)j∈Sn​∑​cj​Pj​​dt​,Bℓ​(U(T))=[−∫0T​Retr(H(t)Cn,ℓ​)dt].

The second assertion includes even ℓ>n\ell>nℓ>n, for which the injection sum defining Cn,ℓC_{n,\ell}Cn,ℓ​ is empty and BℓB_\ellBℓ​ is zero; empty products are identities.

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