Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§IV.A: product orbit and entanglement distance

Open
QAlgorithms.Papers.Independent.Advance50.P38.productStateOrbitDistance

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

prove2quantum

Let n≥1n\ge1n≥1, let x∈C2nx\in\mathbb C^{2^n}x∈C2n be normalized, and let y=z1⊗⋯⊗zny=z_1\otimes\cdots\otimes z_ny=z1​⊗⋯⊗zn​ with every ∥zk∥2=1\|z_k\|_2=1∥zk​∥2​=1. The set of pure product projectors is exactly {Uyy†U†:U∈SU(2)⊗n}\{Uyy^\dagger U^\dagger:U\in\mathrm{SU}(2)^{\otimes n}\}{Uyy†U†:U∈SU(2)⊗n}. For every such UUU,

tr⁡(xx†Uyy†U†)=∣⟨x,Uy⟩∣2,∥xx†−Uyy†U†∥F2=2−2∣⟨x,Uy⟩∣2.\operatorname{tr}(xx^\dagger Uyy^\dagger U^\dagger)=|\langle x,Uy\rangle|^2,\qquad\|xx^\dagger-Uyy^\dagger U^\dagger\|_F^2=2-2|\langle x,Uy\rangle|^2.tr(xx†Uyy†U†)=∣⟨x,Uy⟩∣2,∥xx†−Uyy†U†∥F2​=2−2∣⟨x,Uy⟩∣2.

The transfer maximum is attained. Its maximizers are exactly the minimizers of the squared projector distance. Global phase disappears in the projectors, and the distance contains the factor two.

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

/-- Pure product orbit and entanglement distance (167)--(169), PDF p.27.
The squared Frobenius distance is 2 minus twice the pureStateTransfer. -/
theorem productStateOrbitDistance {n : ℕ} (hn : 0 < n)
    (x : ArrayIndex (fun _ : Fin n => 2) → ℂ) (hx : ∑ i, Complex.normSq (x i) = 1)
    (z : (k : Fin n) → Fin 2 → ℂ) (hz : unitTensorFactors z) :
    let y := tensorProduct z
    pureProductProjectors (fun _ : Fin n => 2) =
      {P | ∃ U : (k : Fin n) → Matrix.specialUnitaryGroup (Fin 2) ℂ,
        P = tensorUnitary U * rankOneMatrix y * (tensorUnitary U).conjTranspose} ∧
    (∀ U : (k : Fin n) → Matrix.specialUnitaryGroup (Fin 2) ℂ,
      Matrix.trace (rankOneMatrix x * tensorUnitary U * rankOneMatrix y * (tensorUnitary U).conjTranspose) =
        (Complex.normSq (vInner x ((tensorUnitary U).mulVec y)) : ℂ) ∧
      frobSq (rankOneMatrix x - tensorUnitary U * rankOneMatrix y * (tensorUnitary U).conjTranspose) =
        2 - 2 * pureStateTransfer x y (tensorUnitary U)) ∧
    (∃ U0 : (k : Fin n) → Matrix.specialUnitaryGroup (Fin 2) ℂ,
      ∀ U : (k : Fin n) → Matrix.specialUnitaryGroup (Fin 2) ℂ,
        pureStateTransfer x y (tensorUnitary U) ≤ pureStateTransfer x y (tensorUnitary U0)) ∧
    (∀ U0 : (k : Fin n) → Matrix.specialUnitaryGroup (Fin 2) ℂ,
      (∀ U : (k : Fin n) → Matrix.specialUnitaryGroup (Fin 2) ℂ,
        frobSq (rankOneMatrix x - tensorUnitary U0 * rankOneMatrix y * (tensorUnitary U0).conjTranspose) ≤
          frobSq (rankOneMatrix x - tensorUnitary U * rankOneMatrix y * (tensorUnitary U).conjTranspose)) ↔
      ∀ U : (k : Fin n) → Matrix.specialUnitaryGroup (Fin 2) ℂ,
        pureStateTransfer x y (tensorUnitary U) ≤ pureStateTransfer x y (tensorUnitary U0)) := 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. 27, §IV.A: product orbit and entanglement distance
Read-back

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

For every positive natural number nnn, let I={0,1}nI=\{0,1\}^nI={0,1}n, let x:I→Cx:I\to\mathbb Cx:I→C satisfy ∑i∈I∣xi∣2=1\sum_{i\in I}|x_i|^2=1∑i∈I​∣xi​∣2=1, and let zk:{0,1}→Cz_k:\{0,1\}\to\mathbb Czk​:{0,1}→C, for 0≤k<n0\le k<n0≤k<n, satisfy ∑j=01∣zk(j)∣2=1\sum_{j=0}^1|z_k(j)|^2=1∑j=01​∣zk​(j)∣2=1. Define yi=∏k=0n−1zk(ik)y_i=\prod_{k=0}^{n-1}z_k(i_k)yi​=∏k=0n−1​zk​(ik​), define (Ru)ij=uiuj‾(R_u)_{ij}=u_i\overline{u_j}(Ru​)ij​=ui​uj​​, and, for any family Uk∈SU(2)U_k\in SU(2)Uk​∈SU(2), define Uij=∏k=0n−1(Uk)ikjk\mathcal U_{ij}=\prod_{k=0}^{n-1}(U_k)_{i_kj_k}Uij​=∏k=0n−1​(Uk​)ik​jk​​, Q(U)=URyU∗Q(U)=\mathcal U R_y\mathcal U^*Q(U)=URy​U∗,

T(U)=Re⁡tr⁡(RxQ(U)),D(U)=∑i,j∈I∣(Rx−Q(U))ij∣2.T(U)=\operatorname{Re}\operatorname{tr}(R_xQ(U)), \qquad D(U)=\sum_{i,j\in I}|(R_x-Q(U))_{ij}|^2.T(U)=Retr(Rx​Q(U)),D(U)=i,j∈I∑​∣(Rx​−Q(U))ij​∣2.

The statement asserts all of the following: the set of matrices RwR_wRw​ obtained from vectors wi=∏kqk(ik)w_i=\prod_k q_k(i_k)wi​=∏k​qk​(ik​) with ∑j=01∣qk(j)∣2=1\sum_{j=0}^1|q_k(j)|^2=1∑j=01​∣qk​(j)∣2=1 for every kkk is exactly {Q(U):Uk∈SU(2) for every k}\{Q(U):U_k\in SU(2)\text{ for every }k\}{Q(U):Uk​∈SU(2) for every k}; for every such family UUU,

tr⁡(RxQ(U))=∣∑i∈Ixi‾(Uy)i∣2,D(U)=2−2T(U),\operatorname{tr}(R_xQ(U)) =\left|\sum_{i\in I}\overline{x_i}(\mathcal U y)_i\right|^2, \qquad D(U)=2-2T(U),tr(Rx​Q(U))=​i∈I∑​xi​​(Uy)i​​2,D(U)=2−2T(U),

where the first right-hand side is regarded as complex and (Uy)i=∑j∈IUijyj(\mathcal U y)_i=\sum_{j\in I}\mathcal U_{ij}y_j(Uy)i​=∑j∈I​Uij​yj​; there exists a family U0U_0U0​ with T(U)≤T(U0)T(U)\le T(U_0)T(U)≤T(U0​) for every family UUU; and, for every family U0U_0U0​, the condition D(U0)≤D(U)D(U_0)\le D(U)D(U0​)≤D(U) for every family UUU holds if and only if T(U)≤T(U0)T(U)\le T(U_0)T(U)≤T(U0​) for every family UUU.

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