Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Example E.2: random Pauli implementation of UNOT

Proved
QAlgorithms.Papers.Independent.Gap48.P23.pauli_not

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

prove2quantum

For ℓ≥1\ell\ge1ℓ≥1, input covariance is with Tℓ(U)T^\ell(U)Tℓ(U) and output covariance with UUU, for every U∈U(2)U\in U(2)U∈U(2). The channel ΦTrℓ\Phi_{\rm Tr}^\ellΦTrℓ​ embeds through VℓV^\ellVℓ and keeps the first qubit; ΦUNOTℓ\Phi_{\rm UNOT}^\ellΦUNOTℓ​ measures the normalized coherent-state POVM and prepares the orthogonal state. Let DℓD_\ellDℓ​ be the explicit real dual Clebsch–Gordan matrix (C.49),(C.54). The unnormalized Choi order is output tensor input.

For every single-qubit operator ρ\rhoρ, the one-input physical UNOT channel is

ΦUNOT1(ρ)=13(XρX†+YρY†+ZρZ†),\Phi_{\rm UNOT}^1(\rho)=\frac13(X\rho X^\dagger+Y\rho Y^\dagger+Z\rho Z^\dagger),ΦUNOT1​(ρ)=31​(XρX†+YρY†+ZρZ†),

where X,Y,ZX,Y,ZX,Y,Z are the Pauli matrices. Thus applying one of these three matrices with equal probability implements this channel.

This characterizes the physical postprocessing maps used in the template algorithm.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Gap48_P23
Formal statement
noncomputable section

namespace QAlgorithms.Papers.Independent.Gap48.P23

open MeasureTheory

open scoped ComplexConjugate Matrix ComplexOrder

attribute [local instance] Classical.propDecidable

attribute [local instance] Classical.decEq

-- Exact frozen coordinate helpers; no paper-local redeclarations.

open QAlgorithms.Papers.Independent.Information100.P58 (Word)

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

open QAlgorithms.Papers.Independent.Information100.P63 (tensorPower)

/-- PDF p.74, Example E.2: random Pauli implementation, with probabilities 1/3. -/
theorem pauli_not (rho : Op (Fin 2)) :
    universalNotChannel 1 rho = (1/3 : ℂ) •
      (conjSuperop (!![0,1;1,0] : Op (Fin 2)) rho +
       conjSuperop (!![0,-Complex.I;Complex.I,0] : Op (Fin 2)) rho +
       conjSuperop (!![1,0;0,-1] : Op (Fin 2)) rho) := by sorry

end QAlgorithms.Papers.Independent.Gap48.P23

end
Source
Quantum majority vote, arXiv:2211.11729v1, PDF p. 74, Example E.2: random Pauli implementation of UNOT
Read-back

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

For every complex 2×22\times22×2 matrix ρ\rhoρ, with no positivity or trace assumption, let μ\muμ be the distribution of Ue0Ue_0Ue0​ when UUU has normalized Haar measure on the 2×22\times22×2 unitary group, where e0=(1,0)e_0=(1,0)e0​=(1,0), and write Pϕ=ϕϕ†P_\phi=\phi\phi^\daggerPϕ​=ϕϕ†. The declaration asserts

∫2 tr⁡(Pϕρ)(I−Pϕ) dμ(ϕ)=13(XρX†+YρY†+ZρZ†),X=(0110),Y=(0−ii0),Z=(100−1).\int 2\,\operatorname{tr}(P_\phi\rho)(I-P_\phi)\,d\mu(\phi) =\frac13\left(X\rho X^\dagger+Y\rho Y^\dagger+Z\rho Z^\dagger\right), \qquad X=\begin{pmatrix}0&1\\1&0\end{pmatrix},\quad Y=\begin{pmatrix}0&-\mathrm i\\ \mathrm i&0\end{pmatrix},\quad Z=\begin{pmatrix}1&0\\0&-1\end{pmatrix}.∫2tr(Pϕ​ρ)(I−Pϕ​)dμ(ϕ)=31​(XρX†+YρY†+ZρZ†),X=(01​10​),Y=(0i​−i0​),Z=(10​0−1​).

Here the integral on the left is the definition of the one-input universal NOT map used in the statement; its weight is the complex trace displayed above, without taking its real part.

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

    Confirmed by the moderator at approval.

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