Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Qubit transpose and inverse have equal attainable sets

Open
QAlgorithms.Papers.Independent.Intake100.P12.qubit_task_equivalence

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

prove2quantum

For every query count k≥0k\ge0k≥0, each of the parallel, adaptive and general classes separately has the same attainable constant coefficients for exact qubit transposition and inversion:

Actranspose(2,k)=Acinverse(2,k).\mathcal A_c^{\rm transpose}(2,k)=\mathcal A_c^{\rm inverse}(2,k).Actranspose​(2,k)=Acinverse​(2,k).

Each protocol is fixed independently of the unknown U∈U(2)U\in U(2)U∈U(2) and implements one output channel on its success branch. The source determinant-one identity extends to all U(2)U(2)U(2) at channel level because global phases cancel.

This equates two tasks within each class; it does not equate the classes.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intake100_P12
Formal statement
noncomputable section

open QAlgorithms

open scoped Matrix ComplexConjugate ComplexOrder Kronecker

namespace QAlgorithms.Papers.Independent.Intake100.P12

attribute [local instance] Classical.propDecidable Classical.decEq

open QAlgorithms.Papers.Independent.Information100.P21 (Op)

open QAlgorithms.Papers.Independent.Dependency50.P26 (ChannelChoi)

/-- PDF p.19, VII C: equal attainable coefficient sets for the two qubit tasks,
separately within each class. Global phases extend the SU(2) identity to U(2). -/
theorem qubit_task_equivalence (k : ℕ) (c : ProtocolClass) (p : ℝ) :
    Attainable c 2 k (targetChoi .transpose) p ↔
      Attainable c 2 k (targetChoi .inverse) p := by sorry

end QAlgorithms.Papers.Independent.Intake100.P12

end
Source
Probabilistic exact universal quantum circuits for transforming unitary operations, arXiv:1909.01366v2, PDF p. 19, VII C
Read-back

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

For every natural number kkk, every choice ccc among the three labels parallel, adaptive, and general, and every real number ppp, the following two existence statements are equivalent: a realization of class ccc with exact output p G(UT)p\,G(U^{\mathsf T})pG(UT) for every unitary 2×22\times22×2 matrix UUU, and a realization of the same class with exact output p G(U†)p\,G(U^\dagger)pG(U†) for every such UUU. Precisely, in either statement one requires 0≤p≤10\le p\le10≤p≤1 and the existence of positive semidefinite complex matrices S,FS,FS,F, indexed by (i,x,u,o)(i,x,u,o)(i,x,u,o) with i,o∈{0,1}i,o\in\{0,1\}i,o∈{0,1} and x,u∈{0,1}kx,u\in\{0,1\}^kx,u∈{0,1}k. Write C=S+FC=S+FC=S+F and define

G(V)(o,i),(o′,i′)=Vo,iVo′,i′‾,J(J0,…,Jk−1)(u,x),(v,y)=∏j=0k−1(Jj)(uj,xj),(vj,yj),G(V)_{(o,i),(o',i')}=V_{o,i}\overline{V_{o',i'}},\qquad \mathcal J(J_0,\ldots,J_{k-1})_{(u,x),(v,y)} =\prod_{j=0}^{k-1}(J_j)_{(u_j,x_j),(v_j,y_j)},G(V)(o,i),(o′,i′)​=Vo,i​Vo′,i′​​,J(J0​,…,Jk−1​)(u,x),(v,y)​=j=0∏k−1​(Jj​)(uj​,xj​),(vj​,yj​)​, EH(J)(o,i),(o′,i′)=∑x,y,u,vH(i,x,u,o),(i′,y,v,o′)J(u,x),(v,y),TJ(X)a,b=∑r,sXr,sJ(a,r),(b,s).\mathcal E_H(J)_{(o,i),(o',i')} =\sum_{x,y,u,v}H_{(i,x,u,o),(i',y,v,o')}J_{(u,x),(v,y)}, \qquad \mathcal T_J(X)_{a,b} =\sum_{r,s}X_{r,s}J_{(a,r),(b,s)}.EH​(J)(o,i),(o′,i′)​=x,y,u,v∑​H(i,x,u,o),(i′,y,v,o′)​J(u,x),(v,y)​,TJ​(X)a,b​=r,s∑​Xr,s​J(a,r),(b,s)​.

The exact-output requirement is

ES ⁣(J(G(U),…,G(U)))=p G(VU)for every unitary U,\mathcal E_S\!\left(\mathcal J(G(U),\ldots,G(U))\right)=p\,G(V_U) \quad\text{for every unitary }U,ES​(J(G(U),…,G(U)))=pG(VU​)for every unitary U,

where VU=UTV_U=U^{\mathsf T}VU​=UT in the first existence statement and VU=U†V_U=U^\daggerVU​=U† in the second. The class requirement on CCC is as follows. For the parallel label, there must exist a positive integer mmm, a channel EEE from the external two-dimensional input to memory together with all kkk slot inputs, and a channel DDD from memory together with all slot outputs to the external two-dimensional output, satisfying

TEC(J)(X)=D ⁣((id⁡m⊗TJ)(E(X)))\mathcal T_{\mathcal E_C(J)}(X) =D\!\left((\operatorname{id}_m\otimes\mathcal T_J)(E(X))\right)TEC​(J)​(X)=D((idm​⊗TJ​)(E(X)))

for every arbitrary complex matrix JJJ indexed by (u,x)(u,x)(u,x) and every arbitrary complex 2×22\times22×2 matrix XXX. For the adaptive label, there must exist a positive integer mmm, a channel E0E_0E0​ from the external input to memory together with one two-dimensional register, channels EjE_jEj​ on that space for 0≤j<k0\le j<k0≤j<k, and a channel DDD to the external output, such that, for all arbitrary complex slot matrices JjJ_jJj​ and all arbitrary complex input matrices XXX,

TEC(J(J0,…,Jk−1))(X)=D(Yk),Y0=E0(X),Yj+1=Ej ⁣((id⁡m⊗TJj)(Yj)).\mathcal T_{\mathcal E_C(\mathcal J(J_0,\ldots,J_{k-1}))}(X)=D(Y_k), \qquad Y_0=E_0(X),\quad Y_{j+1}=E_j\!\left((\operatorname{id}_m\otimes\mathcal T_{J_j})(Y_j)\right).TEC​(J(J0​,…,Jk−1​))​(X)=D(Yk​),Y0​=E0​(X),Yj+1​=Ej​((idm​⊗TJj​​)(Yj​)).

For the general label, for every tuple JjJ_jJj​ of positive semidefinite slot matrices satisfying

∑o(Jj)(o,a),(o,b)=δab,\sum_o(J_j)_{(o,a),(o,b)}=\delta_{ab},o∑​(Jj​)(o,a),(o,b)​=δab​,

the matrix EC(J(J0,…,Jk−1))\mathcal E_C(\mathcal J(J_0,\ldots,J_{k-1}))EC​(J(J0​,…,Jk−1​)) must itself be positive semidefinite and satisfy the same output-partial-trace identity. Throughout, a channel is a map X↦∑ℓ=0q−1AℓXAℓ†X\mapsto\sum_{\ell=0}^{q-1}A_\ell XA_\ell^\daggerX↦∑ℓ=0q−1​Aℓ​XAℓ†​ with ∑ℓAℓ†Aℓ=I\sum_\ell A_\ell^\dagger A_\ell=I∑ℓ​Aℓ†​Aℓ​=I, and amplification applies the map separately to each memory block. The witnesses in the two equivalent statements need not coincide. The quantification includes k=0k=0k=0, when slot products equal 111; if p∉[0,1]p\notin[0,1]p∈/[0,1], both existence statements are false.

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

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 30, 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