Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for Structure of irreducibly covariant quantum channels for finite groups

Definition
QAlgorithms_Papers_Independent_Extend50_P31

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

prove2quantum

The objects the formalized statements of Structure of irreducibly covariant quantum channels for finite groups (arXiv:1610.05657) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • EndMat: PDF pp.4--7: complex-linear endomorphisms on every operator.
  • rowVec: PDF p.4, Eq.(5): row vectorization, also for rectangular matrices.
  • rowMatrixRepresentative: PDF pp.5--6, Eqs.(8),(15): entries in the fixed matrix-unit basis.
  • fromMat: The inverse coordinate representation, acting on every operator.
  • IsPaperChannel: PDF p.8 Definition 7; complete positivity is the frozen all-ancilla definition.
  • UnitaryIrrep: PDF p.7: an ordinary unitary irreducible representation, with positive dimension. Irreducibility means that every complex invariant linear subspace is zero or the whole space.
  • RepEquivalent: PDF p.9: equivalence of representations is an invertible intertwiner.
  • IrrepFamily: PDF pp.9--10: complete, inequivalent, coordinate-fixed unitary irreducibles.
  • character: PDF p.8: character of a fixed-coordinate irrep.
  • conjugationMap: PDF p.7 Eq.(25), conjugation on the full operator space.
  • tensorConjugate: PDF pp.7--8 Eqs.(24),(28): entrywise conjugation on the second tensor factor.
  • IsIrrepCovariant: PDF p.8 Eq.(31), on every operator, without positivity or TP.
  • representationCommutant: PDF p.9 Eq.(36), as an actual complex linear subspace.
  • SimplyReducible: PDF p.11 Eq.(47): an invertible intertwiner to exactly one copy of each listed irrep. This predicate contains no character-projector facts.
  • Data: Only the section's standing assumptions, PDF pp.7--11 and Assumption 1 p.17.
  • OccurringIrrep: PDF p.11 Eq.(47): only the occurring irreducible labels.
  • Row: PDF pp.18--19: one coordinate for every fine irrep basis index, with multiplicity.
  • centralMatrix: PDF p.11 Eq.(49), computed for every irrep, including absent ones.
  • centralMap: PDF p.12 Eq.(54), a group average of conjugation maps.
  • fineMatrix: PDF p.12 Eq.(57), diagonal matrix-coefficient average in the fixed irrep basis.
  • fineMap: PDF p.12 Eq.(59), before any rank conclusion is supplied.
  • rawMatrix: PDF pp.31,36,40: the raw (unnormalized) matrix, including zero pivots.
  • pivotWeight: PDF p.13 Eq.(66): real diagonal weight of the positive rank-one projector.
  • normalizedMatrix: PDF p.13 Eq.(62): normalization is computed, and used only at positive pivots.
  • Pivots: PDF p.14 Remark 23: one independently chosen positive pivot for each fine sector.
  • eigenmatrix: PDF pp.13--14: the selected eigenmatrix, with no assumed normalization.
  • choiVector: PDF p.15 Eq.(74): transpose, with no coefficient conjugation.
  • muAt: PDF p.15 Eq.(77): the eigenvalue for any pivot.
  • spectralMatrix: PDF p.19 Eq.(95): rectangular transform, one row per fine sector.
  • spectralMap: PDF pp.11--12 Eq.(53): spectral map with arbitrary complex sector coefficients.
  • trivialCoefficient: Extract the trivial coefficient without assuming the conclusion that id belongs to theta.
  • choiEigenvalueVector: PDF p.16 Eq.(80).
  • NonnegativeScalar: Complex inequalities mean membership in the embedded nonnegative real scalars.
  • scaledSimplex: PDF p.20 Eq.(104): all eigenvalues, including multiplicities, sum to n.
  • spectralGram: PDF p.19 Eqs.(96)--(98), the Gram matrix is computed from M.
  • leftInverse: PDF p.19 Eq.(96); invertibility of spectralGram is a theorem conclusion.
  • pivotKrausFamily: PDF p.18, corrected by Appendix D: sqrt(choiEigenvalueVector) times unvec(v) transposed.
  • classCoefficients: PDF p.21 Eq.(109); note g, not g inverse.
  • conjugacyClass: PDF p.10 Eq.(46), finite conjugacy class.
  • classAverage: PDF pp.22--23 Eq.(116), the conjugacy-class averaging matrix.
  • characterMatrix: PDF p.22 Definition 53: the character matrix.
  • doubleSumMu: PDF p.16 Eq.(83) and p.15 Eq.(79).
  • squaredSumEpsilon: PDF p.16 Eq.(82), corrected |G|^-3 prefactor (see Appendix B p.39 Eq.(185)).
  • HasDecomposition: PDF p.9 Eq.(34), with actual multiplicity spaces and an intertwining equivalence.
  • permutationSign: Sign character in the paper's Examples 11,12 and Section 8.3.
  • DoubletDecomposition: PDF pp.9--10 Eqs.(39),(40): actual id + sign + doublet intertwining decomposition.
  • flatIndex: Fixed-coordinate flattening for the explicit 4 by 4 matrices, row order 00,01,10,11.
  • tensorFour: Reindex a printed 4 by 4 matrix to tensor coordinates.
  • quaternionQ1: PDF p.24 Eq.(124): Q1 and Q2 generate the concrete quaternion doublet.
  • quaternionQ2: PDF p.24 Eq.(124), Q2.
  • quaternionRepresentation: PDF p.24 Eq.(124), using Mathlib's a^j and x*a^j constructors.
  • quaternionCharacter: PDF p.24 Table 1, ordered id,t1,t2,t3, for the four one-dimensional characters.
  • QuaternionDecomposition: PDF p.24 Eq.(125), with the Table 1 character-labelled one-dimensional summands.
  • quaternionSuperMatrix: PDF p.25 Eq.(127), with real coefficients a=l_t1, b=l_t2, c=l_t3.
  • quaternionMap: PDF p.25 Eq.(127): the concrete map, on every operator.
  • quaternionChoiMatrix: PDF p.25 Eq.(128).
  • quaternionEigenvalues: PDF p.25 Eq.(129), including all multiplicities, order id,t1,t2,t3.
  • QuaternionCP: PDF p.25 Eq.(129), the tetrahedron rather than its containing cube.
  • quaternionTransform: PDF pp.25--26 Eqs.(130),(131), with the corrected minus sign in the third row.
  • quaternionKraus: PDF p.26 Eq.(134), corrected eigenvalue labels t1,t2,t3, ordered id,t1,t2,t3.
  • HasOrthonormalSpectrum: Orthonormal complete eigensystem; eigenvalues are listed with multiplicity.
  • EpsilonRealization: PDF p.26 Eq.(135), choiEigenvalueVector realization in the source's fixed coordinate basis.
  • s3Map: PDF p.26 Eq.(137), s=l_sign and t=l_lambda.
  • s3Eigenvalues: PDF p.27 Eq.(140), order id,sign,lambda_1,lambda_2.
  • S3CP: PDF p.27 Eq.(142), the full triangle.
  • s3Kraus: PDF p.27 Eq.(143), order id,sign,lambda_1,lambda_2.
  • s3Transform: PDF p.27 Eq.(139), rectangular 4 by 3 spectral transform.
  • s3Inverse: PDF p.27 Eq.(141), a left inverse on the spectral range, not necessarily the Gram inverse.
  • permutationFixedCount: Fixed-point count, used to identify S4 partition labels independently of a coordinate basis.
  • s4StandardCharacter: S4 standard character, partition (3,1), source PDF p.28.
  • s4DoubletCharacter: S4 doublet character, partition (2,2), computed from fixed points of g and g squared.
  • s4TwistCharacter: S4 sign twist of the standard character, partition (2,1,1).
  • mapByCharacter: Eq.(54), allowing named concrete characters instead of a full family of labels.
  • S4TripletDecomposition: PDF p.28 Eq.(145), actual summands of dimensions 1,3,2,3.
  • s4Map: PDF p.28, spectral family constructed by character projectors, not printed Eq.(148).
  • s4Eigenvalues: PDF p.29 Eq.(149), order id, three (3,1), two (2,2), three (2,1,1) eigenvalues.
  • QuaternionPPT: PDF p.31 Eq.(155), the four additional PPT inequalities.
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Defs_MatrixMapPositivity
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P44
import Definitions.Def_QAlgorithms_Papers_Independent_Frontier18_P17
import Definitions.Def_QAlgorithms_Papers_Independent_Bridge50_P37
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P34
import Definitions.Def_QAlgorithms_Papers_Independent_Dependency50_P26
import Definitions.Def_QAlgorithms_Papers_Independent_Dependency50_P16
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P75

/-!
Statements from Mozrzymas--Studzinski--Datta, arXiv:1610.05657v2.
Pinned accepted definitions and the remaining paper-local substrate use the paper's row vectorization and unnormalized, input-first Choi
matrix. No theorem about the constructed projectors is a field of the input data.
Source corrections are identified at the affected declarations and in MODERATION_NOTES.md.
-/

noncomputable section

open scoped Matrix ComplexConjugate ComplexOrder

attribute [local instance] Classical.propDecidable Classical.decEq

namespace QAlgorithms.Papers.Independent.Extend50.P31

-- Exact pinned definitions; paper-specific interfaces below retain distinct names.
open QAlgorithms.Papers.Independent.Information100.P44 (Mat matrixUnit)
open QAlgorithms.Papers.Independent.Frontier18.P17 (hs)
open QAlgorithms.Papers.Independent.Bridge50.P37 (hsAdjoint)
open QAlgorithms.Papers.Independent.Information100.P34 (choi)
open QAlgorithms.Papers.Independent.Dependency50.P26 (TracePreserving)
open QAlgorithms.Papers.Independent.Dependency50.P16 (sandwich)
open QAlgorithms.Papers.Independent.Information100.P75 (phase)

/-- PDF pp.4--7: complex-linear endomorphisms on every operator. -/
abbrev EndMat (n : ℕ) := Mat n →ₗ[ℂ] Mat n

/-- PDF p.4, Eq.(5): row vectorization, also for rectangular matrices. -/
def rowVec {d e : ℕ} : Matrix (Fin d) (Fin e) ℂ ≃ₗ[ℂ] ((Fin d × Fin e) → ℂ) where
  toFun X p := X p.1 p.2
  invFun v i j := v (i,j)
  left_inv _ := rfl
  right_inv _ := rfl
  map_add' _ _ := rfl
  map_smul' _ _ := rfl

/-- PDF pp.5--6, Eqs.(8),(15): entries in the fixed matrix-unit basis. -/
def rowMatrixRepresentative {n : ℕ} (Phi : EndMat n) : Matrix (Fin n × Fin n) (Fin n × Fin n) ℂ :=
  fun p q => Phi (matrixUnit q.1 q.2) p.1 p.2

/-- The inverse coordinate representation, acting on every operator. -/
def fromMat {n : ℕ} (M : Matrix (Fin n × Fin n) (Fin n × Fin n) ℂ) : EndMat n :=
  rowVec.symm.toLinearMap.comp (M.mulVecLin.comp rowVec.toLinearMap)

/-- PDF p.8 Definition 7; complete positivity is the frozen all-ancilla definition. -/
def IsPaperChannel {d e : ℕ} (Phi : Mat d →ₗ[ℂ] Mat e) : Prop :=
  QAlgorithms.Entanglement.IsCompletelyPositive Phi ∧ TracePreserving Phi

/-- PDF p.7: an ordinary unitary irreducible representation, with positive dimension.
Irreducibility means that every complex invariant linear subspace is zero or the whole space. -/
structure UnitaryIrrep (G : Type*) [Group G] (n : ℕ) where
  rho : G → Mat n
  positive : 0 < n
  one : rho 1 = 1
  mul : ∀ g h, rho (g*h) = rho g * rho h
  unitary : ∀ g, (rho g)ᴴ * rho g = 1 ∧ rho g * (rho g)ᴴ = 1
  irreducible : ∀ S : Submodule ℂ (Fin n → ℂ),
    (∀ g v, v ∈ S → (rho g).mulVec v ∈ S) → S = ⊥ ∨ S = ⊤

/-- PDF p.9: equivalence of representations is an invertible intertwiner. -/
def RepEquivalent {G : Type*} {d e : ℕ} (U : G → Mat d) (V : G → Mat e) : Prop :=
  ∃ T : (Fin d → ℂ) ≃ₗ[ℂ] (Fin e → ℂ),
    ∀ g x, T ((U g).mulVec x) = (V g).mulVec (T x)

/-- PDF pp.9--10: complete, inequivalent, coordinate-fixed unitary irreducibles. -/
structure IrrepFamily (G A : Type*) [Group G] where
  dim : A → ℕ
  irrep : (a : A) → UnitaryIrrep G (dim a)
  trivial : A
  trivial_dim : dim trivial = 1
  trivial_action : ∀ g, (irrep trivial).rho g = 1
  inequivalent : ∀ a b, RepEquivalent (irrep a).rho (irrep b).rho → a = b
  complete : ∀ d (V : UnitaryIrrep G d), ∃ a, RepEquivalent V.rho (irrep a).rho

/-- PDF p.8: character of a fixed-coordinate irrep. -/
def character {G : Type*} [Group G] {n : ℕ} (U : UnitaryIrrep G n) (g : G) : ℂ :=
  Matrix.trace (U.rho g)

/-- PDF p.7 Eq.(25), conjugation on the full operator space. -/
def conjugationMap {G : Type*} [Group G] {n : ℕ} (U : UnitaryIrrep G n) (g : G) : EndMat n :=
  sandwich (U.rho g) (U.rho g)ᴴ

/-- PDF pp.7--8 Eqs.(24),(28): entrywise conjugation on the second tensor factor. -/
def tensorConjugate {G : Type*} [Group G] {n : ℕ} (U : UnitaryIrrep G n) (g : G) :=
  Matrix.kronecker (U.rho g) (fun i j => conj (U.rho g i j))

/-- PDF p.8 Eq.(31), on every operator, without positivity or TP. -/
def IsIrrepCovariant {G : Type*} [Group G] {n : ℕ} (U : UnitaryIrrep G n) (Phi : EndMat n) : Prop :=
  ∀ g X, Phi (conjugationMap U g X) = conjugationMap U g (Phi X)

/-- PDF p.9 Eq.(36), as an actual complex linear subspace. -/
def representationCommutant {G I : Type*} [Fintype I] [DecidableEq I]
    (R : G → Matrix I I ℂ) : Submodule ℂ (Matrix I I ℂ) where
  carrier := {M | ∀ g, M * R g = R g * M}
  zero_mem' := by simp
  add_mem' := by intro M N hM hN g; simp [add_mul, mul_add, hM g, hN g]
  smul_mem' := by intro c M hM g; simpa [Matrix.smul_mul, Matrix.mul_smul] using congrArg (c • ·) (hM g)

/-- PDF p.11 Eq.(47): an invertible intertwiner to exactly one copy of each listed irrep.
This predicate contains no character-projector facts. -/
def SimplyReducible {G A : Type*} [Group G] [DecidableEq A] {n : ℕ}
    (U : UnitaryIrrep G n) (F : IrrepFamily G A) (theta : Finset A) : Prop :=
  ∃ T : ((Fin n × Fin n) → ℂ) ≃ₗ[ℂ]
      ((a : {a // a ∈ theta}) → Fin (F.dim a.val) → ℂ),
    ∀ g v a, T ((tensorConjugate U g).mulVec v) a =
      ((F.irrep a.val).rho g).mulVec (T v a)

/-- Only the section's standing assumptions, PDF pp.7--11 and Assumption 1 p.17. -/
structure Data (G A : Type*) [Group G] [Fintype G] [Fintype A] [DecidableEq A] (n : ℕ) where
  U : UnitaryIrrep G n
  F : IrrepFamily G A
  theta : Finset A
  decomposition : SimplyReducible U F theta

variable {G A : Type*} [Group G] [Fintype G] [Fintype A] [DecidableEq A] {n : ℕ}

/-- PDF p.11 Eq.(47): only the occurring irreducible labels. -/
abbrev OccurringIrrep (D : Data G A n) := {a // a ∈ D.theta}

/-- PDF pp.18--19: one coordinate for every fine irrep basis index, with multiplicity. -/
abbrev Row (D : Data G A n) := Σ a : OccurringIrrep D, Fin (D.F.dim a.val)

/-- PDF p.11 Eq.(49), computed for every irrep, including absent ones. -/
def centralMatrix (U : UnitaryIrrep G n) (F : IrrepFamily G A) (a : A) :
    Matrix (Fin n × Fin n) (Fin n × Fin n) ℂ :=
  ((F.dim a : ℂ) / Fintype.card G) •
    ∑ g : G, character (F.irrep a) g⁻¹ • tensorConjugate U g

/-- PDF p.12 Eq.(54), a group average of conjugation maps. -/
def centralMap (U : UnitaryIrrep G n) (F : IrrepFamily G A) (a : A) : EndMat n :=
  ((F.dim a : ℂ) / Fintype.card G) •
    ∑ g : G, character (F.irrep a) g⁻¹ • conjugationMap U g

/-- PDF p.12 Eq.(57), diagonal matrix-coefficient average in the fixed irrep basis. -/
def fineMatrix (U : UnitaryIrrep G n) (F : IrrepFamily G A) (a : A)
    (i : Fin (F.dim a)) : Matrix (Fin n × Fin n) (Fin n × Fin n) ℂ :=
  ((F.dim a : ℂ) / Fintype.card G) •
    ∑ g : G, (F.irrep a).rho g⁻¹ i i • tensorConjugate U g

/-- PDF p.12 Eq.(59), before any rank conclusion is supplied. -/
def fineMap (U : UnitaryIrrep G n) (F : IrrepFamily G A) (a : A)
    (i : Fin (F.dim a)) : EndMat n :=
  ((F.dim a : ℂ) / Fintype.card G) •
    ∑ g : G, (F.irrep a).rho g⁻¹ i i • conjugationMap U g

/-- PDF pp.31,36,40: the raw (unnormalized) matrix, including zero pivots. -/
def rawMatrix (U : UnitaryIrrep G n) (F : IrrepFamily G A) (a : A)
    (i : Fin (F.dim a)) (p : Fin n × Fin n) : Mat n :=
  fineMap U F a i (matrixUnit p.1 p.2)

/-- PDF p.13 Eq.(66): real diagonal weight of the positive rank-one projector. -/
def pivotWeight (U : UnitaryIrrep G n) (F : IrrepFamily G A) (a : A)
    (i : Fin (F.dim a)) (p : Fin n × Fin n) : ℝ :=
  (fineMatrix U F a i p p).re

/-- PDF p.13 Eq.(62): normalization is computed, and used only at positive pivots. -/
def normalizedMatrix (U : UnitaryIrrep G n) (F : IrrepFamily G A) (a : A)
    (i : Fin (F.dim a)) (p : Fin n × Fin n) : Mat n :=
  ((Real.sqrt (pivotWeight U F a i p))⁻¹ : ℂ) • rawMatrix U F a i p

/-- PDF p.14 Remark 23: one independently chosen positive pivot for each fine sector. -/
structure Pivots (D : Data G A n) where
  pivot : Row D → Fin n × Fin n
  positive : ∀ r, 0 < pivotWeight D.U D.F r.1.val r.2 (pivot r)

/-- PDF pp.13--14: the selected eigenmatrix, with no assumed normalization. -/
def eigenmatrix (D : Data G A n) (P : Pivots D) (r : Row D) : Mat n :=
  normalizedMatrix D.U D.F r.1.val r.2 (P.pivot r)

/-- PDF p.15 Eq.(74): transpose, with no coefficient conjugation. -/
def choiVector (D : Data G A n) (P : Pivots D) (r : Row D) : (Fin n × Fin n) → ℂ :=
  rowVec (eigenmatrix D P r)ᵀ

/-- PDF p.15 Eq.(77): the eigenvalue for any pivot. -/
def muAt (D : Data G A n) (a : A) (r : Row D) (p : Fin n × Fin n) : ℂ :=
  ((D.F.dim a : ℂ) / Fintype.card G) * ∑ g : G,
    character (D.F.irrep a) g⁻¹ *
      (Complex.normSq (Matrix.trace (normalizedMatrix D.U D.F r.1.val r.2 p * (D.U.rho g)ᴴ)) : ℂ)

/-- PDF p.19 Eq.(95): rectangular transform, one row per fine sector. -/
def spectralMatrix (D : Data G A n) (P : Pivots D) : Matrix (Row D) (OccurringIrrep D) ℂ :=
  fun r a => muAt D a.val r (P.pivot r)

/-- PDF pp.11--12 Eq.(53): spectral map with arbitrary complex sector coefficients. -/
def spectralMap (D : Data G A n) (l : OccurringIrrep D → ℂ) : EndMat n :=
  ∑ a : OccurringIrrep D, l a • centralMap D.U D.F a.val

/-- Extract the trivial coefficient without assuming the conclusion that id belongs to theta. -/
def trivialCoefficient (D : Data G A n) (l : OccurringIrrep D → ℂ) : ℂ :=
  ∑ a : OccurringIrrep D, if a.val = D.F.trivial then l a else 0

/-- PDF p.16 Eq.(80). -/
def choiEigenvalueVector (D : Data G A n) (P : Pivots D) (l : OccurringIrrep D → ℂ) : Row D → ℂ :=
  (spectralMatrix D P).mulVec l

/-- Complex inequalities mean membership in the embedded nonnegative real scalars. -/
def NonnegativeScalar (z : ℂ) : Prop := z.im = 0 ∧ 0 ≤ z.re

/-- PDF p.20 Eq.(104): all eigenvalues, including multiplicities, sum to n. -/
def scaledSimplex (D : Data G A n) : Set (Row D → ℂ) :=
  {e | (∀ r, NonnegativeScalar (e r)) ∧ ∑ r, e r = (n : ℂ)}

/-- PDF p.19 Eqs.(96)--(98), the Gram matrix is computed from M. -/
def spectralGram (D : Data G A n) (P : Pivots D) :=
  (spectralMatrix D P)ᴴ * spectralMatrix D P

/-- PDF p.19 Eq.(96); invertibility of spectralGram is a theorem conclusion. -/
def leftInverse (D : Data G A n) (P : Pivots D) :=
  (spectralGram D P)⁻¹ * (spectralMatrix D P)ᴴ

/-- PDF p.18, corrected by Appendix D: sqrt(choiEigenvalueVector) times unvec(v) transposed. -/
def pivotKrausFamily (D : Data G A n) (P : Pivots D) (l : OccurringIrrep D → ℂ) (r : Row D) : Mat n :=
  (Real.sqrt (choiEigenvalueVector D P l r).re : ℂ) • (rowVec.symm (choiVector D P r))ᵀ

/-- PDF p.21 Eq.(109); note g, not g inverse. -/
def classCoefficients (D : Data G A n) (f : G → ℂ) (a : OccurringIrrep D) : ℂ :=
  (∑ g, character (D.F.irrep a.val) g * f g) /
    ((Fintype.card G : ℂ) * D.F.dim a.val)

/-- PDF p.10 Eq.(46), finite conjugacy class. -/
def conjugacyClass (g : G) : Finset G :=
  Finset.univ.filter (fun h => ∃ k : G, h = k * g * k⁻¹)

/-- PDF pp.22--23 Eq.(116), the conjugacy-class averaging matrix. -/
def classAverage : Matrix G G ℂ :=
  fun g h => if h ∈ conjugacyClass g then (Fintype.card {x // x ∈ conjugacyClass g} : ℂ)⁻¹ else 0

/-- PDF p.22 Definition 53: the character matrix. -/
def characterMatrix (F : IrrepFamily G A) : Matrix G A ℂ :=
  fun g a => character (F.irrep a) g⁻¹

/-- PDF p.16 Eq.(83) and p.15 Eq.(79). -/
def doubleSumMu (D : Data G A n) (a : A) (r : Row D) (p : Fin n × Fin n) : ℂ :=
  ((D.F.dim a : ℂ) * D.F.dim r.1.val /
      ((pivotWeight D.U D.F r.1.val r.2 p : ℂ) * (Fintype.card G : ℂ)^2)) *
    ∑ g : G, ∑ h : G, character (D.F.irrep a) g⁻¹ *
      (D.F.irrep r.1.val).rho h⁻¹ r.2 r.2 *
      D.U.rho g⁻¹ p.2 p.1 * D.U.rho (h*g*h⁻¹) p.1 p.2

/-- PDF p.16 Eq.(82), corrected |G|^-3 prefactor (see Appendix B p.39 Eq.(185)). -/
def squaredSumEpsilon (D : Data G A n) (l : OccurringIrrep D → ℂ)
    (r : Row D) (p : Fin n × Fin n) : ℂ :=
  ((Fintype.card G : ℂ)^3)⁻¹ * ∑ g : G, ∑ a : OccurringIrrep D,
    l a * (D.F.dim a.val : ℂ) * character (D.F.irrep a.val) g⁻¹ *
      (Complex.normSq (((D.F.dim r.1.val : ℂ) /
        (Real.sqrt (pivotWeight D.U D.F r.1.val r.2 p) : ℂ)) *
        ∑ h : G, (D.F.irrep r.1.val).rho h⁻¹ r.2 r.2 *
          D.U.rho (h⁻¹*g⁻¹*h) p.2 p.1) : ℂ)

/-- Sanity: the row-vectorized (0,1) matrix unit occupies coordinate (0,1). -/
example : rowVec (matrixUnit (0 : Fin 2) 1) (0,1) = 1 := by
  change (Matrix.single (0 : Fin 2) 1 (1 : ℂ)) 0 1 = 1
  simp [Matrix.single]

/-- Sanity: Choi uses input-first coordinates even for a rectangular map. -/
example {d e : ℕ} (Phi : Mat d →ₗ[ℂ] Mat e) (i j : Fin d) (k l : Fin e) :
    choi Phi (i,k) (j,l) = Phi (matrixUnit i j) k l := rfl

/-- Sanity: a zero pivot never generates a spurious nonzero normalized matrix. -/
example (U : UnitaryIrrep G n) (F : IrrepFamily G A) (a : A)
    (i : Fin (F.dim a)) (p : Fin n × Fin n) (h : pivotWeight U F a i p = 0) :
    normalizedMatrix U F a i p = 0 := by
  simp [normalizedMatrix, h]

/-- Sanity: phase zero is the scalar one. -/
example : phase 0 = 1 := by simp [phase]

/-- PDF p.9 Eq.(34), with actual multiplicity spaces and an intertwining equivalence. -/
def HasDecomposition (U : UnitaryIrrep G n) (F : IrrepFamily G A) (m : A → ℕ) : Prop :=
  ∃ T : ((Fin n × Fin n) → ℂ) ≃ₗ[ℂ]
      ((a : A) → Fin (m a) → Fin (F.dim a) → ℂ),
    ∀ g v a j, T ((tensorConjugate U g).mulVec v) a j =
      ((F.irrep a).rho g).mulVec (T v a j)

/-- Sign character in the paper's Examples 11,12 and Section 8.3. -/
def permutationSign {k : ℕ} (g : Equiv.Perm (Fin k)) : ℂ :=
  ((Equiv.Perm.sign g : ℤ) : ℂ)

/-- PDF pp.9--10 Eqs.(39),(40): actual id + sign + doublet intertwining decomposition. -/
def DoubletDecomposition {k : ℕ} (U : UnitaryIrrep (Equiv.Perm (Fin k)) 2) : Prop :=
  ∃ T : ((Fin 2 × Fin 2) → ℂ) ≃ₗ[ℂ] (ℂ × ℂ × (Fin 2 → ℂ)),
    ∀ g v, T ((tensorConjugate U g).mulVec v) =
      ((T v).1, permutationSign g * (T v).2.1, (U.rho g).mulVec (T v).2.2)

/-- Fixed-coordinate flattening for the explicit 4 by 4 matrices, row order 00,01,10,11. -/
def flatIndex (p : Fin 2 × Fin 2) : Fin 4 := Fin.ofNat 4 (2*p.1.val + p.2.val)

/-- Reindex a printed 4 by 4 matrix to tensor coordinates. -/
def tensorFour (M : Matrix (Fin 4) (Fin 4) ℂ) :
    Matrix (Fin 2 × Fin 2) (Fin 2 × Fin 2) ℂ :=
  fun p q => M (flatIndex p) (flatIndex q)

/-- PDF p.24 Eq.(124): Q1 and Q2 generate the concrete quaternion doublet. -/
def quaternionQ1 : Mat 2 := !![Complex.I, 0; 0, -Complex.I]

/-- PDF p.24 Eq.(124), Q2. -/
def quaternionQ2 : Mat 2 := !![0, 1; -1, 0]

/-- PDF p.24 Eq.(124), using Mathlib's a^j and x*a^j constructors. -/
def quaternionRepresentation : QuaternionGroup 2 → Mat 2
  | .a j => quaternionQ1 ^ j.val
  | .xa j => quaternionQ2 * quaternionQ1 ^ j.val

/-- PDF p.24 Table 1, ordered id,t1,t2,t3, for the four one-dimensional characters. -/
def quaternionCharacter (a : Fin 4) : QuaternionGroup 2 → ℂ
  | .a j => if a = 0 ∨ a = 2 then 1 else (-1 : ℂ)^j.val
  | .xa j => if a = 0 then 1 else if a = 1 then (-1 : ℂ)^j.val
      else if a = 2 then -1 else -((-1 : ℂ)^j.val)

/-- PDF p.24 Eq.(125), with the Table 1 character-labelled one-dimensional summands. -/
def QuaternionDecomposition (U : UnitaryIrrep (QuaternionGroup 2) 2) : Prop :=
  ∃ T : ((Fin 2 × Fin 2) → ℂ) ≃ₗ[ℂ] (Fin 4 → ℂ),
    ∀ g v a, T ((tensorConjugate U g).mulVec v) a = quaternionCharacter a g * T v a

/-- PDF p.25 Eq.(127), with real coefficients a=l_t1, b=l_t2, c=l_t3. -/
def quaternionSuperMatrix (a b c : ℝ) : Matrix (Fin 4) (Fin 4) ℂ :=
  (1/2 : ℂ) • !![1+(b : ℂ), 0, 0, 1-(b : ℂ);
    0, (a : ℂ)+(c : ℂ), (c : ℂ)-(a : ℂ), 0; 0, (c : ℂ)-(a : ℂ), (a : ℂ)+(c : ℂ), 0; 1-(b : ℂ), 0, 0, 1+(b : ℂ)]

/-- PDF p.25 Eq.(127): the concrete map, on every operator. -/
def quaternionMap (a b c : ℝ) : EndMat 2 := fromMat (tensorFour (quaternionSuperMatrix a b c))

/-- PDF p.25 Eq.(128). -/
def quaternionChoiMatrix (a b c : ℝ) : Matrix (Fin 4) (Fin 4) ℂ :=
  (1/2 : ℂ) • !![1+(b : ℂ), 0, 0, (a : ℂ)+(c : ℂ);
    0, 1-(b : ℂ), (c : ℂ)-(a : ℂ), 0; 0, (c : ℂ)-(a : ℂ), 1-(b : ℂ), 0; (a : ℂ)+(c : ℂ), 0, 0, 1+(b : ℂ)]

/-- PDF p.25 Eq.(129), including all multiplicities, order id,t1,t2,t3. -/
def quaternionEigenvalues (a b c : ℝ) : Fin 4 → ℝ :=
  ![(1+a+b+c)/2, (1+a-b-c)/2, (1-a+b-c)/2, (1-a-b+c)/2]

/-- PDF p.25 Eq.(129), the tetrahedron rather than its containing cube. -/
def QuaternionCP (a b c : ℝ) : Prop :=
  0 ≤ (1+a+b+c)/2 ∧ 0 ≤ (1+a-b-c)/2 ∧ 0 ≤ (1-a+b-c)/2 ∧ 0 ≤ (1-a-b+c)/2

/-- PDF pp.25--26 Eqs.(130),(131), with the corrected minus sign in the third row. -/
def quaternionTransform : Matrix (Fin 4) (Fin 4) ℂ :=
  (1/2 : ℂ) • !![1,1,1,1; 1,1,-1,-1; 1,-1,1,-1; 1,-1,-1,1]

/-- PDF p.26 Eq.(134), corrected eigenvalue labels t1,t2,t3, ordered id,t1,t2,t3. -/
def quaternionKraus (a b c : ℝ) (r : Fin 4) : Mat 2 :=
  (Real.sqrt (quaternionEigenvalues a b c r / 2) : ℂ) •
    (![1, quaternionQ2, !![-1,0;0,1], !![0,1;1,0]] : Fin 4 → Mat 2) r

/-- Orthonormal complete eigensystem; eigenvalues are listed with multiplicity. -/
def HasOrthonormalSpectrum {k d : ℕ} (M : Matrix (Fin d × Fin d) (Fin d × Fin d) ℂ)
    (values : Fin k → ℝ) : Prop :=
  ∃ v : Fin k → (Fin d × Fin d) → ℂ,
    (∀ i j, (∑ p, conj (v i p) * v j p) = if i = j then 1 else 0) ∧
    Submodule.span ℂ (Set.range v) = ⊤ ∧
    ∀ i, M.mulVec (v i) = (values i : ℂ) • v i

/-- PDF p.26 Eq.(135), choiEigenvalueVector realization in the source's fixed coordinate basis. -/
def EpsilonRealization (U : UnitaryIrrep (Equiv.Perm (Fin 3)) 2) : Prop :=
  let w := Complex.exp (((2*Real.pi/3 : ℝ) : ℂ) * Complex.I)
  U.rho (Equiv.swap 0 1) = !![0,1;1,0] ∧
  U.rho (Equiv.swap 1 2) = !![0,w^2;w,0]

/-- PDF p.26 Eq.(137), s=l_sign and t=l_lambda. -/
def s3Map (s t : ℝ) : EndMat 2 := quaternionMap t s t

/-- PDF p.27 Eq.(140), order id,sign,lambda_1,lambda_2. -/
def s3Eigenvalues (s t : ℝ) : Fin 4 → ℝ :=
  ![(1+s)/2+t, (1+s)/2-t, (1-s)/2, (1-s)/2]

/-- PDF p.27 Eq.(142), the full triangle. -/
def S3CP (s t : ℝ) : Prop := -1 ≤ s ∧ s ≤ 1 ∧ |t| ≤ (1+s)/2

/-- PDF p.27 Eq.(143), order id,sign,lambda_1,lambda_2. -/
def s3Kraus (s t : ℝ) : Fin 4 → Mat 2 :=
  ![(Real.sqrt (s3Eigenvalues s t 0 / 2) : ℂ) • 1,
    (Real.sqrt (s3Eigenvalues s t 1 / 2) : ℂ) • !![-1,0;0,1],
    (Real.sqrt (s3Eigenvalues s t 2) : ℂ) • !![0,0;1,0],
    (Real.sqrt (s3Eigenvalues s t 3) : ℂ) • !![0,1;0,0]]

/-- PDF p.27 Eq.(139), rectangular 4 by 3 spectral transform. -/
def s3Transform : Matrix (Fin 4) (Fin 3) ℂ :=
  (1/2 : ℂ) • !![1,1,2;1,1,-2;1,-1,0;1,-1,0]

/-- PDF p.27 Eq.(141), a left inverse on the spectral range, not necessarily the Gram inverse. -/
def s3Inverse : Matrix (Fin 3) (Fin 4) ℂ :=
  (1/2 : ℂ) • !![1,1,1,1;1,1,-1,-1;1,-1,0,0]

/-- Fixed-point count, used to identify S4 partition labels independently of a coordinate basis. -/
def permutationFixedCount {k : ℕ} (g : Equiv.Perm (Fin k)) : ℕ :=
  (Finset.univ.filter (fun i => g i = i)).card

/-- S4 standard character, partition (3,1), source PDF p.28. -/
def s4StandardCharacter (g : Equiv.Perm (Fin 4)) : ℂ := (permutationFixedCount g : ℂ) - 1

/-- S4 doublet character, partition (2,2), computed from fixed points of g and g squared. -/
def s4DoubletCharacter (g : Equiv.Perm (Fin 4)) : ℂ :=
  ((permutationFixedCount g : ℂ)^2 + (permutationFixedCount (g*g) : ℂ))/2 - 2*(permutationFixedCount g : ℂ)

/-- S4 sign twist of the standard character, partition (2,1,1). -/
def s4TwistCharacter (g : Equiv.Perm (Fin 4)) : ℂ :=
  permutationSign g * s4StandardCharacter g

/-- Eq.(54), allowing named concrete characters instead of a full family of labels. -/
def mapByCharacter {H : Type*} [Group H] [Fintype H] {d : ℕ}
    (U : UnitaryIrrep H d) (dimension : ℕ) (chi : H → ℂ) : EndMat d :=
  ((dimension : ℂ) / Fintype.card H) • ∑ g : H, chi g⁻¹ • conjugationMap U g

/-- PDF p.28 Eq.(145), actual summands of dimensions 1,3,2,3. -/
def S4TripletDecomposition (U : UnitaryIrrep (Equiv.Perm (Fin 4)) 3)
    (V : UnitaryIrrep (Equiv.Perm (Fin 4)) 2)
    (W : UnitaryIrrep (Equiv.Perm (Fin 4)) 3) : Prop :=
  ∃ T : ((Fin 3 × Fin 3) → ℂ) ≃ₗ[ℂ]
      (ℂ × (Fin 3 → ℂ) × (Fin 2 → ℂ) × (Fin 3 → ℂ)),
    ∀ g v, T ((tensorConjugate U g).mulVec v) =
      ((T v).1, (U.rho g).mulVec (T v).2.1,
        (V.rho g).mulVec (T v).2.2.1, (W.rho g).mulVec (T v).2.2.2)

/-- PDF p.28, spectral family constructed by character projectors, not printed Eq.(148). -/
def s4Map (U : UnitaryIrrep (Equiv.Perm (Fin 4)) 3) (a b c : ℝ) : EndMat 3 :=
  mapByCharacter U 1 (fun _ => 1) + (a : ℂ) • mapByCharacter U 3 s4StandardCharacter +
    (b : ℂ) • mapByCharacter U 2 s4DoubletCharacter + (c : ℂ) • mapByCharacter U 3 s4TwistCharacter

/-- PDF p.29 Eq.(149), order id, three (3,1), two (2,2), three (2,1,1) eigenvalues. -/
def s4Eigenvalues (a b c : ℝ) : Fin 9 → ℝ :=
  ![(1+3*a+2*b+3*c)/3,
    (2+3*a-2*b-3*c)/6, (2+3*a-2*b-3*c)/6, (2+3*a-2*b-3*c)/6,
    (2-3*a+4*b-3*c)/6, (2-3*a+4*b-3*c)/6,
    (2-3*a-2*b+3*c)/6, (2-3*a-2*b+3*c)/6, (2-3*a-2*b+3*c)/6]

/-- PDF p.31 Eq.(155), the four additional PPT inequalities. -/
def QuaternionPPT (a b c : ℝ) : Prop :=
  0 ≤ (1-a-b-c)/2 ∧ 0 ≤ (1+a+b-c)/2 ∧ 0 ≤ (1+a-b+c)/2 ∧ 0 ≤ (1-a+b+c)/2

/-- Sanity: row order is 00,01,10,11. -/
example : flatIndex (0,1) = 1 ∧ flatIndex (1,0) = 2 := by decide

/-- Sanity: quaternion depolarization has four unnormalized Choi eigenvalues 1/2. -/
example : quaternionEigenvalues 0 0 0 = ![1/2,1/2,1/2,1/2] := by
  norm_num [quaternionEigenvalues]

/-- Sanity: the S3 identity parameter pair has unnormalized Choi eigenvalues 2,0,0,0. -/
example : s3Eigenvalues 1 1 = ![2,0,0,0] := by norm_num [s3Eigenvalues]

end QAlgorithms.Papers.Independent.Extend50.P31
Source
Structure of irreducibly covariant quantum channels for finite groups, arXiv:1610.05657v2, https://arxiv.org/abs/1610.05657v2
Read-back

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

QAlgorithms.Papers.Independent.Extend50.P31.Data

For a finite group GGG, a finite type AAA with decidable equality, and n∈Nn\in\mathbb Nn∈N, this structure consists of an irreducible unitary representation UUU of GGG on Cn\mathbb C^nCn, requiring n>0n>0n>0; a complete family (Va)a∈A(V_a)_{a\in A}(Va​)a∈A​ of positive-dimensional irreducible unitary representations with dimensions dad_ada​, pairwise inequivalent at distinct indices and with a distinguished one-dimensional trivial member; a finite subset θ⊆A\theta\subseteq Aθ⊆A; and evidence that there exists an invertible complex linear map

T:C{0,…,n−1}2⟶∏a∈θCda,(T((U(g)⊗U(g)‾)v))a=Va(g)(Tv)aT:\mathbb C^{\{0,\ldots,n-1\}^2}\longrightarrow \prod_{a\in\theta}\mathbb C^{d_a}, \qquad \bigl(T((U(g)\otimes\overline{U(g)})v)\bigr)_a =V_a(g)(Tv)_aT:C{0,…,n−1}2⟶a∈θ∏​Cda​,(T((U(g)⊗U(g)​)v))a​=Va​(g)(Tv)a​

for every g,v,ag,v,ag,v,a. Completeness of the family means that every positive-dimensional irreducible unitary representation of GGG is equivalent, through an invertible complex linear intertwiner, to a family member. The structure has no inhabitants for n=0n=0n=0, and its selected set θ\thetaθ must be nonempty.

QAlgorithms.Papers.Independent.Extend50.P31.DoubletDecomposition

For any natural number kkk, including k=0k=0k=0, and any two-dimensional irreducible unitary representation UUU of the permutation group SkS_kSk​, this property means that there exists an invertible complex-linear map T:C{0,1}×{0,1}→C×(C×C2)T:\mathbb C^{\{0,1\}\times\{0,1\}}\to\mathbb C\times(\mathbb C\times\mathbb C^2)T:C{0,1}×{0,1}→C×(C×C2) such that, for every g∈Skg\in S_kg∈Sk​ and every vector vvv, writing Tv=(x,y,w)Tv=(x,y,w)Tv=(x,y,w), one has

T((U(g)⊗U(g)‾)v)=(x,sgn⁡(g)y,U(g)w).T\bigl((U(g)\otimes\overline{U(g)})v\bigr) =\bigl(x,\operatorname{sgn}(g)y,U(g)w\bigr).T((U(g)⊗U(g)​)v)=(x,sgn(g)y,U(g)w).

Here U(1)=I2U(1)=I_2U(1)=I2​, U(gh)=U(g)U(h)U(gh)=U(g)U(h)U(gh)=U(g)U(h), every U(g)U(g)U(g) is unitary, and the only complex subspaces invariant under all U(g)U(g)U(g) are 000 and C2\mathbb C^2C2. The bar denotes entrywise complex conjugation, and the tensor matrix has entry U(g)ijU(g)ℓm‾U(g)_{ij}\overline{U(g)_{\ell m}}U(g)ij​U(g)ℓm​​ at row (i,ℓ)(i,\ell)(i,ℓ), column (j,m)(j,m)(j,m). The map TTT is not required to preserve inner products.

QAlgorithms.Papers.Independent.Extend50.P31.EndMat

For every natural number nnn, EndMat⁡(n)\operatorname{EndMat}(n)EndMat(n) denotes the complex vector space of complex-linear maps from n×nn\times nn×n complex matrices to n×nn\times nn×n complex matrices. This includes n=0n=0n=0, when the matrix space and its endomorphism space are zero-dimensional.

QAlgorithms.Papers.Independent.Extend50.P31.EpsilonRealization

For a two-dimensional irreducible unitary representation UUU of the permutation group on {0,1,2}\{0,1,2\}{0,1,2}—a representation preserving identity and multiplication, with unitary matrices and no invariant complex subspaces other than zero and the whole space—this predicate means precisely that, with w=e2πi/3w=e^{2\pi\mathrm i/3}w=e2πi/3,

U((0  1))=(0110),U((1  2))=(0w2w0).U((0\;1))=\begin{pmatrix}0&1\\1&0\end{pmatrix}, \qquad U((1\;2))=\begin{pmatrix}0&w^2\\w&0\end{pmatrix}.U((01))=(01​10​),U((12))=(0w​w20​).

QAlgorithms.Papers.Independent.Extend50.P31.HasDecomposition

Let GGG be a group, U:G→Mn(C)U:G\to M_n(\mathbb C)U:G→Mn​(C) a positive-dimensional irreducible unitary representation, and F=(Ua)a∈AF=(U_a)_{a\in A}F=(Ua​)a∈A​ a family of positive-dimensional irreducible unitary representations with dimensions dad_ada​. Each representation preserves identity and multiplication and has only zero and the whole space as invariant complex subspaces; the family contains a distinguished trivial member of dimension 111, contains every irreducible unitary representation up to an invertible complex-linear intertwiner, and equivalent members have equal indices. For any multiplicity function m:A→Nm:A\to\mathbb Nm:A→N, the declaration defines the following property: there exists an invertible complex-linear map

T:C{0,…,n−1}2⟶∏a∈A∏j=0ma−1CdaT:\mathbb C^{\{0,\ldots,n-1\}^2} \longrightarrow \prod_{a\in A}\prod_{j=0}^{m_a-1}\mathbb C^{d_a}T:C{0,…,n−1}2⟶a∈A∏​j=0∏ma​−1​Cda​

such that, for every g∈Gg\in Gg∈G, every vector vvv in its domain, every a∈Aa\in Aa∈A, and every j<maj<m_aj<ma​,

T ⁣((U(g)⊗U(g)‾)v)a,j=Ua(g) (Tv)a,j.T\!\left((U(g)\otimes\overline{U(g)})v\right)_{a,j} =U_a(g)\,(Tv)_{a,j}.T((U(g)⊗U(g)​)v)a,j​=Ua​(g)(Tv)a,j​.

Here the matrix on the left has entry U(g)ikU(g)ℓt‾U(g)_{ik}\overline{U(g)_{\ell t}}U(g)ik​U(g)ℓt​​ at row (i,ℓ)(i,\ell)(i,ℓ), column (k,t)(k,t)(k,t). Multiplicities may be zero, making the corresponding conditions empty; TTT is required to be a linear equivalence, with no isometry requirement.

QAlgorithms.Papers.Independent.Extend50.P31.HasOrthonormalSpectrum

For arbitrary natural numbers k,dk,dk,d, a complex matrix MMM indexed by pairs in {0,…,d−1}2\{0,\ldots,d-1\}^2{0,…,d−1}2, and real numbers νi\nu_iνi​ indexed by i∈{0,…,k−1}i\in\{0,\ldots,k-1\}i∈{0,…,k−1}, this predicate means that there exist complex-valued functions viv_ivi​ on {0,…,d−1}2\{0,\ldots,d-1\}^2{0,…,d−1}2 such that

∑pvi(p)‾vj(p)={1i=j,0i≠j,span⁡C{vi:0≤i<k}=Cd2,Mvi=νivi.\sum_p\overline{v_i(p)}v_j(p)= \begin{cases}1&i=j,\\0&i\ne j,\end{cases} \qquad \operatorname{span}_{\mathbb C}\{v_i:0\le i<k\} =\mathbb C^{d^2}, \qquad Mv_i=\nu_i v_i.p∑​vi​(p)​vj​(p)={10​i=j,i=j,​spanC​{vi​:0≤i<k}=Cd2,Mvi​=νi​vi​.

There is no ordering, positivity, or distinctness requirement on the νi\nu_iνi​. The orthonormality and spanning conditions force k=d2k=d^2k=d2; in particular, k=d=0k=d=0k=d=0 is allowed and satisfies the predicate for the unique empty matrix and empty list of values.

QAlgorithms.Papers.Independent.Extend50.P31.IrrepFamily

For any group GGG and any index type AAA, this structure specifies a natural-number dimension dad_ada​ and a representation ρa:G→Mda(C)\rho_a:G\to M_{d_a}(\mathbb C)ρa​:G→Mda​​(C) for each a∈Aa\in Aa∈A, where da>0d_a>0da​>0, ρa(1)=I\rho_a(1)=Iρa​(1)=I, ρa(gh)=ρa(g)ρa(h)\rho_a(gh)=\rho_a(g)\rho_a(h)ρa​(gh)=ρa​(g)ρa​(h), every ρa(g)\rho_a(g)ρa​(g) is unitary, and the only complex subspaces invariant under all ρa(g)\rho_a(g)ρa​(g) are zero and the whole space. It specifies an index a0∈Aa_0\in Aa0​∈A with da0=1d_{a_0}=1da0​​=1 and ρa0(g)=I1\rho_{a_0}(g)=I_1ρa0​​(g)=I1​ for every ggg. It requires that any complex-linear bijection intertwining ρa\rho_aρa​ with ρb\rho_bρb​ implies a=ba=ba=b, and that for every natural number ddd and every representation σ:G→Md(C)\sigma:G\to M_d(\mathbb C)σ:G→Md​(C) satisfying those same positivity, representation, unitarity, and irreducibility conditions, some a∈Aa\in Aa∈A admits a complex-linear bijection T:Cd→CdaT:\mathbb C^d\to\mathbb C^{d_a}T:Cd→Cda​ with T(σ(g)x)=ρa(g)T(x)T(\sigma(g)x)=\rho_a(g)T(x)T(σ(g)x)=ρa​(g)T(x) for every g,xg,xg,x. Neither GGG nor AAA is assumed finite; the distinguished index forces AAA to be nonempty.

QAlgorithms.Papers.Independent.Extend50.P31.IsIrrepCovariant

For any group GGG, natural number nnn, irreducible unitary representation UUU, and complex-linear endomorphism Φ:Mn(C)→Mn(C)\Phi:M_n(\mathbb C)\to M_n(\mathbb C)Φ:Mn​(C)→Mn​(C), this predicate means

Φ ⁣(ρU(g)XρU(g)†)=ρU(g)Φ(X)ρU(g)†for every g∈G, X∈Mn(C).\Phi\!\left(\rho_U(g)X\rho_U(g)^\dagger\right) =\rho_U(g)\Phi(X)\rho_U(g)^\dagger \qquad\text{for every }g\in G,\ X\in M_n(\mathbb C).Φ(ρU​(g)XρU​(g)†)=ρU​(g)Φ(X)ρU​(g)†for every g∈G, X∈Mn​(C).

The representation data require n>0n>0n>0, preservation of the group identity and multiplication, both unitary identities for every representation matrix, and that its only invariant complex subspaces are zero and the whole space. No positivity or trace-preservation condition is imposed on Φ\PhiΦ.

QAlgorithms.Papers.Independent.Extend50.P31.IsPaperChannel

For arbitrary natural numbers d,ed,ed,e and a complex-linear map Φ\PhiΦ from d×dd\times dd×d to e×ee\times ee×e complex matrices, this predicate means that Φ\PhiΦ is completely positive and preserves the trace of every matrix. Explicitly, for every natural number rrr, including r=0r=0r=0, and every positive semidefinite matrix XXX indexed by {0,…,r−1}×{0,…,d−1}\{0,\ldots,r-1\}\times\{0,\ldots,d-1\}{0,…,r−1}×{0,…,d−1}, the matrix with entries

Y(a,u),(b,v)=[Φ ⁣((X(a,i),(b,j))i,j)]uvY_{(a,u),(b,v)} =\left[\Phi\!\left((X_{(a,i),(b,j)})_{i,j}\right)\right]_{uv}Y(a,u),(b,v)​=[Φ((X(a,i),(b,j)​)i,j​)]uv​

is positive semidefinite; moreover, tr⁡(Φ(Z))=tr⁡(Z)\operatorname{tr}(\Phi(Z))=\operatorname{tr}(Z)tr(Φ(Z))=tr(Z) for every d×dd\times dd×d complex matrix ZZZ. No positivity assumption on ddd or eee is imposed; if d>0d>0d>0 and e=0e=0e=0, trace preservation cannot hold.

QAlgorithms.Papers.Independent.Extend50.P31.NonnegativeScalar

For any complex number zzz, the defined predicate holds exactly when

Im⁡z=0and0≤Re⁡z.\operatorname{Im}z=0 \quad\text{and}\quad 0\le\operatorname{Re}z.Imz=0and0≤Rez.

In particular, zero satisfies the predicate.

QAlgorithms.Papers.Independent.Extend50.P31.OccurringIrrep

Given a finite group GGG, a finite type AAA with decidable equality, n∈Nn\in\mathbb Nn∈N, and data DDD consisting of a positive-dimensional irreducible unitary representation UUU on Cn\mathbb C^nCn, a complete pairwise inequivalent family (Va)a∈A(V_a)_{a\in A}(Va​)a∈A​ of positive-dimensional irreducible unitary representations with a distinguished one-dimensional trivial member, and a finite subset θ⊆A\theta\subseteq Aθ⊆A for which U(g)⊗U(g)‾U(g)\otimes\overline{U(g)}U(g)⊗U(g)​ is simultaneously intertwined by a complex linear isomorphism with the action (wa)a↦(Va(g)wa)a(w_a)_a\mapsto(V_a(g)w_a)_a(wa​)a​↦(Va​(g)wa​)a​, this abbreviation denotes the type of indices a∈Aa\in Aa∈A equipped with evidence that a∈θa\in\thetaa∈θ. Its elements are precisely the members of the selected finite set.

QAlgorithms.Papers.Independent.Extend50.P31.Pivots

Let GGG be a finite group, AAA a finite type with decidable equality, and n∈Nn\in\mathbb Nn∈N. The data DDD specify an nnn-dimensional unitary irreducible representation UUU, so n>0n>0n>0, a complete family (ρa)a∈A(\rho_a)_{a\in A}(ρa​)a∈A​ of pairwise inequivalent unitary irreducible representations of positive dimensions dad_ada​, a distinguished trivial representation of dimension 111, and a subset θ⊆A\theta\subseteq Aθ⊆A together with a complex linear equivalence intertwining Ug⊗Ug‾U_g\otimes\overline{U_g}Ug​⊗Ug​​ with one copy of each ρa\rho_aρa​, a∈θa\in\thetaa∈θ. Put R={(a,i):a∈θ, 0≤i<da}\mathcal R=\{(a,i):a\in\theta,\ 0\le i<d_a\}R={(a,i):a∈θ, 0≤i<da​}. A choice of pivots consists of a function p:R→{0,…,n−1}2p:\mathcal R\to\{0,\ldots,n-1\}^2p:R→{0,…,n−1}2 and a proof that, for every r=(a,i)∈Rr=(a,i)\in\mathcal Rr=(a,i)∈R, writing p(r)=(u,v)p(r)=(u,v)p(r)=(u,v),

0<Re⁡ ⁣[da∣G∣∑g∈Gρa(g−1)ii Ug(u,u) Ug(v,v)‾].0< \operatorname{Re}\!\left[ \frac{d_a}{|G|} \sum_{g\in G}\rho_a(g^{-1})_{ii}\, U_g(u,u)\,\overline{U_g(v,v)} \right].0<Re​∣G∣da​​g∈G∑​ρa​(g−1)ii​Ug​(u,u)Ug​(v,v)​​.

The structure requires such strict positivity at every selected pivot; it does not assert that a choice exists.

QAlgorithms.Papers.Independent.Extend50.P31.QuaternionCP

For every a,b,c∈Ra,b,c\in\mathbb Ra,b,c∈R, this predicate means precisely that all four inequalities

0≤1+a+b+c2,0≤1+a−b−c2,0≤1−a+b−c2,0≤1−a−b+c20\le\frac{1+a+b+c}{2},\qquad 0\le\frac{1+a-b-c}{2},\qquad 0\le\frac{1-a+b-c}{2},\qquad 0\le\frac{1-a-b+c}{2}0≤21+a+b+c​,0≤21+a−b−c​,0≤21−a+b−c​,0≤21−a−b+c​

hold simultaneously.

QAlgorithms.Papers.Independent.Extend50.P31.QuaternionDecomposition

For a two-dimensional irreducible unitary representation UUU of the eight-element quaternion group, this property means that there exists an invertible complex-linear map T:C{0,1}×{0,1}→C4T:\mathbb C^{\{0,1\}\times\{0,1\}}\to\mathbb C^4T:C{0,1}×{0,1}→C4 such that

[T((U(g)⊗U(g)‾)v)]a=χa(g)(Tv)a\bigl[T((U(g)\otimes\overline{U(g)})v)\bigr]_a =\chi_a(g)(Tv)_a[T((U(g)⊗U(g)​)v)]a​=χa​(g)(Tv)a​

for every group element ggg, every vector vvv, and every a∈{0,1,2,3}a\in\{0,1,2,3\}a∈{0,1,2,3}. Here U(1)=I2U(1)=I_2U(1)=I2​, U(gh)=U(g)U(h)U(gh)=U(g)U(h)U(gh)=U(g)U(h), every U(g)U(g)U(g) is unitary, and its only common invariant complex subspaces are 000 and C2\mathbb C^2C2; the bar denotes entrywise conjugation. For group elements agrpj,xagrpja_{\mathrm{grp}}^j,xa_{\mathrm{grp}}^jagrpj​,xagrpj​, with canonical exponent j0∈{0,1,2,3}j_0\in\{0,1,2,3\}j0​∈{0,1,2,3}, the respective pairs of values (χa(agrpj),χa(xagrpj))(\chi_a(a_{\mathrm{grp}}^j),\chi_a(xa_{\mathrm{grp}}^j))(χa​(agrpj​),χa​(xagrpj​)) are (1,1)(1,1)(1,1), ((−1)j0,(−1)j0)((-1)^{j_0},(-1)^{j_0})((−1)j0​,(−1)j0​), (1,−1)(1,-1)(1,−1), and ((−1)j0,−(−1)j0)((-1)^{j_0},-(-1)^{j_0})((−1)j0​,−(−1)j0​) for labels 0,1,2,30,1,2,30,1,2,3. The map TTT need not preserve inner products.

QAlgorithms.Papers.Independent.Extend50.P31.QuaternionPPT

For arbitrary real numbers a,b,ca,b,ca,b,c, the predicate QuaternionPPT⁡(a,b,c)\operatorname{QuaternionPPT}(a,b,c)QuaternionPPT(a,b,c) means precisely that all four inequalities

0≤1−a−b−c2,0≤1+a+b−c2,0≤1+a−b+c2,0≤1−a+b+c20\le\frac{1-a-b-c}{2},\qquad 0\le\frac{1+a+b-c}{2},\qquad 0\le\frac{1+a-b+c}{2},\qquad 0\le\frac{1-a+b+c}{2}0≤21−a−b−c​,0≤21+a+b−c​,0≤21+a−b+c​,0≤21−a+b+c​

hold simultaneously; equality is allowed in each inequality.

QAlgorithms.Papers.Independent.Extend50.P31.RepEquivalent

For any type GGG, natural numbers d,ed,ed,e, and functions U:G→Md(C)U:G\to M_d(\mathbb C)U:G→Md​(C) and V:G→Me(C)V:G\to M_e(\mathbb C)V:G→Me​(C), this predicate means that there exists a complex-linear bijection T:Cd→CeT:\mathbb C^d\to\mathbb C^eT:Cd→Ce such that

T(U(g)x)=V(g)T(x)for every g∈G, x∈Cd.T(U(g)x)=V(g)T(x) \qquad\text{for every }g\in G,\ x\in\mathbb C^d.T(U(g)x)=V(g)T(x)for every g∈G, x∈Cd.

There is no group assumption on GGG, no representation or unitarity assumption on U,VU,VU,V, and no requirement that TTT preserve an inner product. Zero dimensions are included; if GGG is empty, the intertwining condition is vacuous.

QAlgorithms.Papers.Independent.Extend50.P31.Row

Given a finite group GGG, a finite type AAA with decidable equality, n∈Nn\in\mathbb Nn∈N, and data DDD consisting of a positive-dimensional irreducible unitary representation UUU on Cn\mathbb C^nCn, a complete pairwise inequivalent family (Va)a∈A(V_a)_{a\in A}(Va​)a∈A​ of positive-dimensional irreducible unitary representations with dimensions dad_ada​ and a distinguished one-dimensional trivial member, and a finite subset θ⊆A\theta\subseteq Aθ⊆A such that U(g)⊗U(g)‾U(g)\otimes\overline{U(g)}U(g)⊗U(g)​ is simultaneously linearly isomorphic to the action of the Va(g)V_a(g)Va​(g) on ∏a∈θCda\prod_{a\in\theta}\mathbb C^{d_a}∏a∈θ​Cda​, this abbreviation denotes the dependent pair type

{(a,i): a∈θ, 0≤i<da}.\{(a,i):\ a\in\theta,\ 0\le i<d_a\}.{(a,i): a∈θ, 0≤i<da​}.

Thus an element records a selected representation index together with a coordinate index in that representation.

QAlgorithms.Papers.Independent.Extend50.P31.S3CP

For every s,t∈Rs,t\in\mathbb Rs,t∈R, this predicate means precisely

−1≤s,s≤1,∣t∣≤1+s2,-1\le s,\qquad s\le1,\qquad |t|\le\frac{1+s}{2},−1≤s,s≤1,∣t∣≤21+s​,

with all three conditions required simultaneously.

QAlgorithms.Papers.Independent.Extend50.P31.S4TripletDecomposition

For irreducible unitary representations U,V,WU,V,WU,V,W of S4S_4S4​ of dimensions 3,2,33,2,33,2,3, respectively, this defines the assertion that there exists a complex-linear bijection

T:C{0,1,2}2⟶C⊕C3⊕C2⊕C3T:\mathbb C^{\{0,1,2\}^2}\longrightarrow \mathbb C\oplus\mathbb C^3\oplus\mathbb C^2\oplus\mathbb C^3T:C{0,1,2}2⟶C⊕C3⊕C2⊕C3

such that, for every g∈S4g\in S_4g∈S4​ and every vector vvv, writing T(v)=(z,x,y,w)T(v)=(z,x,y,w)T(v)=(z,x,y,w), one has

T((U(g)⊗U(g)‾)v)=(z,U(g)x,V(g)y,W(g)w).T\bigl((U(g)\otimes\overline{U(g)})v\bigr) =(z,U(g)x,V(g)y,W(g)w).T((U(g)⊗U(g)​)v)=(z,U(g)x,V(g)y,W(g)w).

Each supplied representation preserves multiplication and the identity, consists of unitary matrices, and has no invariant complex subspaces other than zero and the whole space. The tensor-product matrix has entry U(g)ijU(g)kl‾U(g)_{ij}\overline{U(g)_{kl}}U(g)ij​U(g)kl​​ in row (i,k)(i,k)(i,k) and column (j,l)(j,l)(j,l). The bijection TTT is not required to preserve inner products.

QAlgorithms.Papers.Independent.Extend50.P31.SimplyReducible

Let GGG be a group, let AAA be a type with decidable equality, and let n∈Nn\in\mathbb Nn∈N. Suppose UUU is an irreducible unitary representation of GGG on Cn\mathbb C^nCn, with n>0n>0n>0, and FFF is a family (Va)a∈A(V_a)_{a\in A}(Va​)a∈A​ of positive-dimensional irreducible unitary representations, of dimensions dad_ada​, containing a distinguished one-dimensional trivial representation, containing a representative of every positive-dimensional irreducible unitary representation, and having equivalent members only when their indices agree. For a finite subset θ⊆A\theta\subseteq Aθ⊆A, this predicate means that there exists an invertible complex linear map

T:C{0,…,n−1}2⟶∏a∈θCdaT:\mathbb C^{\{0,\ldots,n-1\}^2}\longrightarrow \prod_{a\in\theta}\mathbb C^{d_a}T:C{0,…,n−1}2⟶a∈θ∏​Cda​

such that, for every g∈Gg\in Gg∈G, every vector vvv in its domain, and every a∈θa\in\thetaa∈θ,

(T((U(g)⊗U(g)‾)v))a=Va(g)(Tv)a,\bigl(T((U(g)\otimes\overline{U(g)})v)\bigr)_a =V_a(g)(Tv)_a,(T((U(g)⊗U(g)​)v))a​=Va​(g)(Tv)a​,

where the bar denotes entrywise complex conjugation. The map TTT is required to be a linear isomorphism; preservation of inner products is not included. An empty θ\thetaθ would make the target zero-dimensional and therefore cannot satisfy this predicate when n>0n>0n>0.

QAlgorithms.Papers.Independent.Extend50.P31.UnitaryIrrep

For any type GGG equipped with a group structure and any natural number nnn, an object of this structure consists of a function ρ:G→Mn(C)\rho:G\to M_n(\mathbb C)ρ:G→Mn​(C), together with the requirements that n>0n>0n>0, ρ(1)=In\rho(1)=I_nρ(1)=In​, ρ(gh)=ρ(g)ρ(h)\rho(gh)=\rho(g)\rho(h)ρ(gh)=ρ(g)ρ(h) for every g,h∈Gg,h\in Gg,h∈G, and ρ(g)†ρ(g)=ρ(g)ρ(g)†=In\rho(g)^\dagger\rho(g)=\rho(g)\rho(g)^\dagger=I_nρ(g)†ρ(g)=ρ(g)ρ(g)†=In​ for every g∈Gg\in Gg∈G. It also requires that every complex-linear subspace S⊆CnS\subseteq\mathbb C^nS⊆Cn satisfying ρ(g)v∈S\rho(g)v\in Sρ(g)v∈S for all g∈Gg\in Gg∈G and v∈Sv\in Sv∈S is either {0}\{0\}{0} or Cn\mathbb C^nCn. No finiteness or topology is assumed on GGG, and no such object exists for n=0n=0n=0.

QAlgorithms.Papers.Independent.Extend50.P31.centralMap

For a finite group GGG, an index type AAA, an irreducible unitary representation UUU on Cn\mathbb C^nCn with n>0n>0n>0, a complete pairwise inequivalent family (Va)a∈A(V_a)_{a\in A}(Va​)a∈A​ of positive-dimensional irreducible unitary representations with dimensions dad_ada​ and a distinguished one-dimensional trivial member, and any a∈Aa\in Aa∈A, this defines the complex linear endomorphism of Cn×n\mathbb C^{n\times n}Cn×n given, for every matrix XXX, by

X⟼da∣G∣∑g∈Gtr⁡(Va(g−1)) U(g)XU(g)†.X\longmapsto \frac{d_a}{|G|} \sum_{g\in G}\operatorname{tr}(V_a(g^{-1}))\,U(g)XU(g)^\dagger.X⟼∣G∣da​​g∈G∑​tr(Va​(g−1))U(g)XU(g)†.

The dagger denotes conjugate transpose. Completeness of the family means that every positive-dimensional irreducible unitary representation is equivalent to a family member.

QAlgorithms.Papers.Independent.Extend50.P31.centralMatrix

For a finite group GGG, an index type AAA, an irreducible unitary representation UUU on Cn\mathbb C^nCn with n>0n>0n>0, a complete pairwise inequivalent family (Va)a∈A(V_a)_{a\in A}(Va​)a∈A​ of positive-dimensional irreducible unitary representations with dimensions dad_ada​ and a distinguished one-dimensional trivial member, and any a∈Aa\in Aa∈A, this defines the complex matrix indexed by pairs of coordinates in Cn\mathbb C^nCn:

Ca=da∣G∣∑g∈Gtr⁡(Va(g−1))(U(g)⊗U(g)‾).C_a=\frac{d_a}{|G|} \sum_{g\in G}\operatorname{tr}(V_a(g^{-1})) \bigl(U(g)\otimes\overline{U(g)}\bigr).Ca​=∣G∣da​​g∈G∑​tr(Va​(g−1))(U(g)⊗U(g)​).

Here complex conjugation is entrywise, and the Kronecker factor has entry U(g)xyU(g)zw‾U(g)_{xy}\overline{U(g)_{zw}}U(g)xy​U(g)zw​​ at row (x,z)(x,z)(x,z), column (y,w)(y,w)(y,w). Completeness of the family means that every positive-dimensional irreducible unitary representation is equivalent to one of its members.

QAlgorithms.Papers.Independent.Extend50.P31.character

For any group GGG, natural number nnn, irreducible unitary representation UUU, and element g∈Gg\in Gg∈G, this defines

χU(g)=tr⁡(ρU(g))=∑i=0n−1ρU(g)ii.\chi_U(g)=\operatorname{tr}(\rho_U(g)) =\sum_{i=0}^{n-1}\rho_U(g)_{ii}.χU​(g)=tr(ρU​(g))=i=0∑n−1​ρU​(g)ii​.

Here UUU includes the requirements n>0n>0n>0, ρU(1)=In\rho_U(1)=I_nρU​(1)=In​, ρU(gh)=ρU(g)ρU(h)\rho_U(gh)=\rho_U(g)\rho_U(h)ρU​(gh)=ρU​(g)ρU​(h), both unitary identities for each ρU(g)\rho_U(g)ρU​(g), and that every invariant complex subspace of Cn\mathbb C^nCn is zero or the whole space. No finiteness assumption on GGG is required.

QAlgorithms.Papers.Independent.Extend50.P31.characterMatrix

Let GGG be a group and let FFF be a family of representations indexed by a type AAA, assigning each a∈Aa\in Aa∈A a positive natural dimension dad_ada​ and an irreducible unitary representation Ua:G→Mda(C)U_a:G\to M_{d_a}(\mathbb C)Ua​:G→Mda​​(C). Each UaU_aUa​ preserves identity and multiplication and has no invariant complex subspaces other than zero and the whole space. The family includes a distinguished trivial representation of dimension 111, every irreducible unitary representation is equivalent to a member, and equivalent members have equal indices, where equivalence means an invertible complex-linear intertwiner. The declaration defines the complex matrix with rows indexed by GGG and columns indexed by AAA whose entries are

Cg,a=Tr⁡ ⁣(Ua(g−1)).C_{g,a}=\operatorname{Tr}\!\left(U_a(g^{-1})\right).Cg,a​=Tr(Ua​(g−1)).

QAlgorithms.Papers.Independent.Extend50.P31.choiEigenvalueVector

Let GGG be a finite group, AAA a finite type with decidable equality, and DDD specify a positive-dimensional unitary irreducible representation UUU on Cn\mathbb C^nCn, a complete pairwise inequivalent family (ρa)a∈A(\rho_a)_{a\in A}(ρa​)a∈A​ of positive-dimensional unitary irreducible representations with a distinguished one-dimensional trivial member, and a complex linear decomposition of U⊗U‾U\otimes\overline UU⊗U into one copy of each member indexed by θ⊆A\theta\subseteq Aθ⊆A. Put da=dim⁡ρad_a=\dim\rho_ada​=dimρa​ and R={(b,i):b∈θ, 0≤i<db}\mathcal R=\{(b,i):b\in\theta,\ 0\le i<d_b\}R={(b,i):b∈θ, 0≤i<db​}. A pivot choice PPP selects (ur,vr)(u_r,v_r)(ur​,vr​) for every r=(b,i)∈Rr=(b,i)\in\mathcal Rr=(b,i)∈R, with

wr=Re⁡ ⁣[db∣G∣∑h∈Gρb(h−1)iiUh(ur,ur)Uh(vr,vr)‾]>0.w_r=\operatorname{Re}\!\left[ \frac{d_b}{|G|}\sum_{h\in G} \rho_b(h^{-1})_{ii}U_h(u_r,u_r)\overline{U_h(v_r,v_r)} \right]>0.wr​=Re[∣G∣db​​h∈G∑​ρb​(h−1)ii​Uh​(ur​,ur​)Uh​(vr​,vr​)​]>0.

Let Nr=wr−1/2db∣G∣∑hρb(h−1)iiUhEurvrUh†N_r=w_r^{-1/2}\frac{d_b}{|G|}\sum_h\rho_b(h^{-1})_{ii}U_hE_{u_rv_r}U_h^\daggerNr​=wr−1/2​∣G∣db​​∑h​ρb​(h−1)ii​Uh​Eur​vr​​Uh†​, where EuvE_{uv}Euv​ is the standard matrix unit. For arbitrary l:θ→Cl:\theta\to\mathbb Cl:θ→C, the defined function e:R→Ce:\mathcal R\to\mathbb Ce:R→C is

er=∑a∈θ[da∣G∣∑g∈Gtr⁡(ρa(g−1))∣tr⁡(NrUg†)∣2]la.e_r=\sum_{a\in\theta} \left[ \frac{d_a}{|G|}\sum_{g\in G} \operatorname{tr}(\rho_a(g^{-1})) \left|\operatorname{tr}(N_rU_g^\dagger)\right|^2 \right]l_a.er​=a∈θ∑​​∣G∣da​​g∈G∑​tr(ρa​(g−1))​tr(Nr​Ug†​)​2​la​.

QAlgorithms.Papers.Independent.Extend50.P31.choiVector

Let GGG be a finite group, AAA a finite type with decidable equality, and DDD consist of a positive-dimensional unitary irreducible representation UUU on Cn\mathbb C^nCn, a complete pairwise inequivalent family (ρa)a∈A(\rho_a)_{a\in A}(ρa​)a∈A​ of positive-dimensional unitary irreducible representations with a distinguished one-dimensional trivial member, and a complex linear decomposition of U⊗U‾U\otimes\overline UU⊗U containing one copy of each ρa\rho_aρa​ indexed by θ⊆A\theta\subseteq Aθ⊆A. For a row r=(a,i)r=(a,i)r=(a,i), where a∈θa\in\thetaa∈θ and 0≤i<da=dim⁡ρa0\le i<d_a=\dim\rho_a0≤i<da​=dimρa​, a pivot choice PPP selects (u,v)(u,v)(u,v) for which

w=Re⁡ ⁣[da∣G∣∑g∈Gρa(g−1)iiUg(u,u)Ug(v,v)‾]>0.w=\operatorname{Re}\!\left[ \frac{d_a}{|G|}\sum_{g\in G} \rho_a(g^{-1})_{ii}U_g(u,u)\overline{U_g(v,v)} \right]>0.w=Re​∣G∣da​​g∈G∑​ρa​(g−1)ii​Ug​(u,u)Ug​(v,v)​​>0.

Define N=w−1/2da∣G∣∑gρa(g−1)iiUgEuvUg†N=w^{-1/2}\frac{d_a}{|G|}\sum_g\rho_a(g^{-1})_{ii}U_gE_{uv}U_g^\daggerN=w−1/2∣G∣da​​∑g​ρa​(g−1)ii​Ug​Euv​Ug†​, with EuvE_{uv}Euv​ the standard matrix unit. The defined function on pairs 0≤x,y<n0\le x,y<n0≤x,y<n is

choiVector⁡(D,P,r)(x,y)=Nyx.\operatorname{choiVector}(D,P,r)(x,y)=N_{yx}.choiVector(D,P,r)(x,y)=Nyx​.

Thus it lists the entries of the transpose of NNN, without complex conjugation.

QAlgorithms.Papers.Independent.Extend50.P31.classAverage

For a finite group GGG, the declaration defines a complex matrix CCC, with rows and columns indexed by GGG, by

Cg,h={1∣{x∈G:∃k∈G, x=kgk−1}∣,if ∃k∈G, h=kgk−1,0,otherwise.C_{g,h}= \begin{cases} \displaystyle\frac{1}{|\{x\in G:\exists k\in G,\ x=kgk^{-1}\}|}, &\text{if }\exists k\in G,\ h=kgk^{-1},\\[4pt] 0,&\text{otherwise}. \end{cases}Cg,h​=⎩⎨⎧​∣{x∈G:∃k∈G, x=kgk−1}∣1​,0,​if ∃k∈G, h=kgk−1,otherwise.​

The cardinality is regarded as a complex number before taking its inverse. Every denominator in the nonzero branch is positive, since ggg belongs to its own conjugacy class.

QAlgorithms.Papers.Independent.Extend50.P31.classCoefficients

Let GGG be a finite group, AAA a finite index type with decidable equality, and DDD contain a positive-dimensional irreducible unitary representation UUU of dimension nnn, a complete family (Ub)b∈A(U_b)_{b\in A}(Ub​)b∈A​ of positive-dimensional irreducible unitary representations of dimensions dbd_bdb​, a distinguished trivial member of dimension 111, and a subset Θ⊆A\Theta\subseteq AΘ⊆A together with an invertible complex-linear intertwiner from U⊗U‾U\otimes\overline UU⊗U to the direct sum of the members indexed by Θ\ThetaΘ, each occurring once. Completeness means every irreducible unitary representation is equivalent to a family member, and equivalence of family members implies equality of their indices; equivalence is by an invertible complex-linear intertwiner. Each representation preserves identity and multiplication, has unitary matrices, and has no invariant complex subspaces other than zero and the whole space. For any function f:G→Cf:G\to\mathbb Cf:G→C and any a∈Θa\in\Thetaa∈Θ, the declaration defines

∑g∈GTr⁡(Ua(g)) f(g)∣G∣ da.\frac{\displaystyle\sum_{g\in G}\operatorname{Tr}(U_a(g))\,f(g)} {|G|\,d_a}.∣G∣da​g∈G∑​Tr(Ua​(g))f(g)​.

No conjugation or inversion is applied to the character in this sum, and fff need not be constant on conjugacy classes. The denominator is nonzero because a group is nonempty and da>0d_a>0da​>0.

QAlgorithms.Papers.Independent.Extend50.P31.conjugacyClass

For a finite group GGG and any g∈Gg\in Gg∈G, the declaration defines the finite set

{h∈G: ∃k∈G, h=kgk−1}.\{h\in G:\ \exists k\in G,\ h=kgk^{-1}\}.{h∈G: ∃k∈G, h=kgk−1}.

This set contains each qualifying element once and includes ggg, by taking kkk to be the identity.

QAlgorithms.Papers.Independent.Extend50.P31.conjugationMap

For any group GGG, natural number nnn, irreducible unitary representation UUU, and g∈Gg\in Gg∈G, this defines the complex-linear endomorphism of Mn(C)M_n(\mathbb C)Mn​(C) given by

X⟼ρU(g)XρU(g)†.X\longmapsto \rho_U(g)X\rho_U(g)^\dagger.X⟼ρU​(g)XρU​(g)†.

The representation data require n>0n>0n>0, preservation of the group identity and multiplication, both unitary identities for every ρU(g)\rho_U(g)ρU​(g), and that the only complex subspaces invariant under all representation matrices are zero and Cn\mathbb C^nCn. The input matrix XXX is arbitrary.

QAlgorithms.Papers.Independent.Extend50.P31.doubleSumMu

Let GGG be a finite group, AAA a finite index type with decidable equality, and DDD contain a positive-dimensional irreducible unitary representation U:G→Mn(C)U:G\to M_n(\mathbb C)U:G→Mn​(C), a complete family (Ua)a∈A(U_a)_{a\in A}(Ua​)a∈A​ of positive-dimensional irreducible unitary representations of dimensions dad_ada​, a distinguished trivial member of dimension 111, and a subset Θ⊆A\Theta\subseteq AΘ⊆A with an invertible complex-linear intertwiner identifying U⊗U‾U\otimes\overline UU⊗U with one copy of each UaU_aUa​, a∈Θa\in\Thetaa∈Θ. Representations preserve identity and multiplication, have unitary matrices, and have only zero and the whole space as invariant complex subspaces; completeness and distinctness mean that every irreducible unitary representation is equivalent to a family member and equivalent members have equal indices. Write χa(g)=Tr⁡Ua(g)\chi_a(g)=\operatorname{Tr}U_a(g)χa​(g)=TrUa​(g). For any a∈Aa\in Aa∈A, row r=(b,i)r=(b,i)r=(b,i) with b∈Θb\in\Thetab∈Θ and i<dbi<d_bi<db​, and arbitrary pair p=(p1,p2)p=(p_1,p_2)p=(p1​,p2​) of indices less than nnn, define

w=Re⁡ ⁣[db∣G∣∑x∈GUb(x−1)ii U(x)p1p1 U(x)p2p2‾].w=\operatorname{Re}\!\left[ \frac{d_b}{|G|}\sum_{x\in G} U_b(x^{-1})_{ii}\,U(x)_{p_1p_1}\, \overline{U(x)_{p_2p_2}}\right].w=Re[∣G∣db​​x∈G∑​Ub​(x−1)ii​U(x)p1​p1​​U(x)p2​p2​​​].

The declaration defines the complex number

dadbw ∣G∣2∑g∈G∑h∈Gχa(g−1) Ub(h−1)ii U(g−1)p2p1 U(hgh−1)p1p2.\frac{d_a d_b}{w\,|G|^2} \sum_{g\in G}\sum_{h\in G} \chi_a(g^{-1})\,U_b(h^{-1})_{ii}\, U(g^{-1})_{p_2p_1}\, U(hgh^{-1})_{p_1p_2}.w∣G∣2da​db​​g∈G∑​h∈G∑​χa​(g−1)Ub​(h−1)ii​U(g−1)p2​p1​​U(hgh−1)p1​p2​​.

The index aaa need not belong to Θ\ThetaΘ, and no positivity or nonzero condition is imposed on www for the chosen ppp. Division uses the total complex inverse, so the value is zero if w=0w=0w=0.

QAlgorithms.Papers.Independent.Extend50.P31.eigenmatrix

Let GGG be a finite group, AAA a finite type with decidable equality, and DDD specify a positive-dimensional unitary irreducible representation UUU on Cn\mathbb C^nCn, a complete pairwise inequivalent family (ρa)a∈A(\rho_a)_{a\in A}(ρa​)a∈A​ of positive-dimensional unitary irreducible representations, a distinguished one-dimensional trivial member, and a complex linear decomposition of U⊗U‾U\otimes\overline UU⊗U into one copy of each member indexed by θ⊆A\theta\subseteq Aθ⊆A. Write da=dim⁡ρad_a=\dim\rho_ada​=dimρa​ and R={(a,i):a∈θ, 0≤i<da}\mathcal R=\{(a,i):a\in\theta,\ 0\le i<d_a\}R={(a,i):a∈θ, 0≤i<da​}. For r=(a,i)∈Rr=(a,i)\in\mathcal Rr=(a,i)∈R, let a pivot choice PPP select p=(u,v)p=(u,v)p=(u,v) with

w=Re⁡ ⁣[da∣G∣∑g∈Gρa(g−1)iiUg(u,u)Ug(v,v)‾]>0.w=\operatorname{Re}\!\left[ \frac{d_a}{|G|}\sum_{g\in G} \rho_a(g^{-1})_{ii}U_g(u,u)\overline{U_g(v,v)} \right]>0.w=Re​∣G∣da​​g∈G∑​ρa​(g−1)ii​Ug​(u,u)Ug​(v,v)​​>0.

If EuvE_{uv}Euv​ denotes the matrix with entry 111 at (u,v)(u,v)(u,v) and zero elsewhere, the defined matrix is

eigenmatrix⁡(D,P,r)=1w da∣G∣∑g∈Gρa(g−1)ii UgEuvUg†.\operatorname{eigenmatrix}(D,P,r) =\frac{1}{\sqrt w}\, \frac{d_a}{|G|}\sum_{g\in G} \rho_a(g^{-1})_{ii}\,U_gE_{uv}U_g^\dagger .eigenmatrix(D,P,r)=w​1​∣G∣da​​g∈G∑​ρa​(g−1)ii​Ug​Euv​Ug†​.

QAlgorithms.Papers.Independent.Extend50.P31.fineMap

For a finite group GGG, an index type AAA, an irreducible unitary representation UUU on Cn\mathbb C^nCn with n>0n>0n>0, a complete pairwise inequivalent family (Va)a∈A(V_a)_{a\in A}(Va​)a∈A​ of positive-dimensional irreducible unitary representations with dimensions dad_ada​ and a distinguished one-dimensional trivial member, an index a∈Aa\in Aa∈A, and 0≤i<da0\le i<d_a0≤i<da​, this defines the complex linear endomorphism of Cn×n\mathbb C^{n\times n}Cn×n

X⟼da∣G∣∑g∈G(Va(g−1))ii U(g)XU(g)†.X\longmapsto \frac{d_a}{|G|} \sum_{g\in G}(V_a(g^{-1}))_{ii}\,U(g)XU(g)^\dagger.X⟼∣G∣da​​g∈G∑​(Va​(g−1))ii​U(g)XU(g)†.

The dagger denotes conjugate transpose, and completeness means that every positive-dimensional irreducible unitary representation is equivalent to a family member.

QAlgorithms.Papers.Independent.Extend50.P31.fineMatrix

For a finite group GGG, an index type AAA, an irreducible unitary representation UUU on Cn\mathbb C^nCn with n>0n>0n>0, a complete pairwise inequivalent family (Va)a∈A(V_a)_{a\in A}(Va​)a∈A​ of positive-dimensional irreducible unitary representations with dimensions dad_ada​ and a distinguished one-dimensional trivial member, an index a∈Aa\in Aa∈A, and i∈{0,…,da−1}i\in\{0,\ldots,d_a-1\}i∈{0,…,da​−1}, this defines the matrix

Fa,i=da∣G∣∑g∈G(Va(g−1))ii(U(g)⊗U(g)‾)F_{a,i}=\frac{d_a}{|G|} \sum_{g\in G}(V_a(g^{-1}))_{ii} \bigl(U(g)\otimes\overline{U(g)}\bigr)Fa,i​=∣G∣da​​g∈G∑​(Va​(g−1))ii​(U(g)⊗U(g)​)

on coordinate pairs of Cn\mathbb C^nCn. The bar denotes entrywise conjugation, so the Kronecker factor has entry U(g)xyU(g)zw‾U(g)_{xy}\overline{U(g)_{zw}}U(g)xy​U(g)zw​​ at row (x,z)(x,z)(x,z), column (y,w)(y,w)(y,w). The family represents every positive-dimensional irreducible unitary representation up to equivalence.

QAlgorithms.Papers.Independent.Extend50.P31.flatIndex

This function sends a pair (i,j)∈{0,1}×{0,1}(i,j)\in\{0,1\}\times\{0,1\}(i,j)∈{0,1}×{0,1} to the index (2i+j) mod 4(2i+j)\bmod4(2i+j)mod4 in {0,1,2,3}\{0,1,2,3\}{0,1,2,3}. Since 2i+j2i+j2i+j already lies between 000 and 333, its values are (0,0)↦0(0,0)\mapsto0(0,0)↦0, (0,1)↦1(0,1)\mapsto1(0,1)↦1, (1,0)↦2(1,0)\mapsto2(1,0)↦2, and (1,1)↦3(1,1)\mapsto3(1,1)↦3.

QAlgorithms.Papers.Independent.Extend50.P31.fromMat

For every natural number nnn and every complex matrix MMM whose rows and columns are indexed by pairs from {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1}, this defines the complex-linear map on n×nn\times nn×n complex matrices given by

(fromMat⁡(M)(X))ij=∑k=0n−1∑l=0n−1M(i,j),(k,l)Xkl.\bigl(\operatorname{fromMat}(M)(X)\bigr)_{ij} =\sum_{k=0}^{n-1}\sum_{l=0}^{n-1}M_{(i,j),(k,l)}X_{kl}.(fromMat(M)(X))ij​=k=0∑n−1​l=0∑n−1​M(i,j),(k,l)​Xkl​.

Equivalently, it converts XXX to its function of paired indices, applies matrix multiplication by MMM, and converts back. The definition includes n=0n=0n=0, with empty sums.

QAlgorithms.Papers.Independent.Extend50.P31.leftInverse

Let GGG be a finite group, AAA a finite type with decidable equality, and DDD specify a positive-dimensional unitary irreducible representation UUU on Cn\mathbb C^nCn, a complete pairwise inequivalent family (ρa)a∈A(\rho_a)_{a\in A}(ρa​)a∈A​ of positive-dimensional unitary irreducible representations with a distinguished one-dimensional trivial member, and a complex linear decomposition of U⊗U‾U\otimes\overline UU⊗U into one copy of each member indexed by θ⊆A\theta\subseteq Aθ⊆A. Put da=dim⁡ρad_a=\dim\rho_ada​=dimρa​ and R={(b,i):b∈θ, 0≤i<db}\mathcal R=\{(b,i):b\in\theta,\ 0\le i<d_b\}R={(b,i):b∈θ, 0≤i<db​}. A pivot choice PPP assigns pr=(ur,vr)p_r=(u_r,v_r)pr​=(ur​,vr​) with

wr=Re⁡ ⁣[db∣G∣∑h∈Gρb(h−1)iiUh(ur,ur)Uh(vr,vr)‾]>0,Nr=1wrdb∣G∣∑hρb(h−1)iiUhEurvrUh†w_r=\operatorname{Re}\!\left[ \frac{d_b}{|G|}\sum_{h\in G} \rho_b(h^{-1})_{ii}U_h(u_r,u_r)\overline{U_h(v_r,v_r)} \right]>0,\qquad N_r=\frac{1}{\sqrt{w_r}}\frac{d_b}{|G|} \sum_h\rho_b(h^{-1})_{ii}U_hE_{u_rv_r}U_h^\daggerwr​=Re[∣G∣db​​h∈G∑​ρb​(h−1)ii​Uh​(ur​,ur​)Uh​(vr​,vr​)​]>0,Nr​=wr​​1​∣G∣db​​h∑​ρb​(h−1)ii​Uh​Eur​vr​​Uh†​

for r=(b,i)r=(b,i)r=(b,i), where EuvE_{uv}Euv​ is the standard matrix unit. Form Mr,a=da∣G∣∑gtr⁡(ρa(g−1))∣tr⁡(NrUg†)∣2M_{r,a}=\frac{d_a}{|G|}\sum_g\operatorname{tr}(\rho_a(g^{-1}))|\operatorname{tr}(N_rU_g^\dagger)|^2Mr,a​=∣G∣da​​∑g​tr(ρa​(g−1))∣tr(Nr​Ug†​)∣2. The defined matrix, with rows indexed by θ\thetaθ and columns by R\mathcal RR, is

(M†M)−1M†.(M^\dagger M)^{-1}M^\dagger.(M†M)−1M†.

The inverse here is the total matrix inverse, which is zero for a singular square complex matrix; the declaration itself neither assumes invertibility nor asserts a left-inverse identity.

QAlgorithms.Papers.Independent.Extend50.P31.mapByCharacter

For every finite group HHH, natural number ddd, ddd-dimensional irreducible unitary representation UUU, natural number hhh, and arbitrary function χ:H→C\chi:H\to\mathbb Cχ:H→C, this defines the complex-linear map on Md(C)M_d(\mathbb C)Md​(C) given by

X⟼h∣H∣∑g∈Hχ(g−1) U(g)XU(g)†.X\longmapsto \frac{h}{|H|}\sum_{g\in H}\chi(g^{-1})\,U(g)XU(g)^\dagger.X⟼∣H∣h​g∈H∑​χ(g−1)U(g)XU(g)†.

The supplied representation includes d>0d>0d>0, the identities U(1)=IdU(1)=I_dU(1)=Id​ and U(gh)=U(g)U(h)U(gh)=U(g)U(h)U(gh)=U(g)U(h), unitarity of every U(g)U(g)U(g), and the condition that every common invariant complex subspace is zero or the whole space. The parameter hhh may be zero, and χ\chiχ is not required to be a character.

QAlgorithms.Papers.Independent.Extend50.P31.muAt

Let GGG be a finite group, AAA a finite type with decidable equality, and DDD specify a positive-dimensional unitary irreducible representation UUU on Cn\mathbb C^nCn, a complete pairwise inequivalent family (ρa)a∈A(\rho_a)_{a\in A}(ρa​)a∈A​ of positive-dimensional unitary irreducible representations with a distinguished one-dimensional trivial member, and a complex linear decomposition of U⊗U‾U\otimes\overline UU⊗U into the members indexed by θ⊆A\theta\subseteq Aθ⊆A, each once. Write da=dim⁡ρad_a=\dim\rho_ada​=dimρa​. For any a∈Aa\in Aa∈A, any row r=(b,i)r=(b,i)r=(b,i) with b∈θb\in\thetab∈θ and 0≤i<db0\le i<d_b0≤i<db​, and any pair p=(u,v)p=(u,v)p=(u,v) with 0≤u,v<n0\le u,v<n0≤u,v<n, put

w=Re⁡ ⁣[db∣G∣∑h∈Gρb(h−1)iiUh(u,u)Uh(v,v)‾],N=1wdb∣G∣∑h∈Gρb(h−1)iiUhEuvUh†.w=\operatorname{Re}\!\left[ \frac{d_b}{|G|}\sum_{h\in G} \rho_b(h^{-1})_{ii}U_h(u,u)\overline{U_h(v,v)} \right], \qquad N=\frac{1}{\sqrt w}\frac{d_b}{|G|} \sum_{h\in G}\rho_b(h^{-1})_{ii}U_hE_{uv}U_h^\dagger .w=Re[∣G∣db​​h∈G∑​ρb​(h−1)ii​Uh​(u,u)Uh​(v,v)​],N=w​1​∣G∣db​​h∈G∑​ρb​(h−1)ii​Uh​Euv​Uh†​.

The defined complex number is

μ(D,a,r,p)=da∣G∣∑g∈Gtr⁡(ρa(g−1))∣tr⁡(NUg†)∣2.\mu(D,a,r,p)= \frac{d_a}{|G|}\sum_{g\in G} \operatorname{tr}(\rho_a(g^{-1})) \left|\operatorname{tr}(NU_g^\dagger)\right|^2.μ(D,a,r,p)=∣G∣da​​g∈G∑​tr(ρa​(g−1))​tr(NUg†​)​2.

Here EuvE_{uv}Euv​ is the standard matrix unit. There is no positivity assumption on www or requirement that a∈θa\in\thetaa∈θ; the real square root and inverse are total, so w≤0w\le0w≤0 gives N=0N=0N=0 and hence μ(D,a,r,p)=0\mu(D,a,r,p)=0μ(D,a,r,p)=0.

QAlgorithms.Papers.Independent.Extend50.P31.normalizedMatrix

For a finite group GGG, an index type AAA, an irreducible unitary representation UUU on Cn\mathbb C^nCn with n>0n>0n>0, a complete pairwise inequivalent family (Va)a∈A(V_a)_{a\in A}(Va​)a∈A​ of positive-dimensional irreducible unitary representations with dimensions dad_ada​ and a distinguished one-dimensional trivial member, a∈Aa\in Aa∈A, 0≤i<da0\le i<d_a0≤i<da​, and p=(p1,p2)∈{0,…,n−1}2p=(p_1,p_2)\in\{0,\ldots,n-1\}^2p=(p1​,p2​)∈{0,…,n−1}2, define

w=Re⁡ ⁣(da∣G∣∑g∈G(Va(g−1))iiU(g)p1p1U(g)p2p2‾).w=\operatorname{Re}\!\left( \frac{d_a}{|G|}\sum_{g\in G}(V_a(g^{-1}))_{ii} U(g)_{p_1p_1}\overline{U(g)_{p_2p_2}} \right).w=Re​∣G∣da​​g∈G∑​(Va​(g−1))ii​U(g)p1​p1​​U(g)p2​p2​​​​.

This declaration defines the matrix

(w)−1 da∣G∣∑g∈G(Va(g−1))iiU(g)Ep1p2U(g)†,(\sqrt w)^{-1}\, \frac{d_a}{|G|}\sum_{g\in G}(V_a(g^{-1}))_{ii} U(g)E_{p_1p_2}U(g)^\dagger,(w​)−1∣G∣da​​g∈G∑​(Va​(g−1))ii​U(g)Ep1​p2​​U(g)†,

where Ep1p2E_{p_1p_2}Ep1​p2​​ is the matrix with its sole nonzero entry 111 at (p1,p2)(p_1,p_2)(p1​,p2​), and the real scalar is embedded in C\mathbb CC. The family represents every positive-dimensional irreducible unitary representation up to equivalence. No positive-weight hypothesis is required: real square root is zero on negative inputs and the reciprocal of zero is zero, so this matrix is zero whenever w≤0w\le0w≤0.

QAlgorithms.Papers.Independent.Extend50.P31.permutationFixedCount

For every natural number kkk and every permutation ggg of {0,…,k−1}\{0,\ldots,k-1\}{0,…,k−1}, this defines the natural number

f(g)=∣{i∈{0,…,k−1}:g(i)=i}∣.f(g)=\bigl|\{i\in\{0,\ldots,k-1\}:g(i)=i\}\bigr|.f(g)=​{i∈{0,…,k−1}:g(i)=i}​.

The definition includes k=0k=0k=0, when this count is zero.

QAlgorithms.Papers.Independent.Extend50.P31.permutationSign

For every natural number kkk, including k=0k=0k=0, and every permutation ggg of {0,…,k−1}\{0,\ldots,k-1\}{0,…,k−1}, permutationSign⁡(g)\operatorname{permutationSign}(g)permutationSign(g) is the sign of ggg, first regarded as an integer and then as a complex number. Thus it is 111 for an even permutation and −1-1−1 for an odd permutation; the unique permutation of the empty set has value 111.

QAlgorithms.Papers.Independent.Extend50.P31.pivotKrausFamily

Let GGG be a finite group, AAA a finite index type with decidable equality, and DDD consist of a positive-dimensional irreducible unitary representation U:G→Mn(C)U:G\to M_n(\mathbb C)U:G→Mn​(C), a family of positive-dimensional irreducible unitary representations Ua:G→Mda(C)U_a:G\to M_{d_a}(\mathbb C)Ua​:G→Mda​​(C) indexed by AAA, a distinguished trivial representation of dimension 111, and a subset Θ⊆A\Theta\subseteq AΘ⊆A. The family contains every irreducible unitary representation up to an invertible complex-linear intertwiner, equivalent members have equal indices, and DDD supplies an invertible complex-linear intertwiner identifying U⊗U‾U\otimes\overline UU⊗U with one copy of each UaU_aUa​, a∈Θa\in\Thetaa∈Θ. Here a unitary representation preserves identity and multiplication, and irreducibility means that its only invariant complex subspaces are zero and the whole space. Write EijE_{ij}Eij​ for the matrix unit and χa(g)=Tr⁡Ua(g)\chi_a(g)=\operatorname{Tr}U_a(g)χa​(g)=TrUa​(g). For b∈Θb\in\Thetab∈Θ, i<dbi<d_bi<db​, and p=(p1,p2)∈{0,…,n−1}2p=(p_1,p_2)\in\{0,\ldots,n-1\}^2p=(p1​,p2​)∈{0,…,n−1}2, put

wb,i(p)=Re⁡ ⁣[db∣G∣∑g∈GUb(g−1)ii U(g)p1p1 U(g)p2p2‾].w_{b,i}(p)=\operatorname{Re}\!\left[ \frac{d_b}{|G|}\sum_{g\in G} U_b(g^{-1})_{ii}\,U(g)_{p_1p_1}\, \overline{U(g)_{p_2p_2}}\right].wb,i​(p)=Re​∣G∣db​​g∈G∑​Ub​(g−1)ii​U(g)p1​p1​​U(g)p2​p2​​​​.

Let PPP choose a pair prp_rpr​ for every row r=(b,i)r=(b,i)r=(b,i), with wb,i(pr)>0w_{b,i}(p_r)>0wb,i​(pr​)>0, and define

Nr=1wb,i(pr) db∣G∣∑g∈GUb(g−1)ii U(g)Epr,1pr,2U(g)†.N_r=\frac{1}{\sqrt{w_{b,i}(p_r)}}\, \frac{d_b}{|G|}\sum_{g\in G} U_b(g^{-1})_{ii}\,U(g)E_{p_{r,1}p_{r,2}}U(g)^\dagger .Nr​=wb,i​(pr​)​1​∣G∣db​​g∈G∑​Ub​(g−1)ii​U(g)Epr,1​pr,2​​U(g)†.

For any complex coefficient function l:Θ→Cl:\Theta\to\mathbb Cl:Θ→C and any such row rrr, the declaration defines the matrix

Re⁡er Nr,er=∑a∈Θlada∣G∣∑g∈Gχa(g−1)∣Tr⁡ ⁣(NrU(g)†)∣2.\sqrt{\operatorname{Re}e_r}\,N_r, \qquad e_r=\sum_{a\in\Theta}l_a\frac{d_a}{|G|} \sum_{g\in G}\chi_a(g^{-1}) \left|\operatorname{Tr}\!\left(N_rU(g)^\dagger\right)\right|^2 .Reer​​Nr​,er​=a∈Θ∑​la​∣G∣da​​g∈G∑​χa​(g−1)​Tr(Nr​U(g)†)​2.

There is no assumption that ere_rer​ is real or nonnegative; the real square root is zero when Re⁡er≤0\operatorname{Re}e_r\le0Reer​≤0. The coordinate reshaping and two transposes in the definition cancel, giving the displayed NrN_rNr​.

QAlgorithms.Papers.Independent.Extend50.P31.pivotWeight

For a finite group GGG, an index type AAA, an irreducible unitary representation UUU on Cn\mathbb C^nCn with n>0n>0n>0, a complete pairwise inequivalent family (Va)a∈A(V_a)_{a\in A}(Va​)a∈A​ of positive-dimensional irreducible unitary representations with dimensions dad_ada​ and a distinguished one-dimensional trivial member, a∈Aa\in Aa∈A, 0≤i<da0\le i<d_a0≤i<da​, and p=(p1,p2)∈{0,…,n−1}2p=(p_1,p_2)\in\{0,\ldots,n-1\}^2p=(p1​,p2​)∈{0,…,n−1}2, this defines the real number

wa,i,p=Re⁡ ⁣(da∣G∣∑g∈G(Va(g−1))ii U(g)p1p1U(g)p2p2‾).w_{a,i,p}= \operatorname{Re}\!\left( \frac{d_a}{|G|} \sum_{g\in G}(V_a(g^{-1}))_{ii}\, U(g)_{p_1p_1}\overline{U(g)_{p_2p_2}} \right).wa,i,p​=Re​∣G∣da​​g∈G∑​(Va​(g−1))ii​U(g)p1​p1​​U(g)p2​p2​​​​.

The family represents every positive-dimensional irreducible unitary representation up to equivalence. The definition itself imposes no positivity condition on this real number.

QAlgorithms.Papers.Independent.Extend50.P31.quaternionCharacter

For each label a∈{0,1,2,3}a\in\{0,1,2,3\}a∈{0,1,2,3}, this defines a complex-valued function χa\chi_aχa​ on the eight-element quaternion group. Writing its elements as agrpja_{\mathrm{grp}}^jagrpj​ and xagrpjxa_{\mathrm{grp}}^jxagrpj​, with canonical exponent j0∈{0,1,2,3}j_0\in\{0,1,2,3\}j0​∈{0,1,2,3}, the values are

labelχa(agrpj)χa(xagrpj)0111(−1)j0(−1)j021−13(−1)j0−(−1)j0.\begin{array}{c|cc} \text{label}&\chi_a(a_{\mathrm{grp}}^j)&\chi_a(xa_{\mathrm{grp}}^j)\\ \hline 0&1&1\\ 1&(-1)^{j_0}&(-1)^{j_0}\\ 2&1&-1\\ 3&(-1)^{j_0}&-(-1)^{j_0} \end{array}.label0123​χa​(agrpj​)1(−1)j0​1(−1)j0​​χa​(xagrpj​)1(−1)j0​−1−(−1)j0​​​.

QAlgorithms.Papers.Independent.Extend50.P31.quaternionChoiMatrix

For every a,b,c∈Ra,b,c\in\mathbb Ra,b,c∈R, this defines the complex matrix with rows and columns indexed by 0,1,2,30,1,2,30,1,2,3 as

12(1+b00a+c01−bc−a00c−a1−b0a+c001+b).\frac12 \begin{pmatrix} 1+b&0&0&a+c\\ 0&1-b&c-a&0\\ 0&c-a&1-b&0\\ a+c&0&0&1+b \end{pmatrix}.21​​1+b00a+c​01−bc−a0​0c−a1−b0​a+c001+b​​.

There are no restrictions on a,b,ca,b,ca,b,c and no positivity assumption.

QAlgorithms.Papers.Independent.Extend50.P31.quaternionEigenvalues

For every a,b,c∈Ra,b,c\in\mathbb Ra,b,c∈R, this defines a real-valued function on {0,1,2,3}\{0,1,2,3\}{0,1,2,3} whose values, in that order, are

(1+a+b+c2,1+a−b−c2,1−a+b−c2,1−a−b+c2).\left( \frac{1+a+b+c}{2}, \frac{1+a-b-c}{2}, \frac{1-a+b-c}{2}, \frac{1-a-b+c}{2} \right).(21+a+b+c​,21+a−b−c​,21−a+b−c​,21−a−b+c​).

This definition alone asserts neither that these numbers are eigenvalues of a matrix nor that they are nonnegative or ordered.

QAlgorithms.Papers.Independent.Extend50.P31.quaternionKraus

For every a,b,c∈Ra,b,c\in\mathbb Ra,b,c∈R and r∈{0,1,2,3}r\in\{0,1,2,3\}r∈{0,1,2,3}, let

(λ0,λ1,λ2,λ3)=(1+a+b+c2,1+a−b−c2,1−a+b−c2,1−a−b+c2).(\lambda_0,\lambda_1,\lambda_2,\lambda_3)= \left( \frac{1+a+b+c}{2}, \frac{1+a-b-c}{2}, \frac{1-a+b-c}{2}, \frac{1-a-b+c}{2} \right).(λ0​,λ1​,λ2​,λ3​)=(21+a+b+c​,21+a−b−c​,21−a+b−c​,21−a−b+c​).

This defines the complex 2×22\times22×2 matrix Kr=λr/2 BrK_r=\sqrt{\lambda_r/2}\,B_rKr​=λr​/2​Br​, where

B0=I2,B1=(01−10),B2=(−1001),B3=(0110).B_0=I_2,\qquad B_1=\begin{pmatrix}0&1\\-1&0\end{pmatrix},\qquad B_2=\begin{pmatrix}-1&0\\0&1\end{pmatrix},\qquad B_3=\begin{pmatrix}0&1\\1&0\end{pmatrix}.B0​=I2​,B1​=(0−1​10​),B2​=(−10​01​),B3​=(01​10​).

No restrictions are imposed on a,b,ca,b,ca,b,c; the real square root used here is zero on negative arguments, so Kr=0K_r=0Kr​=0 whenever λr≤0\lambda_r\le0λr​≤0. The definition itself imposes no Kraus normalization identity.

QAlgorithms.Papers.Independent.Extend50.P31.quaternionMap

For arbitrary real numbers a,b,ca,b,ca,b,c, this defines the complex-linear map on complex 2×22\times22×2 matrices given, for every XXX, by

X⟼12((1+b)X00+(1−b)X11(a+c)X01+(c−a)X10(c−a)X01+(a+c)X10(1−b)X00+(1+b)X11).X\longmapsto\frac12 \begin{pmatrix} (1+b)X_{00}+(1-b)X_{11} &(a+c)X_{01}+(c-a)X_{10}\\ (c-a)X_{01}+(a+c)X_{10} &(1-b)X_{00}+(1+b)X_{11} \end{pmatrix}.X⟼21​((1+b)X00​+(1−b)X11​(c−a)X01​+(a+c)X10​​(a+c)X01​+(c−a)X10​(1−b)X00​+(1+b)X11​​).

This is multiplication by the specified 4×44\times44×4 coefficient matrix after listing the entries of XXX in the order X00,X01,X10,X11X_{00},X_{01},X_{10},X_{11}X00​,X01​,X10​,X11​, followed by restoring that ordering to a 2×22\times22×2 matrix. No positivity or channel condition is assumed or asserted here.

QAlgorithms.Papers.Independent.Extend50.P31.quaternionQ1

This defines the complex 2×22\times22×2 matrix

Q1=(i00−i),Q_1=\begin{pmatrix}\mathrm i&0\\0&-\mathrm i\end{pmatrix},Q1​=(i0​0−i​),

where i\mathrm ii is the imaginary unit and the row and column indices are 0,10,10,1.

QAlgorithms.Papers.Independent.Extend50.P31.quaternionQ2

This defines the complex 2×22\times22×2 matrix

Q2=(01−10),Q_2=\begin{pmatrix}0&1\\-1&0\end{pmatrix},Q2​=(0−1​10​),

with row and column indices 0,10,10,1.

QAlgorithms.Papers.Independent.Extend50.P31.quaternionRepresentation

This defines a matrix-valued function on the quaternion group with eight elements, written aja^jaj and xajxa^jxaj for j∈Z/4Zj\in\mathbb Z/4\mathbb Zj∈Z/4Z, by

aj⟼(i00−i)j0,xaj⟼(01−10)(i00−i)j0,a^j\longmapsto \begin{pmatrix}\mathrm i&0\\0&-\mathrm i\end{pmatrix}^{j_0}, \qquad xa^j\longmapsto \begin{pmatrix}0&1\\-1&0\end{pmatrix} \begin{pmatrix}\mathrm i&0\\0&-\mathrm i\end{pmatrix}^{j_0},aj⟼(i0​0−i​)j0​,xaj⟼(0−1​10​)(i0​0−i​)j0​,

where j0∈{0,1,2,3}j_0\in\{0,1,2,3\}j0​∈{0,1,2,3} is the canonical representative of jjj, and the zeroth matrix power is I2I_2I2​.

QAlgorithms.Papers.Independent.Extend50.P31.quaternionSuperMatrix

For arbitrary real numbers a,b,ca,b,ca,b,c, this defines the complex 4×44\times44×4 matrix

12(1+b001−b0a+cc−a00c−aa+c01−b001+b),\frac12 \begin{pmatrix} 1+b&0&0&1-b\\ 0&a+c&c-a&0\\ 0&c-a&a+c&0\\ 1-b&0&0&1+b \end{pmatrix},21​​1+b001−b​0a+cc−a0​0c−aa+c0​1−b001+b​​,

whose real entries are regarded as complex numbers. No restrictions on the parameters are imposed.

QAlgorithms.Papers.Independent.Extend50.P31.quaternionTransform

This defines the complex matrix with rows and columns indexed by 0,1,2,30,1,2,30,1,2,3 as

12(111111−1−11−11−11−1−11).\frac12 \begin{pmatrix} 1&1&1&1\\ 1&1&-1&-1\\ 1&-1&1&-1\\ 1&-1&-1&1 \end{pmatrix}.21​​1111​11−1−1​1−11−1​1−1−11​​.

QAlgorithms.Papers.Independent.Extend50.P31.rawMatrix

For a finite group GGG, an index type AAA, an irreducible unitary representation UUU on Cn\mathbb C^nCn with n>0n>0n>0, a complete pairwise inequivalent family (Va)a∈A(V_a)_{a\in A}(Va​)a∈A​ of positive-dimensional irreducible unitary representations with dimensions dad_ada​ and a distinguished one-dimensional trivial member, a∈Aa\in Aa∈A, 0≤i<da0\le i<d_a0≤i<da​, and a coordinate pair p=(p1,p2)∈{0,…,n−1}2p=(p_1,p_2)\in\{0,\ldots,n-1\}^2p=(p1​,p2​)∈{0,…,n−1}2, this defines

Ra,i,p=da∣G∣∑g∈G(Va(g−1))ii U(g)Ep1p2U(g)†,R_{a,i,p}=\frac{d_a}{|G|} \sum_{g\in G}(V_a(g^{-1}))_{ii}\,U(g)E_{p_1p_2}U(g)^\dagger,Ra,i,p​=∣G∣da​​g∈G∑​(Va​(g−1))ii​U(g)Ep1​p2​​U(g)†,

where Ep1p2E_{p_1p_2}Ep1​p2​​ has a single entry 111 at row p1p_1p1​, column p2p_2p2​, and zero elsewhere. The family represents every positive-dimensional irreducible unitary representation up to equivalence.

QAlgorithms.Papers.Independent.Extend50.P31.representationCommutant

For any type GGG, any finite type III with decidable equality, and any function R:G→CI×IR:G\to\mathbb C^{I\times I}R:G→CI×I, this defines the complex linear subspace

{M∈CI×I: ∀g∈G, MR(g)=R(g)M}.\{M\in\mathbb C^{I\times I}:\ \forall g\in G,\ MR(g)=R(g)M\}.{M∈CI×I: ∀g∈G, MR(g)=R(g)M}.

There is no group or representation assumption on GGG or RRR. If GGG is empty, the condition is vacuous and the subspace is the whole matrix space; the definition also allows III to be empty.

QAlgorithms.Papers.Independent.Extend50.P31.rowMatrixRepresentative

For every natural number nnn and every complex-linear map Φ\PhiΦ from n×nn\times nn×n complex matrices to themselves, this defines a complex matrix indexed in both directions by pairs of indices from {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1}, with entries

RΦ,(i,j),(k,l)=(Φ(Ekl))ij,R_{\Phi,(i,j),(k,l)}=\bigl(\Phi(E_{kl})\bigr)_{ij},RΦ,(i,j),(k,l)​=(Φ(Ekl​))ij​,

where EklE_{kl}Ekl​ has entry 111 at (k,l)(k,l)(k,l) and zero elsewhere. For n=0n=0n=0, the resulting matrix has empty index sets.

QAlgorithms.Papers.Independent.Extend50.P31.rowVec

For all natural numbers d,ed,ed,e, this defines a complex-linear equivalence between d×ed\times ed×e complex matrices and complex-valued functions on {0,…,d−1}×{0,…,e−1}\{0,\ldots,d-1\}\times\{0,\ldots,e-1\}{0,…,d−1}×{0,…,e−1}, given by rowVec⁡(X)(i,j)=Xij\operatorname{rowVec}(X)(i,j)=X_{ij}rowVec(X)(i,j)=Xij​. Its inverse sends a function vvv to the matrix with entries v(i,j)v(i,j)v(i,j). Either dimension may be zero; in that case both spaces contain only their zero element.

QAlgorithms.Papers.Independent.Extend50.P31.s3Eigenvalues

For every s,t∈Rs,t\in\mathbb Rs,t∈R, this defines a real-valued function on {0,1,2,3}\{0,1,2,3\}{0,1,2,3} with respective values

(1+s2+t,1+s2−t,1−s2,1−s2).\left(\frac{1+s}{2}+t,\quad \frac{1+s}{2}-t,\quad \frac{1-s}{2},\quad \frac{1-s}{2}\right).(21+s​+t,21+s​−t,21−s​,21−s​).

The definition imposes no ordering or nonnegativity condition and does not itself assert an eigenvalue relation.

QAlgorithms.Papers.Independent.Extend50.P31.s3Inverse

This defines the complex 3×43\times43×4 matrix, with rows and columns indexed starting at zero,

R=12(111111−1−11−100).R=\frac12 \begin{pmatrix} 1&1&1&1\\ 1&1&-1&-1\\ 1&-1&0&0 \end{pmatrix}.R=21​​111​11−1​1−10​1−10​​.

QAlgorithms.Papers.Independent.Extend50.P31.s3Kraus

For every s,t∈Rs,t\in\mathbb Rs,t∈R, this defines a family of four complex 2×22\times22×2 matrices, indexed in order by 0,1,2,30,1,2,30,1,2,3, as

K0=1+s+2t4 I2,K1=1+s−2t4(−1001),K2=1−s2(0010),K3=1−s2(0100).K_0=\sqrt{\frac{1+s+2t}{4}}\,I_2,\qquad K_1=\sqrt{\frac{1+s-2t}{4}} \begin{pmatrix}-1&0\\0&1\end{pmatrix},\qquad K_2=\sqrt{\frac{1-s}{2}} \begin{pmatrix}0&0\\1&0\end{pmatrix},\qquad K_3=\sqrt{\frac{1-s}{2}} \begin{pmatrix}0&1\\0&0\end{pmatrix}.K0​=41+s+2t​​I2​,K1​=41+s−2t​​(−10​01​),K2​=21−s​​(01​00​),K3​=21−s​​(00​10​).

No restrictions are imposed on s,ts,ts,t; every square root is the real square root, which equals zero on negative arguments. This definition alone requires no normalization identity for the family.

QAlgorithms.Papers.Independent.Extend50.P31.s3Map

For every s,t∈Rs,t\in\mathbb Rs,t∈R, this defines the complex linear endomorphism of M2(C)M_2(\mathbb C)M2​(C) given by

X⟼((1+s)X00+(1−s)X112tX01tX10(1−s)X00+(1+s)X112).X\longmapsto \begin{pmatrix} \frac{(1+s)X_{00}+(1-s)X_{11}}2&tX_{01}\\ tX_{10}&\frac{(1-s)X_{00}+(1+s)X_{11}}2 \end{pmatrix}.X⟼(2(1+s)X00​+(1−s)X11​​tX10​​tX01​2(1−s)X00​+(1+s)X11​​​).

There are no restrictions on s,ts,ts,t and no positivity assumption.

QAlgorithms.Papers.Independent.Extend50.P31.s3Transform

This defines the complex 4×34\times34×3 matrix, with rows and columns indexed starting at zero,

S=12(11211−21−101−10).S=\frac12 \begin{pmatrix} 1&1&2\\ 1&1&-2\\ 1&-1&0\\ 1&-1&0 \end{pmatrix}.S=21​​1111​11−1−1​2−200​​.

QAlgorithms.Papers.Independent.Extend50.P31.s4DoubletCharacter

For every permutation g∈S4g\in S_4g∈S4​, this defines the complex number

f(g)2+f(g2)2−2f(g),\frac{f(g)^2+f(g^2)}2-2f(g),2f(g)2+f(g2)​−2f(g),

where f(g)f(g)f(g) counts the indices in {0,1,2,3}\{0,1,2,3\}{0,1,2,3} fixed by ggg, and f(g2)f(g^2)f(g2) counts those fixed by the composition of ggg with itself.

QAlgorithms.Papers.Independent.Extend50.P31.s4Eigenvalues

For arbitrary real numbers a,b,ca,b,ca,b,c, this defines the real vector indexed by {0,…,8}\{0,\ldots,8\}{0,…,8}:

(1+3a+2b+3c3,2+3a−2b−3c6,2+3a−2b−3c6,2+3a−2b−3c6,2−3a+4b−3c6,2−3a+4b−3c6,2−3a−2b+3c6,2−3a−2b+3c6,2−3a−2b+3c6).\left( \frac{1+3a+2b+3c}{3}, \frac{2+3a-2b-3c}{6}, \frac{2+3a-2b-3c}{6}, \frac{2+3a-2b-3c}{6}, \frac{2-3a+4b-3c}{6}, \frac{2-3a+4b-3c}{6}, \frac{2-3a-2b+3c}{6}, \frac{2-3a-2b+3c}{6}, \frac{2-3a-2b+3c}{6} \right).(31+3a+2b+3c​,62+3a−2b−3c​,62+3a−2b−3c​,62+3a−2b−3c​,62−3a+4b−3c​,62−3a+4b−3c​,62−3a−2b+3c​,62−3a−2b+3c​,62−3a−2b+3c​).

The definition imposes no positivity or ordering conditions on these entries.

QAlgorithms.Papers.Independent.Extend50.P31.s4Map

For every three-dimensional irreducible unitary representation UUU of S4S_4S4​ and real numbers a,b,ca,b,ca,b,c, this defines the complex-linear map

X⟼124∑g∈S4[1+3a(f(g−1)−1)+2b(f(g−1)2+f((g−1)2)2−2f(g−1))+3c sgn⁡(g−1)(f(g−1)−1)]U(g)XU(g)†,X\longmapsto\frac1{24}\sum_{g\in S_4} \left[ 1+3a(f(g^{-1})-1) +2b\left(\frac{f(g^{-1})^2+f((g^{-1})^2)}2-2f(g^{-1})\right) +3c\,\operatorname{sgn}(g^{-1})(f(g^{-1})-1) \right]U(g)XU(g)^\dagger,X⟼241​g∈S4​∑​[1+3a(f(g−1)−1)+2b(2f(g−1)2+f((g−1)2)​−2f(g−1))+3csgn(g−1)(f(g−1)−1)]U(g)XU(g)†,

where f(h)f(h)f(h) counts the fixed points of hhh in {0,1,2,3}\{0,1,2,3\}{0,1,2,3}. The representation UUU satisfies U(1)=I3U(1)=I_3U(1)=I3​, U(gh)=U(g)U(h)U(gh)=U(g)U(h)U(gh)=U(g)U(h), unitarity, and the condition that every common invariant complex subspace is zero or the whole space. No particular character of UUU, or restriction on a,b,ca,b,ca,b,c, is required by this definition.

QAlgorithms.Papers.Independent.Extend50.P31.s4StandardCharacter

For every permutation g∈S4g\in S_4g∈S4​, this defines the complex number f(g)−1f(g)-1f(g)−1, where f(g)f(g)f(g) is the number of indices in {0,1,2,3}\{0,1,2,3\}{0,1,2,3} fixed by ggg, interpreted as a complex number.

QAlgorithms.Papers.Independent.Extend50.P31.s4TwistCharacter

For every permutation g∈S4g\in S_4g∈S4​, this defines the complex number

sgn⁡(g)(f(g)−1),\operatorname{sgn}(g)\bigl(f(g)-1\bigr),sgn(g)(f(g)−1),

where sgn⁡(g)∈{1,−1}\operatorname{sgn}(g)\in\{1,-1\}sgn(g)∈{1,−1} is the permutation sign, interpreted in C\mathbb CC, and f(g)f(g)f(g) is the number of indices in {0,1,2,3}\{0,1,2,3\}{0,1,2,3} fixed by ggg.

QAlgorithms.Papers.Independent.Extend50.P31.scaledSimplex

Let GGG be a finite group, AAA a finite type with decidable equality, and DDD specify a positive-dimensional unitary irreducible representation UUU on Cn\mathbb C^nCn, a complete pairwise inequivalent family (ρa)a∈A(\rho_a)_{a\in A}(ρa​)a∈A​ of positive-dimensional unitary irreducible representations with a distinguished one-dimensional trivial member, and a complex linear decomposition of U⊗U‾U\otimes\overline UU⊗U into one copy of each member indexed by θ⊆A\theta\subseteq Aθ⊆A. With da=dim⁡ρad_a=\dim\rho_ada​=dimρa​ and R={(a,i):a∈θ, 0≤i<da}\mathcal R=\{(a,i):a\in\theta,\ 0\le i<d_a\}R={(a,i):a∈θ, 0≤i<da​}, the defined set consists exactly of functions e:R→Ce:\mathcal R\to\mathbb Ce:R→C satisfying

Im⁡er=0,Re⁡er≥0for every r∈R,∑r∈Rer=n.\operatorname{Im}e_r=0,\qquad \operatorname{Re}e_r\ge0 \quad\text{for every }r\in\mathcal R, \qquad \sum_{r\in\mathcal R}e_r=n.Imer​=0,Reer​≥0for every r∈R,r∈R∑​er​=n.

The last equality is an equality of complex numbers; individual coordinates may be zero.

QAlgorithms.Papers.Independent.Extend50.P31.spectralGram

Let GGG be a finite group, AAA a finite type with decidable equality, and DDD specify a positive-dimensional unitary irreducible representation UUU on Cn\mathbb C^nCn, a complete pairwise inequivalent family (ρa)a∈A(\rho_a)_{a\in A}(ρa​)a∈A​ of positive-dimensional unitary irreducible representations with a distinguished one-dimensional trivial member, and a complex linear decomposition of U⊗U‾U\otimes\overline UU⊗U into one copy of each member indexed by θ⊆A\theta\subseteq Aθ⊆A. Put da=dim⁡ρad_a=\dim\rho_ada​=dimρa​ and R={(b,i):b∈θ, 0≤i<db}\mathcal R=\{(b,i):b\in\theta,\ 0\le i<d_b\}R={(b,i):b∈θ, 0≤i<db​}. For a pivot choice PPP, let pr=(ur,vr)p_r=(u_r,v_r)pr​=(ur​,vr​) and

wr=Re⁡ ⁣[db∣G∣∑h∈Gρb(h−1)iiUh(ur,ur)Uh(vr,vr)‾]>0,Nr=1wrdb∣G∣∑hρb(h−1)iiUhEurvrUh†w_r=\operatorname{Re}\!\left[ \frac{d_b}{|G|}\sum_{h\in G} \rho_b(h^{-1})_{ii}U_h(u_r,u_r)\overline{U_h(v_r,v_r)} \right]>0,\qquad N_r=\frac{1}{\sqrt{w_r}}\frac{d_b}{|G|} \sum_h\rho_b(h^{-1})_{ii}U_hE_{u_rv_r}U_h^\daggerwr​=Re[∣G∣db​​h∈G∑​ρb​(h−1)ii​Uh​(ur​,ur​)Uh​(vr​,vr​)​]>0,Nr​=wr​​1​∣G∣db​​h∑​ρb​(h−1)ii​Uh​Eur​vr​​Uh†​

for r=(b,i)r=(b,i)r=(b,i), with EuvE_{uv}Euv​ the standard matrix unit. Define Mr,a=da∣G∣∑gtr⁡(ρa(g−1))∣tr⁡(NrUg†)∣2M_{r,a}=\frac{d_a}{|G|}\sum_g\operatorname{tr}(\rho_a(g^{-1}))|\operatorname{tr}(N_rU_g^\dagger)|^2Mr,a​=∣G∣da​​∑g​tr(ρa​(g−1))∣tr(Nr​Ug†​)∣2. The defined square matrix on θ\thetaθ is H=M†MH=M^\dagger MH=M†M, explicitly

Ha,c=∑r∈RMr,a‾Mr,c.H_{a,c}=\sum_{r\in\mathcal R}\overline{M_{r,a}}M_{r,c}.Ha,c​=r∈R∑​Mr,a​​Mr,c​.

QAlgorithms.Papers.Independent.Extend50.P31.spectralMap

Let GGG be a finite group, AAA a finite type with decidable equality, and DDD specify a positive-dimensional unitary irreducible representation UUU on Cn\mathbb C^nCn, a complete pairwise inequivalent family (ρa)a∈A(\rho_a)_{a\in A}(ρa​)a∈A​ of positive-dimensional unitary irreducible representations with a distinguished one-dimensional trivial member, and a complex linear decomposition of U⊗U‾U\otimes\overline UU⊗U into one copy of each ρa\rho_aρa​ indexed by θ⊆A\theta\subseteq Aθ⊆A. For any complex coefficient function l:θ→Cl:\theta\to\mathbb Cl:θ→C, the defined complex linear endomorphism of n×nn\times nn×n complex matrices sends every such matrix XXX to

X⟼∑a∈θla da∣G∣∑g∈Gtr⁡(ρa(g−1)) UgXUg†,da=dim⁡ρa.X\longmapsto \sum_{a\in\theta}l_a\,\frac{d_a}{|G|} \sum_{g\in G}\operatorname{tr}(\rho_a(g^{-1}))\,U_gXU_g^\dagger, \qquad d_a=\dim\rho_a.X⟼a∈θ∑​la​∣G∣da​​g∈G∑​tr(ρa​(g−1))Ug​XUg†​,da​=dimρa​.

The coefficients lal_ala​ are unrestricted complex numbers.

QAlgorithms.Papers.Independent.Extend50.P31.spectralMatrix

Let GGG be a finite group, AAA a finite type with decidable equality, and DDD specify a positive-dimensional unitary irreducible representation UUU on Cn\mathbb C^nCn, a complete pairwise inequivalent family (ρa)a∈A(\rho_a)_{a\in A}(ρa​)a∈A​ of positive-dimensional unitary irreducible representations with a distinguished one-dimensional trivial member, and a complex linear decomposition of U⊗U‾U\otimes\overline UU⊗U into one copy of each ρa\rho_aρa​, a∈θ⊆Aa\in\theta\subseteq Aa∈θ⊆A. Put da=dim⁡ρad_a=\dim\rho_ada​=dimρa​ and R={(b,i):b∈θ, 0≤i<db}\mathcal R=\{(b,i):b\in\theta,\ 0\le i<d_b\}R={(b,i):b∈θ, 0≤i<db​}. For each r=(b,i)r=(b,i)r=(b,i), a pivot choice PPP selects (ur,vr)(u_r,v_r)(ur​,vr​) such that

wr=Re⁡ ⁣[db∣G∣∑h∈Gρb(h−1)iiUh(ur,ur)Uh(vr,vr)‾]>0.w_r=\operatorname{Re}\!\left[ \frac{d_b}{|G|}\sum_{h\in G} \rho_b(h^{-1})_{ii}U_h(u_r,u_r)\overline{U_h(v_r,v_r)} \right]>0.wr​=Re[∣G∣db​​h∈G∑​ρb​(h−1)ii​Uh​(ur​,ur​)Uh​(vr​,vr​)​]>0.

Writing Nr=wr−1/2db∣G∣∑hρb(h−1)iiUhEurvrUh†N_r=w_r^{-1/2}\frac{d_b}{|G|}\sum_h\rho_b(h^{-1})_{ii}U_hE_{u_rv_r}U_h^\daggerNr​=wr−1/2​∣G∣db​​∑h​ρb​(h−1)ii​Uh​Eur​vr​​Uh†​, where EuvE_{uv}Euv​ is the standard matrix unit, the defined matrix has rows indexed by R\mathcal RR, columns indexed by θ\thetaθ, and entries

Mr,a=da∣G∣∑g∈Gtr⁡(ρa(g−1))∣tr⁡(NrUg†)∣2.M_{r,a}=\frac{d_a}{|G|}\sum_{g\in G} \operatorname{tr}(\rho_a(g^{-1})) \left|\operatorname{tr}(N_rU_g^\dagger)\right|^2.Mr,a​=∣G∣da​​g∈G∑​tr(ρa​(g−1))​tr(Nr​Ug†​)​2.

QAlgorithms.Papers.Independent.Extend50.P31.squaredSumEpsilon

Let GGG be a finite group, AAA a finite index type with decidable equality, and DDD contain a positive-dimensional irreducible unitary representation U:G→Mn(C)U:G\to M_n(\mathbb C)U:G→Mn​(C), a complete family (Ua)a∈A(U_a)_{a\in A}(Ua​)a∈A​ of positive-dimensional irreducible unitary representations with dimensions dad_ada​, a distinguished trivial member of dimension 111, and a subset Θ⊆A\Theta\subseteq AΘ⊆A with an invertible complex-linear intertwiner identifying U⊗U‾U\otimes\overline UU⊗U with one copy of every member indexed by Θ\ThetaΘ. Representations preserve identity and multiplication, have unitary matrices, and have no invariant complex subspaces other than zero and the whole space; every irreducible unitary representation is equivalent to a family member, and equivalent family members have equal indices. Put χa(g)=Tr⁡Ua(g)\chi_a(g)=\operatorname{Tr}U_a(g)χa​(g)=TrUa​(g). For any l:Θ→Cl:\Theta\to\mathbb Cl:Θ→C, row r=(b,i)r=(b,i)r=(b,i) with b∈Θb\in\Thetab∈Θ and i<dbi<d_bi<db​, and arbitrary index pair p=(p1,p2)p=(p_1,p_2)p=(p1​,p2​), let

w=Re⁡ ⁣[db∣G∣∑x∈GUb(x−1)ii U(x)p1p1 U(x)p2p2‾].w=\operatorname{Re}\!\left[ \frac{d_b}{|G|}\sum_{x\in G} U_b(x^{-1})_{ii}\,U(x)_{p_1p_1}\, \overline{U(x)_{p_2p_2}}\right].w=Re[∣G∣db​​x∈G∑​Ub​(x−1)ii​U(x)p1​p1​​U(x)p2​p2​​​].

The declaration defines

1∣G∣3∑g∈G∑a∈Θladaχa(g−1)∣dbw∑h∈GUb(h−1)iiU(h−1g−1h)p2p1∣2,\frac{1}{|G|^3} \sum_{g\in G}\sum_{a\in\Theta} l_a d_a\chi_a(g^{-1}) \left| \frac{d_b}{\sqrt w} \sum_{h\in G}U_b(h^{-1})_{ii} U(h^{-1}g^{-1}h)_{p_2p_1} \right|^2 ,∣G∣31​g∈G∑​a∈Θ∑​la​da​χa​(g−1)​w​db​​h∈G∑​Ub​(h−1)ii​U(h−1g−1h)p2​p1​​​2,

where the squared modulus is a real number subsequently regarded as complex. No restriction is imposed on lll, and no positive-pivot hypothesis is imposed at ppp. The real square root and complex inverse are total: if w≤0w\le0w≤0, the square root and its inverse are zero, and the displayed value is zero.

QAlgorithms.Papers.Independent.Extend50.P31.tensorConjugate

For any group GGG, natural number nnn, irreducible unitary representation UUU, and g∈Gg\in Gg∈G, this defines the matrix ρU(g)⊗ρU(g)‾\rho_U(g)\otimes\overline{\rho_U(g)}ρU​(g)⊗ρU​(g)​, indexed by pairs from {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1}, with entries

(ρU(g)⊗ρU(g)‾)(i,j),(k,l)=ρU(g)ik ρU(g)jl‾.\bigl(\rho_U(g)\otimes\overline{\rho_U(g)}\bigr)_{(i,j),(k,l)} =\rho_U(g)_{ik}\,\overline{\rho_U(g)_{jl}}.(ρU​(g)⊗ρU​(g)​)(i,j),(k,l)​=ρU​(g)ik​ρU​(g)jl​​.

Here UUU requires n>0n>0n>0, preservation of identity and multiplication, both unitary identities for each representation matrix, and that every invariant complex subspace is zero or the whole space. The bar denotes entrywise complex conjugation.

QAlgorithms.Papers.Independent.Extend50.P31.tensorFour

For any complex 4×44\times44×4 matrix MMM, this defines a matrix whose rows and columns are indexed by {0,1}×{0,1}\{0,1\}\times\{0,1\}{0,1}×{0,1}, with entries

(tensorFour⁡(M))(i,j),(r,s)=M2i+j, 2r+s.\bigl(\operatorname{tensorFour}(M)\bigr)_{(i,j),(r,s)} =M_{2i+j,\,2r+s}.(tensorFour(M))(i,j),(r,s)​=M2i+j,2r+s​.

Thus the pair indices are ordered as (0,0),(0,1),(1,0),(1,1)(0,0),(0,1),(1,0),(1,1)(0,0),(0,1),(1,0),(1,1); no condition on MMM is imposed.

QAlgorithms.Papers.Independent.Extend50.P31.trivialCoefficient

Let GGG be a finite group, AAA a finite type with decidable equality, and DDD specify a positive-dimensional unitary irreducible representation UUU on Cn\mathbb C^nCn, a complete pairwise inequivalent family (ρa)a∈A(\rho_a)_{a\in A}(ρa​)a∈A​ of positive-dimensional unitary irreducible representations, a distinguished index a0∈Aa_0\in Aa0​∈A whose representation has dimension 111 and acts as the identity at every g∈Gg\in Gg∈G, and a complex linear decomposition of U⊗U‾U\otimes\overline UU⊗U into one copy of each member indexed by θ⊆A\theta\subseteq Aθ⊆A. For any l:θ→Cl:\theta\to\mathbb Cl:θ→C, the defined complex number is

∑a∈θ{la,a=a0,0,a≠a0.\sum_{a\in\theta} \begin{cases} l_a,&a=a_0,\\ 0,&a\ne a_0. \end{cases}a∈θ∑​{la​,0,​a=a0​,a=a0​.​

This is la0l_{a_0}la0​​ when a0∈θa_0\in\thetaa0​∈θ, and the displayed sum is zero when there is no such index in θ\thetaθ.

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

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 30, 2026

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

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me