Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for A generalization of Schur-Weyl duality with applications in quantum estimation

Definition
QAlgorithms_Papers_Independent_Extend50_P37

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

prove2quantum

The objects the formalized statements of A generalization of Schur-Weyl duality with applications in quantum estimation (arXiv:1112.0638) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • alg: Complex generated unital algebra (1112.0638v3, PDF p.4).
  • unitaryCentralizer: All unitaries commuting with S (PDF pp.5-6).
  • UnitarySubgroup: A unitary subgroup in its physical matrix embedding (PDF p.6).
  • IsGauge: The double-centralizer definition of a gauge group (PDF p.6).
  • orderedTensorProduct: Local tensor product, with the given factor order (PDF p.7).
  • localSet: Ordered local action (PDF p.7).
  • collectiveImage: Collective action, using the frozen tensor power (PDF p.5, (2.7)).
  • perm: Transport of the frozen permutation action to an arbitrary finite basis; column x is sent to x composed with the inverse permutation (PDF p.5, (2.8)).
  • permutations: Permutation matrices in the physical tensor representation (PDF p.5).
  • tensorAlg: Tensor-power algebra (PDF pp.5-7).
  • permutationSector: The two one-dimensional permutation sectors; true denotes the antisymmetric sector. The factor 1/n! is essential (PDF pp.9-10, Appendix A (A1)).
  • cornerAlg: Algebra restricted to a sector, extended by zero outside it (PDF pp.9-10).
  • cornerComm: Commutant in End(range P), represented by supported matrices; its identity is P. This handles zero-dimensional sectors (PDF pp.9-10).
  • hsVector: Hilbert-Schmidt coordinates, needed to compute conditional expectations onto the physical matrix algebra (PDF pp.7,34-35).
  • algebraExpectation: Hilbert-Schmidt orthogonal projection onto an algebra, reusing the frozen matrix-unit expectation after the finite-basis equivalence. For a unitary commutant this is Haar conditional expectation (PDF (3.4), (A9)).
  • promotion: Corrected canonical promotion map, (3.10)-(3.11), PDF pp.11,35-36. C=T_local(Pi) has eigenvalues p_mu, not unnormalized traces. Its inverse square root is zero on zero blocks. Centrality of C makes this the same as (A14).
  • UCP: Heisenberg unital complete positivity, with linearity and every ancillary dimension explicit; trace preservation is not required (PDF Theorem 8).
  • Promotes: The complete three-clause promotion contract (PDF Theorem 8).
  • SubgroupHaarProbability: A normalized Haar law actually supplied on a measurable subgroup; none is silently postulated for arbitrary nonclosed subgroups (PDF pp.7,13,25).
  • subgroupConjugationAverage: Collective and local twirls (PDF pp.7,13,25).
  • GeneratorSpectralPVM: Joint spectral measurement of generators, allowing projectors of rank larger than one (PDF Proposition 9).
  • Postprocess: A stochastic classical rule after the fixed product spectral measurement. The output space is arbitrary, and each input string has a probability law (PDF pp.14,16-17).
  • RankOne: Rank-one density matrices: rank one, with positivity and trace one supplied separately in a prior or state hypothesis (PDF pp.19-22).
  • EstimationPrior: A probability law on density matrices, with a measurable full-measure support and a finite vector of measurable parameters (PDF pp.17-20). The support permits parameters to be constrained only where the prior lives.
  • Symmetry: Invariance of the actual prior law, and pointwise invariance of parameters on its support. This allows singular pure-state priors (PDF (5.4)-(5.5)).
  • PurePrior: Pure support, not purity of an average state (PDF Theorem 11).
  • ParameterBox: Positive-probability parameter events. Order-convex measurable subsets of R model intervals of every endpoint convention, including unbounded ones (PDF pp.18-20,26).
  • EquallyInformative: Equality of parameter-conditioned outcome laws for an arbitrary measurable outcome space. The simulator is quantified outside all B,D and states.
  • InAlgebra: Image confined to an algebra, for measurable events only (PDF p.20).
  • Noiseless: Noiselessness preserves all algebra observables on every density input; no covariance of the physical channel is imposed (PDF (5.7)).
  • Distortion: Gauge distortion, using the covariance identity actually needed on PDF pp.28-29: N(U rho U*)=U N(rho) U*. The printed p.20 identity omits the output conjugation. The pure prior need not initially be invariant.
  • EstimationAssumptions: Theorem 11 or 13 assumptions, for reuse in the merit statements (PDF p.21).
  • heisenbergDual: Bilinear trace dual, computed on matrix units. For a physical channel this is its Heisenberg adjoint, including on non-Hermitian matrices (PDF pp.21,28).
  • BlockPresentation: Physical block decomposition, including multiplicities and an actual unitary change of basis (PDF (3.3)). Zero padded blocks are omitted.
  • repeatedUnitaryBlocks: The ordered physical embedding of direct sums I_m tensor V_n (PDF (3.3)).
  • BlockPresentation.group: Gauge subgroup realized by a block presentation (PDF (3.3)).
  • BlockPresentation.signature: Unordered block multiplicities, the invariant in uniqueness up to unitary equivalence; absent padded U(0) factors are not counted (PDF pp.6-7).
  • traceRightRegister: Regroup interleaved ordered pairs into left and right registers, then apply the frozen actual partial trace over the right register (PDF p.14).
  • liftLeftRegister: Identity on the complete right register, preserving coherences on the left; factor order remains interleaved (PDF p.14).
  • SameReduction: PDF pp.21-22: equality of reductions, independent of a choice of basis.
  • observableAlgebra: The source constructs the unital adjoint-closed algebra from its single observable; it is not a free algebra with a representation hypothesis (PDF pp.22,32). For Hermitian H this is Alg{H,I}.
  • phaseGroup: Phase shifts with their scalar extension, in the number eigenbasis (PDF pp.15-17).
  • diagonalSet: Diagonal algebra in the chosen basis (PDF p.16).
  • pairBasisKet: Computational basis kets on two systems, specialized from the frozen ket at the ordered word ![a,b] (PDF pp.16-17).
  • bellSector: The two Bell vectors in the one-excitation sector (PDF p.16).
  • qubitFilling: Explicit two-qubit classical kernel from PDF p.16. On 01 and 10 use the Bell state of the chosen sign; 00 and 11 keep their basis state.
  • qutritVector: Normalized versions of the two nonorthogonal vectors printed on PDF p.17. They are not an orthogonal projective basis.
  • qutritEffects: A genuine three-outcome POVM incorporating both source projectors after scaling by 1/2; the third effect is the positive remainder (PDF p.17).
  • circleDensity: Half-angle qubit states from the definition on PDF p.23.
  • phaseFlipMixture: Common real dephasing family actually used in the example (PDF p.24).
  • circleDiagonal: Born diagonal uses half-angles; the last line on PDF p.23 loses /2. At a=pi/2 this is I/2, as required by the state definition.
  • BasisProcessing: A stochastic product-basis measurement (PDF pp.16-17,23-24).
  • twoQubitSeed: The concrete |00> and Bell vectors in the two-qubit decision problem (PDF p.25), with the left register first.
  • twoQubitOrbit: Single-system right-unitary orbit, not independent draws on each copy (PDF p.25).
  • decisionMarginal: The left marginal is |0><0| for b=0 and I/2 for b=1 (PDF p.25).
  • SampleConditionals: General conditional-law comparison, allowing the two independent states in VI B to be the sample, rather than treating them as identical copies.
  • pairDensity: Product of two independent, potentially different density matrices, indexed in the same order as the sector projectors (PDF p.32).
  • spinOneGroup: Spin-one SU(2) image in a Cartesian orthonormal basis: the complexification of SO(3). This is unitarily equivalent to the usual magnetic basis (PDF p.36).
  • spinZero: Spin-zero projector in Cartesian coordinates; the spin-one sector is the antisymmetric sector and spin-two is the remaining symmetric sector (PDF p.36).
  • scalarUnitaries: Scalar phase unitaries (PDF p.36).
  • standardSector: The standard S3 isotypic projector, including all copies, from the character (2,0,-1) on identity, transpositions, 3-cycles (PDF pp.37-39).
  • leftUnitaryGroup: Local U(2) actions on the left and right single-system qubits (PDF p.38).
  • rightUnitaryGroup
  • BornKernel: A measurable Born kernel for the actual n-copy/channel experiment, including continuous outcomes (PDF (5.1), (D2)-(D4)).
  • parameterJoint: Joint estimated/true parameter law. No density for the parameter law and no conditioning on a zero-probability atom is assumed (PDF Appendix D).
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Defs_Ensemble
import Definitions.Def_QAlgorithms_Defs_GeneralPOVMs
import Definitions.Def_QAlgorithms_Defs_MatrixMapPositivity
import Definitions.Def_QAlgorithms_Defs_TomographyOutcomes
import Definitions.Def_QAlgorithms_Defs_TensorPermutationRepresentations
import Definitions.Def_QAlgorithms_Defs_SchurWeylDecomposition
import Definitions.Def_QAlgorithms_Defs_SchurUnitaryEnsembles
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P26
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P60
import Definitions.Def_QAlgorithms_Papers_Independent_Next46_P29

noncomputable section

open MeasureTheory
open scoped Matrix ComplexConjugate ComplexOrder Matrix.Norms.L2Operator

namespace QAlgorithms.Papers.Independent.Extend50.P37

attribute [local instance] Classical.propDecidable Classical.decEq

open QAlgorithms.Papers.Independent.Information100.P60 (Mat)
open QAlgorithms.Papers.Independent.Next46.P29 (phaseAverage)

/-- The source's finite-dimensional matrix Borel sigma algebra (PDF pp.17-20). -/
local instance estimationMatrixMeasurable (J : Type*) [Fintype J] :
    MeasurableSpace (Mat J) := borel _

/-- Matrix measurability is the Borel structure of the usual finite-dimensional
norm topology, so continuous state and parameter maps are measurable. -/
local instance estimationMatrixBorel (J : Type*) [Fintype J] :
    BorelSpace (Mat J) := ⟨rfl⟩

variable {I : Type*} [Fintype I] [DecidableEq I]

/-- Complex generated unital algebra (1112.0638v3, PDF p.4). -/
def alg (S : Set (Mat I)) : Set (Mat I) := Algebra.adjoin ℂ S

/-- All unitaries commuting with S (PDF pp.5-6). -/
def unitaryCentralizer (S : Set (Mat I)) : Set (Mat I) :=
  {U | U ∈ Matrix.unitaryGroup I ℂ ∧ U ∈ Set.centralizer S}

/-- A unitary subgroup in its physical matrix embedding (PDF p.6). -/
def UnitarySubgroup (G : Set (Mat I)) : Prop :=
  (∀ U ∈ G, U ∈ Matrix.unitaryGroup I ℂ) ∧ 1 ∈ G ∧
    (∀ U ∈ G, ∀ V ∈ G, U * V ∈ G) ∧ (∀ U ∈ G, Uᴴ ∈ G)

/-- The double-centralizer definition of a gauge group (PDF p.6). -/
def IsGauge (G : Set (Mat I)) : Prop :=
  UnitarySubgroup G ∧ unitaryCentralizer (unitaryCentralizer G) = G

/-- Local tensor product, with the given factor order (PDF p.7). -/
def orderedTensorProduct {n : ℕ} (X : Fin n → Mat I) : Mat (Fin n → I) :=
  Matrix.of fun x y => ∏ i, X i (x i) (y i)

/-- Ordered local action (PDF p.7). -/
def localSet (n : ℕ) (S : Set (Mat I)) : Set (Mat (Fin n → I)) :=
  {X | ∃ V : Fin n → Mat I, (∀ i, V i ∈ S) ∧ X = orderedTensorProduct V}

/-- Collective action, using the frozen tensor power (PDF p.5, (2.7)). -/
def collectiveImage (n : ℕ) (S : Set (Mat I)) : Set (Mat (Fin n → I)) :=
  {X | ∃ V ∈ S, X = piKron n V}

/-- Transport of the frozen permutation action to an arbitrary finite basis;
column x is sent to x composed with the inverse permutation (PDF p.5, (2.8)). -/
def perm (I : Type*) [Fintype I] (n : ℕ) (s : Equiv.Perm (Fin n)) :
    Mat (Fin n → I) :=
  (Schur.tensorPermutation (Fintype.card I) n s).submatrix
    (fun x i => Fintype.equivFin I (x i)) (fun x i => Fintype.equivFin I (x i))

/-- Permutation matrices in the physical tensor representation (PDF p.5). -/
def permutations (I : Type*) [Fintype I] (n : ℕ) : Set (Mat (Fin n → I)) :=
  Set.range (perm I n)

/-- Tensor-power algebra (PDF pp.5-7). -/
def tensorAlg (n : ℕ) (A : Set (Mat I)) : Set (Mat (Fin n → I)) :=
  alg (localSet n A)

/-- The two one-dimensional permutation sectors; true denotes the antisymmetric
sector. The factor 1/n! is essential (PDF pp.9-10, Appendix A (A1)). -/
def permutationSector (I : Type*) [Fintype I] (n : ℕ) (antisymmetric : Bool) :
    Mat (Fin n → I) :=
  ((Nat.factorial n : ℂ)⁻¹) • ∑ s : Equiv.Perm (Fin n),
    (if antisymmetric then ((Equiv.Perm.sign s : ℤ) : ℂ) else 1) • perm I n s

/-- Algebra restricted to a sector, extended by zero outside it (PDF pp.9-10). -/
def cornerAlg (P : Mat I) (S : Set (Mat I)) : Set (Mat I) :=
  {X | ∃ Y ∈ alg S, X = P * Y * P}

/-- Commutant in End(range P), represented by supported matrices; its identity
is P. This handles zero-dimensional sectors (PDF pp.9-10). -/
def cornerComm (P : Mat I) (S : Set (Mat I)) : Set (Mat I) :=
  {X | P * X * P = X ∧ ∀ Y ∈ S, X * (P * Y * P) = (P * Y * P) * X}

/-- Hilbert-Schmidt coordinates, needed to compute conditional expectations
onto the physical matrix algebra (PDF pp.7,34-35). -/
def hsVector (X : Mat I) : EuclideanSpace ℂ (I × I) :=
  WithLp.toLp 2 fun p => X p.1 p.2

/-- Hilbert-Schmidt orthogonal projection onto an algebra, reusing the frozen
matrix-unit expectation after the finite-basis equivalence. For a unitary
commutant this is Haar conditional expectation (PDF (3.4), (A9)). -/
def algebraExpectation (A : Set (Mat I)) (X : Mat I) : Mat I :=
  let e := Fintype.equivFin I
  let toFin := fun Y : Mat I => Y.submatrix e.symm e.symm
  let AF := Submodule.span ℂ (toFin '' A)
  let Y := QAlgorithms.Papers.Independent.Information100.P26.applyMap
    (QAlgorithms.Papers.Independent.Information100.P26.expectation AF) (toFin X)
  Y.submatrix e e

/-- Corrected canonical promotion map, (3.10)-(3.11), PDF pp.11,35-36.
C=T_local(Pi) has eigenvalues p_mu, not unnormalized traces. Its inverse square
root is zero on zero blocks. Centrality of C makes this the same as (A14). -/
def promotion (A : Set (Mat I)) (n : ℕ) (s : Bool)
    (M : Mat (Fin n → I)) : Mat (Fin n → I) :=
  let P := permutationSector I n s
  let T := algebraExpectation (tensorAlg n A)
  let C := T P
  let R := cfc (fun x : ℝ => (Real.sqrt x)⁻¹) C
  let Phi := fun X => R * T (P * X * P) * R
  Phi M + (M.trace / (Fintype.card (Fin n → I) : ℂ)) • (1 - Phi 1)

/-- Heisenberg unital complete positivity, with linearity and every ancillary
dimension explicit; trace preservation is not required (PDF Theorem 8). -/
def UCP (L : Mat I → Mat I) : Prop :=
  ∃ F : Mat I →ₗ[ℂ] Mat I, (∀ X, L X = F X) ∧ F 1 = 1 ∧
    Entanglement.IsCompletelyPositive F

/-- The complete three-clause promotion contract (PDF Theorem 8). -/
def Promotes (A : Set (Mat I)) (n : ℕ) (s : Bool)
    (L : Mat (Fin n → I) → Mat (Fin n → I)) : Prop :=
  UCP L ∧ (∀ X, L X ∈ tensorAlg n A ∩ Set.centralizer (permutations I n)) ∧
    ∀ X, permutationSector I n s * X * permutationSector I n s ∈ Set.centralizer (collectiveImage n (unitaryCentralizer A)) →
      permutationSector I n s * L X * permutationSector I n s = permutationSector I n s * X * permutationSector I n s

/-- A normalized Haar law actually supplied on a measurable subgroup; none is
silently postulated for arbitrary nonclosed subgroups (PDF pp.7,13,25). -/
def SubgroupHaarProbability (H : Set (Mat I)) (mu : Measure (Mat I)) : Prop :=
  UnitarySubgroup H ∧ MeasurableSet H ∧ IsProbabilityMeasure mu ∧
    mu Hᶜ = 0 ∧
    (∀ U ∈ H, Measure.map (fun V => U * V) mu = mu) ∧
    (∀ U ∈ H, Measure.map (fun V => V * U) mu = mu)

/-- Collective and local twirls (PDF pp.7,13,25). -/
def subgroupConjugationAverage (mu : Measure (Mat I)) (X : Mat I) : Mat I :=
  ∫ U, U * X * Uᴴ ∂mu

/-- Joint spectral measurement of generators, allowing projectors of rank
larger than one (PDF Proposition 9). -/
structure GeneratorSpectralPVM (A : StarSubalgebra ℂ (Mat I)) where
  count : ℕ
  projector : Fin count → Mat I
  hermitian : ∀ j, (projector j)ᴴ = projector j
  idempotent : ∀ j, projector j * projector j = projector j
  nonzero : ∀ j, projector j ≠ 0
  orthogonal : ∀ j k, j ≠ k → projector j * projector k = 0
  total : ∑ j, projector j = 1
  spans : Submodule.span ℂ (Set.range projector) = A.toSubalgebra.toSubmodule

/-- A stochastic classical rule after the fixed product spectral measurement.
The output space is arbitrary, and each input string has a probability law
(PDF pp.14,16-17). -/
def Postprocess {O : Type*} [MeasurableSpace O] {n : ℕ}
    {A : StarSubalgebra ℂ (Mat I)} (E : GeneratorSpectralPVM A)
    (K : (Fin n → Fin E.count) → Measure O)
    (M : Set O → Mat (Fin n → I)) : Prop :=
  (∀ z, IsProbabilityMeasure (K z)) ∧
    ∀ B, MeasurableSet B → M B =
      ∑ z, ((K z B).toReal : ℂ) • orderedTensorProduct (fun i => E.projector (z i))

/-- Rank-one density matrices: rank one, with positivity and trace one supplied
separately in a prior or state hypothesis (PDF pp.19-22). -/
def RankOne (rho : Mat I) : Prop := Matrix.rank rho = 1

/-- A probability law on density matrices, with a measurable full-measure
support and a finite vector of measurable parameters (PDF pp.17-20).
The support permits parameters to be constrained only where the prior lives. -/
structure EstimationPrior (I : Type*) [Fintype I] [DecidableEq I] (l : ℕ) where
  law : Measure (Mat I)
  probability : IsProbabilityMeasure law
  support : Set (Mat I)
  measurable_support : MeasurableSet support
  full_support : law supportᶜ = 0
  density : ∀ rho ∈ support, IsDensityMatrix rho
  parameter : Mat I → Fin l → ℝ
  measurable_parameter : Measurable parameter

/-- Invariance of the actual prior law, and pointwise invariance of parameters
on its support. This allows singular pure-state priors (PDF (5.4)-(5.5)). -/
def Symmetry {l : ℕ} (p : EstimationPrior I l) (H : Set (Mat I)) : Prop :=
  ∀ U ∈ H, Measure.map (fun rho => U * rho * Uᴴ) p.law = p.law ∧
    (∀ rho ∈ p.support, U * rho * Uᴴ ∈ p.support ∧
      p.parameter (U * rho * Uᴴ) = p.parameter rho)

/-- Pure support, not purity of an average state (PDF Theorem 11). -/
def PurePrior {l : ℕ} (p : EstimationPrior I l) : Prop :=
  ∀ rho ∈ p.support, RankOne rho

/-- Positive-probability parameter events. Order-convex measurable subsets of
R model intervals of every endpoint convention, including unbounded ones
(PDF pp.18-20,26). -/
def ParameterBox {l : ℕ} (D : Set (Fin l → ℝ)) : Prop :=
  ∃ J : Fin l → Set ℝ, (∀ i, MeasurableSet (J i) ∧ Set.OrdConnected (J i)) ∧
    D = Set.univ.pi J

/-- Equality of parameter-conditioned outcome laws for an arbitrary measurable
outcome space. The simulator is quantified outside all B,D and states. -/
def EquallyInformative {J O : Type*} [Fintype J] [MeasurableSpace O] {l : ℕ}
    (p : EstimationPrior I l) (input : Mat I → Mat J)
    (M N : Set O → Mat J) : Prop :=
  ∀ B, MeasurableSet B → ∀ D, ParameterBox D →
    0 < p.law (p.parameter ⁻¹' D) →
      (∫ rho in p.parameter ⁻¹' D, effectProb (M B) (input rho) ∂p.law) /
          (p.law (p.parameter ⁻¹' D)).toReal =
      (∫ rho in p.parameter ⁻¹' D, effectProb (N B) (input rho) ∂p.law) /
          (p.law (p.parameter ⁻¹' D)).toReal

/-- Image confined to an algebra, for measurable events only (PDF p.20). -/
def InAlgebra {J O : Type*} [Fintype J] [MeasurableSpace O]
    (M : Set O → Mat J) (A : Set (Mat J)) : Prop :=
  ∀ B, MeasurableSet B → M B ∈ A

/-- Noiselessness preserves all algebra observables on every density input;
no covariance of the physical channel is imposed (PDF (5.7)). -/
def Noiseless (A : Set (Mat I)) (E : Mat I → Mat I) : Prop :=
  ∀ rho, IsDensityMatrix rho → ∀ R ∈ A, (R * E rho).trace = (R * rho).trace

/-- Gauge distortion, using the covariance identity actually needed on
PDF pp.28-29: N(U rho U*)=U N(rho) U*. The printed p.20 identity omits the
output conjugation. The pure prior need not initially be invariant. -/
def Distortion {l : ℕ} (A : Set (Mat I)) (p : EstimationPrior I l)
    (N : Mat I → Mat I) : Prop :=
  IsChannel N ∧ Noiseless A N ∧
    (∀ U ∈ unitaryCentralizer A, ∀ X, N (U * X * Uᴴ) = U * N X * Uᴴ) ∧
    ∃ q : Measure (Mat I), IsProbabilityMeasure q ∧
      (∀ᵐ rho ∂q, IsDensityMatrix rho ∧ RankOne rho) ∧
      Measure.map N q = p.law

/-- Theorem 11 or 13 assumptions, for reuse in the merit statements (PDF p.21). -/
def EstimationAssumptions {l : ℕ} (A : Set (Mat I)) (n : ℕ)
    (p : EstimationPrior I l) (E : Mat (Fin n → I) → Mat (Fin n → I)) : Prop :=
  Symmetry p (unitaryCentralizer A) ∧ IsChannel E ∧
    ((E = id ∧ PurePrior p) ∨
      (Noiseless (tensorAlg n A) E ∧ ∃ N, Distortion A p N))

/-- Bilinear trace dual, computed on matrix units. For a physical channel this
is its Heisenberg adjoint, including on non-Hermitian matrices (PDF pp.21,28). -/
def heisenbergDual (E : Mat I → Mat I) (X : Mat I) : Mat I :=
  Matrix.of fun i j => (X * E (Matrix.single j i 1)).trace

/-- Physical block decomposition, including multiplicities and an actual
unitary change of basis (PDF (3.3)). Zero padded blocks are omitted. -/
structure BlockPresentation (I : Type*) [Fintype I] [DecidableEq I] where
  count : ℕ
  multiplicity : Fin count → ℕ
  dimension : Fin count → ℕ
  multiplicity_positive : ∀ j, 0 < multiplicity j
  dimension_positive : ∀ j, 0 < dimension j
  size : ∑ j, multiplicity j * dimension j = Fintype.card I
  change : Matrix I (Σ j : Fin count, Fin (multiplicity j) × Fin (dimension j)) ℂ
  left_unitary : change * changeᴴ = 1
  right_unitary : changeᴴ * change = 1

/-- The ordered physical embedding of direct sums I_m tensor V_n (PDF (3.3)). -/
def repeatedUnitaryBlocks {k : ℕ} (m n : Fin k → ℕ)
    (V : (j : Fin k) → Mat (Fin (n j))) :
    Mat (Σ j : Fin k, Fin (m j) × Fin (n j)) :=
  Matrix.of fun a b => if h : b.1 = a.1 then
    if a.2.1 = (h ▸ b.2).1 then V a.1 a.2.2 (h ▸ b.2).2 else 0 else 0

/-- Gauge subgroup realized by a block presentation (PDF (3.3)). -/
def BlockPresentation.group (b : BlockPresentation I) : Set (Mat I) :=
  {X | ∃ V : (j : Fin b.count) → Mat (Fin (b.dimension j)),
    (∀ j, (V j)ᴴ * V j = 1 ∧ V j * (V j)ᴴ = 1) ∧
    X = b.change * repeatedUnitaryBlocks b.multiplicity b.dimension V * b.changeᴴ}

/-- Unordered block multiplicities, the invariant in uniqueness up to unitary
equivalence; absent padded U(0) factors are not counted (PDF pp.6-7). -/
def BlockPresentation.signature (b : BlockPresentation I) : Multiset (ℕ × ℕ) :=
  ↑(List.ofFn fun j => (b.multiplicity j, b.dimension j))

/-- Regroup interleaved ordered pairs into left and right registers, then
apply the frozen actual partial trace over the right register (PDF p.14). -/
def traceRightRegister {L R : Type*} [Fintype R] {n : ℕ}
    (rho : Mat (Fin n → L × R)) : Mat (Fin n → L) :=
  traceRight (Matrix.of fun p q : (Fin n → L) × (Fin n → R) =>
    rho (fun i => (p.1 i, p.2 i)) (fun i => (q.1 i, q.2 i)))

/-- Identity on the complete right register, preserving coherences on the
left; factor order remains interleaved (PDF p.14). -/
def liftLeftRegister {L R : Type*} {n : ℕ} (X : Mat (Fin n → L)) :
    Mat (Fin n → L × R) :=
  Matrix.of fun x y => if (fun i => (x i).2) = (fun i => (y i).2) then
    X (fun i => (x i).1) (fun i => (y i).1) else 0

/-- PDF pp.21-22: equality of reductions, independent of a choice of basis. -/
def SameReduction (A : Set (Mat I)) (rho sigma : Mat I) : Prop :=
  ∀ X ∈ A, (rho * X).trace = (sigma * X).trace

/-- The source constructs the unital adjoint-closed algebra from its single
observable; it is not a free algebra with a representation hypothesis
(PDF pp.22,32). For Hermitian H this is Alg{H,I}. -/
def observableAlgebra (H : Mat I) : StarSubalgebra ℂ (Mat I) :=
  StarAlgebra.adjoin ℂ ({H} : Set (Mat I))

/-- Phase shifts with their scalar extension, in the number eigenbasis
(PDF pp.15-17). -/
def phaseGroup (d : ℕ) : Set (Mat (Fin d)) :=
  {U | ∃ a t : ℝ, U = Matrix.diagonal (fun i => Complex.exp (Complex.I * (a + t * i.val)))}

/-- Diagonal algebra in the chosen basis (PDF p.16). -/
def diagonalSet (I : Type*) [Fintype I] : Set (Mat I) :=
  {X | ∃ a : I → ℂ, X = Matrix.diagonal a}

/-- Computational basis kets on two systems, specialized from the frozen
ket at the ordered word ![a,b] (PDF pp.16-17). -/
def pairBasisKet (d : ℕ) (a b : Fin d) : EuclideanSpace ℂ (Fin 2 → Fin d) :=
  ket ![a,b]

/-- The ordered basis specialization retains the frozen normalized ket. -/
example (d : ℕ) (a b : Fin d) : pairBasisKet d a b = ket ![a,b] := rfl

/-- The two Bell vectors in the one-excitation sector (PDF p.16). -/
def bellSector (minus : Bool) : EuclideanSpace ℂ (Fin 2 → Fin 2) :=
  (Real.sqrt 2 : ℂ)⁻¹ •
    (pairBasisKet 2 0 1 + (if minus then (-1 : ℂ) else 1) • pairBasisKet 2 1 0)

/-- Explicit two-qubit classical kernel from PDF p.16. On 01 and 10 use the
Bell state of the chosen sign; 00 and 11 keep their basis state. -/
def qubitFilling (s : Bool) (z : Fin 2 → Fin 2) : Mat (Fin 2 → Fin 2) :=
  if z 0 = z 1 then pureDensity (pairBasisKet 2 (z 0) (z 1))
  else pureDensity (bellSector s)

/-- Normalized versions of the two nonorthogonal vectors printed on PDF p.17.
They are not an orthogonal projective basis. -/
def qutritVector (minus : Bool) : EuclideanSpace ℂ (Fin 2 → Fin 3) :=
  (Real.sqrt 3 : ℂ)⁻¹ • (pairBasisKet 3 1 1 +
    (if minus then (-1 : ℂ) else 1) • (pairBasisKet 3 0 2 + pairBasisKet 3 2 0))

/-- A genuine three-outcome POVM incorporating both source projectors after
scaling by 1/2; the third effect is the positive remainder (PDF p.17). -/
def qutritEffects : Fin 3 → Mat (Fin 2 → Fin 3) :=
  ![(1/2 : ℂ) • pureDensity (qutritVector false),
    (1/2 : ℂ) • pureDensity (qutritVector true),
    1 - (1/2 : ℂ) • pureDensity (qutritVector false) -
      (1/2 : ℂ) • pureDensity (qutritVector true)]

/-- Half-angle qubit states from the definition on PDF p.23. -/
def circleDensity (a theta : ℝ) : Mat (Fin 2) :=
  pureDensity (WithLp.toLp 2 ![(Real.cos (a/2) : ℂ),
    Complex.exp (Complex.I * theta) * Real.sin (a/2)])

/-- Common real dephasing family actually used in the example (PDF p.24). -/
def phaseFlipMixture (r : ℝ) (rho : Mat (Fin 2)) : Mat (Fin 2) :=
  (1-r : ℂ) • rho + (r : ℂ) •
    (Matrix.diagonal ![(1 : ℂ), -1] * rho * Matrix.diagonal ![(1 : ℂ), -1])

/-- Born diagonal uses half-angles; the last line on PDF p.23 loses /2.
At a=pi/2 this is I/2, as required by the state definition. -/
def circleDiagonal (a : ℝ) : Mat (Fin 2) :=
  Matrix.diagonal ![(Real.cos (a/2)^2 : ℂ), (Real.sin (a/2)^2 : ℂ)]

/-- A stochastic product-basis measurement (PDF pp.16-17,23-24). -/
def BasisProcessing {O : Type*} [MeasurableSpace O] (n : ℕ)
    (N : Measurements.OperatorPOVM (Fin n → Fin 2) O) : Prop :=
  ∃ K : (Fin n → Fin 2) → Measure O, (∀ z, IsProbabilityMeasure (K z)) ∧
    ∀ B, MeasurableSet B → N.operator B = Matrix.diagonal (fun z => ((K z B).toReal : ℂ))

/-- The concrete |00> and Bell vectors in the two-qubit decision problem
(PDF p.25), with the left register first. -/
def twoQubitSeed (b : Fin 2) : EuclideanSpace ℂ (Fin 2 × Fin 2) :=
  WithLp.toLp 2 fun x => if b = 0 then (if x = (0,0) then 1 else 0)
    else if x.1 ≠ x.2 then (Real.sqrt 2 : ℂ)⁻¹ else 0

/-- Single-system right-unitary orbit, not independent draws on each copy
(PDF p.25). -/
def twoQubitOrbit (b : Fin 2) (V : Mat (Fin 2)) : Mat (Fin 2 × Fin 2) :=
  let U := Matrix.kronecker (1 : Mat (Fin 2)) V
  U * pureDensity (twoQubitSeed b) * Uᴴ

/-- The left marginal is |0><0| for b=0 and I/2 for b=1 (PDF p.25). -/
def decisionMarginal (b : Fin 2) : Mat (Fin 2) :=
  if b = 0 then Matrix.diagonal ![(1 : ℂ),0] else (1/2 : ℂ) • 1

/-- General conditional-law comparison, allowing the two independent states
in VI B to be the sample, rather than treating them as identical copies. -/
def SampleConditionals {X J O : Type*} [MeasurableSpace X] [Fintype J]
    [MeasurableSpace O] {l : ℕ} (mu : Measure X) (parameter : X → Fin l → ℝ)
    (input : X → Mat J) (M N : Set O → Mat J) : Prop :=
  ∀ B, MeasurableSet B → ∀ D, ParameterBox D → 0 < mu (parameter ⁻¹' D) →
    (∫ x in parameter ⁻¹' D, effectProb (M B) (input x) ∂mu) /
        (mu (parameter ⁻¹' D)).toReal =
      (∫ x in parameter ⁻¹' D, effectProb (N B) (input x) ∂mu) /
        (mu (parameter ⁻¹' D)).toReal

/-- Product of two independent, potentially different density matrices,
indexed in the same order as the sector projectors (PDF p.32). -/
def pairDensity (rho sigma : Mat I) : Mat (Fin 2 → I) :=
  orderedTensorProduct ![rho,sigma]

/-- Spin-one SU(2) image in a Cartesian orthonormal basis: the complexification
of SO(3). This is unitarily equivalent to the usual magnetic basis (PDF p.36). -/
def spinOneGroup : Set (Mat (Fin 3)) :=
  {U | ∃ R : Matrix (Fin 3) (Fin 3) ℝ,
    R.transpose * R = 1 ∧ R.det = 1 ∧ U = R.map Complex.ofReal}

/-- Spin-zero projector in Cartesian coordinates; the spin-one sector is the
antisymmetric sector and spin-two is the remaining symmetric sector (PDF p.36). -/
def spinZero : Mat (Fin 2 → Fin 3) :=
  pureDensity (WithLp.toLp 2 fun x => if x 0 = x 1 then (Real.sqrt 3 : ℂ)⁻¹ else 0)

/-- Scalar phase unitaries (PDF p.36). -/
def scalarUnitaries (I : Type*) [Fintype I] [DecidableEq I] : Set (Mat I) :=
  {X | ∃ z : ℂ, Complex.normSq z = 1 ∧ X = z • 1}

/-- The standard S3 isotypic projector, including all copies, from the
character (2,0,-1) on identity, transpositions, 3-cycles (PDF pp.37-39). -/
def standardSector (I : Type*) [Fintype I] : Mat (Fin 3 → I) :=
  (1/3 : ℂ) • ∑ s : Equiv.Perm (Fin 3),
    (if s = 1 then (2 : ℂ) else if (Equiv.Perm.sign s : ℤ) = -1 then 0 else -1) • perm I 3 s

/-- Local U(2) actions on the left and right single-system qubits
(PDF p.38). -/
def leftUnitaryGroup : Set (Mat (Fin 2 × Fin 2)) :=
  {X | ∃ U : Mat (Fin 2), Uᴴ * U = 1 ∧ U * Uᴴ = 1 ∧
    X = Matrix.kronecker U (1 : Mat (Fin 2))}

def rightUnitaryGroup : Set (Mat (Fin 2 × Fin 2)) :=
  {X | ∃ U : Mat (Fin 2), Uᴴ * U = 1 ∧ U * Uᴴ = 1 ∧
    X = Matrix.kronecker (1 : Mat (Fin 2)) U}

/-- A measurable Born kernel for the actual n-copy/channel experiment,
including continuous outcomes (PDF (5.1), (D2)-(D4)). -/
def BornKernel {O : Type*} [MeasurableSpace O] {l n : ℕ} (p : EstimationPrior I l)
    (E : Mat (Fin n → I) → Mat (Fin n → I))
    (M : Measurements.OperatorPOVM (Fin n → I) O)
    (K : ProbabilityTheory.Kernel (Mat I) O) : Prop :=
  ∀ rho ∈ p.support, ∀ B, MeasurableSet B →
    K rho B = ENNReal.ofReal (effectProb (M.operator B) (E (piKron n rho)))

/-- Joint estimated/true parameter law. No density for the parameter law
and no conditioning on a zero-probability atom is assumed (PDF Appendix D). -/
def parameterJoint {O : Type*} [MeasurableSpace O] {l : ℕ} (p : EstimationPrior I l)
    (K : ProbabilityTheory.Kernel (Mat I) O) : Measure (O × (Fin l → ℝ)) :=
  Measure.map (fun x => (x.2, p.parameter x.1)) (p.law.compProd K)

/-- Hand check: a number eigenstate at zero polar angle has population one. -/
example (theta : ℝ) : circleDensity 0 theta 0 0 = 1 := by
  simp [circleDensity, pureDensity]

/-- Hand check: the product seed for b=0 is exactly |00>. -/
example : twoQubitSeed 0 (0,0) = 1 := by simp [twoQubitSeed]

/-- Small-instance sanity: zero local factors have scalar identity entry. -/
example (V : Fin 0 → Mat I) (x y : Fin 0 → I) : orderedTensorProduct V x y = 1 := by
  simp [orderedTensorProduct]

/-- Small-instance sanity: the collective product is the frozen tensor power. -/
example (n : ℕ) (V : Mat I) : orderedTensorProduct (fun _ : Fin n => V) = piKron n V := rfl

/-- Hilbert-Schmidt coordinates use every entry, without a transpose. -/
example (X : Mat I) (i j : I) : hsVector X (i,j) = X i j := rfl

/-- The zero corner contains its unique zero endomorphism, even when the
full Hilbert space is nonzero. -/
example (S : Set (Mat I)) : (0 : Mat I) ∈ cornerComm 0 S := by
  simp [cornerComm]

/-- Identity channels are noiseless on every algebra. -/
example (A : Set (Mat I)) : Noiseless A id := by
  intro rho hrho R hR
  rfl

/-- Trace dual uses the transposed matrix-unit indices. -/
example (E : Mat I → Mat I) (X : Mat I) (i j : I) :
    heisenbergDual E X i j = (X * E (Matrix.single j i 1)).trace := rfl

/-- Each multiplicity copy carries precisely the same unitary block. -/
example {k : ℕ} (m n : Fin k → ℕ) (V : (j : Fin k) → Mat (Fin (n j)))
    (j : Fin k) (a : Fin (m j)) (b c : Fin (n j)) :
    repeatedUnitaryBlocks m n V ⟨j,(a,b)⟩ ⟨j,(a,c)⟩ = V j b c := by
  simp [repeatedUnitaryBlocks]

end QAlgorithms.Papers.Independent.Extend50.P37
Source
A generalization of Schur-Weyl duality with applications in quantum estimation, arXiv:1112.0638v3, https://arxiv.org/abs/1112.0638v3
Read-back

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

QAlgorithms.Papers.Independent.Extend50.P37.BasisProcessing

For any measurable space OOO, any natural number nnn, and an operator-valued measurement NNN on C{0,1}n\mathbb C^{\{0,1\}^n}C{0,1}n with outcomes in OOO, this predicate means that there exists a family of probability measures KzK_zKz​ on OOO, one for each binary string z∈{0,1}nz\in\{0,1\}^nz∈{0,1}n, such that for every measurable B⊆OB\subseteq OB⊆O,

N(B)=diag⁡z∈{0,1}n((Kz(B)).toReal).N(B)=\operatorname{diag}_{z\in\{0,1\}^n}\bigl((K_z(B)).\mathrm{toReal}\bigr).N(B)=diagz∈{0,1}n​((Kz​(B)).toReal).

Here the real values are embedded in C\mathbb CC. Being an operator-valued measurement means that NNN assigns a matrix to every subset of OOO, sends ∅\varnothing∅ to 000 and OOO to III, is positive semidefinite on measurable sets, and, for every sequence of pairwise disjoint measurable sets BiB_iBi​, the matrix series ∑iN(Bi)\sum_iN(B_i)∑i​N(Bi​) converges to N(⋃iBi)N(\bigcup_iB_i)N(⋃i​Bi​). The definition includes n=0n=0n=0, when there is exactly one binary string; the measures KzK_zKz​ are probability measures, so their values are finite.

QAlgorithms.Papers.Independent.Extend50.P37.BlockPresentation.group

For a finite index type III with decidable equality, let bbb be a block presentation with block count ccc, positive multiplicities mjm_jmj​, positive dimensions djd_jdj​, ∑jmjdj=∣I∣\sum_jm_jd_j=|I|∑j​mj​dj​=∣I∣, and change matrix WWW satisfying WW∗=1IWW^{*}=1_IWW∗=1I​ and W∗W=1W^{*}W=1W∗W=1 on the disjoint union of the block indices (j,a,u)(j,a,u)(j,a,u), where a<mja<m_ja<mj​ and u<dju<d_ju<dj​. The set b.group⁡b.\operatorname{group}b.group consists exactly of matrices

X=W(⨁j<c(1mj⊗Vj))W∗,X=W\left(\bigoplus_{j<c}(1_{m_j}\otimes V_j)\right)W^{*},X=W(j<c⨁​(1mj​​⊗Vj​))W∗,

where each complex dj×djd_j\times d_jdj​×dj​ matrix VjV_jVj​ satisfies both Vj∗Vj=1V_j^{*}V_j=1Vj∗​Vj​=1 and VjVj∗=1V_jV_j^{*}=1Vj​Vj∗​=1; the middle matrix has entry (Vj)u,u′(V_j)_{u,u'}(Vj​)u,u′​ when the two block labels and multiplicity indices agree, and zero otherwise. If III is empty, the block count is zero and this set contains the unique empty matrix.

QAlgorithms.Papers.Independent.Extend50.P37.BlockPresentation

For any finite index type III with decidable equality, a block presentation consists of a natural number ccc, positive natural numbers mj,djm_j,d_jmj​,dj​ for every 0≤j<c0\le j<c0≤j<c, and a complex matrix WWW whose rows are indexed by III and whose columns are indexed by the disjoint union

K=⨆j<c({0,…,mj−1}×{0,…,dj−1}),K=\bigsqcup_{j<c}\bigl(\{0,\ldots,m_j-1\}\times\{0,\ldots,d_j-1\}\bigr),K=j<c⨆​({0,…,mj​−1}×{0,…,dj​−1}),

such that ∑j<cmjdj=∣I∣\sum_{j<c}m_jd_j=|I|∑j<c​mj​dj​=∣I∣, WW∗=1IWW^{*}=1_IWW∗=1I​, and W∗W=1KW^{*}W=1_KW∗W=1K​. There is no separate requirement that c>0c>0c>0; c=0c=0c=0 forces III to be empty, and the positivity of every block size forces c=0c=0c=0 when III is empty.

QAlgorithms.Papers.Independent.Extend50.P37.BlockPresentation.signature

Let III be a finite index type with decidable equality. A block presentation bbb consists of a natural number rrr, positive natural numbers mj,djm_j,d_jmj​,dj​ for j∈{0,…,r−1}j\in\{0,\ldots,r-1\}j∈{0,…,r−1}, an equality ∑jmjdj=∣I∣\sum_jm_jd_j=|I|∑j​mj​dj​=∣I∣, and a complex matrix WWW from the coordinate space indexed by ∐j({0,…,mj−1}×{0,…,dj−1})\coprod_j(\{0,\ldots,m_j-1\}\times\{0,\ldots,d_j-1\})∐j​({0,…,mj​−1}×{0,…,dj​−1}) to that indexed by III, satisfying WW†=1WW^\dagger=1WW†=1 and W†W=1W^\dagger W=1W†W=1. Its signature is the multiset

{ ⁣{(mj,dj):0≤j<r} ⁣},\{\!\{(m_j,d_j):0\le j<r\}\!\},{{(mj​,dj​):0≤j<r}},

which retains repeated pairs and discards their ordering. The definition does not require r>0r>0r>0; when r=0r=0r=0, the signature is empty.

QAlgorithms.Papers.Independent.Extend50.P37.BornKernel

Let III be a finite index type with decidable equality, write Mat⁡(I)\operatorname{Mat}(I)Mat(I) for the complex matrices indexed by III, let OOO be a measurable space, and let l,n≥0l,n\geq0l,n≥0 be integers. An estimation prior ppp consists of a probability measure μ\muμ on Mat⁡(I)\operatorname{Mat}(I)Mat(I), a measurable set SSS with μ(Sc)=0\mu(S^{c})=0μ(Sc)=0, every member of which is positive semidefinite with trace 111, and a measurable parameter map ϑ:Mat⁡(I)→Rl\vartheta:\operatorname{Mat}(I)\to\mathbb R^{l}ϑ:Mat(I)→Rl. Let EEE be any function on matrices indexed by InI^{n}In. Let MMM assign a matrix M(B)M(B)M(B) to every subset B⊆OB\subseteq OB⊆O, with M(∅)=0M(\varnothing)=0M(∅)=0, M(O)=1M(O)=1M(O)=1, positive semidefinite values on measurable sets, and countable additivity, expressed as convergence of the matrix series, on pairwise disjoint measurable sets. Let KKK be a measurable kernel from Mat⁡(I)\operatorname{Mat}(I)Mat(I) to OOO; its measures need not be probability measures. The predicate asserts that, for every ρ∈S\rho\in Sρ∈S and every measurable B⊆OB\subseteq OB⊆O,

K(ρ,B)=max⁡ ⁣{Re⁡tr⁡ ⁣(M(B)E(ρ⊗n)),0},(ρ⊗n)x,y=∏i=0n−1ρxi,yi,K(\rho,B)=\max\!\left\{\operatorname{Re}\operatorname{tr}\!\left(M(B)E(\rho^{\otimes n})\right),0\right\}, \qquad (\rho^{\otimes n})_{x,y}=\prod_{i=0}^{n-1}\rho_{x_i,y_i},K(ρ,B)=max{Retr(M(B)E(ρ⊗n)),0},(ρ⊗n)x,y​=i=0∏n−1​ρxi​,yi​​,

where the right side is regarded as an extended nonnegative real number. No condition is imposed on K(ρ,⋅)K(\rho,\cdot)K(ρ,⋅) outside SSS, and EEE is not required here to be a channel. For n=0n=0n=0, the empty product defines the one-dimensional matrix with entry 111; l=0l=0l=0 is also allowed.

QAlgorithms.Papers.Independent.Extend50.P37.Distortion

For a finite index type III with decidable equality, let A⊆Mat⁡(I)A\subseteq\operatorname{Mat}(I)A⊆Mat(I), let l≥0l\ge0l≥0, and let ppp be an estimation prior with probability law μ\muμ, designated measurable full-measure set SSS of positive semidefinite trace-111 matrices, and measurable parameter map into Rl\mathbb R^{l}Rl. For a function N:Mat⁡(I)→Mat⁡(I)N:\operatorname{Mat}(I)\to\operatorname{Mat}(I)N:Mat(I)→Mat(I), the condition Distortion⁡(A,p,N)\operatorname{Distortion}(A,p,N)Distortion(A,p,N) means that there are a natural number mmm and matrices K0,…,Km−1K_0,\ldots,K_{m-1}K0​,…,Km−1​ with ∑jKj∗Kj=1\sum_jK_j^{*}K_j=1∑j​Kj∗​Kj​=1 and N(X)=∑jKjXKj∗N(X)=\sum_jK_jXK_j^{*}N(X)=∑j​Kj​XKj∗​ for every matrix XXX; that tr⁡(R N(ρ))=tr⁡(Rρ)\operatorname{tr}(R\,N(\rho))=\operatorname{tr}(R\rho)tr(RN(ρ))=tr(Rρ) for every positive semidefinite trace-111 matrix ρ\rhoρ and every R∈AR\in AR∈A; that

N(UXU∗)=U N(X) U∗N(UXU^{*})=U\,N(X)\,U^{*}N(UXU∗)=UN(X)U∗

for every matrix XXX and every unitary matrix UUU commuting with every element of AAA; and that there exists a probability measure qqq on Mat⁡(I)\operatorname{Mat}(I)Mat(I) such that qqq-almost every ρ\rhoρ is positive semidefinite, has trace 111, and has rank 111, and N∗q=μN_{*}q=\muN∗​q=μ. The designated set SSS and parameter map impose no further conditions in this definition; the finite Kraus family is allowed to have length zero.

QAlgorithms.Papers.Independent.Extend50.P37.EquallyInformative

Let III be a finite index type with decidable equality, let JJJ be any finite index type, let OOO be any measurable space, and let l≥0l\ge0l≥0. Let ppp be an estimation prior with probability law μ\muμ, designated measurable full-measure set SSS of positive semidefinite trace-111 matrices, and measurable parameter map ϑ:Mat⁡(I)→Rl\vartheta:\operatorname{Mat}(I)\to\mathbb R^{l}ϑ:Mat(I)→Rl. For any function F:Mat⁡(I)→Mat⁡(J)F:\operatorname{Mat}(I)\to\operatorname{Mat}(J)F:Mat(I)→Mat(J) and any functions M,N:P(O)→Mat⁡(J)M,N:\mathcal P(O)\to\operatorname{Mat}(J)M,N:P(O)→Mat(J), the condition EquallyInformative⁡(p,F,M,N)\operatorname{EquallyInformative}(p,F,M,N)EquallyInformative(p,F,M,N) means that, for every measurable B⊆OB\subseteq OB⊆O and every product D=∏i<lJiD=\prod_{i<l}J_iD=∏i<l​Ji​ of measurable order-connected subsets of R\mathbb RR, whenever μ(ϑ−1(D))>0\mu(\vartheta^{-1}(D))>0μ(ϑ−1(D))>0,

∫ϑ−1(D)Re⁡tr⁡ ⁣(M(B)F(ρ)) dμ(ρ)μ(ϑ−1(D))=∫ϑ−1(D)Re⁡tr⁡ ⁣(N(B)F(ρ)) dμ(ρ)μ(ϑ−1(D)).\frac{\displaystyle\int_{\vartheta^{-1}(D)} \operatorname{Re}\operatorname{tr}\!\bigl(M(B)F(\rho)\bigr)\,d\mu(\rho)} {\mu(\vartheta^{-1}(D))} = \frac{\displaystyle\int_{\vartheta^{-1}(D)} \operatorname{Re}\operatorname{tr}\!\bigl(N(B)F(\rho)\bigr)\,d\mu(\rho)} {\mu(\vartheta^{-1}(D))}.μ(ϑ−1(D))∫ϑ−1(D)​Retr(M(B)F(ρ))dμ(ρ)​=μ(ϑ−1(D))∫ϑ−1(D)​Retr(N(B)F(ρ))dμ(ρ)​.

The denominators are the real values of these finite positive measures. No positivity, normalization, additivity, measurability, or integrability conditions on F,M,NF,M,NF,M,N are included; the integrals use the total Bochner-integral convention, which gives zero when the integrand is not integrable. Parameter boxes of measure zero impose no equality.

QAlgorithms.Papers.Independent.Extend50.P37.EstimationAssumptions

For a finite index type III with decidable equality, let A⊆Mat⁡(I)A\subseteq\operatorname{Mat}(I)A⊆Mat(I), let n,l≥0n,l\ge0n,l≥0, let ppp be an estimation prior with probability law μ\muμ, designated measurable full-measure set SSS of positive semidefinite trace-111 matrices, and measurable parameter map ϑ:Mat⁡(I)→Rl\vartheta:\operatorname{Mat}(I)\to\mathbb R^{l}ϑ:Mat(I)→Rl, and let EEE be any function on complex matrices indexed by InI^{n}In. The condition EstimationAssumptions⁡(A,n,p,E)\operatorname{EstimationAssumptions}(A,n,p,E)EstimationAssumptions(A,n,p,E) requires that every unitary UUU commuting with every element of AAA preserve μ\muμ under ρ↦UρU∗\rho\mapsto U\rho U^{*}ρ↦UρU∗, map SSS into itself, and satisfy ϑ(UρU∗)=ϑ(ρ)\vartheta(U\rho U^{*})=\vartheta(\rho)ϑ(UρU∗)=ϑ(ρ) for all ρ∈S\rho\in Sρ∈S; that EEE admit a finite Kraus representation E(X)=∑jKjXKj∗E(X)=\sum_jK_jXK_j^{*}E(X)=∑j​Kj​XKj∗​ with ∑jKj∗Kj=1\sum_jK_j^{*}K_j=1∑j​Kj∗​Kj​=1; and that at least one of the following hold: either EEE is the identity function and every matrix in SSS has rank 111, or tr⁡(R E(ρ))=tr⁡(Rρ)\operatorname{tr}(R\,E(\rho))=\operatorname{tr}(R\rho)tr(RE(ρ))=tr(Rρ) for every positive semidefinite trace-111 matrix ρ\rhoρ on InI^{n}In and every RRR in the unital complex algebra generated by all matrices

Tx,y=∏i<n(Vi)xi,yi,Vi∈A,T_{\mathbf x,\mathbf y}=\prod_{i<n}(V_i)_{x_i,y_i}, \qquad V_i\in A,Tx,y​=i<n∏​(Vi​)xi​,yi​​,Vi​∈A,

and there exists a function N:Mat⁡(I)→Mat⁡(I)N:\operatorname{Mat}(I)\to\operatorname{Mat}(I)N:Mat(I)→Mat(I) having a finite normalized Kraus representation, preserving tr⁡(Rρ)\operatorname{tr}(R\rho)tr(Rρ) for every R∈AR\in AR∈A and every density matrix ρ\rhoρ, satisfying N(UXU∗)=UN(X)U∗N(UXU^{*})=UN(X)U^{*}N(UXU∗)=UN(X)U∗ for every matrix XXX and every unitary UUU commuting with AAA, and pushing some probability measure concentrated almost everywhere on rank-111 density matrices to μ\muμ. These alternatives need not be exclusive, and no equation relating EEE to this NNN is required. The case n=0n=0n=0 is included, with the empty tensor product equal to 111.

QAlgorithms.Papers.Independent.Extend50.P37.EstimationPrior

For a finite index type III equipped with decidable equality and a natural number lll, this structure consists of a measure μ\muμ on the space of complex I×II\times II×I matrices, a proof that μ\muμ is a probability measure, a measurable set SSS of matrices satisfying μ(S∁)=0\mu(S^{\complement})=0μ(S∁)=0, and the requirement that every ρ∈S\rho\in Sρ∈S is positive semidefinite with complex trace exactly 111. It also contains a function θ\thetaθ from the entire matrix space to Rl\mathbb R^lRl, together with a proof that θ\thetaθ is measurable. The set SSS is supplied as data and is not required to be the topological support of μ\muμ. The case l=0l=0l=0 is allowed, giving the unique empty parameter vector; if III is empty, no such structure can exist because no matrix has trace 111.

QAlgorithms.Papers.Independent.Extend50.P37.GeneratorSpectralPVM

For a finite index type III with decidable equality and a unital complex star subalgebra AAA of complex I×II\times II×I matrices, this structure consists of a natural number qqq and matrices P0,…,Pq−1P_0,\ldots,P_{q-1}P0​,…,Pq−1​ satisfying

Pj∗=Pj,Pj2=Pj,Pj≠0,PjPk=0 when j≠k,∑jPj=1,P_j^{*}=P_j,\qquad P_j^2=P_j,\qquad P_j\ne0,\qquad P_jP_k=0\ \text{when }j\ne k,\qquad \sum_jP_j=1,Pj∗​=Pj​,Pj2​=Pj​,Pj​=0,Pj​Pk​=0 when j=k,j∑​Pj​=1,

together with the requirement that their complex linear span equals the underlying complex vector subspace of AAA. No separate condition q>0q>0q>0 is supplied: q=0q=0q=0 would require the empty sum 000 to equal the identity, which is impossible when III is nonempty.

QAlgorithms.Papers.Independent.Extend50.P37.InAlgebra

For any finite index type JJJ, any measurable space OOO, any function M:P(O)→Mat⁡(J)M:\mathcal P(O)\to\operatorname{Mat}(J)M:P(O)→Mat(J), and any set A⊆Mat⁡(J)A\subseteq\operatorname{Mat}(J)A⊆Mat(J) of complex matrices, the condition InAlgebra⁡(M,A)\operatorname{InAlgebra}(M,A)InAlgebra(M,A) means that M(B)∈AM(B)\in AM(B)∈A for every measurable subset B⊆OB\subseteq OB⊆O. The definition imposes no algebraic closure conditions on AAA, no measurement conditions on MMM, and no requirement on M(B)M(B)M(B) for nonmeasurable BBB.

QAlgorithms.Papers.Independent.Extend50.P37.IsGauge

For a set GGG of complex square matrices indexed by III, this property means that GGG contains the identity, consists entirely of unitary matrices, is closed under multiplication and conjugate transpose, and equals the set of all unitary matrices UUU that commute with every unitary matrix VVV which commutes with every element of GGG. Here unitarity means U†U=UU†=1U^\dagger U=UU^\dagger=\mathbf 1U†U=UU†=1.

QAlgorithms.Papers.Independent.Extend50.P37.Noiseless

For a finite index type III with decidable equality, any set AAA of complex I×II\times II×I matrices, and any function E:Mat⁡(I)→Mat⁡(I)E:\operatorname{Mat}(I)\to\operatorname{Mat}(I)E:Mat(I)→Mat(I), the condition Noiseless⁡(A,E)\operatorname{Noiseless}(A,E)Noiseless(A,E) means that, for every positive semidefinite matrix ρ\rhoρ of trace 111 and every R∈AR\in AR∈A,

tr⁡ ⁣(R E(ρ))=tr⁡(Rρ).\operatorname{tr}\!\bigl(R\,E(\rho)\bigr)=\operatorname{tr}(R\rho).tr(RE(ρ))=tr(Rρ).

This is equality of complex traces. No linearity, positivity, or channel condition on EEE, and no algebra or Hermitian condition on AAA, is assumed; an empty AAA makes the condition vacuous.

QAlgorithms.Papers.Independent.Extend50.P37.ParameterBox

For any natural number lll, including 000, and any set D⊆RlD\subseteq\mathbb R^{l}D⊆Rl, the condition ParameterBox⁡(D)\operatorname{ParameterBox}(D)ParameterBox(D) means that there exist measurable sets Ji⊆RJ_i\subseteq\mathbb RJi​⊆R, one for each 0≤i<l0\le i<l0≤i<l, each order connected—that is, containing every real number between any two of its elements—such that

D={x∈Rl: ∀i, xi∈Ji}.D=\{x\in\mathbb R^{l}:\ \forall i,\ x_i\in J_i\}.D={x∈Rl: ∀i, xi​∈Ji​}.

The sets JiJ_iJi​ may be empty, singletons, bounded or unbounded intervals, with any measurable endpoint convention. For l=0l=0l=0, this product is the singleton consisting of the empty tuple.

QAlgorithms.Papers.Independent.Extend50.P37.Postprocess

For a finite index type III with decidable equality, a measurable outcome space OOO, a natural number nnn, a unital complex star subalgebra AAA of I×II\times II×I matrices, and a supplied family E=(Pj)j<qE=(P_j)_{j<q}E=(Pj​)j<q​ of nonzero Hermitian idempotents that are pairwise orthogonal, sum to 111, and complex-linearly span AAA, let KKK assign a measure on OOO to each function z:{0,…,n−1}→{0,…,q−1}z:\{0,\ldots,n-1\}\to\{0,\ldots,q-1\}z:{0,…,n−1}→{0,…,q−1}, and let MMM assign an In×InI^n\times I^nIn×In matrix to every subset of OOO. This predicate means that every KzK_zKz​ is a probability measure and, for every measurable subset B⊆OB\subseteq OB⊆O,

(M(B))x,y=∑ztoReal⁡(Kz(B))∏i=0n−1(Pzi)xiyi.(M(B))_{x,y} = \sum_z \operatorname{toReal}(K_z(B)) \prod_{i=0}^{n-1}(P_{z_i})_{x_i y_i}.(M(B))x,y​=z∑​toReal(Kz​(B))i=0∏n−1​(Pzi​​)xi​yi​​.

The measure values are converted from nonnegative extended reals to reals and then to complex scalars. No equation is required for nonmeasurable BBB. For n=0n=0n=0, there is one empty assignment zzz, and the empty product is 111.

QAlgorithms.Papers.Independent.Extend50.P37.Promotes

For a finite index type III with decidable equality, a set AAA of complex I×II\times II×I matrices, a natural number nnn, a Boolean sss, and a function LLL on complex matrices indexed by In×InI^n\times I^nIn×In, this predicate requires three conditions. First, LLL agrees everywhere with a complex linear map FFF satisfying F(1)=1F(1)=1F(1)=1, and for every natural number rrr, applying FFF to each In×InI^n\times I^nIn×In block of any positive semidefinite matrix indexed by ({0,…,r−1}×In)2(\{0,\ldots,r-1\}\times I^n)^2({0,…,r−1}×In)2 preserves positive semidefiniteness. Second, every L(X)L(X)L(X) belongs to the unital complex algebra B\mathcal BB generated by the matrices (∏i(Vi)xiyi)x,y∈In(\prod_i(V_i)_{x_i y_i})_{x,y\in I^n}(∏i​(Vi​)xi​yi​​)x,y∈In​ with all Vi∈AV_i\in AVi​∈A, and commutes with every permutation matrix WπW_\piWπ​, where (Wπ)y,x=1(W_\pi)_{y,x}=1(Wπ​)y,x​=1 exactly when y=x∘π−1y=x\circ\pi^{-1}y=x∘π−1. Third, put P=(n!)−1∑πϵs(π)WπP=(n!)^{-1}\sum_\pi\epsilon_s(\pi)W_\piP=(n!)−1∑π​ϵs​(π)Wπ​, where ϵs(π)=sgn⁡(π)\epsilon_s(\pi)=\operatorname{sgn}(\pi)ϵs​(π)=sgn(π) if sss is true and 111 otherwise: for every matrix XXX, if PXPPXPPXP commutes with V⊗nV^{\otimes n}V⊗n for every unitary VVV commuting with every element of AAA, then

PL(X)P=PXP.PL(X)P=PXP.PL(X)P=PXP.

Here (V⊗n)x,y=∏iVxiyi(V^{\otimes n})_{x,y}=\prod_iV_{x_i y_i}(V⊗n)x,y​=∏i​Vxi​yi​​. Both n=0n=0n=0 and empty AAA are included, with empty products interpreted as 111.

QAlgorithms.Papers.Independent.Extend50.P37.PurePrior

For a finite index type III with decidable equality and a natural number lll, let ppp be an estimation prior: a probability measure on complex I×II\times II×I matrices, a designated measurable set SSS of full measure consisting of positive semidefinite matrices of trace 111, and a measurable parameter map into Rl\mathbb R^{l}Rl. The condition PurePrior⁡(p)\operatorname{PurePrior}(p)PurePrior(p) means that every ρ∈S\rho\in Sρ∈S has matrix rank exactly 111. This is required at every point of the designated set SSS, including any points of measure zero in that set.

QAlgorithms.Papers.Independent.Extend50.P37.RankOne

For a complex matrix ρ\rhoρ indexed by I×II\times II×I, this predicate means exactly

rank⁡(ρ)=1.\operatorname{rank}(\rho)=1.rank(ρ)=1.

It imposes no Hermiticity, positivity, or trace condition. When III is empty, the predicate is false because every such matrix has rank zero.

QAlgorithms.Papers.Independent.Extend50.P37.SameReduction

For a finite index type III with decidable equality, a set AAA of complex matrices indexed by III, and any two such matrices ρ,σ\rho,\sigmaρ,σ, the assertion that they have the same reduction with respect to AAA means precisely

tr⁡(ρX)=tr⁡(σX)for every X∈A.\operatorname{tr}(\rho X)=\operatorname{tr}(\sigma X) \qquad\text{for every }X\in A.tr(ρX)=tr(σX)for every X∈A.

These are equalities of complex numbers. There is no assumption that ρ\rhoρ or σ\sigmaσ is a density matrix, that AAA is an algebra, or that III is nonempty. For A=∅A=\varnothingA=∅, the condition is vacuous.

QAlgorithms.Papers.Independent.Extend50.P37.SampleConditionals

For measurable spaces XXX and OOO, a finite index type JJJ, a natural number lll, an arbitrary measure μ\muμ on XXX, functions ϑ:X→Rl\vartheta:X\to\mathbb R^lϑ:X→Rl and Q:X→CJ×JQ:X\to\mathbb C^{J\times J}Q:X→CJ×J, and arbitrary assignments M,NM,NM,N from subsets of OOO to complex J×JJ\times JJ×J matrices, this proposition means that for every measurable B⊆OB\subseteq OB⊆O and every set D=∏i<lJiD=\prod_{i<l}J_iD=∏i<l​Ji​, where each Ji⊆RJ_i\subseteq\mathbb RJi​⊆R is measurable and order-convex, if μ(ϑ−1(D))>0\mu(\vartheta^{-1}(D))>0μ(ϑ−1(D))>0, then

∫ϑ−1(D)Re⁡tr⁡(M(B)Q(x)) dμ(x)(μ(ϑ−1(D))).toReal=∫ϑ−1(D)Re⁡tr⁡(N(B)Q(x)) dμ(x)(μ(ϑ−1(D))).toReal.\frac{\displaystyle\int_{\vartheta^{-1}(D)} \operatorname{Re}\operatorname{tr}(M(B)Q(x))\,d\mu(x)} {(\mu(\vartheta^{-1}(D))).\mathrm{toReal}} = \frac{\displaystyle\int_{\vartheta^{-1}(D)} \operatorname{Re}\operatorname{tr}(N(B)Q(x))\,d\mu(x)} {(\mu(\vartheta^{-1}(D))).\mathrm{toReal}}.(μ(ϑ−1(D))).toReal∫ϑ−1(D)​Retr(M(B)Q(x))dμ(x)​=(μ(ϑ−1(D))).toReal∫ϑ−1(D)​Retr(N(B)Q(x))dμ(x)​.

No measurability of ϑ\varthetaϑ or QQQ, positivity or normalization of the matrices, or probability or finiteness assumption on μ\muμ is imposed by this definition. The integrals use the total convention that a nonintegrable integrand has integral zero; conversion of infinite measure to a real number gives zero, and real division by zero gives zero, so events of infinite measure make both displayed quotients zero. The definition includes l=0l=0l=0, when the product box is the whole singleton parameter space.

QAlgorithms.Papers.Independent.Extend50.P37.SubgroupHaarProbability

For a finite index type III with decidable equality, a set HHH of complex I×II\times II×I matrices, and a measure μ\muμ on that matrix space, this predicate means that every element of HHH is unitary, 1∈H1\in H1∈H, HHH is closed under multiplication and conjugate transpose, HHH is measurable, μ\muμ is a probability measure, and μ(H∁)=0\mu(H^{\complement})=0μ(H∁)=0. It also requires, for every U∈HU\in HU∈H, both pushforward identities

(V↦UV)∗μ=μ,(V↦VU)∗μ=μ.(V\mapsto UV)_*\mu=\mu, \qquad (V\mapsto VU)_*\mu=\mu.(V↦UV)∗​μ=μ,(V↦VU)∗​μ=μ.

The definition does not impose topological closedness of HHH.

QAlgorithms.Papers.Independent.Extend50.P37.Symmetry

For a finite index type III with decidable equality, write Mat⁡(I)\operatorname{Mat}(I)Mat(I) for the complex matrices indexed by III. Let l≥0l\ge 0l≥0, let ppp be an estimation prior consisting of a probability measure μ\muμ on Mat⁡(I)\operatorname{Mat}(I)Mat(I), a designated measurable set SSS with μ(Sc)=0\mu(S^{c})=0μ(Sc)=0 whose elements are positive semidefinite matrices of trace 111, and a measurable parameter map ϑ:Mat⁡(I)→Rl\vartheta:\operatorname{Mat}(I)\to\mathbb R^{l}ϑ:Mat(I)→Rl; and let HHH be any set of matrices. The condition Symmetry⁡(p,H)\operatorname{Symmetry}(p,H)Symmetry(p,H) means that every U∈HU\in HU∈H satisfies

(ρ↦UρU∗)∗μ=μ,∀ρ∈S,UρU∗∈S and ϑ(UρU∗)=ϑ(ρ).(\rho\mapsto U\rho U^{*})_{*}\mu=\mu, \qquad \forall \rho\in S,\quad U\rho U^{*}\in S \ \text{and}\ \vartheta(U\rho U^{*})=\vartheta(\rho).(ρ↦UρU∗)∗​μ=μ,∀ρ∈S,UρU∗∈S and ϑ(UρU∗)=ϑ(ρ).

Here U∗U^{*}U∗ is the conjugate transpose. No unitarity or group condition is imposed on HHH; if HHH is empty, the condition holds vacuously.

QAlgorithms.Papers.Independent.Extend50.P37.UCP

For a finite index type III with decidable equality and a function LLL from complex I×II\times II×I matrices to themselves, this predicate means that there exists a complex linear map FFF such that L(X)=F(X)L(X)=F(X)L(X)=F(X) for every matrix XXX, F(1)=1F(1)=1F(1)=1, and the following positivity condition holds: for every natural number rrr, including r=0r=0r=0, and every positive semidefinite matrix ZZZ indexed by ({0,…,r−1}×I)2(\{0,\ldots,r-1\}\times I)^2({0,…,r−1}×I)2, the matrix

F~r(Z)(a,i),(b,j)=[F ⁣((Z(a,u),(b,v))u,v∈I)]ij\widetilde F_r(Z)_{(a,i),(b,j)} = \left[F\!\left((Z_{(a,u),(b,v)})_{u,v\in I}\right)\right]_{ij}Fr​(Z)(a,i),(b,j)​=[F((Z(a,u),(b,v)​)u,v∈I​)]ij​

is positive semidefinite. If III is empty, its identity matrix is also its zero matrix, so the unitality equation is F(0)=0F(0)=0F(0)=0.

QAlgorithms.Papers.Independent.Extend50.P37.UnitarySubgroup

For a set GGG of complex square matrices indexed by III, this property means that every U∈GU\in GU∈G is unitary, meaning U†U=UU†=1U^\dagger U=UU^\dagger=\mathbf 1U†U=UU†=1; the identity matrix belongs to GGG; UV∈GUV\in GUV∈G whenever U,V∈GU,V\in GU,V∈G; and U†∈GU^\dagger\in GU†∈G whenever U∈GU\in GU∈G. In particular, GGG cannot be empty.

QAlgorithms.Papers.Independent.Extend50.P37.alg

For a set SSS of complex square matrices indexed by III, alg⁡(S)\operatorname{alg}(S)alg(S) is the underlying set of the smallest unital complex subalgebra containing SSS. Thus it contains SSS and all scalar multiples of the identity, and is closed under addition, complex scalar multiplication, and matrix multiplication. Closure under conjugate transpose is not imposed. If S=∅S=\varnothingS=∅, this is the algebra of scalar multiples of the identity.

QAlgorithms.Papers.Independent.Extend50.P37.algebraExpectation

For a finite index type III, a set AAA of complex matrices indexed by I×II\times II×I, and another such matrix XXX, this defines the following matrix. Put d=∣I∣d=|I|d=∣I∣, choose the finite enumeration e:I≅{0,…,d−1}e:I\cong\{0,\ldots,d-1\}e:I≅{0,…,d−1} supplied by the definition, and reindex each matrix as Yije=Ye−1(i),e−1(j)Y^e_{ij}=Y_{e^{-1}(i),e^{-1}(j)}Yije​=Ye−1(i),e−1(j)​. Form the complex linear span AF=span⁡C{Ye:Y∈A}A_F=\operatorname{span}_{\mathbb C}\{Y^e:Y\in A\}AF​=spanC​{Ye:Y∈A}, and then the subspace H=span⁡C{vec⁡(B):B∈AF}H=\operatorname{span}_{\mathbb C}\{\operatorname{vec}(B):B\in A_F\}H=spanC​{vec(B):B∈AF​}, where vec⁡(B)(i,j)=Bij\operatorname{vec}(B)_{(i,j)}=B_{ij}vec(B)(i,j)​=Bij​. Orthogonally project vec⁡(Xe)\operatorname{vec}(X^e)vec(Xe) onto HHH, interpret the resulting coordinates as a matrix, and reindex back along eee. Thus the construction is the orthogonal projection onto the complex linear span of AAA for the inner product ⟨Y,Z⟩=∑i,jYij‾Zij\langle Y,Z\rangle=\sum_{i,j}\overline{Y_{ij}}Z_{ij}⟨Y,Z⟩=∑i,j​Yij​​Zij​; AAA is not assumed to be an algebra. For A=∅A=\varnothingA=∅, the result is zero.

QAlgorithms.Papers.Independent.Extend50.P37.bellSector

For every Boolean value sss, this defines a vector in the complex Euclidean space indexed by two-bit strings:

βs={∣0,1⟩+∣1,0⟩2,s=false,∣0,1⟩−∣1,0⟩2,s=true.\beta_s= \begin{cases} \displaystyle\frac{|0,1\rangle+|1,0\rangle}{\sqrt2},&s=\mathrm{false},\\[4pt] \displaystyle\frac{|0,1\rangle-|1,0\rangle}{\sqrt2},&s=\mathrm{true}. \end{cases}βs​=⎩⎨⎧​2​∣0,1⟩+∣1,0⟩​,2​∣0,1⟩−∣1,0⟩​,​s=false,s=true.​

Here ∣a,b⟩|a,b\rangle∣a,b⟩ has coordinate 111 at the string (a,b)(a,b)(a,b) and coordinate 000 at every other string; the inverse of 2\sqrt22​ is taken as a complex scalar.

QAlgorithms.Papers.Independent.Extend50.P37.circleDensity

For arbitrary real a,θa,\thetaa,θ, this defines the matrix ρ(a,θ)=vv†\rho(a,\theta)=vv^\daggerρ(a,θ)=vv† on C2\mathbb C^2C2, where

v=(cos⁡(a/2)eiθsin⁡(a/2)).v=\begin{pmatrix}\cos(a/2)\\ e^{i\theta}\sin(a/2)\end{pmatrix}.v=(cos(a/2)eiθsin(a/2)​).

Explicitly,

ρ(a,θ)=(cos⁡2(a/2)e−iθcos⁡(a/2)sin⁡(a/2)eiθcos⁡(a/2)sin⁡(a/2)sin⁡2(a/2)).\rho(a,\theta)= \begin{pmatrix} \cos^2(a/2)&e^{-i\theta}\cos(a/2)\sin(a/2)\\ e^{i\theta}\cos(a/2)\sin(a/2)&\sin^2(a/2) \end{pmatrix}.ρ(a,θ)=(cos2(a/2)eiθcos(a/2)sin(a/2)​e−iθcos(a/2)sin(a/2)sin2(a/2)​).

There are no restrictions on either real parameter.

QAlgorithms.Papers.Independent.Extend50.P37.circleDiagonal

For every real aaa, this defines the complex 2×22\times22×2 diagonal matrix

D(a)=diag⁡(cos⁡2(a/2), sin⁡2(a/2)).D(a)=\operatorname{diag}\bigl(\cos^2(a/2),\,\sin^2(a/2)\bigr).D(a)=diag(cos2(a/2),sin2(a/2)).

No restriction on aaa is imposed.

QAlgorithms.Papers.Independent.Extend50.P37.collectiveImage

For a natural number nnn and a set SSS of complex square matrices indexed by III, the collective image consists exactly of matrices XXX indexed by functions x,y:{0,…,n−1}→Ix,y:\{0,\ldots,n-1\}\to Ix,y:{0,…,n−1}→I for which there exists a single matrix V∈SV\in SV∈S satisfying Xx,y=∏i=0n−1Vx(i),y(i)\displaystyle X_{x,y}=\prod_{i=0}^{n-1}V_{x(i),y(i)}Xx,y​=i=0∏n−1​Vx(i),y(i)​. If SSS is empty, this image is empty for every nnn, including n=0n=0n=0; if SSS is nonempty and n=0n=0n=0, it consists exactly of the 1×11\times11×1 identity matrix.

QAlgorithms.Papers.Independent.Extend50.P37.cornerAlg

For a complex square matrix PPP indexed by III and a set SSS of such matrices, this is the set of all matrices X=PYPX=PYPX=PYP, where YYY belongs to the smallest unital complex subalgebra containing SSS. No assumption that PPP is Hermitian or idempotent is required. If P=0P=0P=0, this set is {0}\{0\}{0}; if S=∅S=\varnothingS=∅, it is {cP2:c∈C}\{cP^2:c\in\mathbb C\}{cP2:c∈C}.

QAlgorithms.Papers.Independent.Extend50.P37.cornerComm

For a finite index type III, a complex matrix PPP indexed by I×II\times II×I, and a set SSS of such matrices, this defines the set

{X:PXP=X and ∀Y∈S, X(PYP)=(PYP)X}.\{X: PXP=X\ \text{and}\ \forall Y\in S,\ X(PYP)=(PYP)X\}.{X:PXP=X and ∀Y∈S, X(PYP)=(PYP)X}.

No assumption that PPP is Hermitian or idempotent is imposed. If SSS is empty, the commutation condition is vacuous.

QAlgorithms.Papers.Independent.Extend50.P37.decisionMarginal

For b∈{0,1}b\in\{0,1\}b∈{0,1}, this defines the complex 2×22\times22×2 matrix

Db={diag⁡(1,0),b=0,12I2,b=1.D_b= \begin{cases} \operatorname{diag}(1,0),&b=0,\\[2pt] \tfrac12I_2,&b=1. \end{cases}Db​={diag(1,0),21​I2​,​b=0,b=1.​

QAlgorithms.Papers.Independent.Extend50.P37.diagonalSet

For every finite type III, this defines the set of complex matrices indexed by III that equal diag⁡(a)\operatorname{diag}(a)diag(a) for some function a:I→Ca:I\to\mathbb Ca:I→C; equivalently, their (i,j)(i,j)(i,j)-entry is aia_iai​ when i=ji=ji=j and 000 otherwise. There is no restriction on the diagonal entries. Empty III is allowed, in which case this is the singleton containing the unique empty matrix.

QAlgorithms.Papers.Independent.Extend50.P37.heisenbergDual

For a finite index type III with decidable equality, any function E:Mat⁡(I)→Mat⁡(I)E:\operatorname{Mat}(I)\to\operatorname{Mat}(I)E:Mat(I)→Mat(I), and any complex matrix X∈Mat⁡(I)X\in\operatorname{Mat}(I)X∈Mat(I), the matrix heisenbergDual⁡(E,X)\operatorname{heisenbergDual}(E,X)heisenbergDual(E,X) is defined entrywise by

(heisenbergDual⁡(E,X))ij=tr⁡ ⁣(X E(Eji)),\bigl(\operatorname{heisenbergDual}(E,X)\bigr)_{ij} =\operatorname{tr}\!\bigl(X\,E(E_{ji})\bigr),(heisenbergDual(E,X))ij​=tr(XE(Eji​)),

where EjiE_{ji}Eji​ has entry 111 at row jjj, column iii, and zero elsewhere. No linearity, channel, or positivity assumption on EEE is made. If III is empty, this defines the unique empty matrix.

QAlgorithms.Papers.Independent.Extend50.P37.hsVector

For an index type III and a complex matrix XXX indexed by I×II\times II×I, this defines its vector of entries in the complex Euclidean space indexed by I×II\times II×I:

hsVector⁡(X)(i,j)=Xij.\operatorname{hsVector}(X)_{(i,j)}=X_{ij}.hsVector(X)(i,j)​=Xij​.

There is no normalization or conjugation. When III is empty, this is the unique vector on the empty index set.

QAlgorithms.Papers.Independent.Extend50.P37.leftUnitaryGroup

This definition is the set of matrices U⊗I2U\otimes I_2U⊗I2​ indexed by {0,1}×{0,1}\{0,1\}\times\{0,1\}{0,1}×{0,1}, where UUU is any complex 2×22\times22×2 matrix satisfying both U†U=I2U^\dagger U=I_2U†U=I2​ and UU†=I2UU^\dagger=I_2UU†=I2​.

QAlgorithms.Papers.Independent.Extend50.P37.liftLeftRegister

For arbitrary types L,RL,RL,R, any natural number nnn, and any complex matrix XXX indexed by LnL^nLn, this definition returns the matrix on (L×R)n(L\times R)^n(L×R)n given, for x,y:{0,…,n−1}→L×Rx,y:\{0,\ldots,n-1\}\to L\times Rx,y:{0,…,n−1}→L×R, by

(liftLeftRegister⁡(X))x,y={X i↦(xi)1, i↦(yi)1,if (xi)2=(yi)2 for every i,0,otherwise.\bigl(\operatorname{liftLeftRegister}(X)\bigr)_{x,y} = \begin{cases} X_{\,i\mapsto(x_i)_1,\,i\mapsto(y_i)_1}, &\text{if }(x_i)_2=(y_i)_2\text{ for every }i,\\ 0,&\text{otherwise}. \end{cases}(liftLeftRegister(X))x,y​={Xi↦(xi​)1​,i↦(yi​)1​​,0,​if (xi​)2​=(yi​)2​ for every i,otherwise.​

There are no finiteness, positivity, or normalization assumptions on L,R,XL,R,XL,R,X. The definition includes n=0n=0n=0, when the equality condition is vacuous.

QAlgorithms.Papers.Independent.Extend50.P37.localSet

For a natural number nnn and a set SSS of complex square matrices indexed by III, the local set consists exactly of matrices XXX indexed by functions x,y:{0,…,n−1}→Ix,y:\{0,\ldots,n-1\}\to Ix,y:{0,…,n−1}→I for which there exist matrices Vi∈SV_i\in SVi​∈S, one for every 0≤i<n0\le i<n0≤i<n, such that Xx,y=∏i=0n−1(Vi)x(i),y(i)\displaystyle X_{x,y}=\prod_{i=0}^{n-1}(V_i)_{x(i),y(i)}Xx,y​=i=0∏n−1​(Vi​)x(i),y(i)​. For n=0n=0n=0, this set contains exactly the 1×11\times11×1 identity matrix, even when SSS is empty; for n>0n>0n>0 and S=∅S=\varnothingS=∅, it is empty.

QAlgorithms.Papers.Independent.Extend50.P37.observableAlgebra

For a finite index type III with decidable equality and any complex matrix HHH indexed by III, its observable algebra is defined to be the smallest unital complex star subalgebra containing HHH: the smallest set of such matrices containing HHH and all scalar multiples of the identity and closed under addition, multiplication, complex scalar multiplication, and conjugate transpose. No self-adjointness assumption on HHH or nonemptiness assumption on III is imposed.

QAlgorithms.Papers.Independent.Extend50.P37.orderedTensorProduct

For a natural number nnn, including n=0n=0n=0, and a family X0,…,Xn−1X_0,\ldots,X_{n-1}X0​,…,Xn−1​ of complex square matrices indexed by III, the ordered tensor product is the complex matrix indexed by functions x,y:{0,…,n−1}→Ix,y:\{0,\ldots,n-1\}\to Ix,y:{0,…,n−1}→I, with entries (orderedTensorProduct⁡(X))x,y=∏i=0n−1(Xi)x(i),y(i)\displaystyle \bigl(\operatorname{orderedTensorProduct}(X)\bigr)_{x,y}=\prod_{i=0}^{n-1}(X_i)_{x(i),y(i)}(orderedTensorProduct(X))x,y​=i=0∏n−1​(Xi​)x(i),y(i)​. When n=0n=0n=0, there is one such function and the empty product is 111, so the result is the 1×11\times11×1 identity matrix.

QAlgorithms.Papers.Independent.Extend50.P37.pairBasisKet

For every natural number ddd and every a,b∈{0,…,d−1}a,b\in\{0,\ldots,d-1\}a,b∈{0,…,d−1}, this defines the vector ∣a,b⟩|a,b\rangle∣a,b⟩ in the complex Euclidean space indexed by functions z:{0,1}→{0,…,d−1}z:\{0,1\}\to\{0,\ldots,d-1\}z:{0,1}→{0,…,d−1}, with coordinate

⟨z∣a,b⟩={1,z(0)=a and z(1)=b,0,otherwise.\langle z|a,b\rangle= \begin{cases} 1,&z(0)=a\ \text{and}\ z(1)=b,\\ 0,&\text{otherwise}. \end{cases}⟨z∣a,b⟩={1,0,​z(0)=a and z(1)=b,otherwise.​

For d=0d=0d=0, there are no possible arguments a,ba,ba,b.

QAlgorithms.Papers.Independent.Extend50.P37.pairDensity

For any index type III and any two complex matrices ρ,σ\rho,\sigmaρ,σ indexed by III, this definition returns the matrix indexed by functions x,y:{0,1}→Ix,y:\{0,1\}\to Ix,y:{0,1}→I whose entries are

pairDensity⁡(ρ,σ)x,y=ρx(0),y(0) σx(1),y(1).\operatorname{pairDensity}(\rho,\sigma)_{x,y} =\rho_{x(0),y(0)}\,\sigma_{x(1),y(1)}.pairDensity(ρ,σ)x,y​=ρx(0),y(0)​σx(1),y(1)​.

Thus it is their ordered tensor product under this indexing; neither matrix is required to be positive semidefinite or to have trace one.

QAlgorithms.Papers.Independent.Extend50.P37.parameterJoint

Let III be a finite index type with decidable equality, let OOO be a measurable space, and let l≥0l\geq0l≥0. Write Mat⁡(I)\operatorname{Mat}(I)Mat(I) for the complex matrices indexed by III. Let ppp consist of a probability measure μ\muμ on Mat⁡(I)\operatorname{Mat}(I)Mat(I), a measurable set SSS satisfying μ(Sc)=0\mu(S^{c})=0μ(Sc)=0 whose members are positive semidefinite matrices of trace 111, and a measurable map ϑ:Mat⁡(I)→Rl\vartheta:\operatorname{Mat}(I)\to\mathbb R^{l}ϑ:Mat(I)→Rl. For any measurable kernel KKK from Mat⁡(I)\operatorname{Mat}(I)Mat(I) to OOO, the defined measure is

νp,K=((ρ,t)↦(t,ϑ(ρ)))∗(μ⊗K)\nu_{p,K} =\bigl((\rho,t)\mapsto(t,\vartheta(\rho))\bigr)_{*}(\mu\otimes K)νp,K​=((ρ,t)↦(t,ϑ(ρ)))∗​(μ⊗K)

on O×RlO\times\mathbb R^{l}O×Rl, where μ⊗K\mu\otimes Kμ⊗K is the measure obtained by first using μ\muμ for ρ\rhoρ and then K(ρ,⋅)K(\rho,\cdot)K(ρ,⋅) for ttt. Thus it records the outcome and the parameter, discarding the matrix itself. The definition assumes neither that KKK is a probability kernel nor any relation between KKK and a measurement. When l=0l=0l=0, the parameter space is a singleton.

QAlgorithms.Papers.Independent.Extend50.P37.perm

For a finite type III, equipped with its finite enumeration, a natural number nnn, and a permutation sss of {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1}, this definition gives the complex matrix PsP_sPs​ indexed by functions x,y:{0,…,n−1}→Ix,y:\{0,\ldots,n-1\}\to Ix,y:{0,…,n−1}→I, whose entry is 111 when x=y∘s−1x=y\circ s^{-1}x=y∘s−1 and 000 otherwise. The construction obtains these entries by identifying III with {0,…,∣I∣−1}\{0,\ldots,|I|-1\}{0,…,∣I∣−1}. For n=0n=0n=0, PsP_sPs​ is the 1×11\times11×1 identity; if III is empty and n>0n>0n>0, its indexing type is empty.

QAlgorithms.Papers.Independent.Extend50.P37.permutationSector

For a finite type III, equipped with its finite enumeration, a natural number nnn, and a Boolean choice aaa, this definition gives the matrix 1n!∑s∈Snwa(s)Ps\displaystyle \frac{1}{n!}\sum_{s\in S_n}w_a(s)P_sn!1​s∈Sn​∑​wa​(s)Ps​, where SnS_nSn​ is the group of permutations of {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1}, (Ps)x,y=1(P_s)_{x,y}=1(Ps​)x,y​=1 if x=y∘s−1x=y\circ s^{-1}x=y∘s−1 and 000 otherwise, and wa(s)=sgn⁡(s)w_a(s)=\operatorname{sgn}(s)wa​(s)=sgn(s) when aaa is true and wa(s)=1w_a(s)=1wa​(s)=1 when aaa is false. The rows and columns are indexed by functions from {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1} to III. For n=0n=0n=0, either Boolean choice gives the 1×11\times11×1 identity matrix.

QAlgorithms.Papers.Independent.Extend50.P37.permutations

For a finite type III, equipped with its finite enumeration, and a natural number nnn, this is the set of all complex matrices PsP_sPs​ indexed by functions x,y:{0,…,n−1}→Ix,y:\{0,\ldots,n-1\}\to Ix,y:{0,…,n−1}→I, as sss ranges over permutations of {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1}, where (Ps)x,y=1(P_s)_{x,y}=1(Ps​)x,y​=1 if x=y∘s−1x=y\circ s^{-1}x=y∘s−1 and is 000 otherwise. This is a set of matrices, so coincident matrices from different permutations occur only once. For n=0n=0n=0, the set consists exactly of the 1×11\times11×1 identity matrix.

QAlgorithms.Papers.Independent.Extend50.P37.phaseFlipMixture

For every real rrr and every complex 2×22\times22×2 matrix ρ\rhoρ, this defines

Fr(ρ)=(1−r)ρ+rZρZ,Z=diag⁡(1,−1).F_r(\rho)=(1-r)\rho+rZ\rho Z,\qquad Z=\operatorname{diag}(1,-1).Fr​(ρ)=(1−r)ρ+rZρZ,Z=diag(1,−1).

The definition imposes neither 0≤r≤10\le r\le10≤r≤1 nor any positivity or trace condition on ρ\rhoρ.

QAlgorithms.Papers.Independent.Extend50.P37.phaseGroup

For every natural number ddd, this defines the set of complex d×dd\times dd×d matrices UUU for which there exist real numbers a,ta,ta,t such that UUU is diagonal and

Uij={e i(a+ti),i=j,0,i≠j,0≤i,j<d.U_{ij}= \begin{cases} e^{\,\mathrm i(a+ti)},&i=j,\\ 0,&i\ne j, \end{cases} \qquad 0\le i,j<d.Uij​={ei(a+ti),0,​i=j,i=j,​0≤i,j<d.

The witnesses a,ta,ta,t are not required to be unique. The case d=0d=0d=0 is included: the set then contains the unique empty matrix.

QAlgorithms.Papers.Independent.Extend50.P37.promotion

For a finite index type III with decidable equality, a set AAA of complex I×II\times II×I matrices, a natural number nnn, a Boolean sss, and a complex matrix MMM indexed by In×InI^n\times I^nIn×In, this defines

Φ(M)+tr⁡M∣In∣(1−Φ(1)),Φ(X)=R T(PXP) R.\Phi(M)+\frac{\operatorname{tr}M}{|I^n|}\bigl(1-\Phi(1)\bigr), \qquad \Phi(X)=R\,T(PXP)\,R.Φ(M)+∣In∣trM​(1−Φ(1)),Φ(X)=RT(PXP)R.

Here InI^nIn is the set of functions {0,…,n−1}→I\{0,\ldots,n-1\}\to I{0,…,n−1}→I; for a permutation π\piπ of these nnn positions, WπW_\piWπ​ has entry 111 at (y,x)(y,x)(y,x) exactly when y=x∘π−1y=x\circ\pi^{-1}y=x∘π−1, and zero otherwise; and

P=1n!∑π{sgn⁡(π)Wπ,s=true,Wπ,s=false.P=\frac1{n!}\sum_{\pi} \begin{cases} \operatorname{sgn}(\pi)W_\pi,&s=\mathrm{true},\\ W_\pi,&s=\mathrm{false}. \end{cases}P=n!1​π∑​{sgn(π)Wπ​,Wπ​,​s=true,s=false.​

Let B\mathcal BB be the unital complex algebra generated by all matrices whose (x,y)(x,y)(x,y)-entry is ∏i=0n−1(Vi)xiyi\prod_{i=0}^{n-1}(V_i)_{x_i y_i}∏i=0n−1​(Vi​)xi​yi​​, with every Vi∈AV_i\in AVi​∈A. Then TTT is orthogonal projection onto the complex linear span of B\mathcal BB for the inner product ∑x,yXxy‾Yxy\sum_{x,y}\overline{X_{xy}}Y_{xy}∑x,y​Xxy​​Yxy​, implemented by finite reindexing and vectorization. Finally, C=T(P)C=T(P)C=T(P) and R=f(C)R=f(C)R=f(C) are defined using the real continuous functional calculus with f(t)=(t)−1f(t)=(\sqrt t)^{-1}f(t)=(t​)−1. No positivity, Hermiticity, or invertibility hypothesis is imposed on CCC. Real square root and inversion are total, with t=0\sqrt t=0t​=0 for t≤0t\le0t≤0 and 0−1=00^{-1}=00−1=0; division by a zero value of ∣In∣|I^n|∣In∣ likewise gives zero. The definition includes n=0n=0n=0, when I0I^0I0 is a singleton and empty tensor products are 111.

QAlgorithms.Papers.Independent.Extend50.P37.qubitFilling

For every Boolean value sss and every function z:{0,1}→{0,1}z:\{0,1\}\to\{0,1\}z:{0,1}→{0,1}, this defines a complex matrix indexed by two-bit strings as

Qs(z)={∣z(0),z(1)⟩⟨z(0),z(1)∣,z(0)=z(1),βsβs†,z(0)≠z(1),Q_s(z)= \begin{cases} |z(0),z(1)\rangle\langle z(0),z(1)|,&z(0)=z(1),\\ \beta_s\beta_s^\dagger,&z(0)\ne z(1), \end{cases}Qs​(z)={∣z(0),z(1)⟩⟨z(0),z(1)∣,βs​βs†​,​z(0)=z(1),z(0)=z(1),​

where ∣a,b⟩|a,b\rangle∣a,b⟩ is 111 at the string (a,b)(a,b)(a,b) and 000 elsewhere, βfalse=(∣0,1⟩+∣1,0⟩)/2\beta_{\mathrm{false}}=(|0,1\rangle+|1,0\rangle)/\sqrt2βfalse​=(∣0,1⟩+∣1,0⟩)/2​, and βtrue=(∣0,1⟩−∣1,0⟩)/2\beta_{\mathrm{true}}=(|0,1\rangle-|1,0\rangle)/\sqrt2βtrue​=(∣0,1⟩−∣1,0⟩)/2​. For any vector vvv, the matrix vv†vv^\daggervv† used here has entry vxvy‾v_x\overline{v_y}vx​vy​​; thus the strings 010101 and 101010 yield the same matrix for a fixed sss.

QAlgorithms.Papers.Independent.Extend50.P37.qutritEffects

This defines three complex matrices indexed by two-coordinate strings over {0,1,2}\{0,1,2\}{0,1,2}:

E0=12v+v+†,E1=12v−v−†,E2=I−12v+v+†−12v−v−†,v±=∣11⟩±(∣02⟩+∣20⟩)3.E_0=\tfrac12v_+v_+^\dagger,\qquad E_1=\tfrac12v_-v_-^\dagger,\qquad E_2=I-\tfrac12v_+v_+^\dagger-\tfrac12v_-v_-^\dagger, \quad v_\pm=\frac{|11\rangle\pm(|02\rangle+|20\rangle)}{\sqrt3}.E0​=21​v+​v+†​,E1​=21​v−​v−†​,E2​=I−21​v+​v+†​−21​v−​v−†​,v±​=3​∣11⟩±(∣02⟩+∣20⟩)​.

The vectors ∣ij⟩|ij\rangle∣ij⟩ are coordinate basis vectors, and the matrix vv†vv^\daggervv† has entry v(x)v(y)‾v(x)\overline{v(y)}v(x)v(y)​ in row xxx, column yyy.

QAlgorithms.Papers.Independent.Extend50.P37.qutritVector

For each Boolean value minus\mathrm{minus}minus, this defines a vector in C{0,1,2}2\mathbb C^{\{0,1,2\}^2}C{0,1,2}2 by

vminus=13(∣11⟩+ϵminus(∣02⟩+∣20⟩)),ϵminus={−1,minus=true,1,minus=false.v_{\mathrm{minus}} =\frac{1}{\sqrt3}\bigl(|11\rangle+\epsilon_{\mathrm{minus}}(|02\rangle+|20\rangle)\bigr), \qquad \epsilon_{\mathrm{minus}}= \begin{cases}-1,&\mathrm{minus}=\mathrm{true},\\1,&\mathrm{minus}=\mathrm{false}.\end{cases}vminus​=3​1​(∣11⟩+ϵminus​(∣02⟩+∣20⟩)),ϵminus​={−1,1,​minus=true,minus=false.​

Here ∣ij⟩|ij\rangle∣ij⟩ denotes the coordinate vector with value 111 at the function sending 000 to iii and 111 to jjj, and value 000 at every other two-coordinate string.

QAlgorithms.Papers.Independent.Extend50.P37.repeatedUnitaryBlocks

For any natural number kkk, any families of natural numbers mj,njm_j,n_jmj​,nj​ indexed by 0≤j<k0\le j<k0≤j<k, and any complex nj×njn_j\times n_jnj​×nj​ matrices VjV_jVj​, the matrix repeatedUnitaryBlocks⁡(m,n,V)\operatorname{repeatedUnitaryBlocks}(m,n,V)repeatedUnitaryBlocks(m,n,V), indexed by triples (j,a,u)(j,a,u)(j,a,u) with a<mja<m_ja<mj​ and u<nju<n_ju<nj​, is defined by

(repeatedUnitaryBlocks⁡(m,n,V))(j,a,u),(j′,a′,u′)={(Vj)u,u′,j=j′ and a=a′,0,otherwise.\bigl(\operatorname{repeatedUnitaryBlocks}(m,n,V)\bigr)_{(j,a,u),(j',a',u')} = \begin{cases} (V_j)_{u,u'},&j=j'\ \text{and}\ a=a',\\ 0,&\text{otherwise}. \end{cases}(repeatedUnitaryBlocks(m,n,V))(j,a,u),(j′,a′,u′)​={(Vj​)u,u′​,0,​j=j′ and a=a′,otherwise.​

Thus it is the block diagonal matrix ⨁j<k(1mj⊗Vj)\bigoplus_{j<k}(1_{m_j}\otimes V_j)⨁j<k​(1mj​​⊗Vj​). No unitarity of the VjV_jVj​ or positivity of the sizes is required; zero sizes contribute no indices, and k=0k=0k=0 gives the empty matrix.

QAlgorithms.Papers.Independent.Extend50.P37.rightUnitaryGroup

This definition is the set of matrices I2⊗UI_2\otimes UI2​⊗U indexed by {0,1}×{0,1}\{0,1\}\times\{0,1\}{0,1}×{0,1}, where UUU is any complex 2×22\times22×2 matrix satisfying both U†U=I2U^\dagger U=I_2U†U=I2​ and UU†=I2UU^\dagger=I_2UU†=I2​.

QAlgorithms.Papers.Independent.Extend50.P37.scalarUnitaries

For every finite index type III with decidable equality, this definition is the set of matrices zIIzI_IzII​, where z∈Cz\in\mathbb Cz∈C satisfies ∣z∣2=1|z|^2=1∣z∣2=1. The empty index type is allowed; in that case this set contains just the unique empty matrix, which is also zero.

QAlgorithms.Papers.Independent.Extend50.P37.spinOneGroup

This definition is the set of complex 3×33\times33×3 matrices obtained by viewing real matrices RRR satisfying RTR=I3R^{\mathsf T}R=I_3RTR=I3​ and det⁡R=1\det R=1detR=1 as complex matrices, entry by entry.

QAlgorithms.Papers.Independent.Extend50.P37.spinZero

This definition is the matrix ∣ω⟩⟨ω∣|\omega\rangle\langle\omega|∣ω⟩⟨ω∣ on the space with basis x:{0,1}→{0,1,2}x:\{0,1\}\to\{0,1,2\}x:{0,1}→{0,1,2}, where

ω(x)={1/3,x(0)=x(1),0,x(0)≠x(1).\omega(x)= \begin{cases} 1/\sqrt3,&x(0)=x(1),\\ 0,&x(0)\ne x(1). \end{cases}ω(x)={1/3​,0,​x(0)=x(1),x(0)=x(1).​

Equivalently, ω=(∣00⟩+∣11⟩+∣22⟩)/3\omega=(|00\rangle+|11\rangle+|22\rangle)/\sqrt3ω=(∣00⟩+∣11⟩+∣22⟩)/3​, and the matrix entry at x,yx,yx,y is 1/31/31/3 when both x(0)=x(1)x(0)=x(1)x(0)=x(1) and y(0)=y(1)y(0)=y(1)y(0)=y(1), and zero otherwise.

QAlgorithms.Papers.Independent.Extend50.P37.standardSector

For every finite index type III, this definition gives the matrix on the space with basis I3I^3I3

Pstd=13∑π∈S3cπPπ,cπ={2,π=id,0,sgn⁡(π)=−1,−1,otherwise,P_{\mathrm{std}} =\frac13\sum_{\pi\in S_3}c_\pi P_\pi, \qquad c_\pi= \begin{cases} 2,&\pi=\mathrm{id},\\ 0,&\operatorname{sgn}(\pi)=-1,\\ -1,&\text{otherwise}, \end{cases}Pstd​=31​π∈S3​∑​cπ​Pπ​,cπ​=⎩⎨⎧​2,0,−1,​π=id,sgn(π)=−1,otherwise,​

where (Pπ)y,x=1(P_\pi)_{y,x}=1(Pπ​)y,x​=1 if y=x∘π−1y=x\circ\pi^{-1}y=x∘π−1, and is zero otherwise. Equivalently, this is (2I−P(012)−P(021))/3(2I-P_{(012)}-P_{(021)})/3(2I−P(012)​−P(021)​)/3. The definition includes empty III, in which case the matrix is the unique empty matrix.

QAlgorithms.Papers.Independent.Extend50.P37.subgroupConjugationAverage

For a measure μ\muμ on the space of complex matrices indexed by a finite type III, and a matrix XXX in that space, this defines the matrix-valued Bochner integral

∫UXU∗ dμ(U),\int U X U^{*}\,d\mu(U),∫UXU∗dμ(U),

where U∗U^{*}U∗ denotes conjugate transpose. No probability, subgroup support, unitarity, or integrability hypothesis is required; the total Bochner integral takes the value zero when the integrand is not integrable.

QAlgorithms.Papers.Independent.Extend50.P37.tensorAlg

For a natural number nnn and a set AAA of complex square matrices indexed by III, this is the underlying set of the smallest unital complex subalgebra containing every matrix with entries Xx,y=∏i=0n−1(Vi)x(i),y(i)\displaystyle X_{x,y}=\prod_{i=0}^{n-1}(V_i)_{x(i),y(i)}Xx,y​=i=0∏n−1​(Vi​)x(i),y(i)​, where each Vi∈AV_i\in AVi​∈A and x,y:{0,…,n−1}→Ix,y:\{0,\ldots,n-1\}\to Ix,y:{0,…,n−1}→I. Closure under conjugate transpose is not imposed. When n=0n=0n=0, the result is the algebra of all 1×11\times11×1 complex matrices; when n>0n>0n>0 and AAA is empty, it is the algebra of scalar multiples of the identity on the function indexing type.

QAlgorithms.Papers.Independent.Extend50.P37.traceRightRegister

For arbitrary types L,RL,RL,R, with RRR finite, any natural number nnn, and any complex matrix ρ\rhoρ indexed by functions from {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1} to L×RL\times RL×R, this definition returns the matrix on LnL^nLn whose entries are

(traceRightRegister⁡(ρ))x,y=∑r:{0,…,n−1}→Rρ i↦(xi,ri), i↦(yi,ri).\bigl(\operatorname{traceRightRegister}(\rho)\bigr)_{x,y} =\sum_{r:\{0,\ldots,n-1\}\to R} \rho_{\,i\mapsto(x_i,r_i),\,i\mapsto(y_i,r_i)}.(traceRightRegister(ρ))x,y​=r:{0,…,n−1}→R∑​ρi↦(xi​,ri​),i↦(yi​,ri​)​.

No positivity or normalization assumption is made. The definition includes n=0n=0n=0, when there is one empty function in the sum, and empty RRR, when the sum is empty if n>0n>0n>0.

QAlgorithms.Papers.Independent.Extend50.P37.twoQubitOrbit

For every b∈{0,1}b\in\{0,1\}b∈{0,1} and every complex 2×22\times22×2 matrix VVV, this defines

Rb(V)=(I2⊗V)ψbψb†(I2⊗V)†,ψ0=∣00⟩,ψ1=∣01⟩+∣10⟩2.R_b(V)=(I_2\otimes V)\psi_b\psi_b^\dagger(I_2\otimes V)^\dagger, \qquad \psi_0=|00\rangle,\quad \psi_1=\frac{|01\rangle+|10\rangle}{\sqrt2}.Rb​(V)=(I2​⊗V)ψb​ψb†​(I2​⊗V)†,ψ0​=∣00⟩,ψ1​=2​∣01⟩+∣10⟩​.

The resulting matrix is indexed by pairs in {0,1}×{0,1}\{0,1\}\times\{0,1\}{0,1}×{0,1}. No unitarity assumption is imposed on VVV; in particular, V=0V=0V=0 is included and gives the zero matrix.

QAlgorithms.Papers.Independent.Extend50.P37.twoQubitSeed

For b∈{0,1}b\in\{0,1\}b∈{0,1}, this defines a vector in C{0,1}×{0,1}\mathbb C^{\{0,1\}\times\{0,1\}}C{0,1}×{0,1} by

ψb={∣00⟩,b=0,∣01⟩+∣10⟩2,b=1.\psi_b= \begin{cases} |00\rangle,&b=0,\\[2pt] \dfrac{|01\rangle+|10\rangle}{\sqrt2},&b=1. \end{cases}ψb​=⎩⎨⎧​∣00⟩,2​∣01⟩+∣10⟩​,​b=0,b=1.​

Here ∣ij⟩|ij\rangle∣ij⟩ is the vector with coordinate 111 at (i,j)(i,j)(i,j) and 000 elsewhere.

QAlgorithms.Papers.Independent.Extend50.P37.unitaryCentralizer

For a set SSS of complex square matrices indexed by III, its unitary centralizer is the set of matrices UUU satisfying U†U=UU†=1U^\dagger U=UU^\dagger=\mathbf 1U†U=UU†=1 and UV=VUUV=VUUV=VU for every V∈SV\in SV∈S, where U†U^\daggerU† denotes conjugate transpose. If SSS is empty, the commutation condition is vacuous, so this set consists of all unitary matrices.

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

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 29, 2026

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

View graph

Get started

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

About Prove2Me

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

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me