Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for Properties of Conjugate Channels with Applications to Additivity and Multiplicativity

Definition
QAlgorithms_Papers_Independent_Gap48_P36

by Goku · Oct 22, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

The objects the formalized statements of Properties of Conjugate Channels with Applications to Additivity and Multiplicativity (arXiv:quant-ph/0509126) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • krausNumber: PDF pp.5,30: minimum size of a normalized Kraus representation. On a nonchannel the natural infimum may be zero; results require IsChannel.
  • choiEigenvalue: PDF pp.29–30: eigenvalues of the computed normalized Choi matrix. The non-Hermitian default is never used for channels.
  • choiEigenvector: PDF pp.29–30: an orthonormal spectral basis, with its source tensor order.
  • ChoiSupport: PDF pp.29–30: retain only nonzero Choi eigenvalues, including multiplicity.
  • spectralKraus: PDF p.29, (89): spectral Kraus family with the essential sqrt(d lambda). Neither Kraus normalization nor minimality is built into this definition.
  • constrainedHolevo: PDF p.9: constrained Holevo quantity, with the input state fixed.
  • entanglementFormation: PDF p.9, (18): the finite pure-state convex roof of marginal entropy.
  • UnitaryBasis: PDF p.13, (30): a complete orthogonal unitary basis, including its identity label. No orthogonality assumption is imposed on vectors in the Hadamard constructions.
  • PhaseClosed: PDF p.15, (35): closure up to a scalar phase; no raw matrix group is assumed.
  • weightedKraus: PDF p.14, (32): canonical weighted unitary Kraus family.
  • ProbabilityWeights: PDF p.14: nonnegative probabilities, allowing zero weights.
  • randomUnitary: PDF p.14, (32): the channel is computed from weights and basis matrices.
  • randomComplement: PDF p.14, (33): canonical complement, retaining every Kraus label.
  • noisyComplement: PDF pp.14,19: canonical noisy complement, with Kraus matrices T_m/d.
  • pureNoisyImage: PDF p.14: the image of normalized pure inputs, excluding the zero vector.
  • weightMatrix: PDF p.14: A=diag(a_m), distinct from its positive square root.
  • weightRoot: PDF p.14: positive square root of the diagonal probability matrix.
  • DoublyStochastic: PDF p.20, Theorem 12(d): a real nonnegative matrix with row and column sums one.
  • ImageConditions: PDF pp.19–20: the four necessary conditions, with (c) read as modulus. The source's Hadamard conjugation is entrywise conjugation, hence squared modulus.
  • WeylLabel: PDF p.15: projective qudit labels; raw matrices need not form a group. The accepted Information100.P39.PauliLabel instead encodes N binary qubits.
  • finWeyl: PDF p.15, (36): accepted positive-phase X^j Z^k, reindexed to Fin d. The accepted Information100.P34.weyl has exactly this shift/clock order. This wrapper changes only the coordinate type from ZMod d to Fin d.
  • printedMultiplier: PDF p.15, (39), with the duplicate i in its Fourier exponent removed. Printed: (mk-jn)i2pi i/d. Changed: (mk-jn)2pi i/d, forced by the unitary conjugation (36)-(37) and the Fourier calculation used in (43). The remaining printed phase and Fourier sign do not change the modulus for real a. This expression is used ONLY through its modulus.
  • maxPauliMultiplierSq: PDF p.16: finite supremum of squared Weyl multiplier magnitudes. The accepted Next46.P14.largestMultiplier is an unrelated message-length maximum. The d=1 set is empty, with real supremum zero; the bound still reads 1.
  • pauliTwoBound: PDF p.16: the square-root upper bound (42).
  • basisCoefficient: PDF p.17, (44): complex basis coefficient Tr(T_m^dagger rho), with no extra factor. The accepted Claimed50.P03.coefficient is a normalized real qubit-word coefficient.
  • FlatSupport: PDF p.20: the invariant definition of D-decomposability used in Theorem 13: exactly D nonzero coefficients, all of unit modulus. General block reducibility is not substituted for this predicate.
  • SortedRows: PDF p.22: a genuine permutation of labeled coefficients, ordered row by row.
  • blockWeight: PDF p.22: beta_i is a sum of d weights, not an average.
  • blockBound: PDF p.22, (60): the finite-p bound for the sorted block weights.
  • CosetRows: PDF pp.25–26: rows of the labeled rearrangement are cosets of one subgroup. Tied numerical weights never merge Kraus labels.
  • cyclicNext: PDF p.26: cyclic successor, only used for positive tensor counts.
  • krausLinearizer: PDF p.26, (76): the Kraus linearizer; all tensor indices are retained. This differs from the accepted Support21.P18.theta qubit spin-flip map.
  • leftCycle: PDF p.26: left cyclic shift on tensor basis kets.
  • channelLinearizer: PDF p.26, (77): tensor power of the computed trace dual applied to L_p. The accepted definitions named omega are state vectors or angular matrix sets, not the channel linearization operator (77).
  • qubitLambda: PDF p.31: Bloch multiplier for the axis with nonzero binary Pauli label k.
  • qubitAxis: PDF p.31: Hermitian Pauli axis. The label (1,1) has XZ=-iY, so its Hermitian representative is iXZ. This phase does not change its channel.
  • qubitAxisState: PDF p.31: the two normalized spectral projectors of a nonidentity qubit axis.
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Papers_Independent_Claimed50_P48
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P34
import Definitions.Def_QAlgorithms_Papers_Independent_Dependency50_P45

/-! King–Matsumoto–Nathanson–Ruskai, arXiv:quant-ph/0509126v3.
All page numbers refer to PDF pages. Finite matrices, normalized states and natural
logarithms are used for entropy. The imported Holevo capacity is in bits;
its additivity identity is invariant under this fixed positive unit conversion. Source discrepancies and deferred clauses are in HARD.md.
Compilation is pending the mechanical batch handoff. -/

noncomputable section

namespace QAlgorithms.Papers.Independent.Gap48.P36

open scoped BigOperators Matrix Kronecker ComplexConjugate ComplexOrder ENNReal
open QAlgorithms.Papers.Independent.Claimed50.P48
open QAlgorithms.Papers.Independent.Information100.P67 (receiverChannel complementaryChannel)
open QAlgorithms.Papers.Independent.Information100.P56 (entropy normalizedChoi)
open QAlgorithms.Papers.Independent.Information100.P50 (schattenNorm)
open QAlgorithms.Papers.Independent.Information100.P03 (convexRoof)
open QAlgorithms.Papers.Independent.Dependency50.P45 (holevoCapacity)

attribute [local instance] Classical.propDecidable Classical.decEq

variable {A B C D E K L A2 B2 C2 : Type*}
variable [Fintype A] [DecidableEq A] [Fintype B] [DecidableEq B]
variable [Fintype C] [DecidableEq C] [Fintype D] [DecidableEq D]
variable [Fintype E] [DecidableEq E] [Fintype K] [DecidableEq K]
variable [Fintype L] [DecidableEq L] [Fintype A2] [DecidableEq A2]
variable [Fintype B2] [DecidableEq B2] [Fintype C2] [DecidableEq C2]

/-- PDF pp.5,30: minimum size of a normalized Kraus representation.
On a nonchannel the natural infimum may be zero; results require IsChannel. -/
def krausNumber (Phi : Superop A B) : ℕ :=
  sInf {r | ∃ F : Fin r → Matrix B A ℂ, IsKrausFamily F ∧ Phi = krausApply F}

/-- PDF pp.29–30: eigenvalues of the computed normalized Choi matrix.
The non-Hermitian default is never used for channels. -/
def choiEigenvalue (Phi : Superop A B) (k : A × B) : ℝ :=
  if h : (normalizedChoi Phi).IsHermitian then h.eigenvalues k else 0

/-- PDF pp.29–30: an orthonormal spectral basis, with its source tensor order. -/
def choiEigenvector (Phi : Superop A B) (k : A × B) : EuclideanSpace ℂ (A × B) :=
  if h : (normalizedChoi Phi).IsHermitian then h.eigenvectorBasis k else 0

/-- PDF pp.29–30: retain only nonzero Choi eigenvalues, including multiplicity. -/
abbrev ChoiSupport (Phi : Superop A B) := {k : A × B // choiEigenvalue Phi k ≠ 0}

/-- PDF p.29, (89): spectral Kraus family with the essential sqrt(d lambda).
Neither Kraus normalization nor minimality is built into this definition. -/
def spectralKraus (Phi : Superop A B) : ChoiSupport Phi → Matrix B A ℂ :=
  fun k b a => (Real.sqrt ((Fintype.card A : ℝ) * choiEigenvalue Phi k.val) : ℂ) *
    choiEigenvector Phi k.val (a,b)

/-- PDF p.9: constrained Holevo quantity, with the input state fixed. -/
def constrainedHolevo (Phi : Superop A B) (rho : Matrix A A ℂ) : ℝ :=
  entropy (Phi rho) - hhat Phi rho

/-- PDF p.9, (18): the finite pure-state convex roof of marginal entropy. -/
def entanglementFormation (gamma : Matrix (B × C) (B × C) ℂ) : ℝ :=
  convexRoof (fun psi => entropy (traceRight (pureDensity psi))) gamma

/-- PDF p.13, (30): a complete orthogonal unitary basis, including its identity label.
No orthogonality assumption is imposed on vectors in the Hadamard constructions. -/
structure UnitaryBasis (A K : Type*) [Fintype A] [DecidableEq A] [Fintype K] where
  matrix : K → Matrix A A ℂ
  identityLabel : K
  cardinality : Fintype.card K = Fintype.card A ^ 2
  identity : matrix identityLabel = 1
  unitary : ∀ k, (matrix k)ᴴ * matrix k = 1
  orthogonal : ∀ j k, ((matrix j)ᴴ * matrix k).trace =
    if j = k then (Fintype.card A : ℂ) else 0

/-- PDF p.15, (35): closure up to a scalar phase; no raw matrix group is assumed. -/
def PhaseClosed (T : UnitaryBasis A K) : Prop :=
  ∀ m n, ∃ k : K, ∃ z : ℂ, ‖z‖ = 1 ∧ (T.matrix m)ᴴ * T.matrix n = z • T.matrix k

/-- PDF p.14, (32): canonical weighted unitary Kraus family. -/
def weightedKraus (T : K → Matrix A A ℂ) (a : K → ℝ) : K → Matrix A A ℂ :=
  fun k => (Real.sqrt (a k) : ℂ) • T k

/-- PDF p.14: nonnegative probabilities, allowing zero weights. -/
def ProbabilityWeights (a : K → ℝ) : Prop := (∀ k, 0 ≤ a k) ∧ ∑ k, a k = 1

/-- PDF p.14, (32): the channel is computed from weights and basis matrices. -/
def randomUnitary (T : K → Matrix A A ℂ) (a : K → ℝ) : Superop A A :=
  krausApply (weightedKraus T a)

/-- PDF p.14, (33): canonical complement, retaining every Kraus label. -/
def randomComplement (T : K → Matrix A A ℂ) (a : K → ℝ) : Superop A K :=
  complementaryChannel (indexedKrausDilation (weightedKraus T a))

/-- PDF pp.14,19: canonical noisy complement, with Kraus matrices T_m/d. -/
def noisyComplement (T : K → Matrix A A ℂ) : Superop A K :=
  complementaryChannel (indexedKrausDilation
    (fun k => ((Fintype.card A : ℂ)⁻¹) • T k))

/-- PDF p.14: the image of normalized pure inputs, excluding the zero vector. -/
def pureNoisyImage (T : K → Matrix A A ℂ) : Set (Matrix K K ℂ) :=
  {gamma | ∃ psi : EuclideanSpace ℂ A, IsState psi ∧ gamma = noisyComplement T (pureDensity psi)}

/-- PDF p.14: A=diag(a_m), distinct from its positive square root. -/
def weightMatrix (a : K → ℝ) : Matrix K K ℂ := Matrix.diagonal (fun k => (a k : ℂ))

/-- PDF p.14: positive square root of the diagonal probability matrix. -/
def weightRoot (a : K → ℝ) : Matrix K K ℂ :=
  Matrix.diagonal (fun k => (Real.sqrt (a k) : ℂ))

/-- PDF p.20, Theorem 12(d): a real nonnegative matrix with row and column sums one. -/
def DoublyStochastic (M : Matrix K K ℝ) : Prop :=
  (∀ j k, 0 ≤ M j k) ∧ (∀ j, ∑ k, M j k = 1) ∧ (∀ k, ∑ j, M j k = 1)

/-- PDF pp.19–20: the four necessary conditions, with (c) read as modulus.
The source's Hadamard conjugation is entrywise conjugation, hence squared modulus. -/
def ImageConditions (d : ℕ) (gamma : Matrix K K ℂ) : Prop :=
  IsDensityMatrix gamma ∧
  ((d : ℂ) • gamma) * ((d : ℂ) • gamma) = (d : ℂ) • gamma ∧
  Matrix.rank ((d : ℂ) • gamma) = d ∧
  (∀ k, gamma k k = ((d : ℂ)^2)⁻¹) ∧
  (∀ j k, ‖gamma j k‖ ≤ ((d : ℝ)^2)⁻¹) ∧
  DoublyStochastic (fun j k => (d : ℝ)^3 * Complex.normSq (gamma j k))

/-- PDF p.15: projective qudit labels; raw matrices need not form a group.
The accepted Information100.P39.PauliLabel instead encodes N binary qubits. -/
abbrev WeylLabel (d : ℕ) := ZMod d × ZMod d

/-- PDF p.15, (36): accepted positive-phase X^j Z^k, reindexed to Fin d.
The accepted Information100.P34.weyl has exactly this shift/clock order.
This wrapper changes only the coordinate type from ZMod d to Fin d. -/
def finWeyl (d : ℕ) [NeZero d] (jk : WeylLabel d) : Matrix (Fin d) (Fin d) ℂ :=
  (QAlgorithms.Papers.Independent.Information100.P34.weyl jk.1 jk.2).submatrix
    (ZMod.finEquiv d) (ZMod.finEquiv d)

/-- PDF p.15, (39), with the duplicate i in its Fourier exponent removed.
Printed: (mk-jn)i2pi i/d. Changed: (mk-jn)2pi i/d, forced by the
unitary conjugation (36)-(37) and the Fourier calculation used in (43).
The remaining printed phase and Fourier sign do not change the modulus
for real a. This expression is used ONLY through its modulus. -/
def printedMultiplier (d : ℕ) [NeZero d] (a : WeylLabel d → ℝ) (jk : WeylLabel d) : ℂ :=
  Complex.exp (2 * Real.pi * Complex.I * ((jk.1.val * jk.2.val : ℕ) : ℂ) / (d : ℂ)) *
    ∑ mn, (a mn : ℂ) * Complex.exp
      (2 * Real.pi * Complex.I * (((mn.1.val * jk.2.val : ℕ) : ℂ) -
        ((jk.1.val * mn.2.val : ℕ) : ℂ)) / (d : ℂ))

/-- PDF p.16: finite supremum of squared Weyl multiplier magnitudes.
The accepted Next46.P14.largestMultiplier is an unrelated message-length maximum.
The d=1 set is empty, with real supremum zero; the bound still reads 1. -/
def maxPauliMultiplierSq (d : ℕ) [NeZero d] (a : WeylLabel d → ℝ) : ℝ :=
  sSup {x | ∃ jk : WeylLabel d, jk ≠ 0 ∧ x = ‖printedMultiplier d a jk‖^2}

/-- PDF p.16: the square-root upper bound (42). -/
def pauliTwoBound (d : ℕ) [NeZero d] (a : WeylLabel d → ℝ) : ℝ :=
  Real.sqrt ((1 + ((d : ℝ) - 1) * maxPauliMultiplierSq d a) / (d : ℝ))

/-- PDF p.17, (44): complex basis coefficient Tr(T_m^dagger rho), with no extra factor.
The accepted Claimed50.P03.coefficient is a normalized real qubit-word coefficient. -/
def basisCoefficient (T : K → Matrix A A ℂ) (rho : Matrix A A ℂ) (k : K) : ℂ :=
  ((T k)ᴴ * rho).trace

/-- PDF p.20: the invariant definition of D-decomposability used in Theorem 13:
exactly D nonzero coefficients, all of unit modulus. General block reducibility
is not substituted for this predicate. -/
def FlatSupport (T : K → Matrix A A ℂ) (rho : Matrix A A ℂ) (D : ℕ) : Prop :=
  (Finset.univ.filter (fun k => basisCoefficient T rho k ≠ 0)).card = D ∧
    ∀ k, basisCoefficient T rho k = 0 ∨ ‖basisCoefficient T rho k‖ = 1

/-- PDF p.22: a genuine permutation of labeled coefficients, ordered row by row. -/
def SortedRows {d : ℕ} (a : K → ℝ) (e : (Fin d × Fin d) ≃ K) : Prop :=
  ∀ u v, u.1.val * d + u.2.val ≤ v.1.val * d + v.2.val → a (e v) ≤ a (e u)

/-- PDF p.22: beta_i is a sum of d weights, not an average. -/
def blockWeight {d : ℕ} (a : K → ℝ) (e : (Fin d × Fin d) ≃ K) (i : Fin d) : ℝ :=
  ∑ j, a (e (i,j))

/-- PDF p.22, (60): the finite-p bound for the sorted block weights. -/
def blockBound {d : ℕ} (p : ℝ) (a : K → ℝ) (e : (Fin d × Fin d) ≃ K) : ℝ :=
  Real.rpow (∑ i, Real.rpow (blockWeight a e i) p) (1 / p)

/-- PDF pp.25–26: rows of the labeled rearrangement are cosets of one subgroup.
Tied numerical weights never merge Kraus labels. -/
def CosetRows {d : ℕ} [NeZero d]
    (e : (Fin d × Fin d) ≃ WeylLabel d) : Prop :=
  ∃ S : AddSubgroup (WeylLabel d), ∀ i, ∃ g : WeylLabel d,
    Set.range (fun j => e (i,j)) = {q | q - g ∈ S}

/-- PDF p.26: cyclic successor, only used for positive tensor counts. -/
def cyclicNext {p : ℕ} (i : Fin p) : Fin p :=
  ⟨(i.val + 1) % p, Nat.mod_lt _ (Nat.zero_lt_of_lt i.isLt)⟩

/-- PDF p.26, (76): the Kraus linearizer; all tensor indices are retained.
This differs from the accepted Support21.P18.theta qubit spin-flip map. -/
def krausLinearizer (F : K → Matrix B A ℂ) (p : ℕ) :
    Matrix (Fin p → A) (Fin p → A) ℂ :=
  fun a b => ∑ ks : Fin p → K, ∏ i, ((F (ks i))ᴴ * F (ks (cyclicNext i))) (a i) (b i)

/-- PDF p.26: left cyclic shift on tensor basis kets. -/
def leftCycle (A : Type*) [DecidableEq A] (p : ℕ) :
    Matrix (Fin p → A) (Fin p → A) ℂ :=
  fun a b => if a = (fun i => b (cyclicNext i)) then 1 else 0

/-- PDF p.26, (77): tensor power of the computed trace dual applied to L_p.
The accepted definitions named omega are state vectors or angular matrix sets,
not the channel linearization operator (77). -/
def channelLinearizer (Phi : Superop A B) (p : ℕ) :
    Matrix (Fin p → A) (Fin p → A) ℂ :=
  piSuperop (fun _ : Fin p => operatorTraceDual Phi) (leftCycle B p)

/-- PDF p.31: Bloch multiplier for the axis with nonzero binary Pauli label k. -/
def qubitLambda (a : WeylLabel 2 → ℝ) (k : WeylLabel 2) : ℝ :=
  2 * (a 0 + a k) - 1

/-- PDF p.31: Hermitian Pauli axis. The label (1,1) has XZ=-iY,
so its Hermitian representative is iXZ. This phase does not change its channel. -/
def qubitAxis (k : WeylLabel 2) : Matrix (Fin 2) (Fin 2) ℂ :=
  if k = (1,1) then Complex.I • finWeyl 2 k else finWeyl 2 k

/-- PDF p.31: the two normalized spectral projectors of a nonidentity qubit axis. -/
def qubitAxisState (k : WeylLabel 2) (positive : Bool) : Matrix (Fin 2) (Fin 2) ℂ :=
  (2 : ℂ)⁻¹ • (1 + (if positive then (1 : ℂ) else -1) • qubitAxis k)

/-! Small definition sanity checks, without proofs of the source theorems. -/

example (d : ℕ) [NeZero d] (i : Fin d) : finWeyl d (0,0) i i = 1 := by
  simp [finWeyl, QAlgorithms.Papers.Independent.Information100.P34.weyl]

example (a : Fin 1 → ℝ) : weightMatrix a 0 0 = (a 0 : ℂ) := rfl

example : leftCycle (Fin 1) 1 (fun _ => 0) (fun _ => 0) = 1 := by
  simp [leftCycle]

example (a : WeylLabel 2 → ℝ) (k : WeylLabel 2) :
    qubitLambda a k = 2 * (a 0 + a k) - 1 := rfl

end QAlgorithms.Papers.Independent.Gap48.P36
Source
Properties of Conjugate Channels with Applications to Additivity and Multiplicativity, arXiv:quant-ph/0509126v3, https://arxiv.org/abs/quant-ph/0509126v3
Read-back

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

QAlgorithms.Papers.Independent.Gap48.P36.ChoiSupport

For finite types A,BA,BA,B with decidable equality and any function Φ:CA×A→CB×B\Phi:\mathbb C^{A\times A}\to\mathbb C^{B\times B}Φ:CA×A→CB×B, this abbreviates the type of indices k∈A×Bk\in A\times Bk∈A×B whose assigned Choi eigenvalue is nonzero. Specifically, form JΦ((a,b),(a′,b′))=Φ(Eaa′)bb′/∣A∣J_\Phi((a,b),(a',b'))=\Phi(E_{aa'})_{bb'}/|A|JΦ​((a,b),(a′,b′))=Φ(Eaa′​)bb′​/∣A∣; if this matrix is Hermitian, retain exactly the indices of its nonzero real eigenvalues in its chosen spectral decomposition, and otherwise retain no indices, since all assigned eigenvalues are then defined to be zero. This is an index type, rather than a vector subspace; it is empty also when AAA or BBB is empty.

QAlgorithms.Papers.Independent.Gap48.P36.CosetRows

For a nonzero natural number ddd and a bijection e:{0,…,d−1}2→(Z/dZ)2e:\{0,\ldots,d-1\}^2\to(\mathbb Z/d\mathbb Z)^2e:{0,…,d−1}2→(Z/dZ)2, this predicate means that there exists one additive subgroup SSS of (Z/dZ)2(\mathbb Z/d\mathbb Z)^2(Z/dZ)2 such that every row of eee has image equal to a coset of SSS:

∃S≤(Z/dZ)2,∀i∈{0,…,d−1},∃g∈(Z/dZ)2,{e(i,j):0≤j<d}={q:q−g∈S}.\exists S\le(\mathbb Z/d\mathbb Z)^2,\quad \forall i\in\{0,\ldots,d-1\},\quad \exists g\in(\mathbb Z/d\mathbb Z)^2,\quad \{e(i,j):0\le j<d\}=\{q:q-g\in S\}.∃S≤(Z/dZ)2,∀i∈{0,…,d−1},∃g∈(Z/dZ)2,{e(i,j):0≤j<d}={q:q−g∈S}.

The subgroup is shared by all rows; the representative ggg may depend on the row. The case d=0d=0d=0 is excluded.

QAlgorithms.Papers.Independent.Gap48.P36.DoublyStochastic

For a finite index type KKK and a real matrix M∈RK×KM\in\mathbb R^{K\times K}M∈RK×K, this predicate means that every entry is nonnegative, every row sums to exactly one, and every column sums to exactly one:

Mjk≥0,∑k∈KMjk=1 for every j,∑j∈KMjk=1 for every k.M_{jk}\ge0,\qquad \sum_{k\in K}M_{jk}=1\ \text{for every }j,\qquad \sum_{j\in K}M_{jk}=1\ \text{for every }k.Mjk​≥0,k∈K∑​Mjk​=1 for every j,j∈K∑​Mjk​=1 for every k.

If KKK is empty, all three universally quantified requirements hold vacuously.

QAlgorithms.Papers.Independent.Gap48.P36.FlatSupport

For finite index types AAA and KKK, a family TkT_kTk​ of complex A×AA\times AA×A matrices, a complex A×AA\times AA×A matrix ρ\rhoρ, and a natural number DDD, this predicate means that exactly DDD indices have nonzero coefficients ck=tr⁡(Tk†ρ)c_k=\operatorname{tr}(T_k^\dagger\rho)ck​=tr(Tk†​ρ), and every coefficient is either zero or has complex modulus exactly one:

∣{k∈K:ck≠0}∣=D,∀k∈K,ck=0 ∨ ∣ck∣=1.\bigl|\{k\in K:c_k\ne0\}\bigr|=D, \qquad \forall k\in K,\quad c_k=0\ \lor\ |c_k|=1.​{k∈K:ck​=0}​=D,∀k∈K,ck​=0 ∨ ∣ck​∣=1.

No further condition is imposed on TTT or ρ\rhoρ. The case D=0D=0D=0 requires all coefficients to vanish; D>∣K∣D>|K|D>∣K∣ cannot satisfy the predicate. If AAA or KKK is empty, the predicate holds exactly when D=0D=0D=0.

QAlgorithms.Papers.Independent.Gap48.P36.ImageConditions

For a finite index type KKK, a natural number ddd, and a complex matrix γ∈CK×K\gamma\in\mathbb C^{K\times K}γ∈CK×K, this predicate requires all of the following simultaneously: γ\gammaγ is positive semidefinite with complex trace exactly one; the matrix dγd\gammadγ satisfies (dγ)2=dγ(d\gamma)^2=d\gamma(dγ)2=dγ and has rank exactly ddd; every diagonal entry equals (d2)−1(d^2)^{-1}(d2)−1 in C\mathbb CC; every entry satisfies ∣γjk∣≤(d2)−1|\gamma_{jk}|\le(d^2)^{-1}∣γjk​∣≤(d2)−1 in R\mathbb RR; and the real matrix Mjk=d3∣γjk∣2M_{jk}=d^3|\gamma_{jk}|^2Mjk​=d3∣γjk​∣2 has nonnegative entries, every row sum equal to one, and every column sum equal to one. Here ddd is cast into the indicated scalar field, and inverse zero is zero. The requirements cannot hold when d=0d=0d=0, or when KKK is empty.

QAlgorithms.Papers.Independent.Gap48.P36.PhaseClosed

For a finite type AAA with decidable equality, a finite type KKK, and matrices Tk∈CA×AT_k\in\mathbb C^{A\times A}Tk​∈CA×A supplied with a distinguished identity matrix, ∣K∣=∣A∣2|K|=|A|^2∣K∣=∣A∣2, Tk†Tk=IAT_k^\dagger T_k=I_ATk†​Tk​=IA​, and tr⁡(Tj†Tk)=∣A∣\operatorname{tr}(T_j^\dagger T_k)=|A|tr(Tj†​Tk​)=∣A∣ for j=kj=kj=k and 000 otherwise, this property means that for every pair m,n∈Km,n\in Km,n∈K there exist a label k∈Kk\in Kk∈K and a complex number zzz with ∣z∣=1|z|=1∣z∣=1 such that Tm†Tn=zTkT_m^\dagger T_n=zT_kTm†​Tn​=zTk​. Neither the label nor the phase is required to be unique. The supplied structure already excludes empty AAA or KKK.

QAlgorithms.Papers.Independent.Gap48.P36.ProbabilityWeights

For a finite type KKK and a function a:K→Ra:K\to\mathbb Ra:K→R, this property means that a(k)≥0a(k)\ge0a(k)≥0 for every k∈Kk\in Kk∈K and ∑k∈Ka(k)=1\sum_{k\in K}a(k)=1∑k∈K​a(k)=1. Zero weights are allowed. If KKK is empty, the sum is 000, so the property cannot hold.

QAlgorithms.Papers.Independent.Gap48.P36.SortedRows

For a natural number ddd, an index type KKK, a real-valued function aaa on KKK, and a bijection e:{0,…,d−1}2→Ke:\{0,\ldots,d-1\}^2\to Ke:{0,…,d−1}2→K, this predicate means that aaa is nonincreasing when the pairs are ordered by their row-major indices:

∀u,v∈{0,…,d−1}2,u1d+u2≤v1d+v2 ⟹ a(e(v))≤a(e(u)).\forall u,v\in\{0,\ldots,d-1\}^2,\qquad u_1d+u_2\le v_1d+v_2 \ \Longrightarrow\ a(e(v))\le a(e(u)).∀u,v∈{0,…,d−1}2,u1​d+u2​≤v1​d+v2​ ⟹ a(e(v))≤a(e(u)).

The values of aaa need not be nonnegative or sum to one. When d=0d=0d=0, the bijection requires KKK to be empty, and the condition is vacuous.

QAlgorithms.Papers.Independent.Gap48.P36.UnitaryBasis

For a finite type AAA with decidable equality and a finite type KKK, this structure consists of matrices Tk∈CA×AT_k\in\mathbb C^{A\times A}Tk​∈CA×A, a distinguished label k0∈Kk_0\in Kk0​∈K, and requirements that ∣K∣=∣A∣2|K|=|A|^2∣K∣=∣A∣2, Tk0=IAT_{k_0}=I_ATk0​​=IA​, Tk†Tk=IAT_k^\dagger T_k=I_ATk†​Tk​=IA​ for every k∈Kk\in Kk∈K, and tr⁡(Tj†Tk)=∣A∣\operatorname{tr}(T_j^\dagger T_k)=|A|tr(Tj†​Tk​)=∣A∣ when j=kj=kj=k and 000 otherwise. The distinguished label requires KKK to be nonempty; consequently, together with the cardinality requirement, no such structure exists when AAA is empty.

QAlgorithms.Papers.Independent.Gap48.P36.WeylLabel

For every natural number ddd, this is an abbreviation for the type of ordered pairs of elements of Z/dZ\mathbb Z/d\mathbb ZZ/dZ. It includes d=1d=1d=1, when there is just the label (0,0)(0,0)(0,0), and d=0d=0d=0, for which the underlying convention is Z/0Z=Z\mathbb Z/0\mathbb Z=\mathbb ZZ/0Z=Z, giving pairs of integers.

QAlgorithms.Papers.Independent.Gap48.P36.basisCoefficient

For a finite index type AAA, an index type KKK, a family TkT_kTk​ of complex A×AA\times AA×A matrices, a complex A×AA\times AA×A matrix ρ\rhoρ, and k∈Kk\in Kk∈K, this defines the complex number

ck=tr⁡(Tk†ρ)=∑i,j∈ATk(j,i)‾ ρ(j,i),c_k=\operatorname{tr}(T_k^\dagger\rho) =\sum_{i,j\in A}\overline{T_k(j,i)}\,\rho(j,i),ck​=tr(Tk†​ρ)=i,j∈A∑​Tk​(j,i)​ρ(j,i),

where †\dagger† denotes conjugate transpose. No normalization, orthogonality, positivity, or trace condition is imposed on TTT or ρ\rhoρ. If AAA is empty, the coefficient is zero.

QAlgorithms.Papers.Independent.Gap48.P36.blockBound

For a natural number ddd, an index type KKK, a real number ppp, a real-valued function aaa on KKK, and a bijection e:{0,…,d−1}2→Ke:\{0,\ldots,d-1\}^2\to Ke:{0,…,d−1}2→K, this defines

(∑i=0d−1(∑j=0d−1a(e(i,j)))p)1/p,\left(\sum_{i=0}^{d-1} \left(\sum_{j=0}^{d-1}a(e(i,j))\right)^p\right)^{1/p},(i=0∑d−1​(j=0∑d−1​a(e(i,j)))p)1/p,

where both powers use the total real-power function. There is no assumption that ppp is positive or that the row sums are nonnegative. Division is total, so 1/0=01/0=01/0=0; consequently the defined value is 111 when p=0p=0p=0. If d=0d=0d=0, the outer sum is empty, and the value is 000 for p≠0p\ne0p=0 and 111 for p=0p=0p=0.

QAlgorithms.Papers.Independent.Gap48.P36.blockWeight

For a natural number ddd, an index type KKK, a real-valued function aaa on KKK, a bijection e:{0,…,d−1}2→Ke:\{0,\ldots,d-1\}^2\to Ke:{0,…,d−1}2→K, and a row index i∈{0,…,d−1}i\in\{0,\ldots,d-1\}i∈{0,…,d−1}, this defines

wi=∑j=0d−1a(e(i,j)).w_i=\sum_{j=0}^{d-1}a(e(i,j)).wi​=j=0∑d−1​a(e(i,j)).

No ordering, positivity, or normalization condition is required of aaa. When d=0d=0d=0, there is no admissible row index iii.

QAlgorithms.Papers.Independent.Gap48.P36.channelLinearizer

For an index type AAA with decidable equality, a finite index type BBB with decidable equality, any function Φ\PhiΦ from complex A×AA\times AA×A matrices to complex B×BB\times BB×B matrices, and a natural number ppp, this defines a complex matrix indexed by words a,b:{0,…,p−1}→Aa,b:\{0,\ldots,p-1\}\to Aa,b:{0,…,p−1}→A. Writing Eα,βAE^A_{\alpha,\beta}Eα,βA​ and Ex,yBE^B_{x,y}Ex,yB​ for the corresponding matrix units, its entries are

La,b=∑x,y:{0,…,p−1}→Bx(i)=y((i+1)modp) for every i∏i=0p−1tr⁡ ⁣(Φ(Eb(i),a(i)A)Ex(i),y(i)B).L_{a,b} = \sum_{\substack{x,y:\{0,\ldots,p-1\}\to B\\ x(i)=y((i+1)\bmod p)\ \text{for every }i}} \prod_{i=0}^{p-1} \operatorname{tr}\!\left( \Phi(E^A_{b(i),a(i)})E^B_{x(i),y(i)} \right).La,b​=x,y:{0,…,p−1}→Bx(i)=y((i+1)modp) for every i​∑​i=0∏p−1​tr(Φ(Eb(i),a(i)A​)Ex(i),y(i)B​).

Here the trace expression is the (a(i),b(i))(a(i),b(i))(a(i),b(i)) entry of the map that sends a matrix XXX to the matrix with entries tr⁡(Φ(Eβ,αA)X)\operatorname{tr}(\Phi(E^A_{\beta,\alpha})X)tr(Φ(Eβ,αA​)X); the displayed sum expands the tensor-map construction and the cyclic matrix used in the definition. No linearity, positivity, or channel condition is required of Φ\PhiΦ. When p=0p=0p=0, the resulting matrix has its sole entry equal to 111.

QAlgorithms.Papers.Independent.Gap48.P36.choiEigenvalue

For finite types A,BA,BA,B with decidable equality, any function Φ:CA×A→CB×B\Phi:\mathbb C^{A\times A}\to\mathbb C^{B\times B}Φ:CA×A→CB×B, and any k∈A×Bk\in A\times Bk∈A×B, form the matrix JΦJ_\PhiJΦ​ whose entries are JΦ((a,b),(a′,b′))=Φ(Eaa′)bb′/∣A∣J_\Phi((a,b),(a',b'))=\Phi(E_{aa'})_{bb'}/|A|JΦ​((a,b),(a′,b′))=Φ(Eaa′​)bb′​/∣A∣, where Eaa′E_{aa'}Eaa′​ has entry 111 at (a,a′)(a,a')(a,a′) and zero elsewhere. This defines the value at kkk to be the real eigenvalue indexed by kkk in the chosen spectral decomposition of JΦJ_\PhiJΦ​, if JΦJ_\PhiJΦ​ is Hermitian, and 000 otherwise. No channel or positivity assumption is imposed on Φ\PhiΦ, and this indexing is not asserted to order the eigenvalues. If either type is empty, there is no index kkk.

QAlgorithms.Papers.Independent.Gap48.P36.choiEigenvector

For finite types A,BA,BA,B with decidable equality, any function Φ:CA×A→CB×B\Phi:\mathbb C^{A\times A}\to\mathbb C^{B\times B}Φ:CA×A→CB×B, and any k∈A×Bk\in A\times Bk∈A×B, let JΦ((a,b),(a′,b′))=Φ(Eaa′)bb′/∣A∣J_\Phi((a,b),(a',b'))=\Phi(E_{aa'})_{bb'}/|A|JΦ​((a,b),(a′,b′))=Φ(Eaa′​)bb′​/∣A∣, where Eaa′E_{aa'}Eaa′​ is the corresponding matrix unit. This defines a vector in CA×B\mathbb C^{A\times B}CA×B: if JΦJ_\PhiJΦ​ is Hermitian, it is the vector indexed by kkk in the chosen orthonormal eigenvector basis of JΦJ_\PhiJΦ​; otherwise it is the zero vector. No channel or positivity assumption is required, and no particular choice within repeated eigenspaces is specified. If either type is empty, no such index kkk exists.

QAlgorithms.Papers.Independent.Gap48.P36.constrainedHolevo

For types A,BA,BA,B with finite enumerations and decidable equality on BBB, any function Φ:CA×A→CB×B\Phi:\mathbb C^{A\times A}\to\mathbb C^{B\times B}Φ:CA×A→CB×B, and any matrix ρ∈CA×A\rho\in\mathbb C^{A\times A}ρ∈CA×A, this defines H(Φ(ρ))−H^Φ(ρ)H(\Phi(\rho))-\widehat H_\Phi(\rho)H(Φ(ρ))−HΦ​(ρ), where H(X)=−Re⁡tr⁡(f(X))H(X)=-\operatorname{Re}\operatorname{tr}(f(X))H(X)=−Retr(f(X)), f(t)=tlog⁡tf(t)=t\log tf(t)=tlogt, using the total continuous functional calculus and natural logarithm, and H^Φ(ρ)\widehat H_\Phi(\rho)HΦ​(ρ) is the real infimum of ∑j=0s−1wjH(Φ(∣ψj⟩⟨ψj∣))\sum_{j=0}^{s-1}w_jH(\Phi(|\psi_j\rangle\langle\psi_j|))∑j=0s−1​wj​H(Φ(∣ψj​⟩⟨ψj​∣)) over all natural numbers sss, nonnegative real weights with ∑jwj=1\sum_jw_j=1∑j​wj​=1, and vectors ψj∈CA\psi_j\in\mathbb C^Aψj​∈CA of Euclidean norm 111 satisfying ρ=∑jwj∣ψj⟩⟨ψj∣\rho=\sum_jw_j|\psi_j\rangle\langle\psi_j|ρ=∑j​wj​∣ψj​⟩⟨ψj​∣; here (∣ψ⟩⟨ψ∣)ab=ψ(a)ψ(b)‾(|\psi\rangle\langle\psi|)_{ab}=\psi(a)\overline{\psi(b)}(∣ψ⟩⟨ψ∣)ab​=ψ(a)ψ(b)​. Neither ρ\rhoρ being a density matrix nor Φ\PhiΦ being a channel is assumed. The infimum is the total real infimum, which is 000 for an empty set or a set unbounded below; an ensemble with s=0s=0s=0 cannot satisfy the weight-sum condition.

QAlgorithms.Papers.Independent.Gap48.P36.cyclicNext

For a natural number ppp and an index i∈{0,…,p−1}i\in\{0,\ldots,p-1\}i∈{0,…,p−1}, this defines the index whose numerical value is

(i+1) mod p.(i+1)\bmod p.(i+1)modp.

Thus it advances one position cyclically, sending p−1p-1p−1 to 000. Although p=0p=0p=0 is allowed as a parameter, there is then no admissible input index iii; when p=1p=1p=1, the unique index maps to itself.

QAlgorithms.Papers.Independent.Gap48.P36.entanglementFormation

For finite types B,CB,CB,C, with decidable equality on BBB, and any complex matrix γ\gammaγ indexed by B×CB\times CB×C, this defines the real infimum of ∑j=0s−1wjH(Rj)\sum_{j=0}^{s-1}w_jH(R_j)∑j=0s−1​wj​H(Rj​) over all natural numbers sss, nonnegative real weights wjw_jwj​ summing to 111, and unit vectors ψj∈CB×C\psi_j\in\mathbb C^{B\times C}ψj​∈CB×C such that γ=∑jwj∣ψj⟩⟨ψj∣\gamma=\sum_jw_j|\psi_j\rangle\langle\psi_j|γ=∑j​wj​∣ψj​⟩⟨ψj​∣, where Rj(b,b′)=∑c∈Cψj(b,c)ψj(b′,c)‾R_j(b,b')=\sum_{c\in C}\psi_j(b,c)\overline{\psi_j(b',c)}Rj​(b,b′)=∑c∈C​ψj​(b,c)ψj​(b′,c)​, and H(R)=−Re⁡tr⁡(f(R))H(R)=-\operatorname{Re}\operatorname{tr}(f(R))H(R)=−Retr(f(R)) for f(t)=tlog⁡tf(t)=t\log tf(t)=tlogt, evaluated by continuous functional calculus with the natural logarithm. No density-matrix assumption on γ\gammaγ is imposed. If there is no such ensemble, the total real infimum is 000; in particular, zero-term ensembles cannot have weights summing to 111, and if B×CB\times CB×C is empty there are no unit vectors.

QAlgorithms.Papers.Independent.Gap48.P36.finWeyl

For a natural number d≠0d\ne0d=0 and a label (j,k)∈(Z/dZ)2(j,k)\in(\mathbb Z/d\mathbb Z)^2(j,k)∈(Z/dZ)2, this defines a complex d×dd\times dd×d matrix by expressing SjˉCkˉS^{\bar j}C^{\bar k}Sjˉ​Ckˉ, originally indexed by residues modulo ddd, in the canonical indexing 0,…,d−10,\ldots,d-10,…,d−1. Here jˉ,kˉ\bar j,\bar kjˉ​,kˉ are the representatives in that range, Suv=1S_{uv}=1Suv​=1 if u=v+1u=v+1u=v+1 modulo ddd and zero otherwise, and CCC is diagonal with Cvv=exp⁡(2πivˉ/d)C_{vv}=\exp(2\pi i\bar v/d)Cvv​=exp(2πivˉ/d). The multiplication order is shift power followed by clock power. For d=1d=1d=1, the result is the 1×11\times11×1 identity matrix.

QAlgorithms.Papers.Independent.Gap48.P36.krausLinearizer

For index types A,B,KA,B,KA,B,K, with BBB and KKK finite, a family of complex matrices Fk:B×A→CF_k:B\times A\to\mathbb CFk​:B×A→C, and a natural number ppp, this defines a complex matrix indexed by words a,b:{0,…,p−1}→Aa,b:\{0,\ldots,p-1\}\to Aa,b:{0,…,p−1}→A, with entries

La,b=∑s:{0,…,p−1}→K∏i=0p−1(Fs(i)†Fs((i+1) mod p))a(i),b(i),(Fu†Fv)α,β=∑y∈BFu(y,α)‾Fv(y,β).L_{a,b} =\sum_{s:\{0,\ldots,p-1\}\to K} \prod_{i=0}^{p-1} \left(F_{s(i)}^\dagger F_{s((i+1)\bmod p)}\right)_{a(i),b(i)}, \qquad (F_u^\dagger F_v)_{\alpha,\beta} =\sum_{y\in B}\overline{F_u(y,\alpha)}F_v(y,\beta).La,b​=s:{0,…,p−1}→K∑​i=0∏p−1​(Fs(i)†​Fs((i+1)modp)​)a(i),b(i)​,(Fu†​Fv​)α,β​=y∈B∑​Fu​(y,α)​Fv​(y,β).

No Kraus completeness or channel condition is imposed on FFF. When p=0p=0p=0, the word index sets each have one element, and the resulting 1×11\times11×1 matrix has entry 111. If KKK is empty and p>0p>0p>0, the defining sum is empty and the matrix is zero.

QAlgorithms.Papers.Independent.Gap48.P36.krausNumber

For finite types A,BA,BA,B, with decidable equality on AAA, and any function Φ\PhiΦ from complex A×AA\times AA×A matrices to complex B×BB\times BB×B matrices, this defines its Kraus number as the infimum in N\mathbb NN of all natural numbers rrr for which there are matrices F0,…,Fr−1∈CB×AF_0,\ldots,F_{r-1}\in\mathbb C^{B\times A}F0​,…,Fr−1​∈CB×A satisfying ∑j=0r−1Fj†Fj=IA\sum_{j=0}^{r-1}F_j^\dagger F_j=I_A∑j=0r−1​Fj†​Fj​=IA​ and Φ(X)=∑j=0r−1FjXFj†\Phi(X)=\sum_{j=0}^{r-1}F_jXF_j^\daggerΦ(X)=∑j=0r−1​Fj​XFj†​ for every X∈CA×AX\in\mathbb C^{A\times A}X∈CA×A. If such representations exist, this is their least size; if none exists, the natural-number infimum of the empty set is 000. The value r=0r=0r=0 is allowed: its sums are zero, so its completeness condition requires 0=IA0=I_A0=IA​, which holds when AAA is empty.

QAlgorithms.Papers.Independent.Gap48.P36.leftCycle

For an index type AAA with decidable equality and a natural number ppp, this defines the complex matrix indexed by words a,b:{0,…,p−1}→Aa,b:\{0,\ldots,p-1\}\to Aa,b:{0,…,p−1}→A whose entries are

Ca,b={1,a(i)=b((i+1) mod p) for every i,0,otherwise.C_{a,b} = \begin{cases} 1,&a(i)=b((i+1)\bmod p)\text{ for every }i,\\ 0,&\text{otherwise}. \end{cases}Ca,b​={1,0,​a(i)=b((i+1)modp) for every i,otherwise.​

When p=0p=0p=0, there is one empty word and the matrix has its sole entry equal to 111, even if AAA is empty. When p=1p=1p=1, this is the identity matrix on words of length one.

QAlgorithms.Papers.Independent.Gap48.P36.maxPauliMultiplierSq

For a natural number d≠0d\ne0d=0 and any real function a:(Z/dZ)2→Ra:(\mathbb Z/d\mathbb Z)^2\to\mathbb Ra:(Z/dZ)2→R, this defines the real supremum

sup⁡(j,k)≠(0,0)∣exp⁡ ⁣(2πi jˉkˉd)∑(m,n)∈(Z/dZ)2am,nexp⁡ ⁣(2πi(mˉkˉ−jˉnˉ)d)∣2,\sup_{(j,k)\ne(0,0)} \left| \exp\!\left(\frac{2\pi i\,\bar j\bar k}{d}\right) \sum_{(m,n)\in(\mathbb Z/d\mathbb Z)^2} a_{m,n}\exp\!\left(\frac{2\pi i(\bar m\bar k-\bar j\bar n)}{d}\right) \right|^2,(j,k)=(0,0)sup​​exp(d2πijˉ​kˉ​)(m,n)∈(Z/dZ)2∑​am,n​exp(d2πi(mˉkˉ−jˉ​nˉ)​)​2,

where bars denote representatives between zero and d−1d-1d−1. For d>1d>1d>1, the indexing set is finite and nonempty, so this is its maximum. For d=1d=1d=1, there are no nonzero labels, and the real supremum of the empty set used here is zero. The weights aaa are unrestricted.

QAlgorithms.Papers.Independent.Gap48.P36.noisyComplement

For finite index types A,KA,KA,K and any family Tk∈CA×AT_k\in\mathbb C^{A\times A}Tk​∈CA×A, write D=∣A∣D=|A|D=∣A∣. This defines a function on every complex A×AA\times AA×A matrix ρ\rhoρ whose output has entries

[NT(ρ)]kl=tr⁡(EkρEl†),Ek=D−1Tk.\left[\mathcal N_T(\rho)\right]_{kl} =\operatorname{tr}(E_k\rho E_l^\dagger), \qquad E_k=D^{-1}T_k.[NT​(ρ)]kl​=tr(Ek​ρEl†​),Ek​=D−1Tk​.

Here D−1D^{-1}D−1 is taken in C\mathbb CC, with 0−1=00^{-1}=00−1=0, and †\dagger† denotes conjugate transpose. No conditions on TTT or ρ\rhoρ are imposed. In particular, if AAA is empty, this function is zero.

QAlgorithms.Papers.Independent.Gap48.P36.pauliTwoBound

For a natural number d≠0d\ne0d=0 and any real function a:(Z/dZ)2→Ra:(\mathbb Z/d\mathbb Z)^2\to\mathbb Ra:(Z/dZ)2→R, this defines

1+(d−1)Md,M=sup⁡(j,k)≠(0,0)∣exp⁡ ⁣(2πi jˉkˉd)∑(m,n)∈(Z/dZ)2am,nexp⁡ ⁣(2πi(mˉkˉ−jˉnˉ)d)∣2.\sqrt{\frac{1+(d-1)M}{d}}, \qquad M=\sup_{(j,k)\ne(0,0)} \left| \exp\!\left(\frac{2\pi i\,\bar j\bar k}{d}\right) \sum_{(m,n)\in(\mathbb Z/d\mathbb Z)^2} a_{m,n}\exp\!\left(\frac{2\pi i(\bar m\bar k-\bar j\bar n)}{d}\right) \right|^2.d1+(d−1)M​​,M=(j,k)=(0,0)sup​​exp(d2πijˉ​kˉ​)(m,n)∈(Z/dZ)2∑​am,n​exp(d2πi(mˉkˉ−jˉ​nˉ)​)​2.

All arithmetic outside the complex modulus is real, and bars denote representatives in {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}. No sign or normalization condition on aaa is assumed. For d=1d=1d=1, the supremum is over an empty set and equals zero, so the defined value is one.

QAlgorithms.Papers.Independent.Gap48.P36.printedMultiplier

For a natural number d≠0d\ne0d=0, an arbitrary real function aaa on (Z/dZ)2(\mathbb Z/d\mathbb Z)^2(Z/dZ)2, and a label (j,k)(j,k)(j,k), this defines the complex number

exp⁡ ⁣(2πi jˉkˉd)∑(m,n)∈(Z/dZ)2am,nexp⁡ ⁣(2πi(mˉkˉ−jˉnˉ)d).\exp\!\left(\frac{2\pi i\,\bar j\bar k}{d}\right) \sum_{(m,n)\in(\mathbb Z/d\mathbb Z)^2} a_{m,n}\exp\!\left(\frac{2\pi i(\bar m\bar k-\bar j\bar n)}{d}\right).exp(d2πijˉ​kˉ​)(m,n)∈(Z/dZ)2∑​am,n​exp(d2πi(mˉkˉ−jˉ​nˉ)​).

Bars denote representatives in {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}; their products are ordinary natural-number products, and the displayed subtraction occurs after embedding those products into C\mathbb CC. No sign or normalization conditions are imposed on aaa. When d=1d=1d=1, the value is a0,0a_{0,0}a0,0​.

QAlgorithms.Papers.Independent.Gap48.P36.pureNoisyImage

For finite index types A,KA,KA,K and any family Tk∈CA×AT_k\in\mathbb C^{A\times A}Tk​∈CA×A, this defines the set of complex K×KK\times KK×K matrices γ\gammaγ for which there exists a vector ψ∈CA\psi\in\mathbb C^Aψ∈CA of Euclidean norm exactly one such that, for every k,l∈Kk,l\in Kk,l∈K,

γkl=tr⁡ ⁣(Ek∣ψ⟩⟨ψ∣El†),Ek=∣A∣−1Tk,\gamma_{kl} =\operatorname{tr}\!\left(E_k|\psi\rangle\langle\psi|E_l^\dagger\right), \qquad E_k=|A|^{-1}T_k,γkl​=tr(Ek​∣ψ⟩⟨ψ∣El†​),Ek​=∣A∣−1Tk​,

where (∣ψ⟩⟨ψ∣)ij=ψiψj‾(|\psi\rangle\langle\psi|)_{ij}=\psi_i\overline{\psi_j}(∣ψ⟩⟨ψ∣)ij​=ψi​ψj​​, †\dagger† denotes conjugate transpose, and the inverse is the complex inverse. No conditions on TTT are required. If AAA is empty, there is no norm-one vector, so this set is empty.

QAlgorithms.Papers.Independent.Gap48.P36.qubitAxis

For every label k∈(Z/2Z)2k\in(\mathbb Z/2\mathbb Z)^2k∈(Z/2Z)2, this defines a complex 2×22\times22×2 matrix by taking the shift matrix to the power of the first label coordinate, followed by the clock matrix to the power of the second coordinate, and multiplying by i\mathrm ii precisely when k=(1,1)k=(1,1)k=(1,1). Explicitly, with rows and columns ordered 0,10,10,1,

A(0,0)=(1001),A(1,0)=(0110),A(0,1)=(100−1),A(1,1)=(0−ii0).A_{(0,0)}=\begin{pmatrix}1&0\\0&1\end{pmatrix},\qquad A_{(1,0)}=\begin{pmatrix}0&1\\1&0\end{pmatrix},\qquad A_{(0,1)}=\begin{pmatrix}1&0\\0&-1\end{pmatrix},\qquad A_{(1,1)}=\begin{pmatrix}0&-\mathrm i\\\mathrm i&0\end{pmatrix}.A(0,0)​=(10​01​),A(1,0)​=(01​10​),A(0,1)​=(10​0−1​),A(1,1)​=(0i​−i0​).

The zero label is included and gives the identity matrix.

QAlgorithms.Papers.Independent.Gap48.P36.qubitAxisState

For every label k∈(Z/2Z)2k\in(\mathbb Z/2\mathbb Z)^2k∈(Z/2Z)2 and Boolean value positive\mathrm{positive}positive, this defines the complex 2×22\times22×2 matrix

ρk,positive=12(I+sQk),s={1if positive=true,−1if positive=false,\rho_{k,\mathrm{positive}}=\frac12(I+sQ_k),\qquad s=\begin{cases}1&\text{if }\mathrm{positive}=\mathrm{true},\\-1&\text{if }\mathrm{positive}=\mathrm{false},\end{cases}ρk,positive​=21​(I+sQk​),s={1−1​if positive=true,if positive=false,​

where the matrices obtained from the specified Weyl operators and the extra factor of iii at label (1,1)(1,1)(1,1) are

Q(0,0)=I,Q(1,0)=(0110),Q(0,1)=(100−1),Q(1,1)=(0−ii0).Q_{(0,0)}=I,\quad Q_{(1,0)}=\begin{pmatrix}0&1\\1&0\end{pmatrix},\quad Q_{(0,1)}=\begin{pmatrix}1&0\\0&-1\end{pmatrix},\quad Q_{(1,1)}=\begin{pmatrix}0&-i\\i&0\end{pmatrix}.Q(0,0)​=I,Q(1,0)​=(01​10​),Q(0,1)​=(10​0−1​),Q(1,1)​=(0i​−i0​).

The zero label is included: it gives III when positive\mathrm{positive}positive is true and the zero matrix when it is false.

QAlgorithms.Papers.Independent.Gap48.P36.qubitLambda

For any real-valued function aaa on (Z/2Z)2(\mathbb Z/2\mathbb Z)^2(Z/2Z)2 and any label kkk in that set, this defines

λk=2(a(0,0)+a(k))−1.\lambda_k=2\bigl(a(0,0)+a(k)\bigr)-1.λk​=2(a(0,0)+a(k))−1.

No positivity or normalization condition is imposed on aaa, and the label k=(0,0)k=(0,0)k=(0,0) is included; for that label the value is 4a(0,0)−14a(0,0)-14a(0,0)−1.

QAlgorithms.Papers.Independent.Gap48.P36.randomComplement

For finite index types A,KA,KA,K, any family of complex matrices Tk∈CA×AT_k\in\mathbb C^{A\times A}Tk​∈CA×A, and any real weights aka_kak​, this defines a function from complex A×AA\times AA×A matrices to complex K×KK\times KK×K matrices by

ρ⟼[tr⁡(EkρEl†)]k,l∈K,Ek=ak Tk,\rho\longmapsto \left[\operatorname{tr}(E_k\rho E_l^\dagger)\right]_{k,l\in K}, \qquad E_k=\sqrt{a_k}\,T_k,ρ⟼[tr(Ek​ρEl†​)]k,l∈K​,Ek​=ak​​Tk​,

where †\dagger† denotes conjugate transpose and the real square roots are embedded in C\mathbb CC. The input ρ\rhoρ is arbitrary; neither normalization of the weights nor any condition on the matrices TkT_kTk​ is required. A negative weight has square root zero and hence gives Ek=0E_k=0Ek​=0. If AAA is empty, the output is the zero matrix.

QAlgorithms.Papers.Independent.Gap48.P36.randomUnitary

For finite types A,KA,KA,K, any matrices Tk∈CA×AT_k\in\mathbb C^{A\times A}Tk​∈CA×A, and any real function a:K→Ra:K\to\mathbb Ra:K→R, this defines the function on complex A×AA\times AA×A matrices given by Φ(X)=∑k∈KFkXFk†\Phi(X)=\sum_{k\in K}F_kXF_k^\daggerΦ(X)=∑k∈K​Fk​XFk†​, where Fk=a(k) TkF_k=\sqrt{a(k)}\,T_kFk​=a(k)​Tk​ and the square root is the total real square root embedded into C\mathbb CC. Equivalently, Φ(X)=∑kmax⁡(a(k),0) TkXTk†\Phi(X)=\sum_k\max(a(k),0)\,T_kXT_k^\daggerΦ(X)=∑k​max(a(k),0)Tk​XTk†​. The definition assumes neither that the TkT_kTk​ are unitary nor that the weights are nonnegative or sum to 111, and it imposes no trace-preservation condition. Negative weights contribute zero, and an empty KKK gives the zero function.

QAlgorithms.Papers.Independent.Gap48.P36.spectralKraus

For finite types A,BA,BA,B with decidable equality and any function Φ:CA×A→CB×B\Phi:\mathbb C^{A\times A}\to\mathbb C^{B\times B}Φ:CA×A→CB×B, form JΦ((a,b),(a′,b′))=Φ(Eaa′)bb′/∣A∣J_\Phi((a,b),(a',b'))=\Phi(E_{aa'})_{bb'}/|A|JΦ​((a,b),(a′,b′))=Φ(Eaa′​)bb′​/∣A∣. When JΦJ_\PhiJΦ​ is Hermitian, write λk\lambda_kλk​ and vk∈CA×Bv_k\in\mathbb C^{A\times B}vk​∈CA×B for its chosen indexed eigenvalues and orthonormal eigenvectors; when it is not Hermitian, assign λk=0\lambda_k=0λk​=0 and vk=0v_k=0vk​=0. This defines a family of B×AB\times AB×A matrices, indexed by those k∈A×Bk\in A\times Bk∈A×B with λk≠0\lambda_k\ne0λk​=0, by Fk(b,a)=∣A∣λk vk(a,b)F_k(b,a)=\sqrt{|A|\lambda_k}\,v_k(a,b)Fk​(b,a)=∣A∣λk​​vk​(a,b), with the real square root embedded into C\mathbb CC. Negative eigenvalues are not excluded by the index condition; for them the real square root is 000, so the resulting matrix is zero. The family is empty if JΦJ_\PhiJΦ​ is not Hermitian or either index type is empty; the definition itself asserts no completeness or representation identity.

QAlgorithms.Papers.Independent.Gap48.P36.weightMatrix

For an index type KKK with decidable equality and any function a:K→Ra:K\to\mathbb Ra:K→R, this defines the complex diagonal matrix whose (j,k)(j,k)(j,k)-entry is aka_kak​, embedded in C\mathbb CC, when j=kj=kj=k, and zero otherwise. The weights may be negative and need not sum to one; an empty KKK gives the unique empty matrix.

QAlgorithms.Papers.Independent.Gap48.P36.weightRoot

For an index type KKK with decidable equality and any function a:K→Ra:K\to\mathbb Ra:K→R, this defines the complex diagonal matrix whose (j,k)(j,k)(j,k)-entry is ak\sqrt{a_k}ak​​, embedded in C\mathbb CC, when j=kj=kj=k, and zero otherwise. The real square root is zero for negative inputs, so negative weights give zero diagonal entries. No normalization or nonnegativity assumption is imposed on aaa.

QAlgorithms.Papers.Independent.Gap48.P36.weightedKraus

For arbitrary types A,KA,KA,K, any family of complex matrices Tk∈CA×AT_k\in\mathbb C^{A\times A}Tk​∈CA×A, and any real-valued function a:K→Ra:K\to\mathbb Ra:K→R, this defines the matrix family Fk=a(k) TkF_k=\sqrt{a(k)}\,T_kFk​=a(k)​Tk​, with the real square root regarded as a complex scalar. There are no finiteness, unitarity, normalization, or nonnegativity assumptions in this definition. If a(k)≤0a(k)\le0a(k)≤0, its real square root is 000, so Fk=0F_k=0Fk​=0.

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

    Confirmed by the moderator at approval.

  • Endorsed by Goku · Oct 22, 2026

    Confirmed by the mission captain (proposal self-audit).

  • 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