Definitions for A generalization of Schur-Weyl duality with applications in quantum estimation
DefinitionQAlgorithms_Papers_Independent_Extend50_P37The 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).rightUnitaryGroupBornKernel: 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).
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
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 , any natural number , and an operator-valued measurement on with outcomes in , this predicate means that there exists a family of probability measures on , one for each binary string , such that for every measurable ,
Here the real values are embedded in . Being an operator-valued measurement means that assigns a matrix to every subset of , sends to and to , is positive semidefinite on measurable sets, and, for every sequence of pairwise disjoint measurable sets , the matrix series converges to . The definition includes , when there is exactly one binary string; the measures are probability measures, so their values are finite.
QAlgorithms.Papers.Independent.Extend50.P37.BlockPresentation.group
For a finite index type with decidable equality, let be a block presentation with block count , positive multiplicities , positive dimensions , , and change matrix satisfying and on the disjoint union of the block indices , where and . The set consists exactly of matrices
where each complex matrix satisfies both and ; the middle matrix has entry when the two block labels and multiplicity indices agree, and zero otherwise. If 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 with decidable equality, a block presentation consists of a natural number , positive natural numbers for every , and a complex matrix whose rows are indexed by and whose columns are indexed by the disjoint union
such that , , and . There is no separate requirement that ; forces to be empty, and the positivity of every block size forces when is empty.
QAlgorithms.Papers.Independent.Extend50.P37.BlockPresentation.signature
Let be a finite index type with decidable equality. A block presentation consists of a natural number , positive natural numbers for , an equality , and a complex matrix from the coordinate space indexed by to that indexed by , satisfying and . Its signature is the multiset
which retains repeated pairs and discards their ordering. The definition does not require ; when , the signature is empty.
QAlgorithms.Papers.Independent.Extend50.P37.BornKernel
Let be a finite index type with decidable equality, write for the complex matrices indexed by , let be a measurable space, and let be integers. An estimation prior consists of a probability measure on , a measurable set with , every member of which is positive semidefinite with trace , and a measurable parameter map . Let be any function on matrices indexed by . Let assign a matrix to every subset , with , , positive semidefinite values on measurable sets, and countable additivity, expressed as convergence of the matrix series, on pairwise disjoint measurable sets. Let be a measurable kernel from to ; its measures need not be probability measures. The predicate asserts that, for every and every measurable ,
where the right side is regarded as an extended nonnegative real number. No condition is imposed on outside , and is not required here to be a channel. For , the empty product defines the one-dimensional matrix with entry ; is also allowed.
QAlgorithms.Papers.Independent.Extend50.P37.Distortion
For a finite index type with decidable equality, let , let , and let be an estimation prior with probability law , designated measurable full-measure set of positive semidefinite trace- matrices, and measurable parameter map into . For a function , the condition means that there are a natural number and matrices with and for every matrix ; that for every positive semidefinite trace- matrix and every ; that
for every matrix and every unitary matrix commuting with every element of ; and that there exists a probability measure on such that -almost every is positive semidefinite, has trace , and has rank , and . The designated set 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 be a finite index type with decidable equality, let be any finite index type, let be any measurable space, and let . Let be an estimation prior with probability law , designated measurable full-measure set of positive semidefinite trace- matrices, and measurable parameter map . For any function and any functions , the condition means that, for every measurable and every product of measurable order-connected subsets of , whenever ,
The denominators are the real values of these finite positive measures. No positivity, normalization, additivity, measurability, or integrability conditions on 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 with decidable equality, let , let , let be an estimation prior with probability law , designated measurable full-measure set of positive semidefinite trace- matrices, and measurable parameter map , and let be any function on complex matrices indexed by . The condition requires that every unitary commuting with every element of preserve under , map into itself, and satisfy for all ; that admit a finite Kraus representation with ; and that at least one of the following hold: either is the identity function and every matrix in has rank , or for every positive semidefinite trace- matrix on and every in the unital complex algebra generated by all matrices
and there exists a function having a finite normalized Kraus representation, preserving for every and every density matrix , satisfying for every matrix and every unitary commuting with , and pushing some probability measure concentrated almost everywhere on rank- density matrices to . These alternatives need not be exclusive, and no equation relating to this is required. The case is included, with the empty tensor product equal to .
QAlgorithms.Papers.Independent.Extend50.P37.EstimationPrior
For a finite index type equipped with decidable equality and a natural number , this structure consists of a measure on the space of complex matrices, a proof that is a probability measure, a measurable set of matrices satisfying , and the requirement that every is positive semidefinite with complex trace exactly . It also contains a function from the entire matrix space to , together with a proof that is measurable. The set is supplied as data and is not required to be the topological support of . The case is allowed, giving the unique empty parameter vector; if is empty, no such structure can exist because no matrix has trace .
QAlgorithms.Papers.Independent.Extend50.P37.GeneratorSpectralPVM
For a finite index type with decidable equality and a unital complex star subalgebra of complex matrices, this structure consists of a natural number and matrices satisfying
together with the requirement that their complex linear span equals the underlying complex vector subspace of . No separate condition is supplied: would require the empty sum to equal the identity, which is impossible when is nonempty.
QAlgorithms.Papers.Independent.Extend50.P37.InAlgebra
For any finite index type , any measurable space , any function , and any set of complex matrices, the condition means that for every measurable subset . The definition imposes no algebraic closure conditions on , no measurement conditions on , and no requirement on for nonmeasurable .
QAlgorithms.Papers.Independent.Extend50.P37.IsGauge
For a set of complex square matrices indexed by , this property means that contains the identity, consists entirely of unitary matrices, is closed under multiplication and conjugate transpose, and equals the set of all unitary matrices that commute with every unitary matrix which commutes with every element of . Here unitarity means .
QAlgorithms.Papers.Independent.Extend50.P37.Noiseless
For a finite index type with decidable equality, any set of complex matrices, and any function , the condition means that, for every positive semidefinite matrix of trace and every ,
This is equality of complex traces. No linearity, positivity, or channel condition on , and no algebra or Hermitian condition on , is assumed; an empty makes the condition vacuous.
QAlgorithms.Papers.Independent.Extend50.P37.ParameterBox
For any natural number , including , and any set , the condition means that there exist measurable sets , one for each , each order connected—that is, containing every real number between any two of its elements—such that
The sets may be empty, singletons, bounded or unbounded intervals, with any measurable endpoint convention. For , this product is the singleton consisting of the empty tuple.
QAlgorithms.Papers.Independent.Extend50.P37.Postprocess
For a finite index type with decidable equality, a measurable outcome space , a natural number , a unital complex star subalgebra of matrices, and a supplied family of nonzero Hermitian idempotents that are pairwise orthogonal, sum to , and complex-linearly span , let assign a measure on to each function , and let assign an matrix to every subset of . This predicate means that every is a probability measure and, for every measurable subset ,
The measure values are converted from nonnegative extended reals to reals and then to complex scalars. No equation is required for nonmeasurable . For , there is one empty assignment , and the empty product is .
QAlgorithms.Papers.Independent.Extend50.P37.Promotes
For a finite index type with decidable equality, a set of complex matrices, a natural number , a Boolean , and a function on complex matrices indexed by , this predicate requires three conditions. First, agrees everywhere with a complex linear map satisfying , and for every natural number , applying to each block of any positive semidefinite matrix indexed by preserves positive semidefiniteness. Second, every belongs to the unital complex algebra generated by the matrices with all , and commutes with every permutation matrix , where exactly when . Third, put , where if is true and otherwise: for every matrix , if commutes with for every unitary commuting with every element of , then
Here . Both and empty are included, with empty products interpreted as .
QAlgorithms.Papers.Independent.Extend50.P37.PurePrior
For a finite index type with decidable equality and a natural number , let be an estimation prior: a probability measure on complex matrices, a designated measurable set of full measure consisting of positive semidefinite matrices of trace , and a measurable parameter map into . The condition means that every has matrix rank exactly . This is required at every point of the designated set , including any points of measure zero in that set.
QAlgorithms.Papers.Independent.Extend50.P37.RankOne
For a complex matrix indexed by , this predicate means exactly
It imposes no Hermiticity, positivity, or trace condition. When is empty, the predicate is false because every such matrix has rank zero.
QAlgorithms.Papers.Independent.Extend50.P37.SameReduction
For a finite index type with decidable equality, a set of complex matrices indexed by , and any two such matrices , the assertion that they have the same reduction with respect to means precisely
These are equalities of complex numbers. There is no assumption that or is a density matrix, that is an algebra, or that is nonempty. For , the condition is vacuous.
QAlgorithms.Papers.Independent.Extend50.P37.SampleConditionals
For measurable spaces and , a finite index type , a natural number , an arbitrary measure on , functions and , and arbitrary assignments from subsets of to complex matrices, this proposition means that for every measurable and every set , where each is measurable and order-convex, if , then
No measurability of or , positivity or normalization of the matrices, or probability or finiteness assumption on 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 , when the product box is the whole singleton parameter space.
QAlgorithms.Papers.Independent.Extend50.P37.SubgroupHaarProbability
For a finite index type with decidable equality, a set of complex matrices, and a measure on that matrix space, this predicate means that every element of is unitary, , is closed under multiplication and conjugate transpose, is measurable, is a probability measure, and . It also requires, for every , both pushforward identities
The definition does not impose topological closedness of .
QAlgorithms.Papers.Independent.Extend50.P37.Symmetry
For a finite index type with decidable equality, write for the complex matrices indexed by . Let , let be an estimation prior consisting of a probability measure on , a designated measurable set with whose elements are positive semidefinite matrices of trace , and a measurable parameter map ; and let be any set of matrices. The condition means that every satisfies
Here is the conjugate transpose. No unitarity or group condition is imposed on ; if is empty, the condition holds vacuously.
QAlgorithms.Papers.Independent.Extend50.P37.UCP
For a finite index type with decidable equality and a function from complex matrices to themselves, this predicate means that there exists a complex linear map such that for every matrix , , and the following positivity condition holds: for every natural number , including , and every positive semidefinite matrix indexed by , the matrix
is positive semidefinite. If is empty, its identity matrix is also its zero matrix, so the unitality equation is .
QAlgorithms.Papers.Independent.Extend50.P37.UnitarySubgroup
For a set of complex square matrices indexed by , this property means that every is unitary, meaning ; the identity matrix belongs to ; whenever ; and whenever . In particular, cannot be empty.
QAlgorithms.Papers.Independent.Extend50.P37.alg
For a set of complex square matrices indexed by , is the underlying set of the smallest unital complex subalgebra containing . Thus it contains 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 , this is the algebra of scalar multiples of the identity.
QAlgorithms.Papers.Independent.Extend50.P37.algebraExpectation
For a finite index type , a set of complex matrices indexed by , and another such matrix , this defines the following matrix. Put , choose the finite enumeration supplied by the definition, and reindex each matrix as . Form the complex linear span , and then the subspace , where . Orthogonally project onto , interpret the resulting coordinates as a matrix, and reindex back along . Thus the construction is the orthogonal projection onto the complex linear span of for the inner product ; is not assumed to be an algebra. For , the result is zero.
QAlgorithms.Papers.Independent.Extend50.P37.bellSector
For every Boolean value , this defines a vector in the complex Euclidean space indexed by two-bit strings:
Here has coordinate at the string and coordinate at every other string; the inverse of is taken as a complex scalar.
QAlgorithms.Papers.Independent.Extend50.P37.circleDensity
For arbitrary real , this defines the matrix on , where
Explicitly,
There are no restrictions on either real parameter.
QAlgorithms.Papers.Independent.Extend50.P37.circleDiagonal
For every real , this defines the complex diagonal matrix
No restriction on is imposed.
QAlgorithms.Papers.Independent.Extend50.P37.collectiveImage
For a natural number and a set of complex square matrices indexed by , the collective image consists exactly of matrices indexed by functions for which there exists a single matrix satisfying . If is empty, this image is empty for every , including ; if is nonempty and , it consists exactly of the identity matrix.
QAlgorithms.Papers.Independent.Extend50.P37.cornerAlg
For a complex square matrix indexed by and a set of such matrices, this is the set of all matrices , where belongs to the smallest unital complex subalgebra containing . No assumption that is Hermitian or idempotent is required. If , this set is ; if , it is .
QAlgorithms.Papers.Independent.Extend50.P37.cornerComm
For a finite index type , a complex matrix indexed by , and a set of such matrices, this defines the set
No assumption that is Hermitian or idempotent is imposed. If is empty, the commutation condition is vacuous.
QAlgorithms.Papers.Independent.Extend50.P37.decisionMarginal
For , this defines the complex matrix
QAlgorithms.Papers.Independent.Extend50.P37.diagonalSet
For every finite type , this defines the set of complex matrices indexed by that equal for some function ; equivalently, their -entry is when and otherwise. There is no restriction on the diagonal entries. Empty 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 with decidable equality, any function , and any complex matrix , the matrix is defined entrywise by
where has entry at row , column , and zero elsewhere. No linearity, channel, or positivity assumption on is made. If is empty, this defines the unique empty matrix.
QAlgorithms.Papers.Independent.Extend50.P37.hsVector
For an index type and a complex matrix indexed by , this defines its vector of entries in the complex Euclidean space indexed by :
There is no normalization or conjugation. When 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 indexed by , where is any complex matrix satisfying both and .
QAlgorithms.Papers.Independent.Extend50.P37.liftLeftRegister
For arbitrary types , any natural number , and any complex matrix indexed by , this definition returns the matrix on given, for , by
There are no finiteness, positivity, or normalization assumptions on . The definition includes , when the equality condition is vacuous.
QAlgorithms.Papers.Independent.Extend50.P37.localSet
For a natural number and a set of complex square matrices indexed by , the local set consists exactly of matrices indexed by functions for which there exist matrices , one for every , such that . For , this set contains exactly the identity matrix, even when is empty; for and , it is empty.
QAlgorithms.Papers.Independent.Extend50.P37.observableAlgebra
For a finite index type with decidable equality and any complex matrix indexed by , its observable algebra is defined to be the smallest unital complex star subalgebra containing : the smallest set of such matrices containing and all scalar multiples of the identity and closed under addition, multiplication, complex scalar multiplication, and conjugate transpose. No self-adjointness assumption on or nonemptiness assumption on is imposed.
QAlgorithms.Papers.Independent.Extend50.P37.orderedTensorProduct
For a natural number , including , and a family of complex square matrices indexed by , the ordered tensor product is the complex matrix indexed by functions , with entries . When , there is one such function and the empty product is , so the result is the identity matrix.
QAlgorithms.Papers.Independent.Extend50.P37.pairBasisKet
For every natural number and every , this defines the vector in the complex Euclidean space indexed by functions , with coordinate
For , there are no possible arguments .
QAlgorithms.Papers.Independent.Extend50.P37.pairDensity
For any index type and any two complex matrices indexed by , this definition returns the matrix indexed by functions whose entries are
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 be a finite index type with decidable equality, let be a measurable space, and let . Write for the complex matrices indexed by . Let consist of a probability measure on , a measurable set satisfying whose members are positive semidefinite matrices of trace , and a measurable map . For any measurable kernel from to , the defined measure is
on , where is the measure obtained by first using for and then for . Thus it records the outcome and the parameter, discarding the matrix itself. The definition assumes neither that is a probability kernel nor any relation between and a measurement. When , the parameter space is a singleton.
QAlgorithms.Papers.Independent.Extend50.P37.perm
For a finite type , equipped with its finite enumeration, a natural number , and a permutation of , this definition gives the complex matrix indexed by functions , whose entry is when and otherwise. The construction obtains these entries by identifying with . For , is the identity; if is empty and , its indexing type is empty.
QAlgorithms.Papers.Independent.Extend50.P37.permutationSector
For a finite type , equipped with its finite enumeration, a natural number , and a Boolean choice , this definition gives the matrix , where is the group of permutations of , if and otherwise, and when is true and when is false. The rows and columns are indexed by functions from to . For , either Boolean choice gives the identity matrix.
QAlgorithms.Papers.Independent.Extend50.P37.permutations
For a finite type , equipped with its finite enumeration, and a natural number , this is the set of all complex matrices indexed by functions , as ranges over permutations of , where if and is otherwise. This is a set of matrices, so coincident matrices from different permutations occur only once. For , the set consists exactly of the identity matrix.
QAlgorithms.Papers.Independent.Extend50.P37.phaseFlipMixture
For every real and every complex matrix , this defines
The definition imposes neither nor any positivity or trace condition on .
QAlgorithms.Papers.Independent.Extend50.P37.phaseGroup
For every natural number , this defines the set of complex matrices for which there exist real numbers such that is diagonal and
The witnesses are not required to be unique. The case is included: the set then contains the unique empty matrix.
QAlgorithms.Papers.Independent.Extend50.P37.promotion
For a finite index type with decidable equality, a set of complex matrices, a natural number , a Boolean , and a complex matrix indexed by , this defines
Here is the set of functions ; for a permutation of these positions, has entry at exactly when , and zero otherwise; and
Let be the unital complex algebra generated by all matrices whose -entry is , with every . Then is orthogonal projection onto the complex linear span of for the inner product , implemented by finite reindexing and vectorization. Finally, and are defined using the real continuous functional calculus with . No positivity, Hermiticity, or invertibility hypothesis is imposed on . Real square root and inversion are total, with for and ; division by a zero value of likewise gives zero. The definition includes , when is a singleton and empty tensor products are .
QAlgorithms.Papers.Independent.Extend50.P37.qubitFilling
For every Boolean value and every function , this defines a complex matrix indexed by two-bit strings as
where is at the string and elsewhere, , and . For any vector , the matrix used here has entry ; thus the strings and yield the same matrix for a fixed .
QAlgorithms.Papers.Independent.Extend50.P37.qutritEffects
This defines three complex matrices indexed by two-coordinate strings over :
The vectors are coordinate basis vectors, and the matrix has entry in row , column .
QAlgorithms.Papers.Independent.Extend50.P37.qutritVector
For each Boolean value , this defines a vector in by
Here denotes the coordinate vector with value at the function sending to and to , and value at every other two-coordinate string.
QAlgorithms.Papers.Independent.Extend50.P37.repeatedUnitaryBlocks
For any natural number , any families of natural numbers indexed by , and any complex matrices , the matrix , indexed by triples with and , is defined by
Thus it is the block diagonal matrix . No unitarity of the or positivity of the sizes is required; zero sizes contribute no indices, and gives the empty matrix.
QAlgorithms.Papers.Independent.Extend50.P37.rightUnitaryGroup
This definition is the set of matrices indexed by , where is any complex matrix satisfying both and .
QAlgorithms.Papers.Independent.Extend50.P37.scalarUnitaries
For every finite index type with decidable equality, this definition is the set of matrices , where satisfies . 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 matrices obtained by viewing real matrices satisfying and as complex matrices, entry by entry.
QAlgorithms.Papers.Independent.Extend50.P37.spinZero
This definition is the matrix on the space with basis , where
Equivalently, , and the matrix entry at is when both and , and zero otherwise.
QAlgorithms.Papers.Independent.Extend50.P37.standardSector
For every finite index type , this definition gives the matrix on the space with basis
where if , and is zero otherwise. Equivalently, this is . The definition includes empty , in which case the matrix is the unique empty matrix.
QAlgorithms.Papers.Independent.Extend50.P37.subgroupConjugationAverage
For a measure on the space of complex matrices indexed by a finite type , and a matrix in that space, this defines the matrix-valued Bochner integral
where 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 and a set of complex square matrices indexed by , this is the underlying set of the smallest unital complex subalgebra containing every matrix with entries , where each and . Closure under conjugate transpose is not imposed. When , the result is the algebra of all complex matrices; when and 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 , with finite, any natural number , and any complex matrix indexed by functions from to , this definition returns the matrix on whose entries are
No positivity or normalization assumption is made. The definition includes , when there is one empty function in the sum, and empty , when the sum is empty if .
QAlgorithms.Papers.Independent.Extend50.P37.twoQubitOrbit
For every and every complex matrix , this defines
The resulting matrix is indexed by pairs in . No unitarity assumption is imposed on ; in particular, is included and gives the zero matrix.
QAlgorithms.Papers.Independent.Extend50.P37.twoQubitSeed
For , this defines a vector in by
Here is the vector with coordinate at and elsewhere.
QAlgorithms.Papers.Independent.Extend50.P37.unitaryCentralizer
For a set of complex square matrices indexed by , its unitary centralizer is the set of matrices satisfying and for every , where denotes conjugate transpose. If is empty, the commutation condition is vacuous, so this set consists of all unitary matrices.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.