Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§IV.D: trace form of a stabilizer constraint

Proved
QAlgorithms.Papers.Independent.Advance50.P38.stabilizerConstraintEquivalence

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

prove2quantum

For N>0N>0N>0, an arbitrary complex matrix E∈CN×NE\in\mathbb C^{N\times N}E∈CN×N, and U∈U(N)U\in\mathrm U(N)U∈U(N),

UEU†=E⟺tr⁡(E†UEU†)−∥E∥F2=0.UEU^\dagger=E\quad\Longleftrightarrow\quad\operatorname{tr}(E^\dagger UEU^\dagger)-\|E\|_F^2=0.UEU†=E⟺tr(E†UEU†)−∥E∥F2​=0.

The trace equation is an equality in C\mathbb CC. It gives an exact stabilizer constraint without asserting real-valuedness of the surrounding penalty objective.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Advance50_P38
Formal statement
namespace QAlgorithms.Papers.Independent.Advance50.P38

open scoped BigOperators Topology Manifold ContDiff

noncomputable section

/-- Trace form of the stabilizer constraint, PDF p.32. The equality is
complex-valued; it does not make the printed penalty real-valued. -/
theorem stabilizerConstraintEquivalence {n : ℕ} (hn : 0 < n) (E : (Matrix (Fin n) (Fin n) ℂ))
    (U : Matrix.unitaryGroup (Fin n) ℂ) :
    (U : (Matrix (Fin n) (Fin n) ℂ)) * E * (U : (Matrix (Fin n) (Fin n) ℂ)).conjTranspose = E ↔
      Matrix.trace (E.conjTranspose * ((U : (Matrix (Fin n) (Fin n) ℂ)) * E * (U : (Matrix (Fin n) (Fin n) ℂ)).conjTranspose)) -
        (frobSq E : ℂ) = 0 := by sorry

end

end QAlgorithms.Papers.Independent.Advance50.P38
Source
Gradient Flows for Optimisation and Quantum Control: Foundations and Applications, arXiv:0802.4195v2, PDF p. 32, §IV.D: trace form of a stabilizer constraint
Read-back

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

For every natural number n>0n>0n>0, every complex n×nn\times nn×n matrix EEE, and every unitary n×nn\times nn×n matrix UUU, one has

UEU∗=E⟺tr⁡(E∗UEU∗)−(∑i=0n−1∑j=0n−1∣Eij∣2)=0.UEU^*=E \quad\Longleftrightarrow\quad \operatorname{tr}(E^*UEU^*)- \left(\sum_{i=0}^{n-1}\sum_{j=0}^{n-1}|E_{ij}|^2\right)=0.UEU∗=E⟺tr(E∗UEU∗)−(i=0∑n−1​j=0∑n−1​∣Eij​∣2)=0.

Here ∗^*∗ denotes conjugate transpose, the real sum is regarded as a complex number, and the right-hand side is an equality in C\mathbb CC.

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