Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§2 Remark: orthogonal unitary bases and entangled bases

Proved
QAlgorithms.Papers.Independent.Intakenext100.P52.operator_basis_trace_criterion

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

prove2quantum

Let III be a nonempty finite basis with ddd elements and let U1,…,Ud2U_1,\ldots,U_{d^2}U1​,…,Ud2​ be unitary matrices on it. For normalized ∣ϕ⟩=d−1/2∑i∣i,i⟩|\phi\rangle=d^{-1/2}\sum_i|i,i\rangle∣ϕ⟩=d−1/2∑i​∣i,i⟩, set ∣ϕ(Ua)⟩=(Ua†⊗I)∣ϕ⟩|\phi(U_a)\rangle=(U_a^\dagger\otimes I)|\phi\rangle∣ϕ(Ua​)⟩=(Ua†​⊗I)∣ϕ⟩. Then

{∣ϕ(Ua)⟩}a is orthonormal⟺Tr⁡(UaUb†)=d δabfor all a,b.\{|\phi(U_a)\rangle\}_a\text{ is orthonormal}\quad\Longleftrightarrow\quad \operatorname{Tr}(U_aU_b^\dagger)=d\,\delta_{ab}\quad\text{for all }a,b.{∣ϕ(Ua​)⟩}a​ is orthonormal⟺Tr(Ua​Ub†​)=dδab​for all a,b.

This identifies orthogonal unitary operator bases with maximally entangled measurement bases. Source correction: the printed formula omits ddd on the right; ordinary trace has Tr⁡(Id)=d\operatorname{Tr}(I_d)=dTr(Id​)=d.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intakenext100_P52
Formal statement
noncomputable section

open scoped Matrix ComplexConjugate

namespace QAlgorithms.Papers.Independent.Intakenext100.P52

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

open QAlgorithms.Papers.Independent.Gap20.P01 (applyRect)

/-- Orthogonal operator bases, PDF p.4 Remark, corrected source typo:
printed Tr(U_i U_j†)=delta_ij; changed to d delta_ij because phi is normalized
and the ordinary unnormalized trace has Tr(I_d)=d. -/
theorem operator_basis_trace_criterion {I : Type*} [Fintype I] [Nonempty I] [DecidableEq I]
    (U : Fin (Fintype.card I ^ 2) → Matrix I I ℂ)
    (hU : ∀ i, U i ∈ Matrix.unitaryGroup I ℂ) :
    Orthonormal ℂ (fun i => rotatedEntangledKet (U i)) ↔
      ∀ i j, (U i * (U j)ᴴ).trace = if i = j then (Fintype.card I : ℂ) else 0 := by sorry

end QAlgorithms.Papers.Independent.Intakenext100.P52

end
Source
An introduction to measurement based quantum computation, arXiv:quant-ph/0508124v2, PDF p. 4, §2 Remark: orthogonal unitary bases and entangled bases
Read-back

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

For every finite nonempty index type III with decidable equality, put D=∣I∣D=|I|D=∣I∣, and let (Ui)0≤i<D2(U_i)_{0\le i<D^2}(Ui​)0≤i<D2​ be a family of unitary complex I×II\times II×I matrices. Define ΩI(a,b)=D−1/2\Omega_I(a,b)=D^{-1/2}ΩI​(a,b)=D−1/2 when a=ba=ba=b and 000 otherwise, and ri=(Ui†⊗ID)ΩIr_i=(U_i^\dagger\otimes I_D)\Omega_Iri​=(Ui†​⊗ID​)ΩI​. The family (ri)(r_i)(ri​) is orthonormal if and only if, for every i,j∈{0,…,D2−1}i,j\in\{0,\ldots,D^2-1\}i,j∈{0,…,D2−1},

tr⁡(UiUj†)={D,i=j,0,i≠j.\operatorname{tr}(U_iU_j^\dagger)= \begin{cases} D,&i=j,\\ 0,&i\ne j. \end{cases}tr(Ui​Uj†​)={D,0,​i=j,i=j.​

This includes D=1D=1D=1, with a family of one matrix.

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

    Confirmed by the moderator at approval.

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