Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for Optimal Universal Quantum Error Correction via Bounded Reference Frames

Definition
QAlgorithms_Papers_Independent_Extend50_P15

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

prove2quantum

The objects the formalized statements of Optimal Universal Quantum Error Correction via Bounded Reference Frames (arXiv:2007.09154) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • FlaggedRegister: Erasure output space: a tensor product of local direct sums, retaining every mixed surviving/erased pattern (PDF pp.8,22). none is the orthogonal erasure flag.
  • IsNormalizedHaar: Normalized Haar law, with its left and right translation invariance, not Haar volume. The Borel space is fixed above; on this compact group this specifies the unique probability Haar measure (PDF pp.3,10).
  • worstFidelity: A1, PDF p.10. Infimum over all density matrices and all positive finite reference sizes. For lawful channels on nonempty finite spaces this set is nonempty and bounded in [0,1]. No theorem uses the empty-input default of a real infimum.
  • stabilizedHalfDiamondError: A3--A4, PDF p.11: half the stabilized trace distance, equal to half the diamond norm for differences of channels. Stabilization includes arbitrary entangled references. For channels the supremum is nonempty and bounded by 1.
  • entanglementError: A5, PDF p.11; the factor 1/2 acts on normalized Choi states.
  • choiPairFidelity: A2, PDF p.10: squared Uhlmann fidelity of the normalized Choi states.
  • IsSUChannelCovariant: Full SU(d) covariance, not covariance under just one chosen generator (A.6 preamble, PDF p.18).
  • maskedTransversalMatrix: U on selected physical sites and identity on idle sites (A14, PDF p.12). The mask is fixed independently of U and of the logical input.
  • CovariantCode: A14, PDF p.12, and the general-code lower-bound setting on pp.22,26. The encoder is CPTP and exactly covariant under the indicated transversal action. The decoder is an arbitrary CPTP recovery on the full flagged tensor space.
  • covariantError: A16, PDF p.13: worst error over all logical gates, computed from the actual code and actual physical noise. In the channel regimes below the set is nonempty, compact in its gate parameter, and bounded by 1; the supremum equals the source's maximum.
  • localErasureKraus: Kraus family for the single-qudit flagged erasure channel (B1,C1, PDF pp.21,24). The index none is the surviving Kraus operator; some a erases basis component a. The parameter is used only in [0,1].
  • localErasure: Local erasure, with orthogonal flag (C1, PDF p.24).
  • subsetErasure: Erase exactly the sites in s, retaining the other sites. This tensor definition acts on all operators, including entangled inputs (B1, PDF p.21).
  • uniformSubsetErasure: B19--B20, PDF p.23: uniform distribution on exactly k-element subsets. There is no independent-site assumption and no no-erasure atom when k≥1.
  • iidErasure: Independent erasure of every physical qudit (C1, PDF p.24).
  • flaggedGate: The physical gate extended by identity on the orthogonal erasure flag (PDF p.8).
  • flaggedTransversal: Transversal implementation on the full tensor product of flagged local spaces (PDF p.8). Idle sites and erasure flags are fixed.
  • erasurePatternProjector: Joint projector onto the known erasure pattern s, including mixed patterns (PDF p.8).
  • referenceOrbitSpan: Vector-orbit support under U on one half and identity on the other (D2--D3, PDF p.29). The rank of the twirled pure state is this dimension. SOURCE CORRECTION: D1 prints the span of density operators. Its proof uses the vector-orbit support instead. These dimensions differ; independent moderation is required.
  • sineCoefficient: Raw sine coefficients B8, PDF p.21, evaluated on integer indices. They are not asserted to form a normalized law on the paper's declared [M]={1,...,M}.
  • sineOverlapError: B10, PDF p.22. The cutoff is 2n0; it is not the total physical code size. Natural subtraction in the endpoint is used only for sufficiently large M.
  • schurCharacter: SU(d) character of the actual Young-symmetrizer Schur module, not a free character variable (A12, PDF p.12).
  • canonicalEstimateDensity: Canonical A12 estimate density for a finite support L and probability weights q. At the true gate I the character is evaluated on U inverse (PDF pp.12,15).
  • costRepresentation: The actual UC tensor UL-star representation (A36, PDF p.15). map conj is entrywise complex conjugation, not adjoint.
  • referenceCostChannel: A36--A37, PDF p.15: channel induced by the canonical surviving-frame estimate law. Only lawful normalized q and Haar measure are used in the results.
  • indexedDifference: A39, PDF p.15: encode each integer shift in [-n0,n0] by a finite index. The zero-sum constraint is imposed by differenceIndices.
  • differenceIndices: Sdiff, A39, PDF p.15, a finite nonempty set containing the zero shift.
  • shiftedMass: Extend q by zero to integer row vectors; different shifted diagrams are not silently truncated into Young shapes (A39, PDF p.15).
  • interiorShapes: Sint: positive support with every pair of distinct rows separated by more than 3n0 (A38, PDF p.15). The i ≠ j guard is essential.
  • minimumInteriorOverlap: Attained finite minimum in Lemma 2. Sint may be empty, giving a zero sum; Sdiff is never empty (A38--A39, PDF p.15).
  • schurWeylShiftedRow: Shifted integer rows in C6 (PDF p.25), with one-based source row j=i.val+1.
  • schurWeylMass: Integer Schur--Weyl law C6, PDF p.25. This formula has no fractional Young shapes and no interpolation of factorials. The factorial product includes 0!=1.
  • schurWeylConstant: Gamma in C8, PDF p.25. The d=1 case is not used.
  • computationSize: The integer convention for nC=n^gamma, with bounded downward rounding (C.1, PDF p.24). The positive regime begins at the theorem's threshold.
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Defs_Channel
import Definitions.Def_QAlgorithms_Defs_QuantumInformation
import Definitions.Def_QAlgorithms_Defs_MatrixDistances
import Definitions.Def_QAlgorithms_Defs_FiniteRegisters
import Definitions.Def_QAlgorithms_Defs_SchurModules
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P67
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P56
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P75

/-!
Statements from Yang et al., arXiv:2007.09154v2.

Paper-specific objects below are local; matching accepted definitions are imported. Channels use the accepted finite Kraus
semantics. Fidelities are squared Uhlmann fidelities. Stabilization ranges over every
positive finite reference dimension; the two error measures contain the factor 1/2.
Deferred nodes, including source defects, are recorded in the unit's HARD.md and GAPS.json.
No source correction here is certified by independent moderation. Compilation is pending.
-/

noncomputable section

open MeasureTheory
open scoped Matrix ComplexConjugate Matrix.Norms.L2Operator

namespace QAlgorithms.Papers.Independent.Extend50.P15

open QAlgorithms.Papers.Independent.Information100.P67 (squaredFidelity)
open QAlgorithms.Papers.Independent.Information100.P56 (normalizedChoi)
open QAlgorithms.Papers.Independent.Information100.P75 (Register)

attribute [local instance] Classical.propDecidable
attribute [local instance] Classical.decEq

/-- Erasure output space: a tensor product of local direct sums, retaining every mixed
surviving/erased pattern (PDF pp.8,22). `none` is the orthogonal erasure flag. -/
abbrev FlaggedRegister (d n : ℕ) := Fin n → Option (Fin d)

/-- Fixed Borel sigma algebra on SU(d) (PDF p.10). -/
instance specialUnitaryMeasurable (d : ℕ) : MeasurableSpace (Matrix.specialUnitaryGroup (Fin d) ℂ) := borel _

/-- Normalized Haar law, with its left and right translation invariance, not Haar volume.
The Borel space is fixed above; on this compact group this specifies the unique probability
Haar measure (PDF pp.3,10). -/
def IsNormalizedHaar {d : ℕ} (mu : Measure (Matrix.specialUnitaryGroup (Fin d) ℂ)) : Prop :=
  mu Set.univ = 1 ∧
    (∀ V : (Matrix.specialUnitaryGroup (Fin d) ℂ), Measure.map (fun U => V * U) mu = mu) ∧
    (∀ V : (Matrix.specialUnitaryGroup (Fin d) ℂ), Measure.map (fun U => U * V) mu = mu)

/-- A1, PDF p.10. Infimum over all density matrices and all positive finite reference
sizes. For lawful channels on nonempty finite spaces this set is nonempty and bounded in
[0,1]. No theorem uses the empty-input default of a real infimum. -/
def worstFidelity {i o : Type*} [Fintype i] [Fintype o] [DecidableEq o]
    (A B : Superop i o) : ℝ :=
  sInf {v : ℝ | ∃ k : ℕ, 0 < k ∧
    ∃ rho : Matrix (Fin k × i) (Fin k × i) ℂ, IsDensityMatrix rho ∧
      v = squaredFidelity (idTensorSuperop (R := Fin k) A rho)
        (idTensorSuperop (R := Fin k) B rho)}

/-- A3--A4, PDF p.11: half the stabilized trace distance, equal to half the diamond
norm for differences of channels. Stabilization includes arbitrary entangled references.
For channels the supremum is nonempty and bounded by 1. -/
def stabilizedHalfDiamondError {i o : Type*} [Fintype i] [Fintype o] [DecidableEq o]
    (A B : Superop i o) : ℝ :=
  sSup {v : ℝ | ∃ k : ℕ, 0 < k ∧
    ∃ rho : Matrix (Fin k × i) (Fin k × i) ℂ, IsDensityMatrix rho ∧
      v = traceNorm (idTensorSuperop (R := Fin k) A rho -
        idTensorSuperop (R := Fin k) B rho) / 2}

/-- A5, PDF p.11; the factor 1/2 acts on normalized Choi states. -/
def entanglementError (d : ℕ) (hd : 0 < d) (A B : Superop (Fin d) (Fin d)) : ℝ :=
  traceNorm (normalizedChoi A - normalizedChoi B) / 2

/-- A2, PDF p.10: squared Uhlmann fidelity of the normalized Choi states. -/
def choiPairFidelity (d : ℕ) (hd : 0 < d) (A B : Superop (Fin d) (Fin d)) : ℝ :=
  squaredFidelity (normalizedChoi A) (normalizedChoi B)

/-- Full SU(d) covariance, not covariance under just one chosen generator
(A.6 preamble, PDF p.18). -/
def IsSUChannelCovariant {d : ℕ} (A : Superop (Fin d) (Fin d)) : Prop :=
  ∀ U : (Matrix.specialUnitaryGroup (Fin d) ℂ),
    A ∘ conjSuperop (U : Matrix (Fin d) (Fin d) ℂ) =
      conjSuperop (U : Matrix (Fin d) (Fin d) ℂ) ∘ A

/-- U on selected physical sites and identity on idle sites (A14, PDF p.12).
The mask is fixed independently of U and of the logical input. -/
def maskedTransversalMatrix {d n : ℕ} (active : Fin n → Bool) (U : Matrix (Fin d) (Fin d) ℂ) :
    Matrix ((Register (fun _ : Fin n => d))) ((Register (fun _ : Fin n => d))) ℂ :=
  fun x y => ∏ j, if active j then U (x j) (y j) else if x j = y j then 1 else 0

/-- A14, PDF p.12, and the general-code lower-bound setting on pp.22,26.
The encoder is CPTP and exactly covariant under the indicated transversal action.
The decoder is an arbitrary CPTP recovery on the full flagged tensor space. -/
structure CovariantCode (d n : ℕ) where
  active : Fin n → Bool
  encoder : Superop (Fin d) ((Register (fun _ : Fin n => d)))
  decoder : Superop (FlaggedRegister d n) (Fin d)
  encoder_channel : IsChannel encoder
  decoder_channel : IsChannel decoder
  encoder_covariance : ∀ U : (Matrix.specialUnitaryGroup (Fin d) ℂ),
    encoder ∘ conjSuperop (U : Matrix (Fin d) (Fin d) ℂ) =
      conjSuperop (maskedTransversalMatrix active (U : Matrix (Fin d) (Fin d) ℂ)) ∘ encoder

/-- A16, PDF p.13: worst error over all logical gates, computed from the actual code
and actual physical noise. In the channel regimes below the set is nonempty, compact in
its gate parameter, and bounded by 1; the supremum equals the source's maximum. -/
def covariantError {d n : ℕ} (code : CovariantCode d n)
    (noise : Superop ((Register (fun _ : Fin n => d))) (FlaggedRegister d n)) : ℝ :=
  sSup {v : ℝ | ∃ U : (Matrix.specialUnitaryGroup (Fin d) ℂ),
    v = stabilizedHalfDiamondError (code.decoder ∘ noise ∘
      conjSuperop (maskedTransversalMatrix code.active (U : Matrix (Fin d) (Fin d) ℂ)) ∘ code.encoder)
      (conjSuperop (U : Matrix (Fin d) (Fin d) ℂ))}

/-- Kraus family for the single-qudit flagged erasure channel (B1,C1, PDF pp.21,24).
The index `none` is the surviving Kraus operator; `some a` erases basis component a.
The parameter is used only in [0,1]. -/
def localErasureKraus (d : ℕ) (p : ℝ) :
    Option (Fin d) → Matrix (Option (Fin d)) (Fin d) ℂ
  | none => fun y x => if y = some x then (Real.sqrt (1 - p) : ℂ) else 0
  | some a => fun y x => if y = none ∧ x = a then (Real.sqrt p : ℂ) else 0

/-- Local erasure, with orthogonal flag (C1, PDF p.24). -/
def localErasure (d : ℕ) (p : ℝ) : Superop (Fin d) (Option (Fin d)) :=
  krausApply (localErasureKraus d p)

/-- Erase exactly the sites in s, retaining the other sites. This tensor definition
acts on all operators, including entangled inputs (B1, PDF p.21). -/
def subsetErasure (d n : ℕ) (s : Finset (Fin n)) :
    Superop ((Register (fun _ : Fin n => d))) (FlaggedRegister d n) :=
  piSuperop fun j => localErasure d (if j ∈ s then 1 else 0)

/-- B19--B20, PDF p.23: uniform distribution on exactly k-element subsets.
There is no independent-site assumption and no no-erasure atom when k≥1. -/
def uniformSubsetErasure (d n k : ℕ) : Superop ((Register (fun _ : Fin n => d))) (FlaggedRegister d n) :=
  fun X => ∑ s ∈ (Finset.univ : Finset (Fin n)).powersetCard k,
    (((Nat.choose n k : ℝ)⁻¹ : ℂ)) • subsetErasure d n s X

/-- Independent erasure of every physical qudit (C1, PDF p.24). -/
def iidErasure (d n : ℕ) (p : ℝ) : Superop ((Register (fun _ : Fin n => d))) (FlaggedRegister d n) :=
  piSuperop fun _ => localErasure d p

/-- The physical gate extended by identity on the orthogonal erasure flag
(PDF p.8). -/
def flaggedGate {d : ℕ} (U : Matrix (Fin d) (Fin d) ℂ) :
    Matrix (Option (Fin d)) (Option (Fin d)) ℂ
  | some i, some j => U i j
  | none, none => 1
  | _, _ => 0

/-- Transversal implementation on the full tensor product of flagged local spaces
(PDF p.8). Idle sites and erasure flags are fixed. -/
def flaggedTransversal {d n : ℕ} (active : Fin n → Bool)
    (U : Matrix (Fin d) (Fin d) ℂ) :
    Matrix (FlaggedRegister d n) (FlaggedRegister d n) ℂ :=
  fun x y => ∏ j, if active j then flaggedGate U (x j) (y j)
    else if x j = y j then 1 else 0

/-- Joint projector onto the known erasure pattern s, including mixed patterns
(PDF p.8). -/
def erasurePatternProjector (d n : ℕ) (s : Finset (Fin n)) :
    Matrix (FlaggedRegister d n) (FlaggedRegister d n) ℂ :=
  Matrix.diagonal fun x => if ∀ j, (x j = none ↔ j ∈ s) then 1 else 0

/-- Vector-orbit support under U on one half and identity on the other
(D2--D3, PDF p.29). The rank of the twirled pure state is this dimension.
SOURCE CORRECTION: D1 prints the span of density operators. Its proof uses the
vector-orbit support instead. These dimensions differ; independent moderation is required. -/
def referenceOrbitSpan {d r : ℕ}
    (psi : EuclideanSpace ℂ ((Register (fun _ : Fin r => d)) × (Register (fun _ : Fin r => d)))) :
    Submodule ℂ (EuclideanSpace ℂ ((Register (fun _ : Fin r => d)) × (Register (fun _ : Fin r => d)))) :=
  Submodule.span ℂ (Set.range fun U : (Matrix.specialUnitaryGroup (Fin d) ℂ) =>
    act (Matrix.kronecker (piKron r (U : Matrix (Fin d) (Fin d) ℂ))
      (1 : Matrix ((Register (fun _ : Fin r => d))) ((Register (fun _ : Fin r => d))) ℂ)) psi)

/-- Raw sine coefficients B8, PDF p.21, evaluated on integer indices. They are not
asserted to form a normalized law on the paper's declared [M]={1,...,M}. -/
def sineCoefficient (M : ℕ) (k : ℤ) : ℝ :=
  2 / ((M : ℝ) + 1) *
    Real.sin (Real.pi * (2 * (k : ℝ) + 1) / (2 * ((M : ℝ) + 1))) ^ 2

/-- B10, PDF p.22. The cutoff is 2n0; it is not the total physical code size.
Natural subtraction in the endpoint is used only for sufficiently large M. -/
def sineOverlapError (n0 M : ℕ) (delta : ℤ) : ℝ :=
  1 - ∑ k ∈ Finset.Icc (2 * n0) (M - 2 * n0),
    Real.sqrt (sineCoefficient M k * sineCoefficient M ((k : ℤ) + delta))

/-- SU(d) character of the actual Young-symmetrizer Schur module, not a free
character variable (A12, PDF p.12). -/
def schurCharacter {d m : ℕ} (lambda : QAlgorithms.Schur.Partition d m)
    (U : (Matrix.specialUnitaryGroup (Fin d) ℂ)) : ℂ :=
  LinearMap.trace ℂ (QAlgorithms.Schur.schurModule lambda)
    (QAlgorithms.Schur.polynomialRepresentation lambda (U : Matrix (Fin d) (Fin d) ℂ))

/-- Canonical A12 estimate density for a finite support L and probability weights q.
At the true gate I the character is evaluated on U inverse (PDF pp.12,15). -/
def canonicalEstimateDensity {d m : ℕ} (L : Finset (QAlgorithms.Schur.Partition d m))
    (q : QAlgorithms.Schur.Partition d m → ℝ) (U : (Matrix.specialUnitaryGroup (Fin d) ℂ)) : ℝ :=
  Complex.normSq (∑ lambda ∈ L, (Real.sqrt (q lambda) : ℂ) * schurCharacter lambda U⁻¹)

/-- The actual UC tensor UL-star representation (A36, PDF p.15).
`map conj` is entrywise complex conjugation, not adjoint. -/
def costRepresentation (d nC : ℕ) (U : (Matrix.specialUnitaryGroup (Fin d) ℂ)) :
    Matrix ((Register (fun _ : Fin nC => d)) × Fin d) ((Register (fun _ : Fin nC => d)) × Fin d) ℂ :=
  Matrix.kronecker (piKron nC (U : Matrix (Fin d) (Fin d) ℂ))
    ((U : Matrix (Fin d) (Fin d) ℂ).map conj)

/-- A36--A37, PDF p.15: channel induced by the canonical surviving-frame estimate
law. Only lawful normalized q and Haar measure are used in the results. -/
def referenceCostChannel {d m : ℕ} (mu : Measure (Matrix.specialUnitaryGroup (Fin d) ℂ)) (nC : ℕ)
    (L : Finset (QAlgorithms.Schur.Partition d m))
    (q : QAlgorithms.Schur.Partition d m → ℝ) :
    Superop ((Register (fun _ : Fin nC => d)) × Fin d) ((Register (fun _ : Fin nC => d)) × Fin d) :=
  fun X => ∫ U, (canonicalEstimateDensity L q U : ℂ) • conjSuperop (costRepresentation d nC U) X ∂mu

/-- A39, PDF p.15: encode each integer shift in [-n0,n0] by a finite index.
The zero-sum constraint is imposed by `differenceIndices`. -/
def indexedDifference {d n0 : ℕ} (x : Fin d → Fin (2 * n0 + 1)) : Fin d → ℤ :=
  fun i => (x i : ℤ) - (n0 : ℤ)

/-- Sdiff, A39, PDF p.15, a finite nonempty set containing the zero shift. -/
def differenceIndices (d n0 : ℕ) : Finset (Fin d → Fin (2 * n0 + 1)) :=
  Finset.univ.filter fun x => ∑ i, indexedDifference x i = 0

/-- Extend q by zero to integer row vectors; different shifted diagrams are not
silently truncated into Young shapes (A39, PDF p.15). -/
def shiftedMass {d m : ℕ} (L : Finset (QAlgorithms.Schur.Partition d m))
    (q : QAlgorithms.Schur.Partition d m → ℝ)
    (lambda : QAlgorithms.Schur.Partition d m) (delta : Fin d → ℤ) : ℝ :=
  ∑ nu ∈ L, if ∀ i : Fin d,
    (nu.val.rowLen i.val : ℤ) = (lambda.val.rowLen i.val : ℤ) + delta i then q nu else 0

/-- Sint: positive support with every pair of distinct rows separated by more than
3n0 (A38, PDF p.15). The `i ≠ j` guard is essential. -/
def interiorShapes {d m : ℕ} (n0 : ℕ) (L : Finset (QAlgorithms.Schur.Partition d m))
    (q : QAlgorithms.Schur.Partition d m → ℝ) : Finset (QAlgorithms.Schur.Partition d m) :=
  L.filter fun lambda => 0 < q lambda ∧ ∀ i j : Fin d, i ≠ j →
    (3 * n0 : ℤ) < |(lambda.val.rowLen i.val : ℤ) - (lambda.val.rowLen j.val : ℤ)|

/-- Attained finite minimum in Lemma 2. Sint may be empty, giving a zero sum;
Sdiff is never empty (A38--A39, PDF p.15). -/
def minimumInteriorOverlap {d m : ℕ} (n0 : ℕ)
    (L : Finset (QAlgorithms.Schur.Partition d m))
    (q : QAlgorithms.Schur.Partition d m → ℝ) : ℝ :=
  (differenceIndices d n0).inf'
    (by
      refine ⟨fun _ => ⟨n0, by omega⟩, ?_⟩
      simp [differenceIndices, indexedDifference])
    (fun x => ∑ lambda ∈ interiorShapes n0 L q,
      Real.sqrt (q lambda * shiftedMass L q lambda (indexedDifference x)))

/-- Shifted integer rows in C6 (PDF p.25), with one-based source row j=i.val+1. -/
def schurWeylShiftedRow {d s : ℕ} (lambda : QAlgorithms.Schur.Partition d s) (i : Fin d) : ℕ :=
  lambda.val.rowLen i.val + (d - 1 - i.val)

/-- Integer Schur--Weyl law C6, PDF p.25. This formula has no fractional Young
shapes and no interpolation of factorials. The factorial product includes 0!=1. -/
def schurWeylMass {d s : ℕ} (lambda : QAlgorithms.Schur.Partition d s) : ℝ :=
  (Nat.factorial s : ℝ) *
    (∏ i : Fin d, ∏ j : Fin d, if i < j then
      ((schurWeylShiftedRow lambda i : ℝ) - (schurWeylShiftedRow lambda j : ℝ)) ^ 2 else 1) /
    ((d : ℝ) ^ s * (∏ i : Fin d, (Nat.factorial (schurWeylShiftedRow lambda i) : ℝ)) *
      (∏ i : Fin d, (Nat.factorial i.val : ℝ)))

/-- Gamma in C8, PDF p.25. The d=1 case is not used. -/
def schurWeylConstant (d : ℕ) : ℝ :=
  (d : ℝ) ^ (d * (d - 1) / 2) / ∏ i : Fin d, (Nat.factorial i.val : ℝ)

/-- The integer convention for nC=n^gamma, with bounded downward rounding
(C.1, PDF p.24). The positive regime begins at the theorem's threshold. -/
def computationSize (gamma : ℝ) (n : ℕ) : ℕ := Nat.floor ((n : ℝ) ^ gamma)

/-- Sanity check for squared fidelity, A1, PDF p.10. -/
example : squaredFidelity (1 : Matrix Unit Unit ℂ) 1 = 1 := by
  simp [squaredFidelity, rootFidelity, cfc_one]

example {d : ℕ} (U : Matrix (Fin d) (Fin d) ℂ) : flaggedGate U none none = 1 := rfl

example (d : ℕ) (a : Fin d) : localErasureKraus d 1 none (some a) a = 0 := by
  simp [localErasureKraus]

example (d n0 : ℕ) : (differenceIndices d n0).Nonempty := by
  refine ⟨fun _ => ⟨n0, by omega⟩, ?_⟩
  simp [differenceIndices, indexedDifference]

example (d : ℕ) (U : Matrix (Fin d) (Fin d) ℂ) (x y : (Register (fun _ : Fin 0 => d))) :
    maskedTransversalMatrix (fun _ => true) U x y = 1 := by
  simp [maskedTransversalMatrix]

example : schurWeylConstant 2 = 2 := by
  norm_num [schurWeylConstant, Fin.prod_univ_two]

end QAlgorithms.Papers.Independent.Extend50.P15
Source
Optimal Universal Quantum Error Correction via Bounded Reference Frames, arXiv:2007.09154v2, https://arxiv.org/abs/2007.09154v2
Read-back

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

QAlgorithms.Papers.Independent.Extend50.P15.CovariantCode

For natural numbers d,nd,nd,n, this structure consists of a Boolean function active\mathrm{active}active on the nnn positions, an encoder E\mathcal EE mapping complex d×dd\times dd×d matrices to matrices indexed by nnn-tuples of indices below ddd, and a decoder D\mathcal DD mapping matrices indexed by nnn-tuples of elements of {none}⊔{0,…,d−1}\{\mathrm{none}\}\sqcup\{0,\ldots,d-1\}{none}⊔{0,…,d−1} to complex d×dd\times dd×d matrices. Each of E,D\mathcal E,\mathcal DE,D must admit a finite Kraus representation Φ(X)=∑jKjXKj†\Phi(X)=\sum_jK_jXK_j^\daggerΦ(X)=∑j​Kj​XKj†​ for every input matrix XXX, with rectangular matrices of the appropriate input and output dimensions satisfying ∑jKj†Kj=I\sum_jK_j^\dagger K_j=I∑j​Kj†​Kj​=I. It also contains the requirement that, for every U∈SU(d)U\in\mathrm{SU}(d)U∈SU(d) and every d×dd\times dd×d matrix XXX,

E(UXU†)=Tactive(U) E(X) Tactive(U)†,Tactive(U)x,y=∏j=0n−1{Uxj,yj,active(j)=true,1{xj=yj},active(j)=false.\mathcal E(UXU^\dagger) =T_{\mathrm{active}}(U)\,\mathcal E(X)\,T_{\mathrm{active}}(U)^\dagger, \qquad T_{\mathrm{active}}(U)_{x,y} =\prod_{j=0}^{n-1} \begin{cases} U_{x_j,y_j},&\mathrm{active}(j)=\mathrm{true},\\ \mathbf1_{\{x_j=y_j\}},&\mathrm{active}(j)=\mathrm{false}. \end{cases}E(UXU†)=Tactive​(U)E(X)Tactive​(U)†,Tactive​(U)x,y​=j=0∏n−1​{Uxj​,yj​​,1{xj​=yj​}​,​active(j)=true,active(j)=false.​

The parameters allow n=0n=0n=0, with a singleton tuple register and empty product 111. They also allow d=0d=0d=0, although then the decoder’s Kraus normalization cannot be satisfied, since its flagged input index set is nonempty and its output index set is empty.

QAlgorithms.Papers.Independent.Extend50.P15.FlaggedRegister

For natural numbers d,nd,nd,n, a flagged register is a function from {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1} to {none}⊔{0,…,d−1}\{\mathrm{none}\}\sqcup\{0,\ldots,d-1\}{none}⊔{0,…,d−1}: each of its nnn positions contains either a distinguished flag none\mathrm{none}none or an index below ddd. When n=0n=0n=0, there is exactly one such register, the empty function; when d=0d=0d=0, there is exactly one such register for every nnn, with every position flagged.

QAlgorithms.Papers.Independent.Extend50.P15.IsNormalizedHaar

For a natural number ddd and a measure μ\muμ on the Borel measurable space of SU(d)\mathrm{SU}(d)SU(d), this predicate means that μ(SU(d))=1\mu(\mathrm{SU}(d))=1μ(SU(d))=1 and that, for every V∈SU(d)V\in\mathrm{SU}(d)V∈SU(d), both the pushforward of μ\muμ under U↦VUU\mapsto VUU↦VU and its pushforward under U↦UVU\mapsto UVU↦UV equal μ\muμ. The definition includes d=0d=0d=0.

QAlgorithms.Papers.Independent.Extend50.P15.IsSUChannelCovariant

For any natural number ddd and any map AAA from complex d×dd\times dd×d matrices to themselves, this predicate requires that, for every U∈SU(d)U\in\mathrm{SU}(d)U∈SU(d) and every complex d×dd\times dd×d matrix XXX,

A(UXU†)=U A(X) U†.A(UXU^\dagger)=U\,A(X)\,U^\dagger.A(UXU†)=UA(X)U†.

The predicate itself imposes no channel or linearity condition on AAA, and it includes d=0d=0d=0.

QAlgorithms.Papers.Independent.Extend50.P15.canonicalEstimateDensity

For arbitrary natural numbers d,md,md,m, a finite set LLL of Young diagrams having mmm cells and first-column length at most ddd, any real-valued function qqq on all such diagrams, and U∈SU(d)U\in SU(d)U∈SU(d), this defines

pL,q(U)=∣∑λ∈Lq(λ) χλ(U−1)∣2.p_{L,q}(U) =\left|\sum_{\lambda\in L}\sqrt{q(\lambda)}\,\chi_\lambda(U^{-1})\right|^2.pL,q​(U)=​λ∈L∑​q(λ)​χλ​(U−1)​2.

Here the squared modulus is the complex norm squared. To define χλ(V)\chi_\lambda(V)χλ​(V), number the diagram’s cells by the fixed bijection with {0,…,m−1}\{0,\ldots,m-1\}{0,…,m−1}, let Rλ,CλR_\lambda,C_\lambdaRλ​,Cλ​ be the row-preserving and column-preserving permutation sets, and put Yλ=∑a∈Rλ,b∈Cλsgn⁡(b)TabY_\lambda=\sum_{a\in R_\lambda,b\in C_\lambda}\operatorname{sgn}(b)T_{ab}Yλ​=∑a∈Rλ​,b∈Cλ​​sgn(b)Tab​, where (Tπ)y,x(T_\pi)_{y,x}(Tπ​)y,x​ is 111 exactly when y=x∘π−1y=x\circ\pi^{-1}y=x∘π−1. Then χλ(V)\chi_\lambda(V)χλ​(V) is the trace on range⁡(Yλ)\operatorname{range}(Y_\lambda)range(Yλ​) of v↦Prange⁡(Yλ)(V⊗mv)v\mapsto P_{\operatorname{range}(Y_\lambda)}(V^{\otimes m}v)v↦Prange(Yλ​)​(V⊗mv), with PPP denoting orthogonal projection and (V⊗m)y,x=∏jVyj,xj(V^{\otimes m})_{y,x}=\prod_jV_{y_j,x_j}(V⊗m)y,x​=∏j​Vyj​,xj​​. The function qqq has no positivity or normalization hypothesis; the real square root is zero on negative arguments. If LLL is empty, the defined value is zero.

QAlgorithms.Papers.Independent.Extend50.P15.choiPairFidelity

For a natural number ddd, a supplied hypothesis d>0d>0d>0, and arbitrary maps A,BA,BA,B from complex d×dd\times dd×d matrices to themselves, put (JΦ)(a,b),(c,e)=Φ(Eac)b,e/d(J_\Phi)_{(a,b),(c,e)}=\Phi(E_{ac})_{b,e}/d(JΦ​)(a,b),(c,e)​=Φ(Eac​)b,e​/d, where EacE_{ac}Eac​ is the corresponding matrix unit, and write S(X)=cfc⁡(⋅,X)S(X)=\operatorname{cfc}(\sqrt{\cdot},X)S(X)=cfc(⋅​,X) for the total continuous functional calculus. The defined quantity is

(Re⁡tr⁡S(S(JA)JBS(JA)))2.\left(\operatorname{Re}\operatorname{tr}S(S(J_A)J_BS(J_A))\right)^2.(RetrS(S(JA​)JB​S(JA​)))2.

The supplied positivity hypothesis on ddd does not occur in the formula, and no channel assumption is imposed on either map.

QAlgorithms.Papers.Independent.Extend50.P15.computationSize

For every real number γ\gammaγ and natural number nnn, this defines the natural-number floor of the real power nγn^\gammanγ: the greatest natural number at most nγn^\gammanγ, with the natural-number floor returning zero for a negative argument. No restriction is imposed on γ\gammaγ or nnn. In particular, for n=0n=0n=0, the total real-power convention gives value one when γ=0\gamma=0γ=0 and value zero when γ≠0\gamma\ne0γ=0.

QAlgorithms.Papers.Independent.Extend50.P15.costRepresentation

For arbitrary natural numbers d,nCd,n_Cd,nC​ and a complex unitary d×dd\times dd×d matrix UUU of determinant 111, this defines the matrix

KU=U⊗nC⊗U‾K_U=U^{\otimes n_C}\otimes\overline UKU​=U⊗nC​⊗U

on C[d]nC×[d]\mathbb C^{[d]^{n_C}\times[d]}C[d]nC​×[d], where [d]={0,…,d−1}[d]=\{0,\ldots,d-1\}[d]={0,…,d−1} and U‾\overline UU means entrywise complex conjugation. Explicitly,

(KU)(x,a),(y,b)=(∏j=0nC−1Uxj,yj)Ua,b‾.(K_U)_{(x,a),(y,b)} =\left(\prod_{j=0}^{n_C-1}U_{x_j,y_j}\right)\overline{U_{a,b}}.(KU​)(x,a),(y,b)​=(j=0∏nC​−1​Uxj​,yj​​)Ua,b​​.

The definition includes nC=0n_C=0nC​=0, when the product equals 111 and the matrix identifies with U‾\overline UU, and d=0d=0d=0, when its coordinate index set is empty.

QAlgorithms.Papers.Independent.Extend50.P15.covariantError

For natural numbers d,nd,nd,n, write H=({0,…,d−1})nH=(\{0,\ldots,d-1\})^nH=({0,…,d−1})n and F=({none}⊔{some(i):0≤i<d})nF=(\{\mathrm{none}\}\sqcup\{\mathrm{some}(i):0\le i<d\})^nF=({none}⊔{some(i):0≤i<d})n. A code consists of an activity mask a:{0,…,n−1}→{false,true}a:\{0,\ldots,n-1\}\to\{\mathrm{false},\mathrm{true}\}a:{0,…,n−1}→{false,true}, an encoder E\mathcal EE from complex d×dd\times dd×d matrices to matrices on HHH, and a decoder D\mathcal DD from matrices on FFF to complex d×dd\times dd×d matrices. Both maps have finite Kraus representations Φ(X)=∑jKjXKj†\Phi(X)=\sum_j K_jXK_j^\daggerΦ(X)=∑j​Kj​XKj†​ with ∑jKj†Kj=I\sum_jK_j^\dagger K_j=I∑j​Kj†​Kj​=I, and the encoder satisfies E(UXU†)=TUE(X)TU†\mathcal E(UXU^\dagger)=T_U\mathcal E(X)T_U^\daggerE(UXU†)=TU​E(X)TU†​ for every U∈SU(d)U\in SU(d)U∈SU(d) and every XXX, where

(TU)xy=∏j=0n−1{Uxjyj,aj=true,1xj=yj,aj=false.(T_U)_{xy}=\prod_{j=0}^{n-1} \begin{cases} U_{x_jy_j},&a_j=\mathrm{true},\\ \mathbf1_{x_j=y_j},&a_j=\mathrm{false}. \end{cases}(TU​)xy​=j=0∏n−1​{Uxj​yj​​,1xj​=yj​​,​aj​=true,aj​=false.​

For any function N\mathcal NN from matrices on HHH to matrices on FFF, with no channel assumption on N\mathcal NN, the defined error is

sup⁡U∈SU(d)sup⁡k∈N, k>0ρ⪰0, tr⁡ρ=112∥(id⁡k⊗[D∘N∘Ad⁡TU∘E])(ρ)−(id⁡k⊗Ad⁡U)(ρ)∥1,\sup_{U\in SU(d)} \sup_{\substack{k\in\mathbb N,\ k>0\\ \rho\succeq0,\ \operatorname{tr}\rho=1}} \frac12\left\| (\operatorname{id}_k\otimes[\mathcal D\circ\mathcal N\circ\operatorname{Ad}_{T_U}\circ\mathcal E])(\rho) -(\operatorname{id}_k\otimes\operatorname{Ad}_U)(\rho) \right\|_1,U∈SU(d)sup​k∈N, k>0ρ⪰0, trρ=1​sup​21​∥(idk​⊗[D∘N∘AdTU​​∘E])(ρ)−(idk​⊗AdU​)(ρ)∥1​,

where ρ\rhoρ is indexed by {0,…,k−1}×{0,…,d−1}\{0,\ldots,k-1\}\times\{0,\ldots,d-1\}{0,…,k−1}×{0,…,d−1}, Ad⁡V(X)=VXV†\operatorname{Ad}_V(X)=VXV^\daggerAdV​(X)=VXV†, and ∥Z∥1=Re⁡tr⁡Z†Z\|Z\|_1=\operatorname{Re}\operatorname{tr}\sqrt{Z^\dagger Z}∥Z∥1​=RetrZ†Z​. Here the extension id⁡k⊗Φ\operatorname{id}_k\otimes\Phiidk​⊗Φ means applying Φ\PhiΦ separately to each matrix block indexed by the reference coordinates, even when Φ\PhiΦ is merely a function. Both suprema are real suprema, using the real-valued convention of returning 000 for an empty or unbounded-above set. No positivity of ddd or nnn is imposed separately; the code’s fields must still exist, and products over zero coordinates equal 111.

QAlgorithms.Papers.Independent.Extend50.P15.differenceIndices

For arbitrary natural numbers d,n0d,n_0d,n0​, this defines the finite set

{x:{0,…,d−1}→{0,…,2n0}:∑i=0d−1(x(i)−n0)=0},\left\{ x:\{0,\ldots,d-1\}\to\{0,\ldots,2n_0\}: \sum_{i=0}^{d-1}\bigl(x(i)-n_0\bigr)=0 \right\},{x:{0,…,d−1}→{0,…,2n0​}:i=0∑d−1​(x(i)−n0​)=0},

where each subtraction and the sum are taken in the integers. Thus the coordinates encode shifts in [−n0,n0][-n_0,n_0][−n0​,n0​] whose sum is zero. The constant function x(i)=n0x(i)=n_0x(i)=n0​ is included; when d=0d=0d=0, the set contains the unique empty function, and when n0=0n_0=0n0​=0, it contains only the zero function.

QAlgorithms.Papers.Independent.Extend50.P15.entanglementError

For a natural number ddd, a supplied hypothesis d>0d>0d>0, and arbitrary maps A,BA,BA,B from complex d×dd\times dd×d matrices to themselves, define JΦJ_\PhiJΦ​, indexed by pairs of indices below ddd, by

(JΦ)(a,b),(c,e)=Φ(Eac)b,ed,(J_\Phi)_{(a,b),(c,e)}=\frac{\Phi(E_{ac})_{b,e}}{d},(JΦ​)(a,b),(c,e)​=dΦ(Eac​)b,e​​,

where EacE_{ac}Eac​ has entry 111 at (a,c)(a,c)(a,c) and zero elsewhere. The defined error is

12Re⁡tr⁡ ⁣(cfc⁡ ⁣(⋅,(JA−JB)†(JA−JB))).\frac12\operatorname{Re}\operatorname{tr}\!\left( \operatorname{cfc}\!\left(\sqrt{\cdot},(J_A-J_B)^\dagger(J_A-J_B)\right)\right).21​Retr(cfc(⋅​,(JA​−JB​)†(JA​−JB​))).

The positivity hypothesis on ddd is an argument of the definition but does not occur in this formula; no channel assumption is imposed on AAA or BBB.

QAlgorithms.Papers.Independent.Extend50.P15.erasurePatternProjector

For natural numbers d,nd,nd,n and any subset s⊆{0,…,n−1}s\subseteq\{0,\ldots,n-1\}s⊆{0,…,n−1}, this defines the diagonal matrix PsP_sPs​ on flagged strings F=({none}⊔{some(i):0≤i<d})nF=(\{\mathrm{none}\}\sqcup\{\mathrm{some}(i):0\le i<d\})^nF=({none}⊔{some(i):0≤i<d})n by

(Ps)xy={1,x=y and, for every j, xj=none ⟺ j∈s,0,otherwise.(P_s)_{xy}= \begin{cases} 1,&x=y\ \text{and, for every }j,\ x_j=\mathrm{none}\ \Longleftrightarrow\ j\in s,\\ 0,&\text{otherwise}. \end{cases}(Ps​)xy​={1,0,​x=y and, for every j, xj​=none ⟺ j∈s,otherwise.​

Thus it retains precisely the coordinate basis vectors whose none\mathrm{none}none-positions are exactly sss. This includes the empty and full subsets. For n=0n=0n=0, the only subset is empty and the matrix is 111; for d=0d=0d=0, it is 111 if sss is the full coordinate set and 000 otherwise.

QAlgorithms.Papers.Independent.Extend50.P15.flaggedGate

For any natural number ddd and any complex d×dd\times dd×d matrix UUU, this defines a matrix U^\widehat UU indexed by {none}⊔{some(i):0≤i<d}\{\mathrm{none}\}\sqcup\{\mathrm{some}(i):0\le i<d\}{none}⊔{some(i):0≤i<d}, with

U^some(i),some(j)=Uij,U^none,none=1,U^none,some(j)=U^some(i),none=0.\widehat U_{\mathrm{some}(i),\mathrm{some}(j)}=U_{ij}, \qquad \widehat U_{\mathrm{none},\mathrm{none}}=1, \qquad \widehat U_{\mathrm{none},\mathrm{some}(j)} =\widehat U_{\mathrm{some}(i),\mathrm{none}}=0.Usome(i),some(j)​=Uij​,Unone,none​=1,Unone,some(j)​=Usome(i),none​=0.

There is no unitarity hypothesis on UUU. When d=0d=0d=0, this is the 1×11\times11×1 identity matrix on the sole index none\mathrm{none}none.

QAlgorithms.Papers.Independent.Extend50.P15.flaggedTransversal

For natural numbers d,nd,nd,n, any activity mask a:{0,…,n−1}→{false,true}a:\{0,\ldots,n-1\}\to\{\mathrm{false},\mathrm{true}\}a:{0,…,n−1}→{false,true}, and any complex d×dd\times dd×d matrix UUU, this defines a matrix GGG on flagged strings F=({none}⊔{some(i):0≤i<d})nF=(\{\mathrm{none}\}\sqcup\{\mathrm{some}(i):0\le i<d\})^nF=({none}⊔{some(i):0≤i<d})n by

Gxy=∏j=0n−1{U^xjyj,aj=true,1xj=yj,aj=false,G_{xy}=\prod_{j=0}^{n-1} \begin{cases} \widehat U_{x_jy_j},&a_j=\mathrm{true},\\ \mathbf1_{x_j=y_j},&a_j=\mathrm{false}, \end{cases}Gxy​=j=0∏n−1​{Uxj​yj​​,1xj​=yj​​,​aj​=true,aj​=false,​

where U^some(i),some(l)=Uil\widehat U_{\mathrm{some}(i),\mathrm{some}(l)}=U_{il}Usome(i),some(l)​=Uil​, U^none,none=1\widehat U_{\mathrm{none},\mathrm{none}}=1Unone,none​=1, and all mixed none/some\mathrm{none}/\mathrm{some}none/some entries are zero. No unitarity of UUU or nonemptiness of the active coordinates is required. When n=0n=0n=0, the product is empty and the resulting matrix is the identity on the singleton set of empty strings; when d=0d=0d=0, the flagged register likewise contains only the all-none\mathrm{none}none string and the matrix is 111.

QAlgorithms.Papers.Independent.Extend50.P15.iidErasure

For all natural numbers d,nd,nd,n and real numbers ppp, this defines a function from matrices on H=({0,…,d−1})nH=(\{0,\ldots,d-1\})^nH=({0,…,d−1})n to matrices on the flagged register F=({none}⊔{some(i):0≤i<d})nF=(\{\mathrm{none}\}\sqcup\{\mathrm{some}(i):0\le i<d\})^nF=({none}⊔{some(i):0≤i<d})n. With α=max⁡(1−p,0)\alpha=\max(1-p,0)α=max(1−p,0) and β=max⁡(p,0)\beta=\max(p,0)β=max(p,0), its action on any matrix XXX is

Np(X)uv=∑x,y∈HXxy∏j=0n−1(α 1uj=some(xj), vj=some(yj)+β 1xj=yj, uj=none, vj=none).\mathcal N_p(X)_{uv} =\sum_{x,y\in H}X_{xy} \prod_{j=0}^{n-1} \left( \alpha\,\mathbf1_{u_j=\mathrm{some}(x_j),\,v_j=\mathrm{some}(y_j)} +\beta\,\mathbf1_{x_j=y_j,\,u_j=\mathrm{none},\,v_j=\mathrm{none}} \right).Np​(X)uv​=x,y∈H∑​Xxy​j=0∏n−1​(α1uj​=some(xj​),vj​=some(yj​)​+β1xj​=yj​,uj​=none,vj​=none​).

Thus it applies at every coordinate the Kraus map whose non-erasure coefficient is (1−p)2(\sqrt{1-p})^2(1−p​)2 and whose erasure coefficient is (p)2(\sqrt p)^2(p​)2. No assumption p∈[0,1]p\in[0,1]p∈[0,1] is imposed, so the definition does not itself assert that this is a channel for every ppp. When n=0n=0n=0, the product is 111 and the map preserves scalar matrices; when d=0<nd=0<nd=0<n, the input index set is empty and the output is zero.

QAlgorithms.Papers.Independent.Extend50.P15.indexedDifference

For arbitrary natural numbers d,n0d,n_0d,n0​ and any function x:{0,…,d−1}→{0,…,2n0}x:\{0,\ldots,d-1\}\to\{0,\ldots,2n_0\}x:{0,…,d−1}→{0,…,2n0​}, this defines the integer-valued function

Δx(i)=x(i)−n0(0≤i<d).\Delta_x(i)=x(i)-n_0 \qquad(0\le i<d).Δx​(i)=x(i)−n0​(0≤i<d).

The subtraction takes place in the integers, so every coordinate lies between −n0-n_0−n0​ and n0n_0n0​, inclusively. If d=0d=0d=0, this is the unique function on the empty set; if n0=0n_0=0n0​=0, all coordinates are zero.

QAlgorithms.Papers.Independent.Extend50.P15.interiorShapes

For natural numbers d,m,n0d,m,n_0d,m,n0​, a finite set LLL of Young diagrams having exactly mmm cells and at most ddd rows, and an arbitrary real-valued function qqq on all such diagrams, this defines the subset

{λ∈L: q(λ)>0 and ∣λi−λj∣>3n0 for every distinct i,j∈{0,…,d−1}},\left\{\lambda\in L:\ q(\lambda)>0\ \text{and}\ |\lambda_i-\lambda_j|>3n_0 \text{ for every distinct }i,j\in\{0,\ldots,d-1\}\right\},{λ∈L: q(λ)>0 and ∣λi​−λj​∣>3n0​ for every distinct i,j∈{0,…,d−1}},

where λi\lambda_iλi​ is the length of row iii, with absent rows having length zero. The row-length difference is taken in the integers. No normalization or nonnegativity assumption is imposed on qqq outside the strict positivity test for retained diagrams. When d=0d=0d=0 or d=1d=1d=1, the condition on distinct rows is vacuous; when LLL is empty, the resulting set is empty.

QAlgorithms.Papers.Independent.Extend50.P15.localErasure

For every natural number ddd and real number ppp, this defines the function on arbitrary complex d×dd\times dd×d matrices

Lp(X)=KnoneXKnone†+∑a=0d−1Ksome(a)XKsome(a)†,\mathcal L_p(X)=K_{\mathrm{none}}XK_{\mathrm{none}}^\dagger+ \sum_{a=0}^{d-1}K_{\mathrm{some}(a)}XK_{\mathrm{some}(a)}^\dagger,Lp​(X)=Knone​XKnone†​+a=0∑d−1​Ksome(a)​XKsome(a)†​,

where KnoneK_{\mathrm{none}}Knone​ sends the basis vector xxx to 1−p some(x)\sqrt{1-p}\,\mathrm{some}(x)1−p​some(x), and Ksome(a)K_{\mathrm{some}(a)}Ksome(a)​ sends the basis vector aaa to p none\sqrt p\,\mathrm{none}p​none and all other basis vectors to zero. Equivalently, its entries are

Lp(X)some(i),some(j)=max⁡(1−p,0)Xij,Lp(X)none,none=max⁡(p,0)tr⁡X,\mathcal L_p(X)_{\mathrm{some}(i),\mathrm{some}(j)} =\max(1-p,0)X_{ij}, \qquad \mathcal L_p(X)_{\mathrm{none},\mathrm{none}} =\max(p,0)\operatorname{tr}X,Lp​(X)some(i),some(j)​=max(1−p,0)Xij​,Lp​(X)none,none​=max(p,0)trX,

with all mixed none/some\mathrm{none}/\mathrm{some}none/some entries zero. No restriction on ppp, normalization of XXX, or channel property is asserted here. For d=0d=0d=0, the output is the zero matrix on the singleton index set {none}\{\mathrm{none}\}{none}.

QAlgorithms.Papers.Independent.Extend50.P15.localErasureKraus

For every natural number ddd and real number ppp, this defines matrices KℓK_\ellKℓ​, with columns indexed by x∈{0,…,d−1}x\in\{0,\ldots,d-1\}x∈{0,…,d−1} and rows and labels indexed by {none}⊔{some(i):0≤i<d}\{\mathrm{none}\}\sqcup\{\mathrm{some}(i):0\le i<d\}{none}⊔{some(i):0≤i<d}, by

(Knone)yx={1−p,y=some(x),0,otherwise,(Ksome(a))yx={p,y=none and x=a,0,otherwise.(K_{\mathrm{none}})_{yx} =\begin{cases}\sqrt{1-p},&y=\mathrm{some}(x),\\0,&\text{otherwise},\end{cases} \qquad (K_{\mathrm{some}(a)})_{yx} =\begin{cases}\sqrt p,&y=\mathrm{none}\ \text{and }x=a,\\0,&\text{otherwise}.\end{cases}(Knone​)yx​={1−p​,0,​y=some(x),otherwise,​(Ksome(a)​)yx​={p​,0,​y=none and x=a,otherwise.​

The real square roots are regarded as complex entries. There is no assumption 0≤p≤10\le p\le10≤p≤1; the real square root of a negative number is 000. When d=0d=0d=0, only the label none\mathrm{none}none remains, and its matrix has no columns.

QAlgorithms.Papers.Independent.Extend50.P15.maskedTransversalMatrix

For natural numbers d,nd,nd,n, a Boolean function active\mathrm{active}active on {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1}, and any complex d×dd\times dd×d matrix UUU, this definition gives a matrix indexed by functions x,y:{0,…,n−1}→{0,…,d−1}x,y:\{0,\ldots,n-1\}\to\{0,\ldots,d-1\}x,y:{0,…,n−1}→{0,…,d−1}, with entries

Tactive(U)x,y=∏j=0n−1{Uxj,yj,active(j)=true,1,active(j)=false and xj=yj,0,active(j)=false and xj≠yj.T_{\mathrm{active}}(U)_{x,y} =\prod_{j=0}^{n-1} \begin{cases} U_{x_j,y_j},&\mathrm{active}(j)=\mathrm{true},\\ 1,&\mathrm{active}(j)=\mathrm{false}\ \text{and }x_j=y_j,\\ 0,&\mathrm{active}(j)=\mathrm{false}\ \text{and }x_j\ne y_j. \end{cases}Tactive​(U)x,y​=j=0∏n−1​⎩⎨⎧​Uxj​,yj​​,1,0,​active(j)=true,active(j)=false and xj​=yj​,active(j)=false and xj​=yj​.​

No unitarity assumption is made on UUU. For n=0n=0n=0, the index set is a singleton and the empty product gives the 1×11\times11×1 matrix [1][1][1]; for d=0<nd=0<nd=0<n, the index set is empty.

QAlgorithms.Papers.Independent.Extend50.P15.minimumInteriorOverlap

For natural numbers d,m,n0d,m,n_0d,m,n0​, a finite set LLL of Young diagrams with mmm cells and at most ddd rows, and an arbitrary real function qqq on those diagrams, let III consist of the λ∈L\lambda\in Lλ∈L such that q(λ)>0q(\lambda)>0q(λ)>0 and ∣λi−λj∣>3n0|\lambda_i-\lambda_j|>3n_0∣λi​−λj​∣>3n0​ for all distinct row indices i,j<di,j<di,j<d, where missing rows have length zero. This defines the real number

min⁡δ∈Zd−n0≤δi≤n0 ∀i∑iδi=0 ∑λ∈Iq(λ)(∑ν∈Lνi=λi+δi ∀i<dq(ν)).\min_{\substack{\delta\in\mathbb Z^d\\ -n_0\le\delta_i\le n_0\ \forall i\\ \sum_i\delta_i=0}} \ \sum_{\lambda\in I} \sqrt{q(\lambda) \left( \sum_{\substack{\nu\in L\\ \nu_i=\lambda_i+\delta_i\ \forall i<d}} q(\nu) \right)}.δ∈Zd−n0​≤δi​≤n0​ ∀i∑i​δi​=0​min​ λ∈I∑​q(λ)​ν∈Lνi​=λi​+δi​ ∀i<d​∑​q(ν)​​.

The minimum is over a finite nonempty set, since it contains the zero vector; in the code, δi=xi−n0\delta_i=x_i-n_0δi​=xi​−n0​ with xi∈{0,…,2n0}x_i\in\{0,\ldots,2n_0\}xi​∈{0,…,2n0​}. No sign or normalization assumptions are made on qqq, and the real square root is the total function that returns zero on negative inputs. If III is empty, the value is zero. The definition includes d=0d=0d=0, when the unique shift is the empty vector and the row conditions are vacuous, and n0=0n_0=0n0​=0, when only the zero shift is available.

QAlgorithms.Papers.Independent.Extend50.P15.referenceCostChannel

For arbitrary natural numbers d,m,nCd,m,n_Cd,m,nC​, any measure μ\muμ on the Borel measurable space SU(d)SU(d)SU(d), a finite set LLL of Young diagrams with mmm cells and first-column length at most ddd, and any real-valued function qqq on all such diagrams, this defines a function on complex matrices indexed by [d]nC×[d][d]^{n_C}\times[d][d]nC​×[d] by

X⟼∫SU(d)∣∑λ∈Lq(λ) χλ(U−1)∣2KUXKU† dμ(U),(KU)(x,a),(y,b)=(∏j=0nC−1Uxj,yj)Ua,b‾.X\longmapsto \int_{SU(d)} \left|\sum_{\lambda\in L}\sqrt{q(\lambda)}\,\chi_\lambda(U^{-1})\right|^2 K_U X K_U^\dagger\,d\mu(U), \qquad (K_U)_{(x,a),(y,b)} =\left(\prod_{j=0}^{n_C-1}U_{x_j,y_j}\right)\overline{U_{a,b}}.X⟼∫SU(d)​​λ∈L∑​q(λ)​χλ​(U−1)​2KU​XKU†​dμ(U),(KU​)(x,a),(y,b)​=(j=0∏nC​−1​Uxj​,yj​​)Ua,b​​.

Here [d]={0,…,d−1}[d]=\{0,\ldots,d-1\}[d]={0,…,d−1}, U†U^\daggerU† denotes conjugate transpose, and SU(d)SU(d)SU(d) consists of unitary matrices of determinant 111. For each λ\lambdaλ, use the fixed numbering of its cells, form Yλ=∑a,bsgn⁡(b)TabY_\lambda=\sum_{a,b}\operatorname{sgn}(b)T_{ab}Yλ​=∑a,b​sgn(b)Tab​, summing over row-preserving aaa and column-preserving bbb, where (Tπ)y,x=1(T_\pi)_{y,x}=1(Tπ​)y,x​=1 exactly when y=x∘π−1y=x\circ\pi^{-1}y=x∘π−1; then χλ(V)\chi_\lambda(V)χλ​(V) is the trace on range⁡(Yλ)\operatorname{range}(Y_\lambda)range(Yλ​) of the map v↦Prange⁡(Yλ)(V⊗mv)v\mapsto P_{\operatorname{range}(Y_\lambda)}(V^{\otimes m}v)v↦Prange(Yλ​)​(V⊗mv), with orthogonal projection PPP and tensor entries (V⊗m)y,x=∏jVyj,xj(V^{\otimes m})_{y,x}=\prod_jV_{y_j,x_j}(V⊗m)y,x​=∏j​Vyj​,xj​​. No normalization or invariance of μ\muμ, and no positivity or normalization of qqq, is assumed; real square roots of negative numbers are zero. The integral is the Bochner integral, assigned zero when the integrand is not integrable. Empty products equal 111, and L=∅L=\varnothingL=∅ gives the zero function.

QAlgorithms.Papers.Independent.Extend50.P15.referenceOrbitSpan

For arbitrary natural numbers d,rd,rd,r, let [d]={0,…,d−1}[d]=\{0,\ldots,d-1\}[d]={0,…,d−1} and let Hr=C[d]rH_r=\mathbb C^{[d]^r}Hr​=C[d]r, where [d]r[d]^r[d]r is the set of functions from {0,…,r−1}\{0,\ldots,r-1\}{0,…,r−1} to [d][d][d]. For any vector ψ∈Hr⊗Hr\psi\in H_r\otimes H_rψ∈Hr​⊗Hr​, this defines the complex linear subspace

span⁡C{(U⊗r⊗I)ψ:U∈SU(d)}.\operatorname{span}_{\mathbb C} \bigl\{(U^{\otimes r}\otimes I)\psi:U\in SU(d)\bigr\}.spanC​{(U⊗r⊗I)ψ:U∈SU(d)}.

Here SU(d)SU(d)SU(d) consists of complex unitary d×dd\times dd×d matrices with determinant 111, and the vector associated with UUU has coordinates

((U⊗r⊗I)ψ)(x,y)=∑a∈[d]r(∏j=0r−1Uxj,aj)ψ(a,y).\bigl((U^{\otimes r}\otimes I)\psi\bigr)(x,y) =\sum_{a\in[d]^r}\left(\prod_{j=0}^{r-1}U_{x_j,a_j}\right)\psi(a,y).((U⊗r⊗I)ψ)(x,y)=a∈[d]r∑​(j=0∏r−1​Uxj​,aj​​)ψ(a,y).

No normalization of ψ\psiψ is required. The definition includes d=0d=0d=0 and r=0r=0r=0; empty products equal 111, and when r=0r=0r=0 the subspace is simply the span of ψ\psiψ.

QAlgorithms.Papers.Independent.Extend50.P15.schurCharacter

For arbitrary natural numbers d,md,md,m, a Young diagram λ\lambdaλ with exactly mmm cells and first-column length at most ddd, and a complex unitary d×dd\times dd×d matrix UUU of determinant 111, this defines a complex number as follows. Use the fixed bijection selected in the definitions between the cells of λ\lambdaλ and {0,…,m−1}\{0,\ldots,m-1\}{0,…,m−1}. Let RλR_\lambdaRλ​ be the permutations preserving each cell’s row and CλC_\lambdaCλ​ those preserving each cell’s column under this numbering. On H=C[d]mH=\mathbb C^{[d]^m}H=C[d]m, define TπT_\piTπ​ by (Tπ)y,x=1(T_\pi)_{y,x}=1(Tπ​)y,x​=1 if y=x∘π−1y=x\circ\pi^{-1}y=x∘π−1, and 000 otherwise, and set

Yλ=∑a∈Rλ∑b∈Cλsgn⁡(b) Tab,Vλ=range⁡(Yλ).Y_\lambda=\sum_{a\in R_\lambda}\sum_{b\in C_\lambda}\operatorname{sgn}(b)\,T_{ab}, \qquad V_\lambda=\operatorname{range}(Y_\lambda).Yλ​=a∈Rλ​∑​b∈Cλ​∑​sgn(b)Tab​,Vλ​=range(Yλ​).

Writing PVλP_{V_\lambda}PVλ​​ for orthogonal projection onto VλV_\lambdaVλ​, the defined number is

χλ(U)=tr⁡Vλ(v⟼PVλ(U⊗mv)),(U⊗m)y,x=∏j=0m−1Uyj,xj.\chi_\lambda(U) =\operatorname{tr}_{V_\lambda} \left(v\longmapsto P_{V_\lambda}(U^{\otimes m}v)\right), \qquad (U^{\otimes m})_{y,x}=\prod_{j=0}^{m-1}U_{y_j,x_j}.χλ​(U)=trVλ​​(v⟼PVλ​​(U⊗mv)),(U⊗m)y,x​=j=0∏m−1​Uyj​,xj​​.

Zero values of ddd or mmm are included whenever such a diagram exists, with empty products equal to 111.

QAlgorithms.Papers.Independent.Extend50.P15.schurWeylConstant

For every natural number ddd, this defines the real number

d d(d−1)/2∏i=0d−1i!.\frac{d^{\,d(d-1)/2}}{\displaystyle\prod_{i=0}^{d-1}i!}.i=0∏d−1​i!dd(d−1)/2​.

The exponent is computed in the natural numbers: subtraction is truncated at zero and division by two is natural-number division; d(d−1)d(d-1)d(d−1) is even, so the exponent is an integer. Factorials and the base are converted to real numbers for the displayed expression. For d=0d=0d=0, the empty denominator product and 000^000 both equal one, so the value is one.

QAlgorithms.Papers.Independent.Extend50.P15.schurWeylMass

For natural numbers d,sd,sd,s and a Young diagram λ\lambdaλ having exactly sss cells and at most ddd rows, write λi\lambda_iλi​ for its row lengths, using zero for absent rows, and put hi=λi+(d−1−i)h_i=\lambda_i+(d-1-i)hi​=λi​+(d−1−i) for 0≤i<d0\le i<d0≤i<d. This defines the real number

s!∏0≤i<j<d(hi−hj)2ds(∏i=0d−1hi!)(∏i=0d−1i!).\frac{s!\displaystyle\prod_{0\le i<j<d}(h_i-h_j)^2} {d^s\displaystyle\left(\prod_{i=0}^{d-1}h_i!\right) \left(\prod_{i=0}^{d-1}i!\right)}.ds(i=0∏d−1​hi​!)(i=0∏d−1​i!)s!0≤i<j<d∏​(hi​−hj​)2​.

Factorials and offsets are computed in the natural numbers and then converted to real numbers; the differences hi−hjh_i-h_jhi​−hj​ in the numerator are real differences. Empty products equal one, and division uses the total real division operation, under which division by zero returns zero. The definition has no positivity assumptions on ddd or sss; when d=s=0d=s=0d=s=0, its value is one, while no diagram satisfying the stated conditions exists when d=0<sd=0<sd=0<s.

QAlgorithms.Papers.Independent.Extend50.P15.schurWeylShiftedRow

For natural numbers d,sd,sd,s, a Young diagram λ\lambdaλ with exactly sss cells and at most ddd rows, and an index i∈{0,…,d−1}i\in\{0,\ldots,d-1\}i∈{0,…,d−1}, this defines the natural number

λi+(d−1−i),\lambda_i+(d-1-i),λi​+(d−1−i),

where λi\lambda_iλi​ is the length of row iii, or zero if that row is absent. The subtractions in the definition are natural-number subtraction, truncated at zero, although the bound i<di<di<d makes the displayed offset nonnegative. When d=0d=0d=0, there is no possible index iii.

QAlgorithms.Papers.Independent.Extend50.P15.shiftedMass

For arbitrary natural numbers d,md,md,m, a finite set LLL of Young diagrams with exactly mmm cells and first-column length at most ddd, any real-valued function qqq on all such diagrams, one such diagram λ\lambdaλ, and any integer-valued function δ:{0,…,d−1}→Z\delta:\{0,\ldots,d-1\}\to\mathbb Zδ:{0,…,d−1}→Z, this defines

∑ν∈LrowLen⁡i(ν)=rowLen⁡i(λ)+δi for every 0≤i<dq(ν).\sum_{\substack{\nu\in L\\ \operatorname{rowLen}_i(\nu)=\operatorname{rowLen}_i(\lambda)+\delta_i \ \text{for every }0\le i<d}} q(\nu).ν∈LrowLeni​(ν)=rowLeni​(λ)+δi​ for every 0≤i<d​∑​q(ν).

Row lengths are regarded as integers in these equalities, so subtraction is not truncated and a negative prescribed row length admits no matching diagram. The diagram λ\lambdaλ need not belong to LLL, the shifts have no assumed bound or zero-sum condition, and qqq has no positivity or normalization requirement. If no diagram matches, including when LLL is empty, the value is zero; when d=0d=0d=0, the row-equality condition is vacuous.

QAlgorithms.Papers.Independent.Extend50.P15.sineCoefficient

For every natural number MMM, including M=0M=0M=0, and every integer kkk, this defines the real number

cM(k)=2M+1sin⁡2 ⁣(π(2k+1)2(M+1)).c_M(k)=\frac{2}{M+1} \sin^2\!\left(\frac{\pi(2k+1)}{2(M+1)}\right).cM​(k)=M+12​sin2(2(M+1)π(2k+1)​).

The integer kkk is unrestricted, including negative integers and integers outside {0,…,M}\{0,\ldots,M\}{0,…,M}; the denominator is always positive.

QAlgorithms.Papers.Independent.Extend50.P15.sineOverlapError

For arbitrary natural numbers n0,Mn_0,Mn0​,M and any integer δ\deltaδ, this defines

En0,M(δ)=1−∑k∈N2n0≤k≤max⁡(M−2n0,0)cM(k)cM(k+δ),cM(j)=2M+1sin⁡2 ⁣(π(2j+1)2(M+1))(j∈Z).E_{n_0,M}(\delta) =1-\sum_{\substack{k\in\mathbb N\\2n_0\le k\le\max(M-2n_0,0)}} \sqrt{c_M(k)c_M(k+\delta)}, \qquad c_M(j)=\frac{2}{M+1} \sin^2\!\left(\frac{\pi(2j+1)}{2(M+1)}\right) \quad(j\in\mathbb Z).En0​,M​(δ)=1−k∈N2n0​≤k≤max(M−2n0​,0)​∑​cM​(k)cM​(k+δ)​,cM​(j)=M+12​sin2(2(M+1)π(2j+1)​)(j∈Z).

The upper endpoint uses natural-number subtraction, so it is truncated at zero. The sum is zero when the interval is empty, in which case En0,M(δ)=1E_{n_0,M}(\delta)=1En0​,M​(δ)=1. The shifted index k+δk+\deltak+δ is an integer and is not restricted to the summation interval.

QAlgorithms.Papers.Independent.Extend50.P15.specialUnitaryMeasurable

For every natural number ddd, the measurable space assigned to the group SU(d)\mathrm{SU}(d)SU(d) of complex d×dd\times dd×d special unitary matrices is its Borel measurable space, generated by the open sets of its topology. This includes d=0d=0d=0, where the group consists of the unique empty matrix.

QAlgorithms.Papers.Independent.Extend50.P15.stabilizedHalfDiamondError

Let i,oi,oi,o be finite types, with decidable equality on ooo, and let A,BA,BA,B be arbitrary maps from complex i×ii\times ii×i matrices to complex o×oo\times oo×o matrices. Define

N(X)=Re⁡tr⁡ ⁣(cfc⁡(⋅,X†X)),Φ~k(ρ)(r,a),(s,b)=Φ ⁣((ρ(r,u),(s,v))u,v∈i)a,b.N(X)=\operatorname{Re}\operatorname{tr}\!\left(\operatorname{cfc}(\sqrt{\cdot},X^\dagger X)\right), \qquad \widetilde{\Phi}_k(\rho)_{(r,a),(s,b)} =\Phi\!\left((\rho_{(r,u),(s,v)})_{u,v\in i}\right)_{a,b}.N(X)=Retr(cfc(⋅​,X†X)),Φk​(ρ)(r,a),(s,b)​=Φ((ρ(r,u),(s,v)​)u,v∈i​)a,b​.

The defined quantity is the real supremum of 12N(A~k(ρ)−B~k(ρ))\tfrac12N(\widetilde A_k(\rho)-\widetilde B_k(\rho))21​N(Ak​(ρ)−Bk​(ρ)) over every integer k>0k>0k>0 and every positive semidefinite matrix ρ\rhoρ indexed by {0,…,k−1}×i\{0,\ldots,k-1\}\times i{0,…,k−1}×i with trace 111. No channel or linearity assumption is imposed on the maps. Empty types are allowed; if iii is empty, the set is empty and its real supremum is 000. The real supremum operation is also total, taking value 000 for a set unbounded above.

QAlgorithms.Papers.Independent.Extend50.P15.subsetErasure

For natural numbers d,nd,nd,n and any subset s⊆{0,…,n−1}s\subseteq\{0,\ldots,n-1\}s⊆{0,…,n−1}, this defines a function from complex matrices on H=({0,…,d−1})nH=(\{0,\ldots,d-1\})^nH=({0,…,d−1})n to matrices on the flagged register F=({none}⊔{some(i):0≤i<d})nF=(\{\mathrm{none}\}\sqcup\{\mathrm{some}(i):0\le i<d\})^nF=({none}⊔{some(i):0≤i<d})n, by applying at coordinate jjj the local Kraus map with parameter 111 if j∈sj\in sj∈s and parameter 000 otherwise. Explicitly, for every matrix XXX,

Es(X)=∑x,y∈HXxy(∏j∈s1xj=yj)∣fs(x)⟩⟨fs(y)∣,fs(x)j={none,j∈s,some(xj),j∉s.\mathcal E_s(X)= \sum_{x,y\in H}X_{xy} \left(\prod_{j\in s}\mathbf1_{x_j=y_j}\right) |f_s(x)\rangle\langle f_s(y)|, \qquad f_s(x)_j= \begin{cases} \mathrm{none},&j\in s,\\ \mathrm{some}(x_j),&j\notin s. \end{cases}Es​(X)=x,y∈H∑​Xxy​(j∈s∏​1xj​=yj​​)∣fs​(x)⟩⟨fs​(y)∣,fs​(x)j​={none,some(xj​),​j∈s,j∈/s.​

The ket notation denotes the corresponding coordinate matrix units. The empty subset erases no coordinates, while the full subset produces tr⁡(X)\operatorname{tr}(X)tr(X) times the matrix unit at the all-none\mathrm{none}none string. When n=0n=0n=0, both register index sets are singletons and the map preserves the scalar matrix; when d=0<nd=0<nd=0<n, the input index set is empty and the output is zero.

QAlgorithms.Papers.Independent.Extend50.P15.uniformSubsetErasure

For all natural numbers d,n,kd,n,kd,n,k, this defines the function

Un,k(X)=(nk)−1∑s⊆{0,…,n−1}∣s∣=kEs(X)\mathcal U_{n,k}(X)=\binom nk^{-1} \sum_{\substack{s\subseteq\{0,\ldots,n-1\}\\|s|=k}}\mathcal E_s(X)Un,k​(X)=(kn​)−1s⊆{0,…,n−1}∣s∣=k​∑​Es​(X)

from matrices indexed by H=({0,…,d−1})nH=(\{0,\ldots,d-1\})^nH=({0,…,d−1})n to matrices indexed by the flagged strings F=({none}⊔{some(i):0≤i<d})nF=(\{\mathrm{none}\}\sqcup\{\mathrm{some}(i):0\le i<d\})^nF=({none}⊔{some(i):0≤i<d})n. Here Es\mathcal E_sEs​ is specified on matrix units by

Es(∣x⟩⟨y∣)=(∏j∈s1xj=yj)∣fs(x)⟩⟨fs(y)∣,\mathcal E_s(|x\rangle\langle y|) =\left(\prod_{j\in s}\mathbf1_{x_j=y_j}\right) |f_s(x)\rangle\langle f_s(y)|,Es​(∣x⟩⟨y∣)=(j∈s∏​1xj​=yj​​)∣fs​(x)⟩⟨fs​(y)∣,

where fs(x)f_s(x)fs​(x) replaces coordinates in sss by none\mathrm{none}none and replaces every other coordinate xjx_jxj​ by some(xj)\mathrm{some}(x_j)some(xj​); the map is extended linearly to arbitrary matrices. The reciprocal is taken in R\mathbb RR and then regarded as a complex scalar. In particular, if k>nk>nk>n, the sum is empty and (nk)=0\binom nk=0(kn​)=0, whose reciprocal is defined to be 000, so the resulting map is zero. If k=0k=0k=0, no coordinate is erased; if k=nk=nk=n, every coordinate is erased. These definitions also include n=0n=0n=0 and d=0d=0d=0.

QAlgorithms.Papers.Independent.Extend50.P15.worstFidelity

Let i,oi,oi,o be finite types, with decidable equality on ooo, and let A,BA,BA,B be arbitrary maps from complex matrices indexed by i×ii\times ii×i to complex matrices indexed by o×oo\times oo×o. Write S(X)=cfc⁡(⋅,X)S(X)=\operatorname{cfc}(\sqrt{\cdot},X)S(X)=cfc(⋅​,X), using the total continuous functional calculus, and set F(X,Y)=(Re⁡tr⁡S(S(X)YS(X)))2F(X,Y)=(\operatorname{Re}\operatorname{tr}S(S(X)YS(X)))^2F(X,Y)=(RetrS(S(X)YS(X)))2. For a positive integer kkk, define the reference extension of either map Φ\PhiΦ by

Φ~k(ρ)(r,a),(s,b)=Φ ⁣((ρ(r,u),(s,v))u,v∈i)a,b.\widetilde{\Phi}_k(\rho)_{(r,a),(s,b)} =\Phi\!\left((\rho_{(r,u),(s,v)})_{u,v\in i}\right)_{a,b}.Φk​(ρ)(r,a),(s,b)​=Φ((ρ(r,u),(s,v)​)u,v∈i​)a,b​.

The defined quantity is the real infimum of F(A~k(ρ),B~k(ρ))F(\widetilde A_k(\rho),\widetilde B_k(\rho))F(Ak​(ρ),Bk​(ρ)) over all integers k>0k>0k>0 and all positive semidefinite matrices ρ\rhoρ indexed by {0,…,k−1}×i\{0,\ldots,k-1\}\times i{0,…,k−1}×i with tr⁡ρ=1\operatorname{tr}\rho=1trρ=1. No channel, linearity, or positivity assumption is imposed on AAA or BBB. The types may be empty; if iii is empty, no such ρ\rhoρ exists and the real infimum of the empty set is defined to be 000.

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