Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Main result: exchange universality with two ancillary qubits

Open
QAlgorithms.Papers.Independent.Advance50.P49.exchange_two_ancilla_universality

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.

For every invariant unitary VVV on Hn\mathcal H_nHn​, there are a finite exchange circuit WWW on the chain of n+2n+2n+2 qubits and a real α\alphaα, both chosen independently of the input, such that for every normalized ψ∈Hn\psi\in\mathcal H_nψ∈Hn​,

W(ψ⊗∣00⟩)=eiα(Vψ)⊗∣00⟩.W(\psi\otimes|00\rangle)=e^{i\alpha}(V\psi)\otimes|00\rangle.W(ψ⊗∣00⟩)=eiα(Vψ)⊗∣00⟩.

Thus two ancillas suffice for full physical-register universality and are returned unchanged. No efficiency or gate-count bound is asserted.

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.1, pinned to pp.31–33, I24: universality on the full physical register
with two returned ancillas and an explicit allowed global phase. -/
theorem exchange_two_ancilla_universality (n : ℕ) (V : Op n) (hV : SymUnitary V) :
    ∃ (W : Op (n+2)) (alpha : ℝ), W ∈ exchangeGroup (n+2) true false ∧
      ∀ psi : Vec n, IsState psi →
        act W (tensorState psi (zeroKet 2)) =
          Complex.exp (Complex.I * alpha) • tensorState (act V 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. 1, Main result: exchange universality with two ancillary qubits
Read-back

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

For every natural number nnn and complex matrix VVV on {0,1}n\{0,1\}^n{0,1}n, assume that VVV is unitary and

VU⊗n=U⊗nVfor every unitary U∈M2(C),VU^{\otimes n}=U^{\otimes n}V \qquad\text{for every unitary }U\in M_2(\mathbb C),VU⊗n=U⊗nVfor every unitary U∈M2​(C),

where U⊗n(x,y)=∏qUxq,yqU^{\otimes n}(x,y)=\prod_qU_{x_q,y_q}U⊗n(x,y)=∏q​Uxq​,yq​​. Then there exist a matrix WWW on n+2n+2n+2 qubits and a real number α\alphaα such that WWW is a finite product, possibly empty, of matrices

exp⁡(−i tHa,b),t∈R,a,b∈{0,…,n+1},b=a+1,Ha,b=12(XaXb+YaYb+ZaZb),\exp(-\mathrm i\,tH_{a,b}),\qquad t\in\mathbb R,\quad a,b\in\{0,\ldots,n+1\},\quad b=a+1, \qquad H_{a,b}=\tfrac12(X_aX_b+Y_aY_b+Z_aZ_b),exp(−itHa,b​),t∈R,a,b∈{0,…,n+1},b=a+1,Ha,b​=21​(Xa​Xb​+Ya​Yb​+Za​Zb​),

and, for every norm-one nnn-qubit vector ψ\psiψ,

W(ψ⊗∣00⟩)=eiα(Vψ)⊗∣00⟩.W\bigl(\psi\otimes|00\rangle\bigr) = e^{\mathrm i\alpha}(V\psi)\otimes|00\rangle.W(ψ⊗∣00⟩)=eiα(Vψ)⊗∣00⟩.

The Pauli operators act on the indicated wires and as the identity elsewhere; ∣00⟩|00\rangle∣00⟩ has amplitude one at the two-bit string 000000 and zero elsewhere. Tensor products append these two qubits after the nnn-qubit register, and operator action is matrix-vector multiplication. The same WWW and α\alphaα work for every such ψ\psiψ. The generating set has the chain restriction b=a+1b=a+1b=a+1 and its scalar-phase branch is disabled. No positive lower bound on nnn is imposed, so n=0n=0n=0 is included.

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