Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for Single-shot Quantum State Merging

Definition
QAlgorithms_Papers_Independent_Advance50_P11

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

prove2quantum

The objects the formalized statements of Single-shot Quantum State Merging (arXiv:0912.4495) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • optimizedMin: PDF p.10, (3.5): optimize the fixed-reference min entropy over normalized densities.
  • optimizedMax: PDF p.10, (3.6): historical support-rank max entropy, with normalized reference optimization.
  • normalizedBall: PDF p.14, Definition 3.12: the closed ball contains only normalized density matrices. For eps >= 0 it contains rho whenever rho is a density; radii >= 1 remain meaningful.
  • normalizedSmoothFixedMin: PDF p.14, (3.32): supremum smoothing with sigma fixed over NORMALIZED states at HALF trace-norm distance. The frozen Gap20.P03.smoothFixedMin uses a subnormalized full-radius ball, so it is a different source concept.
  • smoothFixedMax: PDF p.14, (3.33): infimum smoothing of the historical rank-max entropy.
  • normalizedSmoothMin: PDF p.14, (3.34): outer reference supremum, after normalized min smoothing. This is quantum density smoothing, distinct from frozen Gap20.P03.smoothMin, which is worst-case classical entropy under event deletion.
  • normalizedSmoothRankMax: PDF p.14, (3.35): outer supremum after the inner normalized rank-max INFIMUM. The frozen Information100.P71.smoothMax is a channel max-relative divergence; it is not this historical conditional rank entropy.
  • weightedOperator: PDF pp.10,15: weighting on the reference tensor factor. Negative powers are inverse-on-support and vanish on the kernel, as required by Remark 3.6.
  • collisionEntropy: PDF p.15, (3.40): raw collision entropy with the stated generalized inverse. Zero collision mass gives +infinity. Comparisons and decoupling require support inclusion.
  • referenceLast: PDF pp.11,14: tensor-factor permutation, moving the first factor to the end. This is basis transport, not a partial trace.
  • tensorRegroup: PDF p.11, (3.9)--(3.10): regroup AA':BB' after taking the tensor product.
  • inputKet: PDF p.16, Definition 4.1: single-copy input with the whole independent rank-K Bell resource. Register order is R:((Alice A,A0),(Bob B,B0)).
  • targetKet: PDF p.16, (4.1): complete pure target, including the rank-L Bell resource. Bob's A is the fixed copy Bprime; the reference is unchanged.
  • Merges: PDF p.16, Definition 4.1: actual finite adaptive LOCC and full target error. K,L are positive natural Schmidt ranks. No entropy or decoupling conclusion is an input.
  • ancillaryInput: PDF p.25, Remark 4.11: independent normalized Alice ancilla at the input. It is not added to, or identified with, the inaccessible source reference R.
  • retainedKrausBranch: PDF pp.6,23: a fine-grained local branch retaining its quantum output and R. Reuse the frozen single-Kraus conjugation, with identity on the actual reference. Dependency50.P07.measurementBranch instead traces Alice out and cannot be used here.
  • flaggedOutput: PDF p.23, (4.31): actual outcome-flagged state, grouped as A:(R X). Each outcome retains its single measurement operator, including zero-weight branches.
  • outcomeState: PDF p.23: the classical flag marginal is computed from actual branch traces.
  • aliceResourceMarginal: PDF pp.17--18: Alice's rank-K input resource is maximally mixed in the AR marginal.
  • decouplingSum: PDF pp.17--18, (4.5): the weighted decoupling sum, without division by a zero outcome probability. For each positive branch this equals p_j times its normalized trace-norm error.
  • compressedState: PDF p.19: the actual unnormalized compressed state for a Haar unitary U.
  • rankOnePinching: PDF pp.25--26: the frozen rank-one pinching, extended to the first factor. Dependency50.P35.pinch sums the column-projector sandwiches. The frozen mapFirst retains every reference block, including off-diagonal blocks. Thus no local basis projector or duplicate pinching definition is needed.
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Defs_QuantumInformation
import Definitions.Def_QAlgorithms_Defs_SchurUnitaryEnsembles
import Definitions.Def_QAlgorithms_Papers_Independent_Support50_P21
import Definitions.Def_QAlgorithms_Papers_Independent_Gap20_P11
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P22
import Definitions.Def_QAlgorithms_Papers_Independent_Dependency50_P35
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P67

/-!
Mario Berta, Single-shot Quantum State Merging, arXiv:0912.4495v1.
All page numbers are PDF pages and logarithms are binary. The historical
max entropy is the support-rank entropy. Smoothing uses normalized states
and HALF trace-norm distance; protocol errors use the FULL trace norm.
Only definitions from the pinned accepted library are reused. New definitions
are local to this paper. Source defects and intentionally omitted nodes are
recorded in HARD.md; no operational converse with positive error is asserted.
Compilation is pending the separate mechanical handoff.
-/

noncomputable section

namespace QAlgorithms.Papers.Independent.Advance50.P11

open QAlgorithms MeasureTheory
open scoped Matrix ComplexConjugate ComplexOrder
open QAlgorithms.Papers.Independent.Support50.P21
  (conditionalMin conditionalMax hMin hMax largestEigenvalue)
open QAlgorithms.Papers.Independent.Dependency50.P35 (elog supportRank tr)
open QAlgorithms.Papers.Independent.Information100.P71 (supportPower SupportIncluded)
open QAlgorithms.Papers.Independent.Information100.P07 (support)
open QAlgorithms.Papers.Independent.Gap20.P11 (IsLOCC marginalAR)
open QAlgorithms.Papers.Independent.Information100.P22 (bell mixed)

attribute [local instance] Classical.propDecidable Classical.decEq

/-- PDF p.10, (3.5): optimize the fixed-reference min entropy over normalized densities. -/
def optimizedMin {A B : Type} [Fintype A] [Fintype B] [DecidableEq A] [DecidableEq B]
    (rho : Matrix (A × B) (A × B) ℂ) : EReal :=
  ⨆ sigma : {s : Matrix B B ℂ // IsDensityMatrix s}, conditionalMin rho sigma.1

/-- PDF p.10, (3.6): historical support-rank max entropy, with normalized reference optimization. -/
def optimizedMax {A B : Type} [Fintype A] [Fintype B] [DecidableEq A] [DecidableEq B]
    (rho : Matrix (A × B) (A × B) ℂ) : EReal :=
  ⨆ sigma : {s : Matrix B B ℂ // IsDensityMatrix s}, conditionalMax rho sigma.1

/-- PDF p.14, Definition 3.12: the closed ball contains only normalized density matrices.
For eps >= 0 it contains rho whenever rho is a density; radii >= 1 remain meaningful. -/
def normalizedBall {I : Type} [Fintype I] [DecidableEq I]
    (eps : ℝ) (rho : Matrix I I ℂ) : Set (Matrix I I ℂ) :=
  {tau | IsDensityMatrix tau ∧ (1 / 2 : ℝ) * traceNorm (tau - rho) ≤ eps}

/-- PDF p.14, (3.32): supremum smoothing with sigma fixed over NORMALIZED states
at HALF trace-norm distance. The frozen Gap20.P03.smoothFixedMin uses a
subnormalized full-radius ball, so it is a different source concept. -/
def normalizedSmoothFixedMin {A B : Type} [Fintype A] [Fintype B] [DecidableEq A] [DecidableEq B]
    (eps : ℝ) (rho : Matrix (A × B) (A × B) ℂ) (sigma : Matrix B B ℂ) : EReal :=
  ⨆ tau : normalizedBall eps rho, conditionalMin tau.1 sigma

/-- PDF p.14, (3.33): infimum smoothing of the historical rank-max entropy. -/
def smoothFixedMax {A B : Type} [Fintype A] [Fintype B] [DecidableEq A] [DecidableEq B]
    (eps : ℝ) (rho : Matrix (A × B) (A × B) ℂ) (sigma : Matrix B B ℂ) : EReal :=
  ⨅ tau : normalizedBall eps rho, conditionalMax tau.1 sigma

/-- PDF p.14, (3.34): outer reference supremum, after normalized min smoothing.
This is quantum density smoothing, distinct from frozen Gap20.P03.smoothMin,
which is worst-case classical entropy under event deletion. -/
def normalizedSmoothMin {A B : Type} [Fintype A] [Fintype B] [DecidableEq A] [DecidableEq B]
    (eps : ℝ) (rho : Matrix (A × B) (A × B) ℂ) : EReal :=
  ⨆ sigma : {s : Matrix B B ℂ // IsDensityMatrix s}, normalizedSmoothFixedMin eps rho sigma.1

/-- PDF p.14, (3.35): outer supremum after the inner normalized rank-max INFIMUM.
The frozen Information100.P71.smoothMax is a channel max-relative divergence;
it is not this historical conditional rank entropy. -/
def normalizedSmoothRankMax {A B : Type} [Fintype A] [Fintype B] [DecidableEq A] [DecidableEq B]
    (eps : ℝ) (rho : Matrix (A × B) (A × B) ℂ) : EReal :=
  ⨆ sigma : {s : Matrix B B ℂ // IsDensityMatrix s}, smoothFixedMax eps rho sigma.1

/-- PDF pp.10,15: weighting on the reference tensor factor. Negative powers are
inverse-on-support and vanish on the kernel, as required by Remark 3.6. -/
def weightedOperator {A B : Type} [Fintype A] [Fintype B] [DecidableEq A] [DecidableEq B]
    (rho : Matrix (A × B) (A × B) ℂ) (sigma : Matrix B B ℂ) (t : ℝ) :=
  Matrix.kronecker (1 : Matrix A A ℂ) (supportPower sigma t) * rho *
    Matrix.kronecker (1 : Matrix A A ℂ) (supportPower sigma t)

/-- PDF p.15, (3.40): raw collision entropy with the stated generalized inverse.
Zero collision mass gives +infinity. Comparisons and decoupling require support inclusion. -/
def collisionEntropy {A B : Type} [Fintype A] [Fintype B] [DecidableEq A] [DecidableEq B]
    (rho : Matrix (A × B) (A × B) ℂ) (sigma : Matrix B B ℂ) : EReal :=
  -elog (tr (weightedOperator rho sigma (-1 / 4) ^ 2))

/-- PDF pp.11,14: tensor-factor permutation, moving the first factor to the end.
This is basis transport, not a partial trace. -/
def referenceLast {A R : Type} (rho : Matrix (R × A) (R × A) ℂ) :
    Matrix (A × R) (A × R) ℂ := fun p q => rho (p.2, p.1) (q.2, q.1)

/-- PDF p.11, (3.9)--(3.10): regroup AA':BB' after taking the tensor product. -/
def tensorRegroup {A B C D : Type}
    (rho : Matrix (A × B) (A × B) ℂ) (tau : Matrix (C × D) (C × D) ℂ) :
    Matrix ((A × C) × (B × D)) ((A × C) × (B × D)) ℂ :=
  fun p q => rho (p.1.1, p.2.1) (q.1.1, q.2.1) *
    tau (p.1.2, p.2.2) (q.1.2, q.2.2)

/-- PDF p.16, Definition 4.1: single-copy input with the whole independent rank-K Bell resource.
Register order is R:((Alice A,A0),(Bob B,B0)). -/
def inputKet {A B R : Type} (psi : EuclideanSpace ℂ (R × (A × B))) (K : ℕ) :
    EuclideanSpace ℂ (R × ((A × Fin K) × (B × Fin K))) :=
  WithLp.toLp 2 fun p => psi (p.1, (p.2.1.1, p.2.2.1)) *
    bell (Fin K) (p.2.1.2, p.2.2.2)

/-- PDF p.16, (4.1): complete pure target, including the rank-L Bell resource.
Bob's A is the fixed copy Bprime; the reference is unchanged. -/
def targetKet {A B R : Type} (psi : EuclideanSpace ℂ (R × (A × B))) (L : ℕ) :
    EuclideanSpace ℂ (R × (Fin L × ((A × B) × Fin L))) :=
  WithLp.toLp 2 fun p => psi (p.1, p.2.2.1) * bell (Fin L) (p.2.1, p.2.2.2)

/-- PDF p.16, Definition 4.1: actual finite adaptive LOCC and full target error.
K,L are positive natural Schmidt ranks. No entropy or decoupling conclusion is an input. -/
def Merges {A B R : Type} [Fintype A] [Fintype B] [Fintype R]
    (psi : EuclideanSpace ℂ (R × (A × B))) (K L : ℕ)
    (M : Superop ((A × Fin K) × (B × Fin K)) (Fin L × ((A × B) × Fin L)))
    (eps : ℝ) : Prop :=
  0 < K ∧ 0 < L ∧ IsLOCC M ∧
    traceNorm (idTensorSuperop M (pureDensity (inputKet psi K)) -
      pureDensity (targetKet psi L)) ≤ eps

/-- PDF p.25, Remark 4.11: independent normalized Alice ancilla at the input.
It is not added to, or identified with, the inaccessible source reference R. -/
def ancillaryInput {A B R C : Type}
    (psi : EuclideanSpace ℂ (R × (A × B))) (eta : Matrix C C ℂ) (K : ℕ) :
    Matrix (R × (((A × Fin K) × C) × (B × Fin K)))
      (R × (((A × Fin K) × C) × (B × Fin K))) ℂ :=
  fun p q => pureDensity (inputKet psi K)
    (p.1, (p.2.1.1, p.2.2)) (q.1, (q.2.1.1, q.2.2)) * eta p.2.1.2 q.2.1.2

/-- PDF pp.6,23: a fine-grained local branch retaining its quantum output and R.
Reuse the frozen single-Kraus conjugation, with identity on the actual reference.
Dependency50.P07.measurementBranch instead traces Alice out and cannot be used here. -/
def retainedKrausBranch {A C R : Type} [Fintype A] [Fintype R] [DecidableEq R]
    (M : Matrix C A ℂ) (rho : Matrix (A × R) (A × R) ℂ) :
    Matrix (C × R) (C × R) ℂ :=
  conjSuperop (Matrix.kronecker M (1 : Matrix R R ℂ)) rho

/-- PDF p.23, (4.31): actual outcome-flagged state, grouped as A:(R X).
Each outcome retains its single measurement operator, including zero-weight branches. -/
def flaggedOutput {A R X : Type} [Fintype A] [Fintype R] [DecidableEq R] [DecidableEq X]
    (M : X → Matrix A A ℂ) (rho : Matrix (A × R) (A × R) ℂ) :
    Matrix (A × (R × X)) (A × (R × X)) ℂ :=
  fun p q => if p.2.2 = q.2.2 then
    retainedKrausBranch (M p.2.2) rho (p.1, p.2.1) (q.1, q.2.1) else 0

/-- PDF p.23: the classical flag marginal is computed from actual branch traces. -/
def outcomeState {A R X : Type} [Fintype A] [Fintype R] [DecidableEq R] [DecidableEq X]
    (M : X → Matrix A A ℂ) (rho : Matrix (A × R) (A × R) ℂ) : Matrix X X ℂ :=
  Matrix.diagonal fun x => (retainedKrausBranch (M x) rho).trace

/-- PDF pp.17--18: Alice's rank-K input resource is maximally mixed in the AR marginal. -/
def aliceResourceMarginal {A R : Type} [Fintype A] [Fintype R]
    (rho : Matrix (A × R) (A × R) ℂ) (K : ℕ) :
    Matrix ((A × Fin K) × R) ((A × Fin K) × R) ℂ :=
  fun p q => rho (p.1.1, p.2) (q.1.1, q.2) * mixed (Fin K) p.1.2 q.1.2

/-- PDF pp.17--18, (4.5): the weighted decoupling sum, without division by a zero outcome probability.
For each positive branch this equals p_j times its normalized trace-norm error. -/
def decouplingSum {A B R X : Type} [Fintype A] [Fintype B] [Fintype R] [Fintype X]
    (psi : EuclideanSpace ℂ (R × (A × B))) (K L : ℕ)
    (M : X → Matrix (Fin L) (A × Fin K) ℂ) : ℝ :=
  let rho := aliceResourceMarginal (marginalAR (pureDensity psi)) K
  let target := Matrix.kronecker (mixed (Fin L)) (traceRight (pureDensity psi))
  ∑ x, traceNorm (retainedKrausBranch (M x) rho -
    (retainedKrausBranch (M x) rho).trace • target)

/-- PDF p.19: the actual unnormalized compressed state for a Haar unitary U. -/
def compressedState {d L : ℕ} {R : Type} [Fintype R] [DecidableEq R]
    (rho : Matrix (Fin d × R) (Fin d × R) ℂ) (P : Matrix (Fin L) (Fin d) ℂ)
    (U : Matrix.unitaryGroup (Fin d) ℂ) : Matrix (Fin L × R) (Fin L × R) ℂ :=
  retainedKrausBranch (P * (U : Matrix (Fin d) (Fin d) ℂ)) rho

/-- PDF pp.25--26: the frozen rank-one pinching, extended to the first factor.
Dependency50.P35.pinch sums the column-projector sandwiches. The frozen mapFirst
retains every reference block, including off-diagonal blocks. Thus no local basis
projector or duplicate pinching definition is needed. -/
def rankOnePinching {A R : Type} [Fintype A] [Fintype R] [DecidableEq A] [DecidableEq R]
    (U : Matrix.unitaryGroup A ℂ) (rho : Matrix (A × R) (A × R) ℂ) :=
  QAlgorithms.Papers.Independent.Information100.P67.mapFirst
    (QAlgorithms.Papers.Independent.Dependency50.P35.pinch (U : Matrix A A ℂ)) rho

/-! Sanity examples pinning domain, zero outcomes, factor order and the full target. -/

example {I : Type} [Fintype I] [DecidableEq I] (rho : Matrix I I ℂ)
    (hrho : IsDensityMatrix rho) (eps : ℝ) (heps : 0 ≤ eps) :
    rho ∈ normalizedBall eps rho := by
  simpa [normalizedBall, traceNorm, cfc_zero] using And.intro hrho heps

example {A R : Type} [Fintype A] [Fintype R] [DecidableEq R]
    (rho : Matrix (A × R) (A × R) ℂ) : retainedKrausBranch (0 : Matrix A A ℂ) rho = 0 := by
  simp [retainedKrausBranch, conjSuperop]

example {A R : Type} (rho : Matrix (R × A) (R × A) ℂ) :
    referenceLast (referenceLast rho) = rho := rfl

example {A B : Type} (psi : EuclideanSpace ℂ (Unit × (A × B))) (a : A) (b : B) :
    targetKet psi 1 ((), (0, ((a, b), 0))) = psi ((), (a, b)) := by
  simp [targetKet, bell]

example {A B R : Type} [Fintype A] [Fintype B] [Fintype R]
    (psi : EuclideanSpace ℂ (R × (A × B))) (K L : ℕ)
    (M : Superop ((A × Fin K) × (B × Fin K)) (Fin L × ((A × B) × Fin L)))
    (h : Merges psi K L M 0) : IsLOCC M := h.2.2.1

end QAlgorithms.Papers.Independent.Advance50.P11
Source
Single-shot Quantum State Merging, arXiv:0912.4495v1, https://arxiv.org/abs/0912.4495v1
Read-back

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

QAlgorithms.Papers.Independent.Advance50.P11.Merges

For finite types A,B,RA,B,RA,B,R, a vector ψ∈CR×(A×B)\psi\in\mathbb C^{R\times(A\times B)}ψ∈CR×(A×B), natural numbers K,LK,LK,L, an arbitrary map MMM from complex matrices on (A×{0,…,K−1})×(B×{0,…,K−1})(A\times\{0,\ldots,K-1\})\times(B\times\{0,\ldots,K-1\})(A×{0,…,K−1})×(B×{0,…,K−1}) to complex matrices on {0,…,L−1}×((A×B)×{0,…,L−1})\{0,\ldots,L-1\}\times((A\times B)\times\{0,\ldots,L-1\}){0,…,L−1}×((A×B)×{0,…,L−1}), and a real number ε\varepsilonε, this predicate requires K>0K>0K>0, L>0L>0L>0, that MMM is a finite local protocol as described below, and

∥(id⁡R⊗M)(vv†)−ww†∥1≤ε,v(r,((a,i),(b,j)))=1i=jKψ(r,(a,b)),w(r,(ℓ,((a,b),ℓ′)))=1ℓ=ℓ′Lψ(r,(a,b)).\left\|(\operatorname{id}_R\otimes M)(vv^\dagger)-ww^\dagger\right\|_1\le\varepsilon, \qquad v(r,((a,i),(b,j)))=\frac{\mathbf1_{i=j}}{\sqrt K}\psi(r,(a,b)), \quad w(r,(\ell,((a,b),\ell')))=\frac{\mathbf1_{\ell=\ell'}}{\sqrt L}\psi(r,(a,b)).​(idR​⊗M)(vv†)−ww†​1​≤ε,v(r,((a,i),(b,j)))=K​1i=j​​ψ(r,(a,b)),w(r,(ℓ,((a,b),ℓ′)))=L​1ℓ=ℓ′​​ψ(r,(a,b)).

Here the extension of MMM acts separately on each reference matrix block: (id⁡R⊗M)(X)(r,u),(r′,u′)=M(X(r,⋅),(r′,⋅))u,u′(\operatorname{id}_R\otimes M)(X)_{(r,u),(r',u')}=M(X_{(r,\cdot),(r',\cdot)})_{u,u'}(idR​⊗M)(X)(r,u),(r′,u′)​=M(X(r,⋅),(r′,⋅)​)u,u′​, and ∥X∥1=Re⁡tr⁡X†X\|X\|_1=\operatorname{Re}\operatorname{tr}\sqrt{X^\dagger X}∥X∥1​=RetrX†X​. The local-protocol requirement first relabels each local basis by a chosen bijection with the finite set of its cardinality and then requires membership in the recursively generated class consisting of identity maps and finite branching steps: either party applies a finite family of local rectangular matrices EiE_iEi​ satisfying ∑iEi†Ei=I\sum_iE_i^\dagger E_i=I∑i​Ei†​Ei​=I, follows branch iii with another such protocol, and sums the resulting branch outputs. Local dimensions may change during these steps. No unit-norm assumption on ψ\psiψ, nonemptiness assumption on A,B,RA,B,RA,B,R, or sign assumption on ε\varepsilonε is imposed; a negative ε\varepsilonε cannot satisfy the norm inequality.

QAlgorithms.Papers.Independent.Advance50.P11.aliceResourceMarginal

For finite types A,RA,RA,R, any complex matrix ρ\rhoρ on A×RA\times RA×R, and any natural number KKK, this defines a matrix YYY on (A×{0,…,K−1})×R(A\times\{0,\ldots,K-1\})\times R(A×{0,…,K−1})×R by

Y((a,i),r),((a′,j),r′)=ρ(a,r),(a′,r′) K−11i=j.Y_{((a,i),r),((a',j),r')}= \rho_{(a,r),(a',r')}\,K^{-1}\mathbf1_{i=j}.Y((a,i),r),((a′,j),r′)​=ρ(a,r),(a′,r′)​K−11i=j​.

The scalar inverse is taken in C\mathbb CC, with 0−1=00^{-1}=00−1=0. No positivity or normalization of ρ\rhoρ, positivity of KKK, or nonemptiness of A,RA,RA,R is assumed; for K=0K=0K=0, the output index type is empty.

QAlgorithms.Papers.Independent.Advance50.P11.ancillaryInput

For arbitrary types A,B,R,CA,B,R,CA,B,R,C, a complex vector ψ\psiψ indexed by R×(A×B)R\times(A\times B)R×(A×B), any complex matrix η\etaη indexed by C×CC\times CC×C, and any natural number KKK, this defines a matrix XXX on R×(((A×{0,…,K−1})×C)×(B×{0,…,K−1}))R\times(((A\times\{0,\ldots,K-1\})\times C)\times(B\times\{0,\ldots,K-1\}))R×(((A×{0,…,K−1})×C)×(B×{0,…,K−1})). Writing bK(i,j)=1i=j/Kb_K(i,j)=\mathbf1_{i=j}/\sqrt KbK​(i,j)=1i=j​/K​, its entries are

X(r,(((a,i),c),(b,j))),(r′,(((a′,i′),c′),(b′,j′)))=ψ(r,(a,b)) bK(i,j) ψ(r′,(a′,b′)) bK(i′,j′)‾ ηc,c′.X_{(r,(((a,i),c),(b,j))),(r',(((a',i'),c'),(b',j')))} = \psi(r,(a,b))\,b_K(i,j)\, \overline{\psi(r',(a',b'))\,b_K(i',j')}\,\eta_{c,c'}.X(r,(((a,i),c),(b,j))),(r′,(((a′,i′),c′),(b′,j′)))​=ψ(r,(a,b))bK​(i,j)ψ(r′,(a′,b′))bK​(i′,j′)​ηc,c′​.

No finiteness or nonemptiness of these types, normalization of ψ\psiψ, or positivity or normalization of η\etaη is required. The value K=0K=0K=0 is allowed and gives an empty matrix index type.

QAlgorithms.Papers.Independent.Advance50.P11.collisionEntropy

For any finite types A,BA,BA,B with decidable equality and any complex matrices ρ\rhoρ on A×BA\times BA×B and σ\sigmaσ on BBB, put

S=cfc⁡R(f)(σ),f(x)={0,x=0,x−1/4,x≠0,W=(IA⊗S)ρ(IA⊗S),x=Re⁡Tr⁡(W2).S=\operatorname{cfc}_{\mathbb R}(f)(\sigma),\qquad f(x)= \begin{cases} 0,&x=0,\\ x^{-1/4},&x\ne0, \end{cases} \qquad W=(I_A\otimes S)\rho(I_A\otimes S), \qquad x=\operatorname{Re}\operatorname{Tr}(W^2).S=cfcR​(f)(σ),f(x)={0,x−1/4,​x=0,x=0,​W=(IA​⊗S)ρ(IA​⊗S),x=ReTr(W2).

Here real powers and real continuous functional calculus use their total-function conventions, and W2W^2W2 is the matrix product WWWWWW. This defines −log⁡2x-\log_2x−log2​x, embedded in the extended reals, when x>0x>0x>0, and +∞+\infty+∞ when x≤0x\le0x≤0. Neither matrix is assumed positive, Hermitian, normalized, or invertible, and the index types may be empty. In particular, σ=0\sigma=0σ=0 gives value +∞+\infty+∞.

QAlgorithms.Papers.Independent.Advance50.P11.compressedState

For any natural numbers d,Ld,Ld,L, a finite type RRR with decidable equality, any complex matrix ρ\rhoρ on {0,…,d−1}×R\{0,\ldots,d-1\}\times R{0,…,d−1}×R, any complex L×dL\times dL×d matrix PPP, and any unitary complex d×dd\times dd×d matrix UUU, this defines the matrix

(PU⊗IR)ρ(PU⊗IR)†(PU\otimes I_R)\rho(PU\otimes I_R)^\dagger(PU⊗IR​)ρ(PU⊗IR​)†

on {0,…,L−1}×R\{0,\ldots,L-1\}\times R{0,…,L−1}×R. The hypotheses require UUU to be unitary but impose no projection or isometry condition on PPP, and no positivity or normalization condition on ρ\rhoρ. The dimensions d,Ld,Ld,L may be zero and RRR may be empty.

QAlgorithms.Papers.Independent.Advance50.P11.decouplingSum

For finite types A,B,R,XA,B,R,XA,B,R,X, any vector ψ∈CR×(A×B)\psi\in\mathbb C^{R\times(A\times B)}ψ∈CR×(A×B), natural numbers K,LK,LK,L, and any family of complex rectangular matrices Mx:CA×{0,…,K−1}→C{0,…,L−1}M_x:\mathbb C^{A\times\{0,\ldots,K-1\}}\to\mathbb C^{\{0,\ldots,L-1\}}Mx​:CA×{0,…,K−1}→C{0,…,L−1}, define matrices

α(a,r),(a′,r′)=∑b∈Bψ(r,(a,b))ψ(r′,(a′,b))‾,βr,r′=∑a∈A, b∈Bψ(r,(a,b))ψ(r′,(a,b))‾,ω((a,i),r),((a′,j),r′)=α(a,r),(a′,r′) K−11i=j,T(ℓ,r),(ℓ′,r′)=L−11ℓ=ℓ′ βr,r′,Bx=(Mx⊗IR)ω(Mx⊗IR)†.\begin{aligned} \alpha_{(a,r),(a',r')}&=\sum_{b\in B}\psi(r,(a,b))\overline{\psi(r',(a',b))},\\ \beta_{r,r'}&=\sum_{a\in A,\,b\in B}\psi(r,(a,b))\overline{\psi(r',(a,b))},\\ \omega_{((a,i),r),((a',j),r')}&=\alpha_{(a,r),(a',r')}\,K^{-1}\mathbf1_{i=j},\\ T_{(\ell,r),(\ell',r')}&=L^{-1}\mathbf1_{\ell=\ell'}\,\beta_{r,r'},\\ B_x&=(M_x\otimes I_R)\omega(M_x\otimes I_R)^\dagger. \end{aligned}α(a,r),(a′,r′)​βr,r′​ω((a,i),r),((a′,j),r′)​T(ℓ,r),(ℓ′,r′)​Bx​​=b∈B∑​ψ(r,(a,b))ψ(r′,(a′,b))​,=a∈A,b∈B∑​ψ(r,(a,b))ψ(r′,(a,b))​,=α(a,r),(a′,r′)​K−11i=j​,=L−11ℓ=ℓ′​βr,r′​,=(Mx​⊗IR​)ω(Mx​⊗IR​)†.​

This definition returns the real number ∑x∈X∥Bx−tr⁡(Bx)T∥1\sum_{x\in X}\|B_x-\operatorname{tr}(B_x)T\|_1∑x∈X​∥Bx​−tr(Bx​)T∥1​, where the multiplying trace is complex and ∥Z∥1=Re⁡tr⁡Z†Z\|Z\|_1=\operatorname{Re}\operatorname{tr}\sqrt{Z^\dagger Z}∥Z∥1​=RetrZ†Z​. No normalization of ψ\psiψ, completeness condition on MxM_xMx​, positive lower bound on K,LK,LK,L, or nonemptiness assumption is imposed. Reciprocals at zero are zero; an empty XXX, K=0K=0K=0, or L=0L=0L=0 makes the resulting sum zero.

QAlgorithms.Papers.Independent.Advance50.P11.flaggedOutput

For finite types A,RA,RA,R, with decidable equality on RRR, any type XXX with decidable equality, any family of complex matrices MxM_xMx​ on AAA, and any complex matrix ρ\rhoρ on A×RA\times RA×R, this defines a matrix Ω\OmegaΩ on A×(R×X)A\times(R\times X)A×(R×X) by

Ω(a,(r,x)),(a′,(r′,x′))={[(Mx⊗IR)ρ(Mx⊗IR)†](a,r),(a′,r′),x=x′,0,x≠x′.\Omega_{(a,(r,x)),(a',(r',x'))} = \begin{cases} \bigl[(M_x\otimes I_R)\rho(M_x\otimes I_R)^\dagger\bigr]_{(a,r),(a',r')}, &x=x',\\ 0,&x\ne x'. \end{cases}Ω(a,(r,x)),(a′,(r′,x′))​={[(Mx​⊗IR​)ρ(Mx​⊗IR​)†](a,r),(a′,r′)​,0,​x=x′,x=x′.​

The flag type XXX need not be finite. There is no positivity or normalization assumption on ρ\rhoρ, and no condition such as ∑xMx†Mx=I\sum_xM_x^\dagger M_x=I∑x​Mx†​Mx​=I; empty index types and zero branch matrices are permitted.

QAlgorithms.Papers.Independent.Advance50.P11.inputKet

For arbitrary types A,B,RA,B,RA,B,R, any complex coordinate vector ψ\psiψ indexed by R×(A×B)R\times(A\times B)R×(A×B), and any natural number KKK, this defines a vector indexed by R×((A×{0,…,K−1})×(B×{0,…,K−1}))R\times((A\times\{0,\ldots,K-1\})\times(B\times\{0,\ldots,K-1\}))R×((A×{0,…,K−1})×(B×{0,…,K−1})) with coordinates

(inputKet⁡(ψ,K))(r,((a,i),(b,j)))={ψ(r,(a,b))K,i=j,0,i≠j.\bigl(\operatorname{inputKet}(\psi,K)\bigr)_{(r,((a,i),(b,j)))} = \begin{cases} \displaystyle \frac{\psi_{(r,(a,b))}}{\sqrt K},&i=j,\\ 0,&i\ne j. \end{cases}(inputKet(ψ,K))(r,((a,i),(b,j)))​=⎩⎨⎧​K​ψ(r,(a,b))​​,0,​i=j,i=j.​

The factor on the two added indices is precisely the vector with amplitude 1/K1/\sqrt K1/K​ on equal indices and zero elsewhere. No finiteness or normalization assumption is imposed on ψ\psiψ or on A,B,RA,B,RA,B,R. The case K=0K=0K=0 is included: the output index type is empty, so the resulting vector is the zero vector.

QAlgorithms.Papers.Independent.Advance50.P11.normalizedBall

For any finite type III with decidable equality, any real ε\varepsilonε, and any complex matrix ρ\rhoρ indexed by III, this defines the set

{τ∈CI×I:τ is positive semidefinite,Tr⁡τ=1,12∥τ−ρ∥1≤ε},\left\{\tau\in\mathbb C^{I\times I}: \tau\ \mathrm{is\ positive\ semidefinite},\quad \operatorname{Tr}\tau=1,\quad \frac12\|\tau-\rho\|_1\le\varepsilon \right\},{τ∈CI×I:τ is positive semidefinite,Trτ=1,21​∥τ−ρ∥1​≤ε},

where ∥X∥1=Re⁡Tr⁡X†X\|X\|_1=\operatorname{Re}\operatorname{Tr}\sqrt{X^\dagger X}∥X∥1​=ReTrX†X​, with the matrix square root given by real continuous functional calculus. The center ρ\rhoρ need not be a density matrix, and ε\varepsilonε need not be nonnegative. The set is empty when ε<0\varepsilon<0ε<0, and also when III is empty.

QAlgorithms.Papers.Independent.Advance50.P11.normalizedSmoothFixedMin

For any finite types A,BA,BA,B with decidable equality, any real ε\varepsilonε, any complex matrix ρ\rhoρ indexed by A×BA\times BA×B, and any complex matrix σ\sigmaσ indexed by BBB, let

Bε(ρ)={τ:τ is positive semidefinite, Tr⁡τ=1, 12∥τ−ρ∥1≤ε},∥X∥1=Re⁡Tr⁡X†X.\mathcal B_\varepsilon(\rho)= \left\{\tau:\tau\ \mathrm{is\ positive\ semidefinite},\ \operatorname{Tr}\tau=1,\ \frac12\|\tau-\rho\|_1\le\varepsilon\right\}, \qquad \|X\|_1=\operatorname{Re}\operatorname{Tr}\sqrt{X^\dagger X}.Bε​(ρ)={τ:τ is positive semidefinite, Trτ=1, 21​∥τ−ρ∥1​≤ε},∥X∥1​=ReTrX†X​.

This defines the extended real number

sup⁡τ∈Bε(ρ)(−inf⁡{λ∈R:2λ(IA⊗σ)−τ is positive semidefinite}).\sup_{\tau\in\mathcal B_\varepsilon(\rho)} \left( -\inf\left\{\lambda\in\mathbb R: 2^\lambda(I_A\otimes\sigma)-\tau\ \mathrm{is\ positive\ semidefinite} \right\}\right).τ∈Bε​(ρ)sup​(−inf{λ∈R:2λ(IA​⊗σ)−τ is positive semidefinite}).

Neither ρ\rhoρ nor σ\sigmaσ is assumed positive or normalized, and the square root in the trace norm is defined by real continuous functional calculus. An empty smoothing set gives value −∞-\infty−∞; this includes ε<0\varepsilon<0ε<0 or an empty A×BA\times BA×B. An empty inner feasible set has infimum +∞+\infty+∞, whose negative is −∞-\infty−∞.

QAlgorithms.Papers.Independent.Advance50.P11.normalizedSmoothMin

For any finite types A,BA,BA,B with decidable equality, any real ε\varepsilonε, and any complex matrix ρ\rhoρ indexed by A×BA\times BA×B, this defines

sup⁡σ positive semidefiniteTr⁡σ=1 sup⁡τ positive semidefiniteTr⁡τ=112∥τ−ρ∥1≤ε(−inf⁡{λ∈R:2λ(IA⊗σ)−τ is positive semidefinite}),\sup_{\substack{\sigma\ \mathrm{positive\ semidefinite}\\ \operatorname{Tr}\sigma=1}} \ \sup_{\substack{\tau\ \mathrm{positive\ semidefinite}\\ \operatorname{Tr}\tau=1\\ \frac12\|\tau-\rho\|_1\le\varepsilon}} \left( -\inf\left\{\lambda\in\mathbb R: 2^\lambda(I_A\otimes\sigma)-\tau\ \mathrm{is\ positive\ semidefinite} \right\}\right),σ positive semidefiniteTrσ=1​sup​ τ positive semidefiniteTrτ=121​∥τ−ρ∥1​≤ε​sup​(−inf{λ∈R:2λ(IA​⊗σ)−τ is positive semidefinite}),

where σ\sigmaσ is indexed by BBB, τ\tauτ by A×BA\times BA×B, and ∥X∥1=Re⁡Tr⁡X†X\|X\|_1=\operatorname{Re}\operatorname{Tr}\sqrt{X^\dagger X}∥X∥1​=ReTrX†X​, with square root defined by real continuous functional calculus. All extrema are taken in the extended reals. No density-matrix assumption is imposed on ρ\rhoρ, and no nonnegativity assumption is imposed on ε\varepsilonε. Empty suprema equal −∞-\infty−∞, while an empty innermost feasible set has infimum +∞+\infty+∞; in particular, an empty smoothing set or an empty BBB makes the defined value −∞-\infty−∞.

QAlgorithms.Papers.Independent.Advance50.P11.normalizedSmoothRankMax

For any finite types A,BA,BA,B with decidable equality, any real ε\varepsilonε, and any complex matrix ρ\rhoρ indexed by A×BA\times BA×B, this defines the extended real number

sup⁡σ∈CB×Bσ positive semidefiniteTr⁡σ=1 inf⁡τ∈C(A×B)×(A×B)τ positive semidefiniteTr⁡τ=112∥τ−ρ∥1≤εℓ ⁣(Re⁡Tr⁡[Pτ(IA⊗σ)]),\sup_{\substack{\sigma\in\mathbb C^{B\times B}\\ \sigma\ \mathrm{positive\ semidefinite}\\ \operatorname{Tr}\sigma=1}} \ \inf_{\substack{\tau\in\mathbb C^{(A\times B)\times(A\times B)}\\ \tau\ \mathrm{positive\ semidefinite}\\ \operatorname{Tr}\tau=1\\ \frac12\|\tau-\rho\|_1\le\varepsilon}} \ell\!\left(\operatorname{Re}\operatorname{Tr} \left[P_\tau(I_A\otimes\sigma)\right]\right),σ∈CB×Bσ positive semidefiniteTrσ=1​sup​ τ∈C(A×B)×(A×B)τ positive semidefiniteTrτ=121​∥τ−ρ∥1​≤ε​inf​ℓ(ReTr[Pτ​(IA​⊗σ)]),

where PτP_\tauPτ​ is the orthogonal projection onto the range of τ\tauτ, ℓ(x)=log⁡2x\ell(x)=\log_2xℓ(x)=log2​x for x>0x>0x>0 and −∞-\infty−∞ otherwise, and ∥X∥1=Re⁡Tr⁡X†X\|X\|_1=\operatorname{Re}\operatorname{Tr}\sqrt{X^\dagger X}∥X∥1​=ReTrX†X​, using real continuous functional calculus. The center ρ\rhoρ is unrestricted and ε\varepsilonε may be negative. An empty inner smoothing set gives +∞+\infty+∞; if admissible σ\sigmaσ exist, this makes the outer value +∞+\infty+∞. If BBB is empty, the outer supremum is instead empty and equals −∞-\infty−∞.

QAlgorithms.Papers.Independent.Advance50.P11.optimizedMax

For any finite types A,BA,BA,B with decidable equality and any complex matrix ρ\rhoρ indexed by A×BA\times BA×B, let PρP_\rhoPρ​ be the orthogonal projection onto the range of the linear operator represented by ρ\rhoρ, and define ℓ(x)=log⁡2x\ell(x)=\log_2xℓ(x)=log2​x for x>0x>0x>0 and ℓ(x)=−∞\ell(x)=-\inftyℓ(x)=−∞ for x≤0x\le0x≤0. This defines

sup⁡σ∈CB×Bσ positive semidefiniteTr⁡σ=1ℓ ⁣(Re⁡Tr⁡ ⁣[Pρ(IA⊗σ)])\sup_{\substack{\sigma\in\mathbb C^{B\times B}\\ \sigma\ \mathrm{positive\ semidefinite}\\ \operatorname{Tr}\sigma=1}} \ell\!\left(\operatorname{Re}\operatorname{Tr}\!\left[P_\rho(I_A\otimes\sigma)\right]\right)σ∈CB×Bσ positive semidefiniteTrσ=1​sup​ℓ(ReTr[Pρ​(IA​⊗σ)])

as an extended real number. No density-matrix assumption is imposed on ρ\rhoρ. The types may be empty; in particular, if BBB is empty, the supremum has no admissible σ\sigmaσ and equals −∞-\infty−∞.

QAlgorithms.Papers.Independent.Advance50.P11.optimizedMin

For any finite types A,BA,BA,B with decidable equality and any complex matrix ρ\rhoρ indexed by A×BA\times BA×B, this defines the extended real number

sup⁡σ∈CB×Bσ positive semidefiniteTr⁡σ=1(−inf⁡{λ∈R:2λ(IA⊗σ)−ρ is positive semidefinite}),\sup_{\substack{\sigma\in\mathbb C^{B\times B}\\ \sigma\ \mathrm{positive\ semidefinite}\\ \operatorname{Tr}\sigma=1}} \left( -\inf\left\{\lambda\in\mathbb R: 2^\lambda(I_A\otimes\sigma)-\rho\ \mathrm{is\ positive\ semidefinite} \right\}\right),σ∈CB×Bσ positive semidefiniteTrσ=1​sup​(−inf{λ∈R:2λ(IA​⊗σ)−ρ is positive semidefinite}),

where the inner infimum is taken in the extended reals. No positivity, trace, or normalization assumption is imposed on ρ\rhoρ, and neither index type is assumed nonempty. An empty inner feasible set gives inner infimum +∞+\infty+∞, hence value −∞-\infty−∞ before the outer supremum; if BBB is empty, there are no trace-one matrices σ\sigmaσ, so the outer supremum is −∞-\infty−∞.

QAlgorithms.Papers.Independent.Advance50.P11.outcomeState

For finite types A,RA,RA,R, with decidable equality on RRR, any type XXX with decidable equality, any family of complex matrices MxM_xMx​ on AAA, and any complex matrix ρ\rhoρ on A×RA\times RA×R, this defines the diagonal complex matrix DDD on XXX with

Dx,x′={tr⁡ ⁣((Mx⊗IR)ρ(Mx⊗IR)†),x=x′,0,x≠x′.D_{x,x'}= \begin{cases} \operatorname{tr}\!\left((M_x\otimes I_R)\rho(M_x\otimes I_R)^\dagger\right),&x=x',\\ 0,&x\ne x'. \end{cases}Dx,x′​={tr((Mx​⊗IR​)ρ(Mx​⊗IR​)†),0,​x=x′,x=x′.​

The diagonal uses the full complex trace. Neither positivity nor normalization is required of ρ\rhoρ, no completeness condition is required of the family MxM_xMx​, and XXX may be infinite or empty. If AAA or RRR is empty, each branch trace is an empty sum and equals zero.

QAlgorithms.Papers.Independent.Advance50.P11.rankOnePinching

For finite types A,RA,RA,R, both equipped with decidable equality, a unitary complex matrix UUU on AAA, and any complex matrix ρ\rhoρ on A×RA\times RA×R, let PjP_jPj​ be the matrix on AAA whose entries are (Pj)a,a′=Ua,jUa′,j‾(P_j)_{a,a'}=U_{a,j}\overline{U_{a',j}}(Pj​)a,a′​=Ua,j​Ua′,j​​. This defines

∑j∈A(Pj⊗IR)ρ(Pj⊗IR).\sum_{j\in A}(P_j\otimes I_R)\rho(P_j\otimes I_R).j∈A∑​(Pj​⊗IR​)ρ(Pj​⊗IR​).

Equivalently, on each matrix block with fixed reference indices r,r′r,r'r,r′, it applies Z↦∑jPjZPjZ\mapsto\sum_jP_jZP_jZ↦∑j​Pj​ZPj​ to the AAA-indices. No positivity or normalization of ρ\rhoρ, or nonemptiness of either register, is assumed; an empty AAA gives an empty sum.

QAlgorithms.Papers.Independent.Advance50.P11.referenceLast

For arbitrary types A,RA,RA,R and any complex matrix ρ\rhoρ indexed by R×AR\times AR×A, this defines a complex matrix indexed by A×RA\times RA×R by

(referenceLast⁡(ρ))(a,r),(a′,r′)=ρ(r,a),(r′,a′).\bigl(\operatorname{referenceLast}(\rho)\bigr)_{(a,r),(a',r')} =\rho_{(r,a),(r',a')}.(referenceLast(ρ))(a,r),(a′,r′)​=ρ(r,a),(r′,a′)​.

Thus both row and column coordinates have their two factors exchanged. No finiteness, decidable-equality, positivity, or normalization assumptions are required; empty types are allowed.

QAlgorithms.Papers.Independent.Advance50.P11.retainedKrausBranch

For finite types A,RA,RA,R, with decidable equality on RRR, an arbitrary type CCC, a complex rectangular matrix MMM with rows indexed by CCC and columns by AAA, and any complex matrix ρ\rhoρ on A×RA\times RA×R, this defines the matrix on C×RC\times RC×R

(M⊗IR)ρ(M⊗IR)†.(M\otimes I_R)\rho(M\otimes I_R)^\dagger.(M⊗IR​)ρ(M⊗IR​)†.

No positivity or normalization of ρ\rhoρ, completeness condition on MMM, or nonemptiness of any index type is required; in particular, this expression includes zero matrices and zero-dimensional registers.

QAlgorithms.Papers.Independent.Advance50.P11.smoothFixedMax

For any finite types A,BA,BA,B with decidable equality, any real ε\varepsilonε, any complex matrix ρ\rhoρ indexed by A×BA\times BA×B, and any complex matrix σ\sigmaσ indexed by BBB, this defines

inf⁡τ positive semidefiniteTr⁡τ=112∥τ−ρ∥1≤εℓ ⁣(Re⁡Tr⁡[Pτ(IA⊗σ)]),\inf_{\substack{\tau\ \mathrm{positive\ semidefinite}\\ \operatorname{Tr}\tau=1\\ \frac12\|\tau-\rho\|_1\le\varepsilon}} \ell\!\left(\operatorname{Re}\operatorname{Tr} \left[P_\tau(I_A\otimes\sigma)\right]\right),τ positive semidefiniteTrτ=121​∥τ−ρ∥1​≤ε​inf​ℓ(ReTr[Pτ​(IA​⊗σ)]),

where PτP_\tauPτ​ is the orthogonal projection onto the range of τ\tauτ, ℓ(x)=log⁡2x\ell(x)=\log_2xℓ(x)=log2​x for x>0x>0x>0 and ℓ(x)=−∞\ell(x)=-\inftyℓ(x)=−∞ otherwise, and ∥X∥1=Re⁡Tr⁡X†X\|X\|_1=\operatorname{Re}\operatorname{Tr}\sqrt{X^\dagger X}∥X∥1​=ReTrX†X​, using real continuous functional calculus for the square root. The infimum is extended real valued. Neither ρ\rhoρ nor σ\sigmaσ is assumed to be a density matrix, and ε\varepsilonε is arbitrary. If the smoothing set is empty, including when ε<0\varepsilon<0ε<0 or A×BA\times BA×B is empty, the value is +∞+\infty+∞.

QAlgorithms.Papers.Independent.Advance50.P11.targetKet

For arbitrary types A,B,RA,B,RA,B,R, a complex vector ψ\psiψ indexed by R×(A×B)R\times(A\times B)R×(A×B), and any natural number LLL, this defines a vector vvv indexed by R×({0,…,L−1}×((A×B)×{0,…,L−1}))R\times(\{0,\ldots,L-1\}\times((A\times B)\times\{0,\ldots,L-1\}))R×({0,…,L−1}×((A×B)×{0,…,L−1})) by

v(r,(ℓ,((a,b),ℓ′)))={ψ(r,(a,b))/L,ℓ=ℓ′,0,ℓ≠ℓ′.v(r,(\ell,((a,b),\ell')))= \begin{cases} \psi(r,(a,b))/\sqrt L,&\ell=\ell',\\ 0,&\ell\ne\ell'. \end{cases}v(r,(ℓ,((a,b),ℓ′)))={ψ(r,(a,b))/L​,0,​ℓ=ℓ′,ℓ=ℓ′.​

Thus the two LLL-dimensional registers occur on opposite sides of the A×BA\times BA×B register in the specified ordering. No normalization of ψ\psiψ or positivity of LLL is assumed; when L=0L=0L=0, the output index type is empty.

QAlgorithms.Papers.Independent.Advance50.P11.tensorRegroup

For arbitrary types A,B,C,DA,B,C,DA,B,C,D, any complex matrix ρ\rhoρ indexed by A×BA\times BA×B, and any complex matrix τ\tauτ indexed by C×DC\times DC×D, this defines a matrix indexed by (A×C)×(B×D)(A\times C)\times(B\times D)(A×C)×(B×D) whose entries are

(tensorRegroup⁡(ρ,τ))((a,c),(b,d)),((a′,c′),(b′,d′))=ρ(a,b),(a′,b′) τ(c,d),(c′,d′).\bigl(\operatorname{tensorRegroup}(\rho,\tau)\bigr)_{((a,c),(b,d)),((a',c'),(b',d'))} =\rho_{(a,b),(a',b')}\,\tau_{(c,d),(c',d')}.(tensorRegroup(ρ,τ))((a,c),(b,d)),((a′,c′),(b′,d′))​=ρ(a,b),(a′,b′)​τ(c,d),(c′,d′)​.

There are no finiteness, decidable-equality, positivity, or normalization assumptions on the types or matrices, and any of the types may be empty.

QAlgorithms.Papers.Independent.Advance50.P11.weightedOperator

For any finite types A,BA,BA,B with decidable equality, any complex matrices ρ\rhoρ on A×BA\times BA×B and σ\sigmaσ on BBB, and any real ttt, this defines the matrix

(IA⊗St)ρ(IA⊗St),St=cfc⁡R(ft)(σ),ft(x)={0,x=0,xt,x≠0,(I_A\otimes S_t)\rho(I_A\otimes S_t), \qquad S_t=\operatorname{cfc}_{\mathbb R}(f_t)(\sigma), \qquad f_t(x)= \begin{cases} 0,&x=0,\\ x^t,&x\ne0, \end{cases}(IA​⊗St​)ρ(IA​⊗St​),St​=cfcR​(ft​)(σ),ft​(x)={0,xt,​x=0,x=0,​

where xtx^txt denotes the total real-power function and cfc⁡R\operatorname{cfc}_{\mathbb R}cfcR​ denotes real continuous functional calculus with its total-function conventions. No positivity, Hermiticity, invertibility, or normalization assumptions are imposed on either matrix. In particular, the scalar function maps zero to zero even when t=0t=0t=0; the same StS_tSt​, without an adjoint, occurs on both sides of ρ\rhoρ. Empty index types are permitted.

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