Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Multi-qubit swap has positive overlap with every C_l and is nonlocal

Open
QAlgorithms.Papers.Independent.Advance50.P49.multi_swap_nonlocal

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=2r≥2n=2r\ge2n=2r≥2 and let S=P12P34⋯Pn−1,nS=P_{12}P_{34}\cdots P_{n-1,n}S=P12​P34​⋯Pn−1,n​ exchange the odd and even rrr-qubit registers. For every even 0≤l≤n0\le l\le n0≤l≤n,

Tr⁡(SCl)=2(l−n)/2(n−l)!(n/2)!n!((n−l)/2)!Tr⁡(Cl2)>0.\operatorname{Tr}(SC_l)=2^{(l-n)/2}\frac{(n-l)!(n/2)!}{n!((n-l)/2)!}\operatorname{Tr}(C_l^2)>0.Tr(SCl​)=2(l−n)/2n!((n−l)/2)!(n−l)!(n/2)!​Tr(Cl2​)>0.

For every k<nk<nk<n, the entire family e−itSe^{-itS}e−itS cannot belong to Vk\mathcal V_kVk​ for all real ttt. For 2≤k<n2\le k<n2≤k<n, only finitely many ϕ∈[0,2π)\phi\in[0,2\pi)ϕ∈[0,2π) have eiϕS∈Vke^{i\phi S}\in\mathcal V_keiϕS∈Vk​. Exceptional nonzero endpoint phases are allowed; the claim does not exclude every nonzero ϕ\phiϕ.

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.4–5,29, H4: positive overlap at every physical even weight, and
nonlocality of the full Hamiltonian evolution. Exceptional endpoint phases are retained. -/
theorem multi_swap_nonlocal (r : ℕ) (hr : 0<r) :
    (∀ l : ℕ, Even l → l ≤ 2*r →
      Matrix.trace (multiSwap r * central (2*r) l) =
        (permutationSumCoefficient (2*r) (2*r) l * (Nat.factorial r : ℝ) : ℂ) *
          Matrix.trace (central (2*r) l ^ 2) / (Nat.factorial (2*r) : ℂ) ∧
      0 < (Matrix.trace (multiSwap r * central (2*r) l)).re) ∧
    (∀ k : ℕ, k<2*r → ¬(∀ t : ℝ, evolve (multiSwap r) t ∈ localGroup (2*r) k)) ∧
    (∀ k : ℕ, 2 ≤ k → k<2*r →
      {phi : ℝ | 0 ≤ phi ∧ phi<2*Real.pi ∧
        evolve (multiSwap r) (-phi) ∈ localGroup (2*r) k}.Finite) := 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. 29, Multi-qubit swap has positive overlap with every C_l and is nonlocal
Read-back

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

For every positive natural number rrr, work on H2r=C{0,1}2r\mathcal H_{2r}=\mathbb C^{\{0,1\}^{2r}}H2r​=C{0,1}2r. Let SabS_{ab}Sab​ be the wire-swap matrix, whose xyxyxy-entry is 111 exactly when xq=yπ−1(q)x_q=y_{\pi^{-1}(q)}xq​=yπ−1(q)​ for every wire qqq, where π\piπ exchanges a,ba,ba,b, and is zero otherwise. Define Mr=∏q=0r−1S2q,2q+1M_r=\prod_{q=0}^{r-1}S_{2q,2q+1}Mr​=∏q=0r−1​S2q,2q+1​, ordered by increasing qqq. With the standard Pauli matrices on individual wires, 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)​), and, for even ℓ\ellℓ, define C2r,ℓ=1(ℓ/2)!∑ι∏q=0ℓ/2−1Eι(2q),ι(2q+1)C_{2r,\ell}=\frac1{(\ell/2)!}\sum_\iota\prod_{q=0}^{\ell/2-1}E_{\iota(2q),\iota(2q+1)}C2r,ℓ​=(ℓ/2)!1​∑ι​∏q=0ℓ/2−1​Eι(2q),ι(2q+1)​, where ι\iotaι ranges over injections of ℓ\ellℓ indices into the 2r2r2r wires. For k∈Nk\in\mathbb Nk∈N, let L2r,k\mathcal L_{2r,k}L2r,k​ be the multiplicative monoid generated by unitary matrices AAA that commute with every R⊗2rR^{\otimes2r}R⊗2r, for unitary 2×22\times22×2 matrices RRR, and have some finite wire set sss, ∣s∣≤k|s|\le k∣s∣≤k, satisfying WireSupported⁡(s,A)\operatorname{WireSupported}(s,A)WireSupported(s,A); this support predicate’s definition is not present in the supplied code. Then, for every even ℓ≤2r\ell\le2rℓ≤2r,

tr⁡(MrC2r,ℓ)=(2ℓ/2−r(2r−ℓ)!((2r−ℓ)/2)! r!)tr⁡(C2r,ℓ 2)(2r)!,0<Re⁡tr⁡(MrC2r,ℓ),\operatorname{tr}(M_rC_{2r,\ell}) =\frac{\left(2^{\ell/2-r}\frac{(2r-\ell)!}{((2r-\ell)/2)!}\,r!\right) \operatorname{tr}(C_{2r,\ell}^{\,2})}{(2r)!}, \qquad 0<\operatorname{Re}\operatorname{tr}(M_rC_{2r,\ell}),tr(Mr​C2r,ℓ​)=(2r)!(2ℓ/2−r((2r−ℓ)/2)!(2r−ℓ)!​r!)tr(C2r,ℓ2​)​,0<Retr(Mr​C2r,ℓ​),

where the scalar coefficient in the trace identity is embedded into C\mathbb CC, and the power of 222 has integer exponent. For every natural number k<2rk<2rk<2r, it is not the case that exp⁡(−itMr)∈L2r,k\exp(-itM_r)\in\mathcal L_{2r,k}exp(−itMr​)∈L2r,k​ for every real ttt. Furthermore, for every kkk satisfying 2≤k<2r2\le k<2r2≤k<2r, the set

{ϕ∈R:0≤ϕ<2π, exp⁡(iϕMr)∈L2r,k}\{\phi\in\mathbb R:0\le\phi<2\pi,\ \exp(i\phi M_r)\in\mathcal L_{2r,k}\}{ϕ∈R:0≤ϕ<2π, exp(iϕMr​)∈L2r,k​}

is finite. The first assertion includes ℓ=0\ell=0ℓ=0; when r=1r=1r=1, no kkk satisfies the hypotheses of the final assertion.

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