Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for Information preserving structures: A general framework for quantum zero-error information

Definition
QAlgorithms_Papers_Independent_Intake100_P70

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

prove2quantum

The objects the formalized statements of Information preserving structures: A general framework for quantum zero-error information (arXiv:1006.1358) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • IsCode: PDF pp.2,6–7: convex sets of normalized density matrices; empty codes are allowed.
  • weighted: PDF p.5: the weighted difference with prior p.
  • Preserved: PDF p.7, Definition 7: every pair, every prior, including endpoints.
  • IsCodeIsometry: PDF p.5, Definition 4: complex-linear span identification, bijective on codes, preserving weighted trace norms. An ambient linear extension exists in finite dimension.
  • OneIsometric: PDF p.5: existence of a 1-isometry between normalized code sets.
  • MaximumCode: PDF p.2, Definition 3: maximum in the isometric order, not inclusion-maximal.
  • powerMixture: PDF pp.7,21: arbitrary probability mixtures of nonnegative powers including E^0. For CPTP E, summability follows from finite-dimensional power boundedness and HasSum q 1.
  • Noiseless: PDF p.7, Definition 8: preserved by every probability mixture of powers.
  • CorrectableCode: PDF p.7, Definition 9: recovery makes the code noiseless, not definitionally fixed.
  • UnitarilyNoiseless: PDF p.13, Definition 12: preserved by every individual power, including zero.
  • fixedOperators: PDF pp.8–9: all fixed operators, without a state restriction.
  • statePart: PDF p.25, footnote 12: only positive trace-1 matrices in the specified space.
  • fixedStates: PDF pp.8,22: all fixed density matrices.
  • CornerSupported: PDF p.21: two-sided corner support, including non-Hermitian operators.
  • jointSupport: PDF pp.8,22: least joint physical support, computed from a finite basis of the complex operator span. The resulting projection is basis independent.
  • codeSupport: PDF p.8: support of the whole code.
  • fixedSupport: PDF p.9: support of all fixed operators, not a chosen fixed density.
  • CornerInvariant: PDF p.9(i): invariance of the entire operator corner.
  • FullRankOn: PDF p.21: full rank relative to P, not relative to the ambient space.
  • supportInvSqrt: PDF pp.8,20: support inverse square root, zero on the kernel.
  • transposeRecovery: PDF p.8, Eq.(6): raw transpose recovery on supp(E(P)); no ambient TP claim.
  • fullTransposeRecovery: PDF pp.15,17: full-input transpose recovery, with an explicit maximally mixed replacement on ker E(I). On the channel image it equals the printed formula.
  • cornerAdjoint: PDF p.9(ii): restricted adjoint on B(P0), represented inside the ambient space.
  • cornerAlgebra: PDF p.9(ii): the computed corner fixed algebra.
  • IsMatrixAlgebra: PDF p.8: concrete complex star algebra, with support unit P and zero complement.
  • BlockModel: PDF pp.8,23, Eqs.(7),(B4): orthogonal embedded nonzero tensor sectors. The remaining physical orthogonal complement is allowed.
  • BlockModel.support: PDF p.23: support projection of the sector sum.
  • BlockModel.blockSpace: PDF pp.9,23: arbitrary logical matrices tensored with specified gauge factors.
  • BlockModel.algebra: PDF p.8, Eq.(7): full matrix factors tensored with unnormalized identities.
  • BlockModel.DistortionFactors: PDF p.9, Definition 10: TP distortion normalization Tr(tau_k)=dim(B_k), excluding zero factors. Density gauge formulas use normalized factors instead.
  • BlockModel.gaugeCode: PDF pp.9,25: all probability weights and all logical density matrices, with one density gauge per sector independent of the chosen logical states.
  • IsFixedDecomposition: PDF pp.9,23: coordinates for the computed fixed-support adjoint algebra.
  • cesaroAverage: PDF p.22: actual Cesaro average through power N, starting at n=0.
  • rotatingSpace: PDF pp.16,26: complex span of all unit-modulus eigenoperators; a rotating point need not itself be an eigenoperator.
  • operatorHSNorm: PDF p.27: Hilbert–Schmidt norm, not the entrywise infinity norm.
  • RotatingRecurrence: PDF pp.27–28: strict induced Hilbert–Schmidt norm bound on Rot(E). A common real bound c is chosen before every operator.
  • IsPeripheralProjection: PDF p.28: CPTP idempotent limit along unbounded positive powers, with range and fixed space Rot(E). Pointwise matrix convergence and superoperator-norm convergence are equivalent here by finite dimensionality.
  • IsJordanChain: PDF p.27, Eq.(B9): a Jordan chain already transported to physical coordinates by the similarity. No orthogonality or spectral nondegeneracy is assumed.
  • ProjectiveMeasurement: PDF p.15, Definition 15: projective partitions; zero outcomes are allowed.
  • UnconditionalMeasurement: PDF p.15: exact POVM simulation on EVERY physical input density matrix.
  • helstromPartition: PDF pp.5,15: positive, negative AND zero spectral projectors of Delta.
  • UnconditionalCode: PDF p.15, Definition 16: unconditional simulation of every weighted Helstrom partition. Convexity and normalization belong to the separate code assumption.
  • UnconditionalStructure: PDF pp.15–17: a common algebraic structure containing all unconditional codes up to isometry, including every maximum code as its full state shape.
  • Subsystem: PDF pp.4,17: specified nonzero A tensor B sector embedded in physical H.
  • Subsystem.support: PDF p.17: subsystem support projection.
  • Subsystem.logical: PDF pp.4,17: subnormalized logical marginal, retaining sector population.
  • StrictNoiselessSubsystem: PDF p.4, Eqs.(3)–(5): strict noiselessness, including confinement to the sector.
  • InitializationFree: PDF pp.17–18: no perfect-initialization hypothesis; arbitrary outside population and off-diagonal coherences are retained.
  • UnconditionalSubsystem: PDF pp.17–18: all logical projective measurements, each supplemented by the outside-sector outcome; this concerns every gauge, not one rank-deficient gauge code.
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Defs_Channel
import Definitions.Def_QAlgorithms_Defs_MatrixDistances
import Definitions.Def_QAlgorithms_Defs_MatrixMapPositivity
import Definitions.Def_QAlgorithms_Papers_Independent_Dependency50_P21
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P07
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P21
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P34

/-! arXiv:1006.1358v1. All page numbers are PDF pages.
Paper-local definitions have complete bodies. Compilation is pending batch handoff. -/

noncomputable section

open scoped Matrix ComplexConjugate ComplexOrder
open Filter

namespace QAlgorithms.Papers.Independent.Intake100.P70

attribute [local instance] Classical.propDecidable Classical.decEq

open QAlgorithms.Papers.Independent.Dependency50.P21 (channelAdjoint)
open QAlgorithms.Papers.Independent.Information100.P07 (positivePart negativePart)
open QAlgorithms.Papers.Independent.Information100.P21 (Op)
open QAlgorithms.Papers.Independent.Information100.P34 (supportProjector)

/-- PDF pp.2,6–7: convex sets of normalized density matrices; empty codes are allowed. -/
def IsCode {I : Type*} [Fintype I] (C : Set (Op I)) : Prop :=
  Convex ℝ C ∧ ∀ X ∈ C, IsDensityMatrix X

/-- PDF p.5: the weighted difference with prior p. -/
def weighted {I : Type*} (p : ℝ) (X Y : Op I) : Op I :=
  (p : ℂ) • X - ((1 - p : ℝ) : ℂ) • Y

/-- PDF p.7, Definition 7: every pair, every prior, including endpoints. -/
def Preserved {I J : Type*} [Fintype I] [Fintype J] [DecidableEq I] [DecidableEq J]
    (E : Superop I J) (C : Set (Op I)) : Prop :=
  ∀ X ∈ C, ∀ Y ∈ C, ∀ p ∈ Set.Icc (0 : ℝ) 1,
    traceNorm (E (weighted p X Y)) = traceNorm (weighted p X Y)

/-- PDF p.5, Definition 4: complex-linear span identification, bijective on codes,
preserving weighted trace norms. An ambient linear extension exists in finite dimension. -/
def IsCodeIsometry {I J : Type*} [Fintype I] [Fintype J]
    [DecidableEq I] [DecidableEq J] (f : Superop I J)
    (C : Set (Op I)) (D : Set (Op J)) : Prop :=
  (∃ L : Op I →ₗ[ℂ] Op J, ∀ X, L X = f X) ∧
  (∀ X ∈ Submodule.span ℂ C, f X = 0 → X = 0) ∧ f '' C = D ∧
  ∀ X ∈ C, ∀ Y ∈ C, ∀ p ∈ Set.Icc (0 : ℝ) 1,
    traceNorm (weighted p (f X) (f Y)) = traceNorm (weighted p X Y)

/-- PDF p.5: existence of a 1-isometry between normalized code sets. -/
def OneIsometric {I J : Type*} [Fintype I] [Fintype J]
    [DecidableEq I] [DecidableEq J] (C : Set (Op I)) (D : Set (Op J)) : Prop :=
  ∃ f : Superop I J, IsCodeIsometry f C D

/-- PDF p.2, Definition 3: maximum in the isometric order, not inclusion-maximal. -/
def MaximumCode {I : Type*} [Fintype I] [DecidableEq I]
    (criterion : Set (Op I) → Prop) (C : Set (Op I)) : Prop :=
  IsCode C ∧ criterion C ∧ ∀ D : Set (Op I), IsCode D → criterion D →
    ∀ S : Set (Op I), S ⊂ D → ¬ OneIsometric C S

/-- PDF pp.7,21: arbitrary probability mixtures of nonnegative powers including E^0.
For CPTP E, summability follows from finite-dimensional power boundedness and HasSum q 1. -/
def powerMixture {I : Type*} [Fintype I] (E : Superop I I) (q : ℕ → ℝ) : Superop I I :=
  fun X => ∑' n : ℕ, (q n : ℂ) • (E^[n]) X

/-- PDF p.7, Definition 8: preserved by every probability mixture of powers. -/
def Noiseless {I : Type*} [Fintype I] [DecidableEq I]
    (E : Superop I I) (C : Set (Op I)) : Prop :=
  ∀ q : ℕ → ℝ, (∀ n, 0 ≤ q n) → HasSum q 1 → Preserved (powerMixture E q) C

/-- PDF p.7, Definition 9: recovery makes the code noiseless, not definitionally fixed. -/
def CorrectableCode {I J : Type*} [Fintype I] [Fintype J]
    [DecidableEq I] [DecidableEq J] (E : Superop I J) (C : Set (Op I)) : Prop :=
  ∃ R : Superop J I, IsChannel R ∧ Noiseless (R ∘ E) C

/-- PDF p.13, Definition 12: preserved by every individual power, including zero. -/
def UnitarilyNoiseless {I : Type*} [Fintype I] [DecidableEq I]
    (E : Superop I I) (C : Set (Op I)) : Prop := ∀ n : ℕ, Preserved (E^[n]) C

/-- PDF pp.8–9: all fixed operators, without a state restriction. -/
def fixedOperators {I : Type*} (E : Superop I I) : Set (Op I) := {X | E X = X}

/-- PDF p.25, footnote 12: only positive trace-1 matrices in the specified space. -/
def statePart {I : Type*} [Fintype I] (A : Set (Op I)) : Set (Op I) :=
  {X | IsDensityMatrix X ∧ X ∈ A}

/-- PDF pp.8,22: all fixed density matrices. -/
def fixedStates {I : Type*} [Fintype I] (E : Superop I I) : Set (Op I) :=
  statePart (fixedOperators E)

/-- PDF p.21: two-sided corner support, including non-Hermitian operators. -/
def CornerSupported {I : Type*} [Fintype I] (P X : Op I) : Prop := P * X * P = X

/-- PDF pp.8,22: least joint physical support, computed from a finite basis of
the complex operator span. The resulting projection is basis independent. -/
def jointSupport {I : Type*} [Fintype I] [DecidableEq I] (A : Set (Op I)) : Op I :=
  let V := Submodule.span ℂ A
  let b := Module.finBasis ℂ V
  supportProjector (∑ i, (((b i : V) : Op I) * ((b i : V) : Op I)ᴴ +
    ((b i : V) : Op I)ᴴ * ((b i : V) : Op I)))

/-- PDF p.8: support of the whole code. -/
def codeSupport {I : Type*} [Fintype I] [DecidableEq I] (C : Set (Op I)) : Op I :=
  jointSupport C

/-- PDF p.9: support of all fixed operators, not a chosen fixed density. -/
def fixedSupport {I : Type*} [Fintype I] [DecidableEq I] (E : Superop I I) : Op I :=
  jointSupport (fixedOperators E)

/-- PDF p.9(i): invariance of the entire operator corner. -/
def CornerInvariant {I : Type*} [Fintype I] (E : Superop I I) (P : Op I) : Prop :=
  ∀ X, CornerSupported P X → CornerSupported P (E X)

/-- PDF p.21: full rank relative to P, not relative to the ambient space. -/
def FullRankOn {I : Type*} [Fintype I] (P X : Op I) : Prop :=
  ∀ v : I → ℂ, P.mulVec v = v → X.mulVec v = 0 → v = 0

/-- PDF pp.8,20: support inverse square root, zero on the kernel. -/
def supportInvSqrt {I : Type*} [Fintype I] [DecidableEq I] (X : Op I) : Op I :=
  cfc (fun t : ℝ => (Real.sqrt t)⁻¹) X

/-- PDF p.8, Eq.(6): raw transpose recovery on supp(E(P)); no ambient TP claim. -/
def transposeRecovery {I J : Type*} [Fintype I] [Fintype J]
    [DecidableEq I] [DecidableEq J] (E : Superop I J) (P : Op I) : Superop J I :=
  fun X => P * channelAdjoint E (supportInvSqrt (E P) * X * supportInvSqrt (E P)) * P

/-- PDF pp.15,17: full-input transpose recovery, with an explicit maximally mixed
replacement on ker E(I). On the channel image it equals the printed formula. -/
def fullTransposeRecovery {I J : Type*} [Fintype I] [Fintype J]
    [DecidableEq I] [DecidableEq J] (E : Superop I J) : Superop J I :=
  fun X => transposeRecovery E 1 X + (((1 - supportProjector (E 1)) * X).trace) •
    (((Fintype.card I : ℂ)⁻¹) • (1 : Op I))

/-- PDF p.9(ii): restricted adjoint on B(P0), represented inside the ambient space. -/
def cornerAdjoint {I : Type*} [Fintype I] [DecidableEq I]
    (E : Superop I I) : Superop I I :=
  let P := fixedSupport E
  fun X => P * channelAdjoint E (P * X * P) * P

/-- PDF p.9(ii): the computed corner fixed algebra. -/
def cornerAlgebra {I : Type*} [Fintype I] [DecidableEq I]
    (E : Superop I I) : Set (Op I) :=
  {X | CornerSupported (fixedSupport E) X ∧ cornerAdjoint E X = X}

/-- PDF p.8: concrete complex star algebra, with support unit P and zero complement. -/
def IsMatrixAlgebra {I : Type*} [Fintype I] (P : Op I) (A : Set (Op I)) : Prop :=
  P ∈ A ∧ (0 : Op I) ∈ A ∧ (∀ X ∈ A, CornerSupported P X) ∧
  (∀ X ∈ A, ∀ Y ∈ A, X + Y ∈ A) ∧ (∀ z : ℂ, ∀ X ∈ A, z • X ∈ A) ∧
  (∀ X ∈ A, ∀ Y ∈ A, X * Y ∈ A) ∧ (∀ X ∈ A, Xᴴ ∈ A)

/-- PDF pp.8,23, Eqs.(7),(B4): orthogonal embedded nonzero tensor sectors.
The remaining physical orthogonal complement is allowed. -/
structure BlockModel (I : Type*) [Fintype I] where
  sectors : ℕ
  logicalDim : Fin sectors → ℕ
  gaugeDim : Fin sectors → ℕ
  logical_pos : ∀ k, 0 < logicalDim k
  gauge_pos : ∀ k, 0 < gaugeDim k
  embed : (k : Fin sectors) → Matrix I (Fin (logicalDim k) × Fin (gaugeDim k)) ℂ
  isometry : ∀ k, (embed k)ᴴ * embed k = 1
  orthogonal : ∀ k l, k ≠ l → (embed k)ᴴ * embed l = 0

/-- PDF p.23: support projection of the sector sum. -/
def BlockModel.support {I : Type*} [Fintype I] (B : BlockModel I) : Op I :=
  ∑ k, B.embed k * (B.embed k)ᴴ

/-- PDF pp.9,23: arbitrary logical matrices tensored with specified gauge factors. -/
def BlockModel.blockSpace {I : Type*} [Fintype I] (B : BlockModel I)
    (tau : (k : Fin B.sectors) → Op (Fin (B.gaugeDim k))) : Set (Op I) :=
  Set.range fun X : (k : Fin B.sectors) → Op (Fin (B.logicalDim k)) =>
    ∑ k, B.embed k * Matrix.kronecker (X k) (tau k) * (B.embed k)ᴴ

/-- PDF p.8, Eq.(7): full matrix factors tensored with unnormalized identities. -/
def BlockModel.algebra {I : Type*} [Fintype I] (B : BlockModel I) : Set (Op I) :=
  B.blockSpace (fun _ => 1)

/-- PDF p.9, Definition 10: TP distortion normalization Tr(tau_k)=dim(B_k),
excluding zero factors. Density gauge formulas use normalized factors instead. -/
def BlockModel.DistortionFactors {I : Type*} [Fintype I] (B : BlockModel I)
    (tau : (k : Fin B.sectors) → Op (Fin (B.gaugeDim k))) : Prop :=
  ∀ k, (tau k).PosSemidef ∧ (tau k).trace = (B.gaugeDim k : ℂ)

/-- PDF pp.9,25: all probability weights and all logical density matrices, with
one density gauge per sector independent of the chosen logical states. -/
def BlockModel.gaugeCode {I : Type*} [Fintype I] (B : BlockModel I)
    (tau : (k : Fin B.sectors) → Op (Fin (B.gaugeDim k))) : Set (Op I) :=
  {rho | ∃ p : Fin B.sectors → ℝ, (∀ k, 0 ≤ p k) ∧ (∑ k, p k) = 1 ∧
    ∃ X : (k : Fin B.sectors) → Op (Fin (B.logicalDim k)),
      (∀ k, IsDensityMatrix (X k)) ∧ rho = ∑ k, (p k : ℂ) •
        (B.embed k * Matrix.kronecker (X k) (tau k) * (B.embed k)ᴴ)}

/-- PDF pp.9,23: coordinates for the computed fixed-support adjoint algebra. -/
def IsFixedDecomposition {I : Type*} [Fintype I] [DecidableEq I]
    (E : Superop I I) (B : BlockModel I) : Prop :=
  B.support = fixedSupport E ∧ B.algebra = cornerAlgebra E

/-- PDF p.22: actual Cesaro average through power N, starting at n=0. -/
def cesaroAverage {I : Type*} [Fintype I] (E : Superop I I) (N : ℕ) : Superop I I :=
  fun X => ((N + 1 : ℕ) : ℂ)⁻¹ • ∑ n ∈ Finset.range (N + 1), (E^[n]) X

/-- PDF pp.16,26: complex span of all unit-modulus eigenoperators; a rotating
point need not itself be an eigenoperator. -/
def rotatingSpace {I : Type*} (E : Superop I I) : Submodule ℂ (Op I) :=
  Submodule.span ℂ {X | ∃ z : ℂ, ‖z‖ = 1 ∧ E X = z • X}

/-- PDF p.27: Hilbert–Schmidt norm, not the entrywise infinity norm. -/
def operatorHSNorm {I : Type*} [Fintype I] (X : Op I) : ℝ :=
  Real.sqrt (∑ i, ∑ j, Complex.normSq (X i j))

/-- PDF pp.27–28: strict induced Hilbert–Schmidt norm bound on Rot(E).
A common real bound c is chosen before every operator. -/
def RotatingRecurrence {I : Type*} [Fintype I]
    (E : Superop I I) (N : ℕ) (eps : ℝ) : Prop :=
  ∃ c : ℝ, 0 ≤ c ∧ c < eps ∧ ∀ X ∈ rotatingSpace E,
    operatorHSNorm ((E^[N]) X - X) ≤ c * operatorHSNorm X

/-- PDF p.28: CPTP idempotent limit along unbounded positive powers, with range
and fixed space Rot(E). Pointwise matrix convergence and superoperator-norm
convergence are equivalent here by finite dimensionality. -/
def IsPeripheralProjection {I : Type*} [Fintype I] [DecidableEq I]
    (E F : Superop I I) : Prop :=
  IsChannel F ∧ (∀ X, F (F X) = F X) ∧
  Set.range F = (rotatingSpace E : Set (Op I)) ∧
  fixedOperators F = (rotatingSpace E : Set (Op I)) ∧
  ∃ m : ℕ → ℕ, (∀ n, 0 < m n) ∧ Tendsto m atTop atTop ∧
    ∀ X, Tendsto (fun n => (E^[m n]) X) atTop (nhds (F X))

/-- PDF p.27, Eq.(B9): a Jordan chain already transported to physical coordinates
by the similarity. No orthogonality or spectral nondegeneracy is assumed. -/
def IsJordanChain {I : Type*} {m : ℕ} (E : Superop I I)
    (z : ℂ) (v : Fin m → Op I) : Prop :=
  LinearIndependent ℂ v ∧ ∀ i : Fin m, E (v i) = z • v i +
    (if h : i.val = 0 then 0 else v ⟨i.val - 1, by omega⟩)

/-- PDF p.15, Definition 15: projective partitions; zero outcomes are allowed. -/
def ProjectiveMeasurement {I O : Type*} [Fintype I] [Fintype O]
    [DecidableEq I] (P : O → Op I) : Prop :=
  (∀ k, (P k)ᴴ = P k ∧ P k * P k = P k) ∧
  (∀ k l, k ≠ l → P k * P l = 0) ∧ ∑ k, P k = 1

/-- PDF p.15: exact POVM simulation on EVERY physical input density matrix. -/
def UnconditionalMeasurement {I J O : Type*} [Fintype I] [Fintype J] [Fintype O]
    [DecidableEq J] (E : Superop I J) (P : O → Op I) : Prop :=
  ∃ Q : O → Op J, (∀ k, (Q k).PosSemidef) ∧ (∑ k, Q k) = 1 ∧
    ∀ rho, IsDensityMatrix rho → ∀ k, (P k * rho).trace = (Q k * E rho).trace

/-- PDF pp.5,15: positive, negative AND zero spectral projectors of Delta. -/
def helstromPartition {I : Type*} [Fintype I] [DecidableEq I] (X : Op I) : Fin 3 → Op I :=
  ![cfc (fun t : ℝ => if 0 < t then 1 else 0) X,
    cfc (fun t : ℝ => if t < 0 then 1 else 0) X,
    cfc (fun t : ℝ => if t = 0 then 1 else 0) X]

/-- PDF p.15, Definition 16: unconditional simulation of every weighted Helstrom
partition. Convexity and normalization belong to the separate code assumption. -/
def UnconditionalCode {I J : Type*} [Fintype I] [Fintype J]
    [DecidableEq I] [DecidableEq J] (E : Superop I J) (C : Set (Op I)) : Prop :=
  ∀ X ∈ C, ∀ Y ∈ C, ∀ p ∈ Set.Icc (0 : ℝ) 1,
    UnconditionalMeasurement E (helstromPartition (weighted p X Y))

/-- PDF pp.15–17: a common algebraic structure containing all unconditional
codes up to isometry, including every maximum code as its full state shape. -/
def UnconditionalStructure {I J : Type*} [Fintype I] [Fintype J]
    [DecidableEq I] [DecidableEq J] (E : Superop I J) (A : Set (Op I)) : Prop :=
  IsMatrixAlgebra 1 A ∧ IsCode (statePart A) ∧ UnconditionalCode E (statePart A) ∧
  (∀ C, IsCode C → UnconditionalCode E C →
    ∃ D : Set (Op I), D ⊆ statePart A ∧ OneIsometric C D) ∧
  ∀ C, MaximumCode (UnconditionalCode E) C → OneIsometric C (statePart A)

/-- PDF pp.4,17: specified nonzero A tensor B sector embedded in physical H. -/
structure Subsystem (I : Type*) [Fintype I] where
  logicalDim : ℕ
  gaugeDim : ℕ
  logical_pos : 0 < logicalDim
  gauge_pos : 0 < gaugeDim
  embed : Matrix I (Fin logicalDim × Fin gaugeDim) ℂ
  isometry : embedᴴ * embed = 1

/-- PDF p.17: subsystem support projection. -/
def Subsystem.support {I : Type*} [Fintype I] (S : Subsystem I) : Op I :=
  S.embed * S.embedᴴ

/-- PDF pp.4,17: subnormalized logical marginal, retaining sector population. -/
def Subsystem.logical {I : Type*} [Fintype I] (S : Subsystem I) (X : Op I) :
    Op (Fin S.logicalDim) := traceRight (S.embedᴴ * X * S.embed)

/-- PDF p.4, Eqs.(3)–(5): strict noiselessness, including confinement to the sector. -/
def StrictNoiselessSubsystem {I : Type*} [Fintype I]
    (E : Superop I I) (S : Subsystem I) : Prop :=
  ∀ rho, IsDensityMatrix rho → CornerSupported S.support rho →
    CornerSupported S.support (E rho) ∧ S.logical (E rho) = S.logical rho

/-- PDF pp.17–18: no perfect-initialization hypothesis; arbitrary outside
population and off-diagonal coherences are retained. -/
def InitializationFree {I : Type*} [Fintype I]
    (E : Superop I I) (S : Subsystem I) : Prop :=
  ∀ rho, IsDensityMatrix rho → S.logical (E rho) = S.logical rho

/-- PDF pp.17–18: all logical projective measurements, each supplemented by the
outside-sector outcome; this concerns every gauge, not one rank-deficient gauge code. -/
def UnconditionalSubsystem {I : Type*} [Fintype I] [DecidableEq I]
    (E : Superop I I) (S : Subsystem I) : Prop :=
  ∀ m : ℕ, ∀ P : Fin m → Op (Fin S.logicalDim), ProjectiveMeasurement P →
    UnconditionalMeasurement E (fun k : Option (Fin m) => match k with
      | none => 1 - S.support
      | some j => S.embed * Matrix.kronecker (P j) (1 : Op (Fin S.gaugeDim)) * S.embedᴴ)

/-- Sanity: the endpoint p=0 retains the entire second state, PDF p.5. -/
example {I : Type*} (X Y : Op I) : weighted 0 X Y = -Y := by
  simp [weighted]

/-- Sanity: identity dynamics preserve every weighted difference, PDF p.2. -/
example {I : Type*} [Fintype I] [DecidableEq I] (C : Set (Op I)) :
    Preserved (fun X : Op I => X) C := by
  intro X hX Y hY p hp
  rfl

/-- Sanity: zero support contains only zero, PDF p.21. -/
example {I : Type*} [Fintype I] (X : Op I) : CornerSupported 0 X ↔ X = 0 := by
  simp [CornerSupported, eq_comm]

/-- Sanity: the imported positive and negative spectral parts vanish at zero, PDF p.21. -/
example {I : Type*} [Fintype I] [DecidableEq I] :
    positivePart (0 : Op I) = 0 ∧ negativePart (0 : Op I) = 0 := by
  simp [positivePart, negativePart, cfc_zero]

/-- Sanity: at N=0 the Cesaro average is identity, PDF p.22. -/
example {I : Type*} [Fintype I] (E : Superop I I) (X : Op I) :
    cesaroAverage E 0 X = X := by
  simp [cesaroAverage]

end QAlgorithms.Papers.Independent.Intake100.P70
Source
Information preserving structures: A general framework for quantum zero-error information, arXiv:1006.1358v1, https://arxiv.org/abs/1006.1358v1
Read-back

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

QAlgorithms.Papers.Independent.Intake100.P70.BlockModel.DistortionFactors

For a finite type III, a block model BBB with sss sectors, positive dimensions dk,gkd_k,g_kdk​,gk​, and mutually orthogonal isometric embeddings Jk:Cdk⊗Cgk→CIJ_k:\mathbb C^{d_k}\otimes\mathbb C^{g_k}\to\mathbb C^IJk​:Cdk​⊗Cgk​→CI, and a family of complex gk×gkg_k\times g_kgk​×gk​ matrices τk\tau_kτk​, this predicate means that every τk\tau_kτk​ is positive semidefinite and has complex trace exactly gkg_kgk​. If s=0s=0s=0, the predicate holds vacuously.

QAlgorithms.Papers.Independent.Intake100.P70.BlockModel.algebra

For a finite type III and a block model BBB with sss sectors, positive dimensions dk,gkd_k,g_kdk​,gk​, and embeddings Jk:Cdk⊗Cgk→CIJ_k:\mathbb C^{d_k}\otimes\mathbb C^{g_k}\to\mathbb C^IJk​:Cdk​⊗Cgk​→CI satisfying Jk†Jk=IJ_k^\dagger J_k=IJk†​Jk​=I and Jk†Jl=0J_k^\dagger J_l=0Jk†​Jl​=0 for distinct sectors, its algebra is the set

{∑k=0s−1Jk(Xk⊗Igk)Jk†  |  Xk is an arbitrary complex dk×dk matrix for every k}.\left\{\sum_{k=0}^{s-1}J_k(X_k\otimes I_{g_k})J_k^\dagger \;\middle|\; X_k\text{ is an arbitrary complex }d_k\times d_k\text{ matrix for every }k \right\}.{k=0∑s−1​Jk​(Xk​⊗Igk​​)Jk†​​Xk​ is an arbitrary complex dk​×dk​ matrix for every k}.

Here ⊗\otimes⊗ is the Kronecker product and †\dagger† is conjugate transpose. With zero sectors this set is {0}\{0\}{0}.

QAlgorithms.Papers.Independent.Intake100.P70.BlockModel.blockSpace

For a finite type III, a block model BBB with sss sectors, positive dimensions dk,gkd_k,g_kdk​,gk​, and embeddings Jk:Cdk⊗Cgk→CIJ_k:\mathbb C^{d_k}\otimes\mathbb C^{g_k}\to\mathbb C^IJk​:Cdk​⊗Cgk​→CI satisfying Jk†Jk=IJ_k^\dagger J_k=IJk†​Jk​=I and Jk†Jl=0J_k^\dagger J_l=0Jk†​Jl​=0 for k≠lk\ne lk=l, and an arbitrary family of complex gk×gkg_k\times g_kgk​×gk​ matrices τk\tau_kτk​, the block space is the set

{∑k=0s−1Jk(Xk⊗τk)Jk†  |  Xk is an arbitrary complex dk×dk matrix for every k}.\left\{\sum_{k=0}^{s-1}J_k(X_k\otimes\tau_k)J_k^\dagger \;\middle|\; X_k\text{ is an arbitrary complex }d_k\times d_k\text{ matrix for every }k \right\}.{k=0∑s−1​Jk​(Xk​⊗τk​)Jk†​​Xk​ is an arbitrary complex dk​×dk​ matrix for every k}.

The symbol ⊗\otimes⊗ denotes the Kronecker product. No positivity or normalization condition is imposed on either family. With zero sectors this set is {0}\{0\}{0}.

QAlgorithms.Papers.Independent.Intake100.P70.BlockModel.gaugeCode

For a finite type III, a block model BBB with sss sectors, positive dimensions dk,gkd_k,g_kdk​,gk​, and mutually orthogonal isometric embeddings Jk:Cdk⊗Cgk→CIJ_k:\mathbb C^{d_k}\otimes\mathbb C^{g_k}\to\mathbb C^IJk​:Cdk​⊗Cgk​→CI, and an arbitrary family of complex gk×gkg_k\times g_kgk​×gk​ matrices τk\tau_kτk​, its gauge code is the set of matrices ρ\rhoρ for which there exist real numbers pk≥0p_k\ge0pk​≥0 with ∑kpk=1\sum_kp_k=1∑k​pk​=1, and complex dk×dkd_k\times d_kdk​×dk​ matrices XkX_kXk​ that are positive semidefinite with trace 111, such that

ρ=∑k=0s−1pkJk(Xk⊗τk)Jk†.\rho=\sum_{k=0}^{s-1}p_kJ_k(X_k\otimes\tau_k)J_k^\dagger.ρ=k=0∑s−1​pk​Jk​(Xk​⊗τk​)Jk†​.

No positivity or trace condition on the τk\tau_kτk​ is part of this definition. With zero sectors the set is empty, because the empty sum of weights cannot equal 111.

QAlgorithms.Papers.Independent.Intake100.P70.BlockModel

For a finite type III, a block model consists of a natural number sss of sectors; positive natural numbers dkd_kdk​ and gkg_kgk​ for each k∈{0,…,s−1}k\in\{0,\ldots,s-1\}k∈{0,…,s−1}; and complex matrices JkJ_kJk​ whose rows are indexed by III and whose columns are indexed by {0,…,dk−1}×{0,…,gk−1}\{0,\ldots,d_k-1\}\times\{0,\ldots,g_k-1\}{0,…,dk​−1}×{0,…,gk​−1}, satisfying Jk†Jk=IdkgkJ_k^\dagger J_k=I_{d_kg_k}Jk†​Jk​=Idk​gk​​ for every kkk, and Jk†Jl=0J_k^\dagger J_l=0Jk†​Jl​=0 whenever k≠lk\ne lk=l. Here †\dagger† denotes conjugate transpose. There is no requirement that the ranges of the JkJ_kJk​ span the whole ambient space. Zero sectors are allowed, in which case all sector conditions are vacuous; the ambient type III may also be empty.

QAlgorithms.Papers.Independent.Intake100.P70.BlockModel.support

For a finite type III and a block model BBB with sss sectors, positive logical and gauge dimensions dk,gkd_k,g_kdk​,gk​, and embeddings Jk:Cdk⊗Cgk→CIJ_k:\mathbb C^{d_k}\otimes\mathbb C^{g_k}\to\mathbb C^IJk​:Cdk​⊗Cgk​→CI satisfying Jk†Jk=IJ_k^\dagger J_k=IJk†​Jk​=I and Jk†Jl=0J_k^\dagger J_l=0Jk†​Jl​=0 for distinct sectors, its support is the matrix

∑k=0s−1JkJk†.\sum_{k=0}^{s-1}J_kJ_k^\dagger.k=0∑s−1​Jk​Jk†​.

The sum is zero when s=0s=0s=0; no equality of this sum with the ambient identity is required.

QAlgorithms.Papers.Independent.Intake100.P70.CornerInvariant

For any finite type III, any function E:MI(C)→MI(C)E:M_I(\mathbb C)\to M_I(\mathbb C)E:MI​(C)→MI​(C), and any matrix P∈MI(C)P\in M_I(\mathbb C)P∈MI​(C), this defines the condition

∀X∈MI(C),PXP=X ⟹ PE(X)P=E(X).\forall X\in M_I(\mathbb C),\qquad PXP=X\ \Longrightarrow\ PE(X)P=E(X).∀X∈MI​(C),PXP=X ⟹ PE(X)P=E(X).

Neither linearity of EEE nor any projection property of PPP is assumed. If P=0P=0P=0, the condition is exactly E(0)=0E(0)=0E(0)=0; if III is empty, it holds automatically.

QAlgorithms.Papers.Independent.Intake100.P70.CornerSupported

For any finite type III and any complex matrices P,XP,XP,X indexed by III, this defines the condition PXP=XPXP=XPXP=X. There is no assumption that PPP is a projection or that XXX is Hermitian or positive. Empty III is allowed, in which case the equality holds for the unique matrices.

QAlgorithms.Papers.Independent.Intake100.P70.CorrectableCode

For any finite types I,JI,JI,J with decidable equality, any function EEE from complex I×II\times II×I matrices to complex J×JJ\times JJ×J matrices, and any set CCC of complex I×II\times II×I matrices, this predicate means that there exists a function RRR in the reverse direction admitting a finite Kraus representation: for some m∈Nm\in\mathbb Nm∈N and complex matrices KaK_aKa​ with rows indexed by III and columns by JJJ,

∑a=0m−1Ka†Ka=1J,R(Z)=∑a=0m−1KaZKa†for every Z.\sum_{a=0}^{m-1}K_a^\dagger K_a=1_J, \qquad R(Z)=\sum_{a=0}^{m-1}K_a ZK_a^\dagger \quad\text{for every }Z.a=0∑m−1​Ka†​Ka​=1J​,R(Z)=a=0∑m−1​Ka​ZKa†​for every Z.

This same RRR must satisfy, for every nonnegative real sequence qqq whose series converges to 111, all X,Y∈CX,Y\in CX,Y∈C, and every p∈[0,1]p\in[0,1]p∈[0,1],

∥∑n=0∞qn (R∘E)∘n(pX−(1−p)Y)∥1=∥pX−(1−p)Y∥1.\left\|\sum_{n=0}^{\infty}q_n\,(R\circ E)^{\circ n} \bigl(pX-(1-p)Y\bigr)\right\|_1 = \bigl\|pX-(1-p)Y\bigr\|_1.​n=0∑∞​qn​(R∘E)∘n(pX−(1−p)Y)​1​=​pX−(1−p)Y​1​.

The zeroth iterate is the identity, the trace norm is ∥Z∥1=Re⁡tr⁡Z†Z\|Z\|_1=\operatorname{Re}\operatorname{tr}\sqrt{Z^\dagger Z}∥Z∥1​=RetrZ†Z​ using functional calculus, and nonsummable matrix series are assigned zero. The function EEE is arbitrary, and CCC is not required to be convex or contain density matrices. Empty index types and m=0m=0m=0 are included subject to the displayed equations; when CCC is empty, the preservation condition is vacuous but the existence of RRR is still required.

QAlgorithms.Papers.Independent.Intake100.P70.FullRankOn

For any finite type III and any matrices P,X∈MI(C)P,X\in M_I(\mathbb C)P,X∈MI​(C), this defines the condition that every vector v∈CIv\in\mathbb C^Iv∈CI satisfying both Pv=vPv=vPv=v and Xv=0Xv=0Xv=0 must be zero. Thus it concerns the intersection of the fixed-vector space of PPP with the kernel of XXX, without assuming that PPP is a projection or that XXX is positive. It holds vacuously if PPP has no nonzero fixed vector, including when P=0P=0P=0, and also when III is empty.

QAlgorithms.Papers.Independent.Intake100.P70.InitializationFree

For a finite type III, an arbitrary function E:MI(C)→MI(C)E:M_I(\mathbb C)\to M_I(\mathbb C)E:MI​(C)→MI​(C), and a subsystem SSS with positive dimensions ℓ,g\ell,gℓ,g and embedding matrix VVV satisfying V†V=IℓgV^\dagger V=I_{\ell g}V†V=Iℓg​, this property means that, for every positive semidefinite matrix ρ∈MI(C)\rho\in M_I(\mathbb C)ρ∈MI​(C) of trace one and every 0≤a,b<ℓ0\le a,b<\ell0≤a,b<ℓ, ∑h=0g−1(V†E(ρ)V)(a,h),(b,h)=∑h=0g−1(V†ρV)(a,h),(b,h)\sum_{h=0}^{g-1}(V^\dagger E(\rho)V)_{(a,h),(b,h)}=\sum_{h=0}^{g-1}(V^\dagger\rho V)_{(a,h),(b,h)}∑h=0g−1​(V†E(ρ)V)(a,h),(b,h)​=∑h=0g−1​(V†ρV)(a,h),(b,h)​. This quantification includes density matrices with support outside the range of VVV; no support condition on E(ρ)E(\rho)E(ρ), and no channel or linearity assumption on EEE, is included.

QAlgorithms.Papers.Independent.Intake100.P70.IsCode

For any finite type III and set CCC of complex matrices indexed by I×II\times II×I, this predicate means that CCC is convex over R\mathbb RR and every X∈CX\in CX∈C is positive semidefinite with tr⁡X=1\operatorname{tr}X=1trX=1. Thus aX+bY∈CaX+bY\in CaX+bY∈C whenever X,Y∈CX,Y\in CX,Y∈C, a,b≥0a,b\ge0a,b≥0, and a+b=1a+b=1a+b=1. The empty set satisfies the predicate. The index type III may be empty; in that case no matrix has trace 111, so only the empty set satisfies it.

QAlgorithms.Papers.Independent.Intake100.P70.IsCodeIsometry

For any finite types I,JI,JI,J with decidable equality, any function fff from complex I×II\times II×I matrices to complex J×JJ\times JJ×J matrices, and any sets C,DC,DC,D of matrices on I,JI,JI,J, respectively, this predicate means all of the following: there exists a complex-linear map LLL such that L(X)=f(X)L(X)=f(X)L(X)=f(X) for every matrix XXX; every XXX in the complex linear span of CCC satisfying f(X)=0f(X)=0f(X)=0 equals 000; the image {f(X):X∈C}\{f(X):X\in C\}{f(X):X∈C} is exactly DDD; and, for every X,Y∈CX,Y\in CX,Y∈C and p∈[0,1]p\in[0,1]p∈[0,1],

∥pf(X)−(1−p)f(Y)∥1=∥pX−(1−p)Y∥1,∥Z∥1=Re⁡tr⁡Z†Z.\bigl\|pf(X)-(1-p)f(Y)\bigr\|_1 = \bigl\|pX-(1-p)Y\bigr\|_1, \qquad \|Z\|_1=\operatorname{Re}\operatorname{tr}\sqrt{Z^\dagger Z}.​pf(X)−(1−p)f(Y)​1​=​pX−(1−p)Y​1​,∥Z∥1​=RetrZ†Z​.

The square root is defined by functional calculus. Neither set is required to be convex or to consist of density matrices, and empty index types are allowed. If C=∅C=\varnothingC=∅, this predicate holds exactly when fff is complex-linear and D=∅D=\varnothingD=∅.

QAlgorithms.Papers.Independent.Intake100.P70.IsFixedDecomposition

For a finite type III with decidable equality, an arbitrary function EEE from complex I×II\times II×I matrices to themselves, and a block model BBB with positive sector dimensions dk,gkd_k,g_kdk​,gk​ and mutually orthogonal isometric embeddings Jk:Cdk⊗Cgk→CIJ_k:\mathbb C^{d_k}\otimes\mathbb C^{g_k}\to\mathbb C^IJk​:Cdk​⊗Cgk​→CI, this predicate asserts the following two equalities. To define their right-hand sides, let VVV be the complex linear span of all matrices XXX satisfying E(X)=XE(X)=XE(X)=X, take the finite basis (bi)(b_i)(bi​) of VVV selected by the definition, and let PEP_EPE​ be the orthogonal projection onto the range, acting on CI\mathbb C^ICI, of

∑i(bibi†+bi†bi).\sum_i(b_ib_i^\dagger+b_i^\dagger b_i).i∑​(bi​bi†​+bi†​bi​).

For any matrix YYY, define the matrix HE(Y)H_E(Y)HE​(Y) by

HE(Y)ab=∑u,v∈IE(eab)uv‾ Yuv,H_E(Y)_{ab}=\sum_{u,v\in I}\overline{E(e_{ab})_{uv}}\,Y_{uv},HE​(Y)ab​=u,v∈I∑​E(eab​)uv​​Yuv​,

where eabe_{ab}eab​ has entry 111 at (a,b)(a,b)(a,b) and zero elsewhere. The required equalities are

∑kJkJk†=PE,{∑kJk(Xk⊗Igk)Jk†:Xk∈Mdk(C)}={X:PEXPE=X,  PEHE(PEXPE)PE=X}.\sum_kJ_kJ_k^\dagger=P_E,\qquad \left\{\sum_kJ_k(X_k\otimes I_{g_k})J_k^\dagger:X_k\in M_{d_k}(\mathbb C)\right\} = \{X:P_EXP_E=X,\;P_EH_E(P_EXP_E)P_E=X\}.k∑​Jk​Jk†​=PE​,{k∑​Jk​(Xk​⊗Igk​​)Jk†​:Xk​∈Mdk​​(C)}={X:PE​XPE​=X,PE​HE​(PE​XPE​)PE​=X}.

There is no assumption here that EEE is linear or a channel. Empty III and zero sectors are included whenever the block-model data exist; empty sums are zero.

QAlgorithms.Papers.Independent.Intake100.P70.IsJordanChain

For any type III, any natural number mmm, any function E:MI(C)→MI(C)E:M_I(\mathbb C)\to M_I(\mathbb C)E:MI​(C)→MI​(C), any complex number zzz, and any family v0,…,vm−1v_0,\ldots,v_{m-1}v0​,…,vm−1​ of complex matrices indexed by I×II\times II×I, this property means that the family is linearly independent over C\mathbb CC and that E(v0)=zv0E(v_0)=zv_0E(v0​)=zv0​ when m>0m>0m>0, while E(vi)=zvi+vi−1E(v_i)=zv_i+v_{i-1}E(vi​)=zvi​+vi−1​ for every 1≤i<m1\le i<m1≤i<m. There is no finiteness assumption on III, no linearity assumption on EEE, and no restriction on zzz. When m=0m=0m=0, both conditions hold vacuously.

QAlgorithms.Papers.Independent.Intake100.P70.IsMatrixAlgebra

For a finite type III, a complex matrix PPP indexed by I×II\times II×I, and a set AAA of such matrices, this predicate means that P∈AP\in AP∈A, 0∈A0\in A0∈A, every X∈AX\in AX∈A satisfies PXP=XPXP=XPXP=X, and AAA is closed under addition, multiplication by every complex scalar, matrix multiplication, and conjugate transpose. No separate assumption that PPP is Hermitian or idempotent appears in this definition. The finite type III may be empty.

QAlgorithms.Papers.Independent.Intake100.P70.IsPeripheralProjection

For a finite type III with decidable equality and arbitrary functions E,F:MI(C)→MI(C)E,F:M_I(\mathbb C)\to M_I(\mathbb C)E,F:MI​(C)→MI​(C), this property means the following. Define RE\mathcal R_ERE​ to be the complex linear span of all matrices XXX for which there exists z∈Cz\in\mathbb Cz∈C with ∣z∣=1|z|=1∣z∣=1 and E(X)=zXE(X)=zXE(X)=zX. Then FFF has a finite Kraus representation: there are r∈Nr\in\mathbb Nr∈N and matrices K0,…,Kr−1K_0,\ldots,K_{r-1}K0​,…,Kr−1​ such that ∑jKj†Kj=I\sum_jK_j^\dagger K_j=I∑j​Kj†​Kj​=I and F(X)=∑jKjXKj†F(X)=\sum_jK_jXK_j^\daggerF(X)=∑j​Kj​XKj†​ for every matrix XXX; moreover, F(F(X))=F(X)F(F(X))=F(X)F(F(X))=F(X) for every XXX, its range is exactly RE\mathcal R_ERE​, and {X:F(X)=X}=RE\{X:F(X)=X\}=\mathcal R_E{X:F(X)=X}=RE​. Finally, there is one sequence m:N→Nm:\mathbb N\to\mathbb Nm:N→N, with m(n)>0m(n)>0m(n)>0 for every nnn and m(n)→+∞m(n)\to+\inftym(n)→+∞, such that, for every matrix XXX, E m(n)(X)→F(X)E^{\,m(n)}(X)\to F(X)Em(n)(X)→F(X), where the exponent denotes repeated composition. No channel or linearity assumption is imposed on EEE, and III is allowed to be empty.

QAlgorithms.Papers.Independent.Intake100.P70.MaximumCode

For any finite type III with decidable equality, any predicate P\mathcal PP on sets of complex I×II\times II×I matrices, and any such set CCC, this predicate means that CCC is real-convex, every member of CCC is positive semidefinite with trace 111, and P(C)\mathcal P(C)P(C) holds; moreover, for every real-convex set DDD of positive semidefinite trace-111 matrices satisfying P(D)\mathcal P(D)P(D), and every proper subset S⊊DS\subsetneq DS⊊D, there is no function fff on the ambient matrix space which agrees everywhere with a complex-linear map, has zero kernel on the complex span of CCC, maps CCC onto SSS, and obeys

∥pf(X)−(1−p)f(Y)∥1=∥pX−(1−p)Y∥1\bigl\|pf(X)-(1-p)f(Y)\bigr\|_1 = \bigl\|pX-(1-p)Y\bigr\|_1​pf(X)−(1−p)f(Y)​1​=​pX−(1−p)Y​1​

for all X,Y∈CX,Y\in CX,Y∈C and p∈[0,1]p\in[0,1]p∈[0,1]. Here ∥Z∥1=Re⁡tr⁡Z†Z\|Z\|_1=\operatorname{Re}\operatorname{tr}\sqrt{Z^\dagger Z}∥Z∥1​=RetrZ†Z​, using functional calculus. The subset SSS itself is not required to be convex or satisfy P\mathcal PP. Empty III, CCC, and DDD are included wherever these conditions permit them.

QAlgorithms.Papers.Independent.Intake100.P70.Noiseless

For any finite type III with decidable equality, any function EEE on complex I×II\times II×I matrices, and any set CCC of such matrices, this predicate means that for every real sequence qqq with qn≥0q_n\ge0qn​≥0 for all nnn and ∑n=0∞qn=1\sum_{n=0}^{\infty}q_n=1∑n=0∞​qn​=1, every X,Y∈CX,Y\in CX,Y∈C, and every p∈[0,1]p\in[0,1]p∈[0,1],

∥∑n=0∞qn E∘n(pX−(1−p)Y)∥1=∥pX−(1−p)Y∥1.\left\|\sum_{n=0}^{\infty}q_n\,E^{\circ n}\bigl(pX-(1-p)Y\bigr)\right\|_1 = \bigl\|pX-(1-p)Y\bigr\|_1.​n=0∑∞​qn​E∘n(pX−(1−p)Y)​1​=​pX−(1−p)Y​1​.

Here E∘0E^{\circ0}E∘0 is the identity, ∥Z∥1=Re⁡tr⁡Z†Z\|Z\|_1=\operatorname{Re}\operatorname{tr}\sqrt{Z^\dagger Z}∥Z∥1​=RetrZ†Z​ uses functional calculus, and a nonsummable matrix series is assigned the zero matrix. The scalar series for qqq is required to converge to 111, but no separate matrix-series convergence hypothesis is supplied. The function EEE is arbitrary and CCC need not be a convex set of density matrices. Empty III is allowed, and the predicate is vacuous for empty CCC.

QAlgorithms.Papers.Independent.Intake100.P70.OneIsometric

For any finite types I,JI,JI,J with decidable equality and sets C,DC,DC,D of complex matrices on I,JI,JI,J, respectively, this predicate means that there exists a function fff between these matrix spaces which agrees everywhere with a complex-linear map, satisfies f(X)=0⇒X=0f(X)=0\Rightarrow X=0f(X)=0⇒X=0 for every XXX in the complex linear span of CCC, has image f(C)=Df(C)=Df(C)=D, and satisfies

∥pf(X)−(1−p)f(Y)∥1=∥pX−(1−p)Y∥1\bigl\|pf(X)-(1-p)f(Y)\bigr\|_1 = \bigl\|pX-(1-p)Y\bigr\|_1​pf(X)−(1−p)f(Y)​1​=​pX−(1−p)Y​1​

for every X,Y∈CX,Y\in CX,Y∈C and real p∈[0,1]p\in[0,1]p∈[0,1], where ∥Z∥1=Re⁡tr⁡Z†Z\|Z\|_1=\operatorname{Re}\operatorname{tr}\sqrt{Z^\dagger Z}∥Z∥1​=RetrZ†Z​, using functional calculus for the square root. The sets need not be convex or contain density matrices. Empty index types are allowed; if C=∅C=\varnothingC=∅, the predicate holds exactly when D=∅D=\varnothingD=∅.

QAlgorithms.Papers.Independent.Intake100.P70.Preserved

For any finite types I,JI,JI,J, each equipped with decidable equality, any function EEE from complex I×II\times II×I matrices to complex J×JJ\times JJ×J matrices, and any set CCC of complex I×II\times II×I matrices, this predicate means that, for every X,Y∈CX,Y\in CX,Y∈C and every real p∈[0,1]p\in[0,1]p∈[0,1],

∥E(pX−(1−p)Y)∥1=∥pX−(1−p)Y∥1,\bigl\|E\bigl(pX-(1-p)Y\bigr)\bigr\|_1 = \bigl\|pX-(1-p)Y\bigr\|_1,​E(pX−(1−p)Y)​1​=​pX−(1−p)Y​1​,

where ∥Z∥1=Re⁡tr⁡Z†Z\|Z\|_1=\operatorname{Re}\operatorname{tr}\sqrt{Z^\dagger Z}∥Z∥1​=RetrZ†Z​, with the square root defined by functional calculus. The function EEE is arbitrary, and CCC need not consist of density matrices or be convex. Empty index types are allowed, and the condition is vacuous when C=∅C=\varnothingC=∅.

QAlgorithms.Papers.Independent.Intake100.P70.ProjectiveMeasurement

For finite types I,OI,OI,O, with decidable equality on III, and a family P:O→MI(C)P:O\to M_I(\mathbb C)P:O→MI​(C), this property means that every PkP_kPk​ is Hermitian and idempotent, that PkPl=0P_kP_l=0Pk​Pl​=0 whenever k≠lk\ne lk=l, and that ∑k∈OPk=I\sum_{k\in O}P_k=I∑k∈O​Pk​=I. Individual projections may be zero. The index types may be empty; if OOO is empty, the sum condition requires the zero matrix to equal the identity, which holds precisely when III is empty.

QAlgorithms.Papers.Independent.Intake100.P70.RotatingRecurrence

For a finite type III, an arbitrary function EEE from complex I×II\times II×I matrices to themselves, a natural number NNN, and a real number ε\varepsilonε, this predicate means that there exists a real number ccc with 0≤c<ε0\le c<\varepsilon0≤c<ε such that every matrix XXX in the complex linear span of the matrices YYY satisfying E(Y)=zYE(Y)=zYE(Y)=zY for some complex zzz with ∣z∣=1|z|=1∣z∣=1 obeys

∑i,j∈I∣(E∘N(X)−X)ij∣2≤c∑i,j∈I∣Xij∣2.\sqrt{\sum_{i,j\in I}|(E^{\circ N}(X)-X)_{ij}|^2} \le c\sqrt{\sum_{i,j\in I}|X_{ij}|^2}.i,j∈I∑​∣(E∘N(X)−X)ij​∣2​≤ci,j∈I∑​∣Xij​∣2​.

No linearity or channel condition is imposed on EEE. The witness condition is impossible when ε≤0\varepsilon\le0ε≤0. The case N=0N=0N=0 is included, with E∘0E^{\circ0}E∘0 the identity; for this case the predicate holds exactly when ε>0\varepsilon>0ε>0. Empty III is also included, with both displayed norms equal to zero.

QAlgorithms.Papers.Independent.Intake100.P70.StrictNoiselessSubsystem

For a finite type III, an arbitrary function E:MI(C)→MI(C)E:M_I(\mathbb C)\to M_I(\mathbb C)E:MI​(C)→MI​(C), and a subsystem SSS with positive dimensions ℓ,g\ell,gℓ,g and embedding matrix VVV satisfying V†V=IℓgV^\dagger V=I_{\ell g}V†V=Iℓg​, put P=VV†P=VV^\daggerP=VV†. This property means that every positive semidefinite matrix ρ\rhoρ of trace one satisfying PρP=ρP\rho P=\rhoPρP=ρ also satisfies PE(ρ)P=E(ρ)PE(\rho)P=E(\rho)PE(ρ)P=E(ρ), and, for every 0≤a,b<ℓ0\le a,b<\ell0≤a,b<ℓ, ∑h=0g−1(V†E(ρ)V)(a,h),(b,h)=∑h=0g−1(V†ρV)(a,h),(b,h)\sum_{h=0}^{g-1}(V^\dagger E(\rho)V)_{(a,h),(b,h)}=\sum_{h=0}^{g-1}(V^\dagger\rho V)_{(a,h),(b,h)}∑h=0g−1​(V†E(ρ)V)(a,h),(b,h)​=∑h=0g−1​(V†ρV)(a,h),(b,h)​. There is no requirement on density matrices outside this supported set, and EEE is not assumed to be a channel or linear.

QAlgorithms.Papers.Independent.Intake100.P70.Subsystem.logical

For a finite type III, a subsystem SSS with positive dimensions ℓ,g\ell,gℓ,g and embedding matrix VVV satisfying V†V=IℓgV^\dagger V=I_{\ell g}V†V=Iℓg​, and any matrix X∈MI(C)X\in M_I(\mathbb C)X∈MI​(C), this definition returns the ℓ×ℓ\ell\times\ellℓ×ℓ matrix whose (a,b)(a,b)(a,b)-entry is ∑h=0g−1(V†XV)(a,h),(b,h)\sum_{h=0}^{g-1}(V^\dagger XV)_{(a,h),(b,h)}∑h=0g−1​(V†XV)(a,h),(b,h)​. In other words, it compresses XXX using VVV and sums over the gauge coordinate. No positivity, trace, or support assumption is imposed on XXX.

QAlgorithms.Papers.Independent.Intake100.P70.Subsystem

For a finite type III, a subsystem consists of two natural numbers ℓ,g\ell,gℓ,g, proofs that ℓ>0\ell>0ℓ>0 and g>0g>0g>0, and a complex matrix VVV with rows indexed by III and columns indexed by {0,…,ℓ−1}×{0,…,g−1}\{0,\ldots,\ell-1\}\times\{0,\ldots,g-1\}{0,…,ℓ−1}×{0,…,g−1}, satisfying V†V=IℓgV^\dagger V=I_{\ell g}V†V=Iℓg​. Thus its columns form an orthonormal family. There is no requirement that VV†=IIVV^\dagger=I_IVV†=II​. Although the definition allows any finite III, no such subsystem exists when III is empty, because both column dimensions are positive.

QAlgorithms.Papers.Independent.Intake100.P70.Subsystem.support

For a finite type III and a subsystem SSS consisting of positive natural dimensions ℓ,g\ell,gℓ,g and an embedding matrix V:Cℓ⊗Cg→CIV:\mathbb C^{\ell}\otimes\mathbb C^{g}\to\mathbb C^IV:Cℓ⊗Cg→CI satisfying V†V=IℓgV^\dagger V=I_{\ell g}V†V=Iℓg​, this definition returns the matrix VV†∈MI(C)VV^\dagger\in M_I(\mathbb C)VV†∈MI​(C), the orthogonal projection onto the range of VVV.

QAlgorithms.Papers.Independent.Intake100.P70.UnconditionalCode

For finite types I,JI,JI,J with decidable equality, an arbitrary function E:MI(C)→MJ(C)E:M_I(\mathbb C)\to M_J(\mathbb C)E:MI​(C)→MJ​(C), and any set C⊆MI(C)C\subseteq M_I(\mathbb C)C⊆MI​(C), this property means that for every X,Y∈CX,Y\in CX,Y∈C and every real p∈[0,1]p\in[0,1]p∈[0,1], the following holds. Set H=pX−(1−p)YH=pX-(1-p)YH=pX−(1−p)Y, and let P0,P1,P2P_0,P_1,P_2P0​,P1​,P2​ be the real functional-calculus values of HHH for the indicators of positive, negative, and zero real numbers, respectively. There exist positive semidefinite matrices Q0,Q1,Q2∈MJ(C)Q_0,Q_1,Q_2\in M_J(\mathbb C)Q0​,Q1​,Q2​∈MJ​(C), summing to the identity, such that tr⁡(Pkρ)=tr⁡(QkE(ρ))\operatorname{tr}(P_k\rho)=\operatorname{tr}(Q_kE(\rho))tr(Pk​ρ)=tr(Qk​E(ρ)) for every positive semidefinite ρ∈MI(C)\rho\in M_I(\mathbb C)ρ∈MI​(C) of trace one and every k=0,1,2k=0,1,2k=0,1,2. These QkQ_kQk​ may depend on X,Y,pX,Y,pX,Y,p. Neither convexity nor any density-matrix condition is required of CCC, and EEE need not be a channel or linear. For non-Hermitian HHH, the three functional-calculus values are zero. The endpoints p=0,1p=0,1p=0,1 are included, and the property is vacuous when CCC is empty.

QAlgorithms.Papers.Independent.Intake100.P70.UnconditionalMeasurement

For finite types I,J,OI,J,OI,J,O, with decidable equality on JJJ, an arbitrary function E:MI(C)→MJ(C)E:M_I(\mathbb C)\to M_J(\mathbb C)E:MI​(C)→MJ​(C), and any family P:O→MI(C)P:O\to M_I(\mathbb C)P:O→MI​(C), this property means that there exists a family Q:O→MJ(C)Q:O\to M_J(\mathbb C)Q:O→MJ​(C) of positive semidefinite matrices satisfying ∑k∈OQk=I\sum_{k\in O}Q_k=I∑k∈O​Qk​=I, such that, for every positive semidefinite matrix ρ∈MI(C)\rho\in M_I(\mathbb C)ρ∈MI​(C) with tr⁡ρ=1\operatorname{tr}\rho=1trρ=1 and every k∈Ok\in Ok∈O, the complex traces satisfy tr⁡(Pkρ)=tr⁡(QkE(ρ))\operatorname{tr}(P_k\rho)=\operatorname{tr}(Q_kE(\rho))tr(Pk​ρ)=tr(Qk​E(ρ)). No projection, positivity, or completeness condition is imposed on PPP, and no channel or linearity condition is imposed on EEE. If III is empty, the quantification over density matrices is vacuous, but the existence and completeness requirements on QQQ remain.

QAlgorithms.Papers.Independent.Intake100.P70.UnconditionalStructure

For finite types I,JI,JI,J with decidable equality, an arbitrary function E:MI(C)→MJ(C)E:M_I(\mathbb C)\to M_J(\mathbb C)E:MI​(C)→MJ​(C), and a set A⊆MI(C)A\subseteq M_I(\mathbb C)A⊆MI​(C), this property has the following meaning. Write Ast={ρ∈A:ρ is positive semidefinite and tr⁡ρ=1}A_{\mathrm{st}}=\{\rho\in A:\rho\text{ is positive semidefinite and }\operatorname{tr}\rho=1\}Ast​={ρ∈A:ρ is positive semidefinite and trρ=1}, and write ∥Z∥1=Re⁡tr⁡Z†Z\|Z\|_1=\operatorname{Re}\operatorname{tr}\sqrt{Z^\dagger Z}∥Z∥1​=RetrZ†Z​. For any set C⊆MI(C)C\subseteq M_I(\mathbb C)C⊆MI​(C), let U(C)\mathcal U(C)U(C) mean that for every X,Y∈CX,Y\in CX,Y∈C and p∈[0,1]p\in[0,1]p∈[0,1], the three real functional-calculus matrices PkP_kPk​ of pX−(1−p)YpX-(1-p)YpX−(1−p)Y for the indicators of positive, negative, and zero real numbers admit positive semidefinite matrices Qk∈MJ(C)Q_k\in M_J(\mathbb C)Qk​∈MJ​(C) summing to the identity and satisfying tr⁡(Pkρ)=tr⁡(QkE(ρ))\operatorname{tr}(P_k\rho)=\operatorname{tr}(Q_kE(\rho))tr(Pk​ρ)=tr(Qk​E(ρ)) for every density matrix ρ\rhoρ and every k=0,1,2k=0,1,2k=0,1,2; for non-Hermitian arguments those functional-calculus matrices are zero. For sets C,D⊆MI(C)C,D\subseteq M_I(\mathbb C)C,D⊆MI​(C), write C≅1DC\cong_1DC≅1​D when there exists a function f:MI(C)→MI(C)f:M_I(\mathbb C)\to M_I(\mathbb C)f:MI​(C)→MI​(C) that agrees everywhere with a complex-linear map, satisfies f(Z)=0⇒Z=0f(Z)=0\Rightarrow Z=0f(Z)=0⇒Z=0 for every ZZZ in the complex span of CCC, has f(C)=Df(C)=Df(C)=D, and satisfies ∥pf(X)−(1−p)f(Y)∥1=∥pX−(1−p)Y∥1\|pf(X)-(1-p)f(Y)\|_1=\|pX-(1-p)Y\|_1∥pf(X)−(1−p)f(Y)∥1​=∥pX−(1−p)Y∥1​ for every X,Y∈CX,Y\in CX,Y∈C and p∈[0,1]p\in[0,1]p∈[0,1]. The required conditions are: AAA contains the identity and zero, is closed under addition, complex scalar multiplication, multiplication, and conjugate transpose, and every X∈AX\in AX∈A satisfies IXI=XIXI=XIXI=X; AstA_{\mathrm{st}}Ast​ is convex and consists of density matrices; and U(Ast)\mathcal U(A_{\mathrm{st}})U(Ast​) holds. Furthermore, every convex set CCC consisting of density matrices and satisfying U(C)\mathcal U(C)U(C) has some D⊆AstD\subseteq A_{\mathrm{st}}D⊆Ast​ with C≅1DC\cong_1DC≅1​D. Finally, every such CCC having the additional property that, for every convex density-matrix set DDD satisfying U(D)\mathcal U(D)U(D) and every proper subset S⊊DS\subsetneq DS⊊D, one has C̸≅1SC\not\cong_1SC≅1​S, must satisfy C≅1AstC\cong_1A_{\mathrm{st}}C≅1​Ast​. No nonemptiness of these sets and no channel assumption on EEE are imposed.

QAlgorithms.Papers.Independent.Intake100.P70.UnconditionalSubsystem

Let III be a finite type with decidable equality, write MI=CI×IM_I=\mathbb C^{I\times I}MI​=CI×I, and let E:MI→MIE:M_I\to M_IE:MI​→MI​ be any function. Let SSS consist of positive integers ℓ\ellℓ and ggg and a matrix V:Cℓ⊗Cg→CIV:\mathbb C^\ell\otimes\mathbb C^g\to\mathbb C^IV:Cℓ⊗Cg→CI satisfying V†V=1V^\dagger V=1V†V=1; its support is VV†VV^\daggerVV†. The property defined here says that, for every natural number mmm and every family (Pj)j<m(P_j)_{j<m}(Pj​)j<m​ of ℓ×ℓ\ell\times\ellℓ×ℓ matrices satisfying Pj†=PjP_j^\dagger=P_jPj†​=Pj​, Pj2=PjP_j^2=P_jPj2​=Pj​, PjPk=0P_jP_k=0Pj​Pk​=0 whenever j≠kj\ne kj=k, and ∑j<mPj=1\sum_{j<m}P_j=1∑j<m​Pj​=1, there exist positive semidefinite matrices Q∅Q_\varnothingQ∅​ and (Qj)j<m(Q_j)_{j<m}(Qj​)j<m​ on CI\mathbb C^ICI with Q∅+∑jQj=1Q_\varnothing+\sum_jQ_j=1Q∅​+∑j​Qj​=1 such that, for every positive semidefinite ρ∈MI\rho\in M_Iρ∈MI​ with tr⁡ρ=1\operatorname{tr}\rho=1trρ=1,

tr⁡((1−VV†)ρ)=tr⁡(Q∅E(ρ)),tr⁡(V(Pj⊗1g)V†ρ)=tr⁡(QjE(ρ))(j<m).\operatorname{tr}\bigl((1-VV^\dagger)\rho\bigr)=\operatorname{tr}\bigl(Q_\varnothing E(\rho)\bigr), \qquad \operatorname{tr}\bigl(V(P_j\otimes1_g)V^\dagger\rho\bigr) =\operatorname{tr}\bigl(Q_jE(\rho)\bigr)\quad(j<m).tr((1−VV†)ρ)=tr(Q∅​E(ρ)),tr(V(Pj​⊗1g​)V†ρ)=tr(Qj​E(ρ))(j<m).

These are equalities of complex traces. The quantifier includes m=0m=0m=0, although its projective-measurement hypothesis is then impossible because ℓ>0\ell>0ℓ>0; individual PjP_jPj​ may be zero. No channel or linearity assumption on EEE is part of this definition.

QAlgorithms.Papers.Independent.Intake100.P70.UnitarilyNoiseless

For any finite type III with decidable equality, any function EEE on complex I×II\times II×I matrices, and any set CCC of such matrices, this predicate means that for every natural number nnn, every X,Y∈CX,Y\in CX,Y∈C, and every real p∈[0,1]p\in[0,1]p∈[0,1],

∥E∘n(pX−(1−p)Y)∥1=∥pX−(1−p)Y∥1,\left\|E^{\circ n}\bigl(pX-(1-p)Y\bigr)\right\|_1 = \bigl\|pX-(1-p)Y\bigr\|_1,​E∘n(pX−(1−p)Y)​1​=​pX−(1−p)Y​1​,

where ∥Z∥1=Re⁡tr⁡Z†Z\|Z\|_1=\operatorname{Re}\operatorname{tr}\sqrt{Z^\dagger Z}∥Z∥1​=RetrZ†Z​, using functional calculus. The iterates are iterates of the function EEE; n=0n=0n=0 is included and gives the identity function. The function EEE is arbitrary, and CCC need not be convex or contain density matrices. Empty index types are allowed, and empty CCC makes the predicate vacuous.

QAlgorithms.Papers.Independent.Intake100.P70.cesaroAverage

For a finite type III, an arbitrary function EEE from complex I×II\times II×I matrices to themselves, and a natural number NNN, this definition gives the function sending each matrix XXX to

1N+1∑n=0NE∘n(X),\frac{1}{N+1}\sum_{n=0}^{N}E^{\circ n}(X),N+11​n=0∑N​E∘n(X),

where E∘nE^{\circ n}E∘n denotes nnn-fold function composition and E∘0E^{\circ0}E∘0 is the identity function. The scalar is interpreted in C\mathbb CC. Thus N=0N=0N=0 gives XXX itself, and the denominator is always nonzero. No linearity or channel condition is imposed on EEE, and III may be empty.

QAlgorithms.Papers.Independent.Intake100.P70.codeSupport

For any finite type III with decidable equality and any set C⊆MI(C)C\subseteq M_I(\mathbb C)C⊆MI​(C), take the finite basis (Bi)(B_i)(Bi​) supplied by the finite-basis construction for span⁡CC\operatorname{span}_{\mathbb C}CspanC​C, viewing its elements as matrices. This defines the orthogonal projection onto the range of

∑i(BiBi†+Bi†Bi).\sum_i(B_iB_i^\dagger+B_i^\dagger B_i).i∑​(Bi​Bi†​+Bi†​Bi​).

The set CCC is arbitrary; no condition that its elements are density matrices or that it is convex is required. A zero span, including an empty CCC or empty III, gives the zero projection.

QAlgorithms.Papers.Independent.Intake100.P70.cornerAdjoint

For any finite type III with decidable equality and any function E:MI(C)→MI(C)E:M_I(\mathbb C)\to M_I(\mathbb C)E:MI​(C)→MI​(C), let (Ba)(B_a)(Ba​) be the finite basis supplied by the finite-basis construction for the complex span of {Y:E(Y)=Y}\{Y:E(Y)=Y\}{Y:E(Y)=Y}, and let PPP be the orthogonal projection onto the range of ∑a(BaBa†+Ba†Ba)\sum_a(B_aB_a^\dagger+B_a^\dagger B_a)∑a​(Ba​Ba†​+Ba†​Ba​). This defines the function

X⟼P HE(PXP) P,HE(Y)ij=∑k,l∈IE(eij)kl‾ Ykl,X\longmapsto P\,H_E(PXP)\,P,\qquad H_E(Y)_{ij}=\sum_{k,l\in I}\overline{E(e_{ij})_{kl}}\,Y_{kl},X⟼PHE​(PXP)P,HE​(Y)ij​=k,l∈I∑​E(eij​)kl​​Ykl​,

where eije_{ij}eij​ is the matrix unit. No linearity, positivity, or channel property is assumed of EEE. If the span of its fixed matrices is zero, then P=0P=0P=0 and the defined function is zero; empty III is included.

QAlgorithms.Papers.Independent.Intake100.P70.cornerAlgebra

For any finite type III with decidable equality and any function E:MI(C)→MI(C)E:M_I(\mathbb C)\to M_I(\mathbb C)E:MI​(C)→MI​(C), take the finite basis (Ba)(B_a)(Ba​) supplied by the finite-basis construction for the complex span of all matrices fixed by EEE, and let PPP be the orthogonal projection onto the range of ∑a(BaBa†+Ba†Ba)\sum_a(B_aB_a^\dagger+B_a^\dagger B_a)∑a​(Ba​Ba†​+Ba†​Ba​). This defines the set

{X∈MI(C):PXP=X and P HE(PXP) P=X},HE(Y)ij=∑k,l∈IE(eij)kl‾ Ykl,\{X\in M_I(\mathbb C):PXP=X\ \text{and}\ P\,H_E(PXP)\,P=X\}, \qquad H_E(Y)_{ij}=\sum_{k,l\in I}\overline{E(e_{ij})_{kl}}\,Y_{kl},{X∈MI​(C):PXP=X and PHE​(PXP)P=X},HE​(Y)ij​=k,l∈I∑​E(eij​)kl​​Ykl​,

where eije_{ij}eij​ is the matrix unit. There are no assumptions that EEE is linear or a channel, and membership does not require XXX to be Hermitian or positive. If the span of the fixed matrices is zero, this set is {0}\{0\}{0}; empty III is allowed.

QAlgorithms.Papers.Independent.Intake100.P70.fixedOperators

For any type III and any function EEE from complex matrices indexed by I×II\times II×I to themselves, this defines the set

{X:E(X)=X}.\{X:E(X)=X\}.{X:E(X)=X}.

There is no finiteness assumption on III, no linearity or channel assumption on EEE, and no positivity, Hermitian, or trace condition on the matrices in this set.

QAlgorithms.Papers.Independent.Intake100.P70.fixedStates

For any finite type III and any function E:MI(C)→MI(C)E:M_I(\mathbb C)\to M_I(\mathbb C)E:MI​(C)→MI​(C), this defines the set

{X∈MI(C):X is positive semidefinite, tr⁡X=1, E(X)=X}.\{X\in M_I(\mathbb C):X\text{ is positive semidefinite},\ \operatorname{tr}X=1,\ E(X)=X\}.{X∈MI​(C):X is positive semidefinite, trX=1, E(X)=X}.

No linearity or channel property is assumed of EEE. If III is empty, this set is empty because every matrix has trace zero.

QAlgorithms.Papers.Independent.Intake100.P70.fixedSupport

For any finite type III with decidable equality and any function E:MI(C)→MI(C)E:M_I(\mathbb C)\to M_I(\mathbb C)E:MI​(C)→MI​(C), let VVV be the complex linear span of all matrices XXX satisfying E(X)=XE(X)=XE(X)=X, and take the finite basis (Bi)(B_i)(Bi​) of VVV supplied by the finite-basis construction. This defines the orthogonal projection onto the range of

∑i(BiBi†+Bi†Bi).\sum_i(B_iB_i^\dagger+B_i^\dagger B_i).i∑​(Bi​Bi†​+Bi†​Bi​).

No linearity, positivity, or channel property is assumed of EEE, and the fixed matrices used here need not be density matrices. If their span is zero, the result is zero; empty III is allowed.

QAlgorithms.Papers.Independent.Intake100.P70.fullTransposeRecovery

For any finite types I,JI,JI,J with decidable equality and any function E:MI(C)→MJ(C)E:M_I(\mathbb C)\to M_J(\mathbb C)E:MI​(C)→MJ​(C), this defines the function

X⟼HE(QXQ)+tr⁡((1J−S)X) ∣I∣−11I,X\longmapsto H_E(QXQ)+ \operatorname{tr}\bigl((1_J-S)X\bigr)\,|I|^{-1}1_I,X⟼HE​(QXQ)+tr((1J​−S)X)∣I∣−11I​,

where QQQ is the real continuous functional calculus of E(1I)E(1_I)E(1I​) for t↦(t)−1t\mapsto(\sqrt t)^{-1}t↦(t​)−1, SSS is the orthogonal projection onto the range of E(1I)E(1_I)E(1I​), and

HE(Y)ij=∑k,l∈JE(eij)kl‾ Ykl.H_E(Y)_{ij}=\sum_{k,l\in J}\overline{E(e_{ij})_{kl}}\,Y_{kl}.HE​(Y)ij​=k,l∈J∑​E(eij​)kl​​Ykl​.

Here eije_{ij}eij​ is the matrix unit, the inverse ∣I∣−1|I|^{-1}∣I∣−1 is taken in C\mathbb CC, and the trace coefficient is complex without taking its real part. The inverse-square-root scalar function is zero on nonpositive inputs, its functional calculus returns zero on non-Hermitian matrices, and 0−1=00^{-1}=00−1=0. No channel or linearity assumption is made on EEE; empty III or JJJ is allowed.

QAlgorithms.Papers.Independent.Intake100.P70.helstromPartition

For a finite type III with decidable equality and any complex matrix X∈MI(C)X\in M_I(\mathbb C)X∈MI​(C), this definition returns the three matrices, in order, obtained by applying the real functional calculus to XXX with the functions 1(0,∞)\mathbf1_{(0,\infty)}1(0,∞)​, 1(−∞,0)\mathbf1_{(-\infty,0)}1(−∞,0)​, and 1{0}\mathbf1_{\{0\}}1{0}​. Thus, when XXX is Hermitian, these are its positive, negative, and zero eigenspace projections, respectively; zero eigenvalues belong to the third part. No Hermiticity hypothesis is required: for non-Hermitian XXX, the real functional calculus used here returns zero, so all three matrices are zero. Empty III is also allowed.

QAlgorithms.Papers.Independent.Intake100.P70.jointSupport

For any finite type III with decidable equality and any set A⊆MI(C)A\subseteq M_I(\mathbb C)A⊆MI​(C), let V=span⁡CAV=\operatorname{span}_{\mathbb C}AV=spanC​A, choose the finite basis (Bi)(B_i)(Bi​) of VVV supplied by the finite-basis construction, and regard each BiB_iBi​ as a matrix. This defines the matrix of the orthogonal projection onto the range of

H=∑i(BiBi†+Bi†Bi),H=\sum_i(B_iB_i^\dagger+B_i^\dagger B_i),H=i∑​(Bi​Bi†​+Bi†​Bi​),

where †\dagger† denotes conjugate transpose and the range is that of the linear operator on CI\mathbb C^ICI given by matrix multiplication. No positivity or closure assumptions are imposed on AAA. If V={0}V=\{0\}V={0}, including when AAA or III is empty, the basis sum and the resulting projection are zero.

QAlgorithms.Papers.Independent.Intake100.P70.operatorHSNorm

For a finite type III and a complex matrix XXX indexed by I×II\times II×I, this definition is the real number

∑i∈I∑j∈I∣Xij∣2.\sqrt{\sum_{i\in I}\sum_{j\in I}|X_{ij}|^2}.i∈I∑​j∈I∑​∣Xij​∣2​.

Here each squared modulus is the complex norm squared, and the square root is the nonnegative real square root. If III is empty, both the sum and the resulting value are zero.

QAlgorithms.Papers.Independent.Intake100.P70.powerMixture

For any finite type III, any function EEE from complex I×II\times II×I matrices to themselves, and any real sequence q:N→Rq:\mathbb N\to\mathbb Rq:N→R, this defines the function

X⟼∑n=0∞qn E∘n(X),X\longmapsto \sum_{n=0}^{\infty}q_n\,E^{\circ n}(X),X⟼n=0∑∞​qn​E∘n(X),

where E∘nE^{\circ n}E∘n denotes nnn-fold function composition and E∘0(X)=XE^{\circ0}(X)=XE∘0(X)=X. Real coefficients act as complex scalars. No nonnegativity, normalization, summability, linearity, or channel assumption is imposed. The infinite sum is the total infinite-sum operation: it equals the series sum when the matrix series is summable and equals the zero matrix otherwise. The finite index type may be empty.

QAlgorithms.Papers.Independent.Intake100.P70.rotatingSpace

For any type III, without a finiteness assumption, and any function EEE from complex I×II\times II×I matrices to themselves, the rotating space is the complex linear span of

{X:∃z∈C, ∣z∣=1 and E(X)=zX}.\{X:\exists z\in\mathbb C,\ |z|=1\text{ and }E(X)=zX\}.{X:∃z∈C, ∣z∣=1 and E(X)=zX}.

The generating matrices are not required to be nonzero. No linearity or channel assumption is imposed on EEE; the span consists of finite complex linear combinations of the displayed generators and always contains zero.

QAlgorithms.Papers.Independent.Intake100.P70.statePart

For any finite type III and any set AAA of complex I×II\times II×I matrices, this defines the set

{X:X is positive semidefinite, tr⁡X=1, and X∈A}.\{X:X\text{ is positive semidefinite},\ \operatorname{tr}X=1,\ \text{and }X\in A\}.{X:X is positive semidefinite, trX=1, and X∈A}.

The set AAA is arbitrary and may be empty. The index type III may also be empty, in which case this set is empty because every matrix on that index type has trace 000.

QAlgorithms.Papers.Independent.Intake100.P70.supportInvSqrt

For any finite type III with decidable equality and any matrix X∈MI(C)X\in M_I(\mathbb C)X∈MI​(C), this defines the real continuous functional calculus of XXX for the function t↦(t)−1t\mapsto(\sqrt t)^{-1}t↦(t​)−1. For Hermitian XXX, it applies 1/t1/\sqrt t1/t​ to each positive eigenvalue and zero to every nonpositive eigenvalue, using the conventions t=0\sqrt t=0t​=0 for t≤0t\le0t≤0 and 0−1=00^{-1}=00−1=0. For non-Hermitian XXX, this functional-calculus operation returns zero. No positivity or invertibility hypothesis is imposed, and empty III is allowed.

QAlgorithms.Papers.Independent.Intake100.P70.transposeRecovery

For any finite types I,JI,JI,J with decidable equality, any function E:MI(C)→MJ(C)E:M_I(\mathbb C)\to M_J(\mathbb C)E:MI​(C)→MJ​(C), and any matrix P∈MI(C)P\in M_I(\mathbb C)P∈MI​(C), this defines a function sending each X∈MJ(C)X\in M_J(\mathbb C)X∈MJ​(C) to

P HE(QXQ) P,Q=f(E(P)),f(t)=(t)−1,P\,H_E(QXQ)\,P,\qquad Q=f(E(P)),\qquad f(t)=(\sqrt t)^{-1},PHE​(QXQ)P,Q=f(E(P)),f(t)=(t​)−1,

where f(E(P))f(E(P))f(E(P)) means real continuous functional calculus and

HE(Y)ij=∑k,l∈JE(eij)kl‾ Ykl,H_E(Y)_{ij}=\sum_{k,l\in J}\overline{E(e_{ij})_{kl}}\,Y_{kl},HE​(Y)ij​=k,l∈J∑​E(eij​)kl​​Ykl​,

with eije_{ij}eij​ the matrix having entry 111 at (i,j)(i,j)(i,j) and zero elsewhere. The scalar function fff is zero for t≤0t\le0t≤0, and its matrix functional calculus returns zero on non-Hermitian matrices. No linearity or channel property of EEE, or projection property of PPP, is assumed; zero matrices and empty index types are included.

QAlgorithms.Papers.Independent.Intake100.P70.weighted

For any type III, any real number ppp, and any complex matrices X,YX,YX,Y indexed by I×II\times II×I, this defines the matrix

pX−(1−p)Y,pX-(1-p)Y,pX−(1−p)Y,

where the real coefficients are regarded as complex scalars. There is no restriction on ppp, no finiteness assumption on III, and no positivity or normalization assumption on XXX or YYY; in particular, the values at p=0p=0p=0 and p=1p=1p=1 are −Y-Y−Y and XXX, respectively.

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

    Confirmed by the moderator at approval.

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