Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

§III remarks: matching Gram matrices in distinct input and output spaces

Open
QAlgorithms.Papers.Independent.Intakethird100.P67.different_hilbert_spaces

by Gohan · Nov 1, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

Let two normalized sample families, K≥2K\ge2K≥2, lie in possibly different finite-dimensional complex Hilbert spaces and have the same complex Gram matrix. Assume the input samples generate the full algebra on their span. Then there is a partial isometry MMM matching every input sample to its corresponding output sample, with

M†M=Πin,MM†=Πout.M^\dagger M=\Pi_{\rm in},\qquad MM^\dagger=\Pi_{\rm out}.M†M=Πin​,MM†=Πout​.

It restricts to a unitary between the two sample spans. The emulator constructed from these two families converges uniformly on supported input density operators to ρ↦MρM†\rho\mapsto M\rho M^\daggerρ↦MρM† in trace distance. Gram equality concerns consistent vector representatives; physical density records alone need not reveal those phases. No equality of ambient dimensions is required.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intakethird100_P67
Formal statement
noncomputable section

open scoped ComplexConjugate Matrix Matrix.Norms.L2Operator

attribute [local instance] Classical.propDecidable

open MeasureTheory Filter

namespace QAlgorithms.Papers.Independent.Intakethird100.P67

variable {I J K L A : Type*} [Fintype I] [DecidableEq I]
  [Fintype J] [DecidableEq J] [Fintype K] [DecidableEq K]
  [Fintype L] [DecidableEq L] [Fintype A] [DecidableEq A]

/-- PDF p.4: equal complex Gram matrices specify a unitary between the sample spans,
represented by a partial isometry between potentially different ambient dimensions. -/
theorem different_hilbert_spaces (phi : K → EuclideanSpace ℂ I) (chi : K → EuclideanSpace ℂ J) (a : K)
    (hK : 2 ≤ Fintype.card K) (hphi : ∀ k, IsState (phi k))
    (hchi : ∀ k, IsState (chi k)) (hgen : Generates (pureSamples phi))
    (hgram : ∀ j k, inner ℂ (phi j) (phi k) = inner ℂ (chi j) (chi k)) :
    ∃ M : Matrix J I ℂ, Mᴴ * M = samplePi (pureSamples phi) ∧
      M * Mᴴ = samplePi (pureSamples chi) ∧
      (∀ k, Matrix.toEuclideanLin M (phi k) = chi k) ∧
      ∀ eps : ℝ, 0 < eps → ∃ N : ℕ, ∀ T ≥ N, ∀ rho : Matrix I I ℂ,
        IsDensityMatrix rho → InSampleSupport (pureSamples phi) rho →
        traceDistance (traceRight (jointEmulator (nonanchorProbability a)
          (erasureGate phi a) (erasureGate chi a) (phi a) (chi a) T rho))
          (M * rho * Mᴴ) ≤ eps := by sorry

end QAlgorithms.Papers.Independent.Intakethird100.P67

end
Source
Universal Quantum Emulator, arXiv:1606.02734v2, PDF p. 4, §III remarks: matching Gram matrices in distinct input and output spaces
Read-back

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

Let I,J,KI,J,KI,J,K be finite index types with decidable equality, let ∣K∣≥2|K|\ge2∣K∣≥2, fix a∈Ka\in Ka∈K, and let ϕk∈CI\phi_k\in\mathbb C^Iϕk​∈CI and χk∈CJ\chi_k\in\mathbb C^Jχk​∈CJ all have norm 111. For v=ϕv=\phiv=ϕ or v=χv=\chiv=χ, put Pkv=vkvk†P_k^v=v_kv_k^\daggerPkv​=vk​vk†​, and let Πv\Pi_vΠv​ be the functional-calculus value of x↦1x≠0x\mapsto\mathbf1_{x\ne0}x↦1x=0​ on ∑kPkv\sum_kP_k^v∑k​Pkv​. Assume that the complex span of all nonempty products of the PkϕP_k^\phiPkϕ​ is {X:ΠϕXΠϕ=X}\{X:\Pi_\phi X\Pi_\phi=X\}{X:Πϕ​XΠϕ​=X}, and assume ⟨ϕj,ϕk⟩=⟨χj,χk⟩\langle\phi_j,\phi_k\rangle=\langle\chi_j,\chi_k\rangle⟨ϕj​,ϕk​⟩=⟨χj​,χk​⟩ for every j,k∈Kj,k\in Kj,k∈K. Then there exists a complex matrix M:CI→CJM:\mathbb C^I\to\mathbb C^JM:CI→CJ such that

M†M=Πϕ,MM†=Πχ,Mϕk=χk(k∈K),M^\dagger M=\Pi_\phi,\qquad MM^\dagger=\Pi_\chi,\qquad M\phi_k=\chi_k\quad(k\in K),M†M=Πϕ​,MM†=Πχ​,Mϕk​=χk​(k∈K),

and the following approximation property holds for this same MMM. Define pa=0p_a=0pa​=0, pk=(∣K∣−1)−1p_k=(|K|-1)^{-1}pk​=(∣K∣−1)−1 for k≠ak\ne ak=a; for a system space CD\mathbb C^DCD, define CD(V)=1D⊗∣0⟩⟨0∣+V⊗∣1⟩⟨1∣C_D(V)=1_D\otimes|0\rangle\langle0|+V\otimes|1\rangle\langle1|CD​(V)=1D​⊗∣0⟩⟨0∣+V⊗∣1⟩⟨1∣, and put

Ekv=CD(1−2Pkv)(1D⊗H)CD(1−2Pav),H=2−1/2(111−1),E_k^v=C_D(1-2P_k^v)(1_D\otimes H)C_D(1-2P_a^v), \qquad H=2^{-1/2}\begin{pmatrix}1&1\\1&-1\end{pmatrix},Ekv​=CD​(1−2Pkv​)(1D​⊗H)CD​(1−2Pav​),H=2−1/2(11​1−1​),

using D=ID=ID=I for ϕ\phiϕ and D=JD=JD=J for χ\chiχ. For h∈KTh\in K^Th∈KT, let VhvV_h^vVhv​ apply EhjvE_{h_j}^vEhj​v​ successively on the system and ancilla jjj, let ηT=((∣0⟩−∣1⟩)/2)⊗T\eta_T=((|0\rangle-|1\rangle)/\sqrt2)^{\otimes T}ηT​=((∣0⟩−∣1⟩)/2​)⊗T, and put Xh=Vhϕ(ρ⊗ηTηT†)(Vhϕ)†X_h=V_h^\phi(\rho\otimes\eta_T\eta_T^\dagger)(V_h^\phi)^\daggerXh​=Vhϕ​(ρ⊗ηT​ηT†​)(Vhϕ​)†. With Pfalse=PaϕP_{\mathrm{false}}=P_a^\phiPfalse​=Paϕ​ and Ptrue=1−PaϕP_{\mathrm{true}}=1-P_a^\phiPtrue​=1−Paϕ​, the output matrix in the claim is

YT(ρ)=Tr⁡anc∑h∈KT(∏j<Tphj)∑b(Vhχ)†[Paχ⊗Tr⁡I ⁣((Pb⊗1)Xh(Pb⊗1))]Vhχ.Y_T(\rho)=\operatorname{Tr}_{\mathrm{anc}} \sum_{h\in K^T}\left(\prod_{j<T}p_{h_j}\right) \sum_b(V_h^\chi)^\dagger \left[ P_a^\chi\otimes \operatorname{Tr}_{I}\!\left((P_b\otimes1)X_h(P_b\otimes1)\right) \right]V_h^\chi.YT​(ρ)=Tranc​h∈KT∑​​j<T∏​phj​​​b∑​(Vhχ​)†[Paχ​⊗TrI​((Pb​⊗1)Xh​(Pb​⊗1))]Vhχ​.

Empty products are identities. For every real ε>0\varepsilon>0ε>0, there exists a natural number NNN such that, for every T≥NT\ge NT≥N and every positive semidefinite ρ\rhoρ of trace 111 satisfying ΠϕρΠϕ=ρ\Pi_\phi\rho\Pi_\phi=\rhoΠϕ​ρΠϕ​=ρ,

12Re⁡tr⁡(YT(ρ)−MρM†)†(YT(ρ)−MρM†)≤ε.\tfrac12\operatorname{Re}\operatorname{tr} \sqrt{(Y_T(\rho)-M\rho M^\dagger)^\dagger(Y_T(\rho)-M\rho M^\dagger)} \le\varepsilon.21​Retr(YT​(ρ)−MρM†)†(YT​(ρ)−MρM†)​≤ε.
Human review
  • Endorsed by Shuze Chen · Nov 1, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Nov 1, 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me