Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Both columns of the conjugated circuit step

Proved
QAlgorithms.Papers.Independent.Support50.P24.conjugatedStepColumns

by Goku · Oct 23, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

Let U∈SU(2)U\in\mathrm{SU}(2)U∈SU(2), fU=V(2)U2V(1)U2f_U=V^{(2)}U_2V^{(1)}U_2fU​=V(2)U2​V(1)U2​, and gU=U1†fUU1g_U=U_1^\dagger f_U U_1gU​=U1†​fU​U1​, using the same specified known gates as Fig. S3. For any ∣ϕ⟩∈C2|\phi\rangle\in\mathbb C^2∣ϕ⟩∈C2, set vϕ=∣ϕ⟩1∣ψ−⟩23∣04⟩v_\phi=|\phi\rangle_1|\psi^-\rangle_{23}|0^4\ranglevϕ​=∣ϕ⟩1​∣ψ−⟩23​∣04⟩ and wϕ=∣ψ−⟩12∣ϕ⟩3∣04⟩w_\phi=|\psi^-\rangle_{12}|\phi\rangle_3|0^4\ranglewϕ​=∣ψ−⟩12​∣ϕ⟩3​∣04⟩. Then

gU(vϕ,wϕ)=(vϕ,wϕ)13(−1−1\1−2).g_U(v_\phi,w_\phi)=(v_\phi,w_\phi)\frac1{\sqrt3}\begin{pmatrix}-1&-1\1&-2\end{pmatrix}.gU​(vϕ​,wϕ​)=(vϕ​,wϕ​)3​1​(−1​−1\1​−2​).

Both column identities are asserted. The vectors span the four-dimensional invariant space in the source. They are not orthogonal: for unit ϕ\phiϕ, ⟨vϕ,wϕ⟩=−1/2\langle v_\phi,w_\phi\rangle=-1/2⟨vϕ​,wϕ​⟩=−1/2. Consequently no ordinary coefficient-space unitarity of the displayed matrix is asserted. This action determines the exact sign after two iterations.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Support50_P24
Formal statement
noncomputable section

open QAlgorithms MeasureTheory

open scoped BigOperators Matrix ComplexConjugate ComplexOrder Matrix.Norms.Elementwise

namespace QAlgorithms.Papers.Independent.Support50.P24

attribute [local instance] Classical.decEq Classical.propDecidable

attribute [local instance] QAlgorithms.Papers.Independent.Support50.P24.groupedContinuousENorm

/-- PDF pp.9-14, Lemma S2, S26-S27: both columns of the actual conjugated step.
The spanning pair is nonorthogonal, so no Euclidean unitarity assertion about G is made. -/
theorem conjugatedStepColumns (U : QubitSU) (phi : Bool → ℂ) :
    let firstWire := controlledGate [] 0 U.val
    let g := firstWireᴴ * evaluateCalls iteration U * firstWire
    let v := inputEmbedding.mulVec phi
    let w := swappedEmbedding.mulVec phi
    g.mulVec v = (-(Real.sqrt 3 : ℂ)⁻¹) • v + (Real.sqrt 3 : ℂ)⁻¹ • w ∧
    g.mulVec w = (-(Real.sqrt 3 : ℂ)⁻¹) • v + (-(2 : ℂ) / (Real.sqrt 3 : ℂ)) • w := by sorry

end QAlgorithms.Papers.Independent.Support50.P24

end
Source
Reversing Unknown Qubit-Unitary Operation, Deterministically and Exactly, arXiv:2209.02907v5, PDF p. 10, Lemma S2: exact two-column action of the conjugated step
Read-back

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

For every Boolean-indexed U∈SU(2)U\in\mathrm{SU}(2)U∈SU(2) and every complex vector ϕ:{0,1}→C\phi:\{0,1\}\to\mathbb Cϕ:{0,1}→C, use seven qubits numbered 0,…,60,\ldots,60,…,6. Put X=(0110)X=\begin{pmatrix}0&1\\1&0\end{pmatrix}X=(01​10​) and Yα=(cos⁡(α/2)−sin⁡(α/2)sin⁡(α/2)cos⁡(α/2))Y_\alpha=\begin{pmatrix}\cos(\alpha/2)&-\sin(\alpha/2)\\ \sin(\alpha/2)&\cos(\alpha/2)\end{pmatrix}Yα​=(cos(α/2)sin(α/2)​−sin(α/2)cos(α/2)​). Let G(L;t;M)G(L;t;M)G(L;t;M) apply MMM to target ttt when every wire–value condition in LLL holds on the input, otherwise apply the identity, and leave other bits unchanged; let S(L;a,b)S(L;a,b)S(L;a,b) conditionally swap a,ba,ba,b using the same input conditions. Empty control lists always hold. Interpret every list below chronologically, with matrix Mr⋯M1M_r\cdots M_1Mr​⋯M1​ for [M1,…,Mr][M_1,\ldots,M_r][M1​,…,Mr​], and interpret nested named lists as their matrices. With ϑ=2arccos⁡2/3\vartheta=2\arccos\sqrt{2/3}ϑ=2arccos2/3​, define

T2(a,b,c)=[G([(a,1),(b,1)];c;X),G([(b,1)];a;X),G([(c,0)];b;Yπ/2),G([(a,0),(c,0)];b;Yπ/2),G([(b,0)];a;X),S([];a,b),S([];b,c)],T3(a,b,c,e)=[G([(a,0)];c;X),G([(c,1),(e,1)];b;X),G([(e,1)];c;X),G([(b,1)];c;X),G([(b,0)];e;Yπ),G([(a,1),(b,0),(c,1)];e;Y−ϑ),G([(a,1),(b,1),(c,1)];e;Yϑ),G([(e,1)];a;X),G([];a;X),S([];b,c),G([];b;X),G([(a,1)];b;X),S([(a,1)];b,c),G([(a,1),(b,1)];c;X)],K1=[S([];2,5),T2(0,1,2),G([(0,1)];6;X),T3(3,4,5,6)†,S([];3,6),S([];1,3)],K2=[S([];1,3),T3(0,1,2,3),S([];4,6),G([(4,1)];3;X),S([];5,6),T2(4,5,6)†,S([];2,4),S([];1,5),S([];0,4)].\begin{aligned} T_2(a,b,c)={}&[ G([(a,1),(b,1)];c;X),G([(b,1)];a;X), G([(c,0)];b;Y_{\pi/2}),\\ & G([(a,0),(c,0)];b;Y_{\pi/2}), G([(b,0)];a;X),S([];a,b),S([];b,c)],\\ T_3(a,b,c,e)={}&[ G([(a,0)];c;X),G([(c,1),(e,1)];b;X), G([(e,1)];c;X),G([(b,1)];c;X),\\ & G([(b,0)];e;Y_\pi), G([(a,1),(b,0),(c,1)];e;Y_{-\vartheta}), G([(a,1),(b,1),(c,1)];e;Y_\vartheta),\\ & G([(e,1)];a;X),G([];a;X),S([];b,c),G([];b;X), G([(a,1)];b;X),S([(a,1)];b,c), G([(a,1),(b,1)];c;X)],\\ K_1={}&[S([];2,5),T_2(0,1,2),G([(0,1)];6;X), T_3(3,4,5,6)^\dagger,S([];3,6),S([];1,3)],\\ K_2={}&[S([];1,3),T_3(0,1,2,3),S([];4,6), G([(4,1)];3;X),S([];5,6),T_2(4,5,6)^\dagger, S([];2,4),S([];1,5),S([];0,4)]. \end{aligned}T2​(a,b,c)=T3​(a,b,c,e)=K1​=K2​=​[G([(a,1),(b,1)];c;X),G([(b,1)];a;X),G([(c,0)];b;Yπ/2​),G([(a,0),(c,0)];b;Yπ/2​),G([(b,0)];a;X),S([];a,b),S([];b,c)],[G([(a,0)];c;X),G([(c,1),(e,1)];b;X),G([(e,1)];c;X),G([(b,1)];c;X),G([(b,0)];e;Yπ​),G([(a,1),(b,0),(c,1)];e;Y−ϑ​),G([(a,1),(b,1),(c,1)];e;Yϑ​),G([(e,1)];a;X),G([];a;X),S([];b,c),G([];b;X),G([(a,1)];b;X),S([(a,1)];b,c),G([(a,1),(b,1)];c;X)],[S([];2,5),T2​(0,1,2),G([(0,1)];6;X),T3​(3,4,5,6)†,S([];3,6),S([];1,3)],[S([];1,3),T3​(0,1,2,3),S([];4,6),G([(4,1)];3;X),S([];5,6),T2​(4,5,6)†,S([];2,4),S([];1,5),S([];0,4)].​

Let Qj(U)=G([];j;U)Q_j(U)=G([];j;U)Qj​(U)=G([];j;U), let EUE_UEU​ be the matrix of [Q1(U),K1,Q1(U),K2][Q_1(U),K_1,Q_1(U),K_2][Q1​(U),K1​,Q1​(U),K2​], and set

g=Q0(U)†EUQ0(U),∣s⟩=∣01⟩−∣10⟩2,v=∣ϕ⟩0⊗∣s⟩1,2⊗∣0000⟩3,4,5,6,w=∣s⟩0,1⊗∣ϕ⟩2⊗∣0000⟩3,4,5,6.\begin{aligned} g&=Q_0(U)^\dagger E_UQ_0(U),& |s\rangle&=\frac{|01\rangle-|10\rangle}{\sqrt2},\\ v&=|\phi\rangle_0\otimes|s\rangle_{1,2} \otimes|0000\rangle_{3,4,5,6},& w&=|s\rangle_{0,1}\otimes|\phi\rangle_2 \otimes|0000\rangle_{3,4,5,6}. \end{aligned}gv​=Q0​(U)†EU​Q0​(U),=∣ϕ⟩0​⊗∣s⟩1,2​⊗∣0000⟩3,4,5,6​,​∣s⟩w​=2​∣01⟩−∣10⟩​,=∣s⟩0,1​⊗∣ϕ⟩2​⊗∣0000⟩3,4,5,6​.​

Then both vector identities hold:

gv=−13v+13w,gw=−13v−23w.gv=-\frac1{\sqrt3}v+\frac1{\sqrt3}w, \qquad gw=-\frac1{\sqrt3}v-\frac2{\sqrt3}w.gv=−3​1​v+3​1​w,gw=−3​1​v−3​2​w.

There is no normalization or nonzero assumption on ϕ\phiϕ.

Human review
  • Endorsed by Shuze Chen · Oct 24, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Goku · Oct 24, 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