Definitions for Compatible quantum correlations: on extension problems for Werner and isotropic states
DefinitionQAlgorithms_Papers_Independent_Extend50_P36The objects the formalized statements of Compatible quantum correlations: on extension problems for Werner and isotropic states (arXiv:1305.1342) are stated in. Each was checked against the paper by a blind read-back and a moderator.
JoinsTwo: Definition II.1, PDF p.3, two overlapping bipartite marginals.JoinableTwo: Definition II.1, PDF p.3. Positivity and normalization belong to the joining state.JoinableThree: PDF p.8: three specified pair marginals, ordered AB,AC,BC.SharingIndex: Definition II.4, PDF pp.4–5: the actual sharing register.sharingMarginal: Eq.(3), PDF p.5: trace out all sites except the selected left/right pair. The row constraint counts each configuration of the traced sites exactly once.Shares: Eq.(3), PDF p.5: all mn marginals equal the same bipartite operator.Sharable: Definition II.4, PDF pp.4–5; statements impose positive sharing counts.ArbitrarilySharable: PDF pp.5–6: a separate finite extension for every positive pair of counts.fullyMixed: PDF p.5: the completely mixed operator on a finite register.convexStateMixture: PDF pp.3,5: a convex combination with weight t on the first operator.localConjugate: Eq.(4), PDF p.5: conjugation by a product of local matrices. The sharing theorems supply unitary factors; matrix arguments avoid coupling the operation to a particular decidable-equality instance of a bundled unitary group.quditSwapOperator: PDF p.6: the swap operator on two d-dimensional factors.entangledEffect: PDF p.6: d times the maximally entangled projector, the partially transposed swap.wernerSwapState: Sec.III A, PDF p.6, swap-expectation parametrization. Physical range [-1,1].isotropicOverlapState: Sec.III A, PDF p.6: phi = d times singlet fraction. Physical range [0,d].wernerConcurrence: Eq.(5), PDF p.6, including the separable branch.isotropicConcurrence: Eq.(6), PDF p.6, including the separable branch.wernerCubeRoot: Eq.(17), PDF p.8: primitive cube root with positive imaginary part.wernerRegion: Eqs.(15)–(17), PDF p.8. Coordinates are AB,AC,BC.mixedConePhase: Eq.(21), PDF p.8: exp(i theta) as the source's explicit radicals.mixedCone: Eqs.(20)–(21), PDF p.8: the cone inside its physical parameter box.mixedRegion: Theorem III.2, PDF p.8: higher dimensions add precisely the vertex (0,0,-1).isotropicEllipse: Eq.(23), PDF p.9: ellipse circumference; its hull with the origin is used below.IsotropicStarJoinable: Theorem III.6, PDF p.11: a central site and n distinct outer marginals.classicalAgreementLaw: Eq.(8), PDF p.7: classical analogue with agreement probability alpha.ClassicalTripleJoinable: PDF pp.7–8: actual classical joining law, ordered AB,AC,BC.classicalVertices: PDF p.7: four always available vertices and the all-disagree vertex when d >= 3.fullAntisymmetricVector: Eq.(7), PDF p.6: fully antisymmetric normalized d-partite amplitude. Zero-based coordinates replace the source's labels 1,...,d.pairMarginal: PDF pp.6–7: arbitrary pair reduction on a homogeneous tensor register.cqWitness: PDF pp.3–4: explicit CQ witnesses in the X and Z bases, as (I+P⊗P)/4.IsClassicalQuantum: PDF p.4: classical on the first subsystem in some orthonormal basis.qubitSharingWitness: Proposition IV.1, PDF p.12: the specified qubit counterexample.qubitJoiningWitness: Proposition IV.1, PDF p.13: the normalized three-qubit pure joining state.pseudoPure: PDF p.13: pseudo-pure mixture, weight t on a normalized maximally entangled vector.NeighborhoodConfiguration: General neighborhoods of Sec.II A, PDF pp.2–3.assembleNeighborhood: PDF p.3: combine a neighborhood configuration and its tensor complement.neighborhoodMarginal: Eq.(1), PDF p.3: explicit partial trace for an arbitrary neighborhood.JoiningList: Definition II.1, PDF p.3: the full joining fiber of any finite neighborhood list.collectiveTensorOperator: PDF pp.8,12: the tensor power of a matrix, with an optional conjugate on site zero.collectiveTriple: Eqs.(13),(18), PDF p.8: U⊗U⊗U or conjugate(U)⊗U⊗U in A,B,C order.tripleTwirl: Eqs.(13),(18), PDF p.8: the normalized Haar twirl, as a matrix-valued integral.pairTwirl: Corollary IV.2, PDF p.13: the two-factor Haar twirl, with conjugation on A only.diagonalAxisRotation: PDF p.9: the explicit rotation about the diagonal line, with fixed origin.tableFour: Table I(c), PDF p.12: uncomputed entries return none, never a zero threshold.triplePerm: Appendix A, PDF p.14: the three actual transpositions and the oriented 3-cycle.transposeA: Appendix A, PDF p.14: transpose on factor A, without changing B,C.wernerBasis: Eqs.(A1)–(A2), PDF p.14; coordinates ordered +,-,0,1,2,3.mixedBasis: Eqs.(A5)–(A6), PDF p.14; no unit Hilbert–Schmidt normalization is asserted.coordinateOperator: Eqs.(A3),(A7), PDF p.14: actual density reconstruction, with the absent antisymmetric sector explicitly omitted at d=2.PhysicalCoordinates: Eqs.(A4),(A7), PDF pp.14–15: trace one, positivity ball, and absent sector.tripleSymmetryCoordinates: Appendix A, PDF p.14: coordinates computed from the physical operator.TripleInvariant: Eqs.(14),(19), PDF p.8: the concrete collective-invariant subspace.CoordinateCharacterization: Appendix A's two full physical coordinate characterizations, PDF pp.14–15.crossSwap: Appendix B, PDF p.17: the actual cross-group swap matrix.sharingHamiltonian: Appendix B, PDF p.17: minus the average of the mn cross-group swaps.realEigenvalues: Appendix B, PDF p.17: real eigenvalues, defined by actual nonzero eigenvectors.maximalRealEigenvalue: Appendix B, PDF p.17: maximum of the nonempty finite real spectrum of a Hermitian operator on the nonempty physical register. Only that domain is used.fullEigenkernelProjector: Appendix B, PDF p.17: the orthogonal projector onto the entire eigenspace.extremalSharingState: Appendix B, PDF p.17: the whole top-eigenspace projector divided by its trace.embeddedQuditGenerator: Eq.(B1), PDF p.17: insert a local generator on one site of a tensor register.collectiveCasimir: Eq.(B1), PDF p.17: group Casimir embedded in the same full register. left/right flags select L, R, or their union.NormalizedGenerators: Eq.(B1)'s normalization, PDF p.17: Hermitian traceless generators with Tr(lambda_alpha lambda_beta)=delta_alpha,beta, spanning by their full dimension.youngColumnSquareSum: Eq.(B3), PDF p.18: sum of squared column heights, over all possibly nonempty columns.rowSquares: Eq.(B3), PDF p.18: sum of squared row lengths, with zero padding up to d.youngEigenvalue: Eq.(B3), PDF p.18: scalar prescribed by three Young diagrams.youngSector: PDF pp.17–18: actual simultaneous physical isotypic sector. The accepted character idempotents are constructed independently of H and of Eq.(B3).
import Mathlib
import Definitions.Def_QAlgorithms_Defs_BipartiteSeparability
import Definitions.Def_QAlgorithms_Defs_Channel
import Definitions.Def_QAlgorithms_Defs_Measurement
import Definitions.Def_QAlgorithms_Defs_SchurWeylDecomposition
import Definitions.Def_QAlgorithms_Defs_SchurUnitaryEnsembles
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P21
/-! Statements and paper-local physical definitions for Johnson and Viola,
*Compatible quantum correlations: on extension problems for Werner and isotropic states*,
arXiv:1305.1342v3. PDF page numbers are used throughout.
-/
noncomputable section
open scoped Matrix ComplexConjugate Matrix.Norms.Elementwise
open MeasureTheory
namespace QAlgorithms.Papers.Independent.Extend50.P36
attribute [local instance] Classical.propDecidable Classical.decEq
-- Exact accepted matrix alias; tensor reductions below compose frozen superoperators.
open QAlgorithms.Papers.Independent.Information100.P21 (Op)
/-- Definition II.1, PDF p.3, two overlapping bipartite marginals. -/
def JoinsTwo {I J K : Type*} [Fintype I] [Fintype J] [Fintype K]
(X : Op (I × J × K)) (A : Op (I × J)) (B : Op (I × K)) : Prop :=
IsDensityMatrix X ∧ (idTensorSuperop traceRight) X = A ∧ (idTensorSuperop traceLeft) X = B
/-- Definition II.1, PDF p.3. Positivity and normalization belong to the joining state. -/
def JoinableTwo {I J K : Type*} [Fintype I] [Fintype J] [Fintype K]
(A : Op (I × J)) (B : Op (I × K)) : Prop := ∃ X, JoinsTwo X A B
/-- PDF p.8: three specified pair marginals, ordered AB,AC,BC. -/
def JoinableThree {I J K : Type*} [Fintype I] [Fintype J] [Fintype K]
(A : Op (I × J)) (B : Op (I × K)) (C : Op (J × K)) : Prop :=
∃ X, JoinsTwo X A B ∧ traceLeft X = C
/-- Definition II.4, PDF pp.4–5: the actual sharing register. -/
abbrev SharingIndex (I J : Type*) (m n : ℕ) := (Fin m → I) × (Fin n → J)
/-- Eq.(3), PDF p.5: trace out all sites except the selected left/right pair.
The row constraint counts each configuration of the traced sites exactly once. -/
def sharingMarginal {I J : Type*} [Fintype I] [Fintype J] {m n : ℕ}
(X : Op (SharingIndex I J m n)) (i : Fin m) (j : Fin n) : Op (I × J) :=
fun a b => ∑ x : Fin m → I, ∑ y : Fin n → J,
if x i = a.1 ∧ y j = a.2 then
X (x,y) (Function.update x i b.1,Function.update y j b.2) else 0
/-- Eq.(3), PDF p.5: all mn marginals equal the same bipartite operator. -/
def Shares {I J : Type*} [Fintype I] [Fintype J] {m n : ℕ}
(X : Op (SharingIndex I J m n)) (rho : Op (I × J)) : Prop :=
IsDensityMatrix X ∧ ∀ i : Fin m, ∀ j : Fin n, sharingMarginal X i j = rho
/-- Definition II.4, PDF pp.4–5; statements impose positive sharing counts. -/
def Sharable {I J : Type*} [Fintype I] [Fintype J]
(m n : ℕ) (rho : Op (I × J)) : Prop :=
∃ X : Op (SharingIndex I J m n), Shares (m := m) (n := n) X rho
/-- PDF pp.5–6: a separate finite extension for every positive pair of counts. -/
def ArbitrarilySharable {I J : Type*} [Fintype I] [Fintype J]
(rho : Op (I × J)) : Prop := ∀ m n : ℕ, 0 < m → 0 < n → Sharable m n rho
/-- PDF p.5: the completely mixed operator on a finite register. -/
def fullyMixed (I : Type*) [Fintype I] [DecidableEq I] : Op I :=
((Fintype.card I : ℂ)⁻¹) • 1
/-- PDF pp.3,5: a convex combination with weight t on the first operator. -/
def convexStateMixture {I : Type*} (t : ℝ) (A B : Op I) : Op I :=
(t : ℂ) • A + ((1-t : ℝ) : ℂ) • B
/-- Eq.(4), PDF p.5: conjugation by a product of local matrices.
The sharing theorems supply unitary factors; matrix arguments avoid coupling
the operation to a particular decidable-equality instance of a bundled unitary group. -/
def localConjugate {I J : Type*} [Fintype I] [Fintype J]
(U : Op I) (V : Op J) (rho : Op (I × J)) :
Op (I × J) :=
let W := Matrix.kronecker U V
W * rho * Wᴴ
/-- PDF p.6: the swap operator on two d-dimensional factors. -/
def quditSwapOperator (d : ℕ) : Op (Fin d × Fin d) :=
fun a b => if a = (b.2,b.1) then 1 else 0
/-- PDF p.6: d times the maximally entangled projector, the partially transposed swap. -/
def entangledEffect (d : ℕ) : Op (Fin d × Fin d) :=
fun a b => if a.1 = a.2 ∧ b.1 = b.2 then 1 else 0
/-- Sec.III A, PDF p.6, swap-expectation parametrization. Physical range [-1,1]. -/
def wernerSwapState (d : ℕ) (psi : ℝ) : Op (Fin d × Fin d) :=
(((d : ℂ)-(psi : ℂ))/((d : ℂ)*((d : ℂ)^2-1))) • 1 +
(((d : ℂ)*(psi : ℂ)-1)/((d : ℂ)*((d : ℂ)^2-1))) • quditSwapOperator d
/-- Sec.III A, PDF p.6: phi = d times singlet fraction. Physical range [0,d]. -/
def isotropicOverlapState (d : ℕ) (phi : ℝ) : Op (Fin d × Fin d) :=
(((d : ℂ)-(phi : ℂ))/((d : ℂ)*((d : ℂ)^2-1))) • 1 +
(((d : ℂ)*(phi : ℂ)-1)/((d : ℂ)*((d : ℂ)^2-1))) • entangledEffect d
/-- Eq.(5), PDF p.6, including the separable branch. -/
def wernerConcurrence (psi : ℝ) : ℝ := max 0 (-psi)
/-- Eq.(6), PDF p.6, including the separable branch. -/
def isotropicConcurrence (d : ℕ) (phi : ℝ) : ℝ :=
Real.sqrt (2/((d : ℝ)*((d : ℝ)-1))) * max 0 (phi-1)
/-- Eq.(17), PDF p.8: primitive cube root with positive imaginary part. -/
def wernerCubeRoot : ℂ := Complex.exp (Complex.I * (2*Real.pi/3 : ℝ))
/-- Eqs.(15)–(17), PDF p.8. Coordinates are AB,AC,BC. -/
def wernerRegion (d : ℕ) (a b c : ℝ) : Prop :=
let mean := (a+b+c)/3
let radius := (2/3 : ℝ)*‖(c : ℂ)+wernerCubeRoot*(b : ℂ)+wernerCubeRoot^2*(a : ℂ)‖
radius ≤ 1-mean ∧ (if d = 2 then 0 ≤ mean else radius ≤ 1+mean)
/-- Eq.(21), PDF p.8: exp(i theta) as the source's explicit radicals. -/
def mixedConePhase (d : ℕ) : ℂ :=
(Real.sqrt (((d : ℝ)-1)/(2*d)) : ℂ) +
Complex.I * (Real.sqrt (((d : ℝ)+1)/(2*d)) : ℂ)
/-- Eqs.(20)–(21), PDF p.8: the cone inside its physical parameter box. -/
def mixedCone (d : ℕ) : Set (Fin 3 → ℝ) :=
{x | 0 ≤ x 0 ∧ x 0 ≤ d ∧ 0 ≤ x 1 ∧ x 1 ≤ d ∧ -1 ≤ x 2 ∧ x 2 ≤ 1 ∧
x 0+x 1-x 2 ≤ d ∧
‖((d : ℝ)*(x 2-1) : ℂ) + (Real.sqrt (2*d/((d : ℝ)-1)) : ℂ) *
(mixedConePhase d*(x 0 : ℂ)+conj (mixedConePhase d)*(x 1 : ℂ))‖ ≤ 1+x 0+x 1-x 2}
/-- Theorem III.2, PDF p.8: higher dimensions add precisely the vertex (0,0,-1). -/
def mixedRegion (d : ℕ) : Set (Fin 3 → ℝ) :=
if d = 2 then mixedCone d else convexHull ℝ (mixedCone d ∪ {![0,0,-1]})
/-- Eq.(23), PDF p.9: ellipse circumference; its hull with the origin is used below. -/
def isotropicEllipse (d : ℕ) : Set (Fin 2 → ℝ) :=
{x | (x 0+x 1-(d : ℝ))^2+(x 0-x 1)^2/((d : ℝ)^2-1) = 1}
/-- Theorem III.6, PDF p.11: a central site and n distinct outer marginals. -/
def IsotropicStarJoinable (d n : ℕ) (phi : Fin n → ℝ) : Prop :=
∃ X : Op (SharingIndex (Fin d) (Fin d) 1 n),
IsDensityMatrix X ∧ ∀ j, sharingMarginal X 0 j = isotropicOverlapState d (phi j)
/-- Eq.(8), PDF p.7: classical analogue with agreement probability alpha. -/
def classicalAgreementLaw (d : ℕ) (alpha : ℝ) : Fin d × Fin d → ℝ :=
fun a => if a.1 = a.2 then alpha/d else (1-alpha)/((d : ℝ)*((d : ℝ)-1))
/-- PDF pp.7–8: actual classical joining law, ordered AB,AC,BC. -/
def ClassicalTripleJoinable (d : ℕ) (a b c : ℝ) : Prop :=
∃ p : Fin d × Fin d × Fin d → ℝ,
(∀ x, 0 ≤ p x) ∧ (∑ x, p x) = 1 ∧
(∀ i j, (∑ k, p (i,j,k)) = classicalAgreementLaw d a (i,j)) ∧
(∀ i k, (∑ j, p (i,j,k)) = classicalAgreementLaw d b (i,k)) ∧
(∀ j k, (∑ i, p (i,j,k)) = classicalAgreementLaw d c (j,k))
/-- PDF p.7: four always available vertices and the all-disagree vertex when d >= 3. -/
def classicalVertices (d : ℕ) : Set (Fin 3 → ℝ) :=
{![1,1,1], ![1,0,0], ![0,1,0], ![0,0,1]} ∪
(if 3 ≤ d then {![0,0,0]} else ∅)
/-- Eq.(7), PDF p.6: fully antisymmetric normalized d-partite amplitude.
Zero-based coordinates replace the source's labels 1,...,d. -/
def fullAntisymmetricVector (d : ℕ) : EuclideanSpace ℂ (Fin d → Fin d) :=
(Real.sqrt (d.factorial : ℝ) : ℂ)⁻¹ •
∑ pi : Equiv.Perm (Fin d),
((((Equiv.Perm.sign pi : ℤˣ) : ℤ) : ℂ)) • ket (fun i => pi.symm i)
/-- PDF pp.6–7: arbitrary pair reduction on a homogeneous tensor register. -/
def pairMarginal {d N : ℕ} (X : Op (Fin N → Fin d))
(i j : Fin N) : Op (Fin d × Fin d) :=
fun a b => ∑ x : Fin N → Fin d,
if x i = a.1 ∧ x j = a.2 then
X x (Function.update (Function.update x i b.1) j b.2) else 0
/-- PDF pp.3–4: explicit CQ witnesses in the X and Z bases, as (I+P⊗P)/4. -/
def cqWitness (inXBasis : Bool) : Op (Fin 2 × Fin 2) :=
let Z : Op (Fin 2) := Matrix.diagonal ![(1 : ℂ),-1]
let X : Op (Fin 2) := !![0,1;1,0]
(1/4 : ℂ) • (1 + Matrix.kronecker (if inXBasis then X else Z)
(if inXBasis then X else Z))
/-- PDF p.4: classical on the first subsystem in some orthonormal basis. -/
def IsClassicalQuantum {I J : Type*} [Fintype I] [Fintype J] [DecidableEq I]
(rho : Op (I × J)) : Prop :=
∃ U : Matrix.unitaryGroup I ℂ, ∃ p : I → ℝ, ∃ sigma : I → Op J,
(∀ i, 0 ≤ p i) ∧ (∑ i, p i) = 1 ∧ (∀ i, IsDensityMatrix (sigma i)) ∧
rho = ∑ i, (p i : ℂ) • Matrix.kronecker
((U : Op I) * (Matrix.diagonal (fun j => if j = i then 1 else 0)) * (U : Op I)ᴴ)
(sigma i)
/-- Proposition IV.1, PDF p.12: the specified qubit counterexample. -/
def qubitSharingWitness : Op (Fin 2 × Fin 2) :=
let v : EuclideanSpace ℂ (Fin 2 × Fin 2) := ket (0,0)+ket (1,1)
(1/3 : ℂ) • (pureDensity v+pureDensity (ket (1,0)))
/-- Proposition IV.1, PDF p.13: the normalized three-qubit pure joining state. -/
def qubitJoiningWitness : Op (Fin 2 × Fin 2 × Fin 2) :=
pureDensity ((Real.sqrt 3 : ℂ)⁻¹ • (ket (0,0,0)+ket (1,0,1)+ket (1,1,0)))
/-- PDF p.13: pseudo-pure mixture, weight t on a normalized maximally entangled vector. -/
def pseudoPure (t : ℝ) (v : EuclideanSpace ℂ (Fin 2 × Fin 2)) : Op (Fin 2 × Fin 2) :=
convexStateMixture t (pureDensity v) (fullyMixed (Fin 2 × Fin 2))
/-- General neighborhoods of Sec.II A, PDF pp.2–3. -/
abbrev NeighborhoodConfiguration {N : ℕ} (dim : Fin N → ℕ) (S : Finset (Fin N)) :=
(i : {i // i ∈ S}) → Fin (dim i.val)
/-- PDF p.3: combine a neighborhood configuration and its tensor complement. -/
def assembleNeighborhood {N : ℕ} {dim : Fin N → ℕ} {S : Finset (Fin N)}
(x : NeighborhoodConfiguration dim S) (z : NeighborhoodConfiguration dim Sᶜ) : (i : Fin N) → Fin (dim i) :=
fun i => if h : i ∈ S then x ⟨i,h⟩ else z ⟨i,by simpa using h⟩
/-- Eq.(1), PDF p.3: explicit partial trace for an arbitrary neighborhood. -/
def neighborhoodMarginal {N : ℕ} (dim : Fin N → ℕ) (S : Finset (Fin N))
(X : Op ((i : Fin N) → Fin (dim i))) : Op (NeighborhoodConfiguration dim S) :=
fun a b => ∑ z : NeighborhoodConfiguration dim Sᶜ, X (assembleNeighborhood a z) (assembleNeighborhood b z)
/-- Definition II.1, PDF p.3: the full joining fiber of any finite neighborhood list. -/
def JoiningList {N q : ℕ} (dim : Fin N → ℕ) (S : Fin q → Finset (Fin N))
(rho : (j : Fin q) → Op (NeighborhoodConfiguration dim (S j)))
(X : Op ((i : Fin N) → Fin (dim i))) : Prop :=
IsDensityMatrix X ∧ ∀ j, neighborhoodMarginal dim (S j) X = rho j
/-- PDF pp.8,12: the tensor power of a matrix, with an optional conjugate on site zero. -/
def collectiveTensorOperator {d N : ℕ} (mixed : Bool) (U : Op (Fin d)) : Op (Fin N → Fin d) :=
fun a b => ∏ i, if mixed ∧ i.val = 0 then conj (U (a i) (b i)) else U (a i) (b i)
/-- Eqs.(13),(18), PDF p.8: U⊗U⊗U or conjugate(U)⊗U⊗U in A,B,C order. -/
def collectiveTriple {d : ℕ} (mixed : Bool) (U : Op (Fin d)) : Op (Fin d × Fin d × Fin d) :=
Matrix.kronecker (if mixed then U.map conj else U) (Matrix.kronecker U U)
/-- Eqs.(13),(18), PDF p.8: the normalized Haar twirl, as a matrix-valued integral. -/
def tripleTwirl {d : ℕ} (mixed : Bool) (X : Op (Fin d × Fin d × Fin d)) :
Op (Fin d × Fin d × Fin d) :=
∫ U : Matrix.unitaryGroup (Fin d) ℂ,
collectiveTriple mixed (U : Op (Fin d)) * X * (collectiveTriple mixed (U : Op (Fin d)))ᴴ
∂(Schur.unitaryHaar d)
/-- Corollary IV.2, PDF p.13: the two-factor Haar twirl, with conjugation on A only. -/
def pairTwirl {d : ℕ} (mixed : Bool) (rho : Op (Fin d × Fin d)) : Op (Fin d × Fin d) :=
∫ U : Matrix.unitaryGroup (Fin d) ℂ,
let W := Matrix.kronecker (if mixed then (U : Op (Fin d)).map conj else (U : Op (Fin d)))
(U : Op (Fin d))
W * rho * Wᴴ ∂(Schur.unitaryHaar d)
/-- PDF p.9: the explicit rotation about the diagonal line, with fixed origin. -/
def diagonalAxisRotation (theta : ℝ) (x : Fin 3 → ℝ) : Fin 3 → ℝ :=
let mean := (x 0+x 1+x 2)/3
let c := Real.cos theta
let s := Real.sin theta / Real.sqrt 3
![mean+c*(x 0-mean)+s*(x 2-x 1),
mean+c*(x 1-mean)+s*(x 0-x 2),
mean+c*(x 2-mean)+s*(x 1-x 0)]
/-- Table I(c), PDF p.12: uncomputed entries return none, never a zero threshold. -/
def tableFour : ℕ → ℕ → Option ℝ
| 1,1 | 1,2 | 1,3 | 2,1 | 3,1 | 2,2 => some 1
| 1,4 | 4,1 => some (3/4)
| 1,5 | 5,1 => some (3/5)
| 2,3 | 3,2 => some (2/3)
| 2,4 | 4,2 | 2,5 | 5,2 | 3,4 | 4,3 => some (1/2)
| 3,3 => some (5/9)
| _,_ => none
example {I : Type*} [Fintype I] [DecidableEq I] (A : Op I) : convexStateMixture 1 A 0 = A := by
simp [convexStateMixture]
example : wernerConcurrence 0 = 0 := by simp [wernerConcurrence]
example : tableFour 3 3 = some (5/9) ∧ tableFour 3 5 = none := ⟨rfl,rfl⟩
example {d : ℕ} (a b : Fin d) : quditSwapOperator d (a,b) (b,a) = 1 := by simp [quditSwapOperator]
example {d : ℕ} (a b : Fin d) : entangledEffect d (a,a) (b,b) = 1 := by
simp [entangledEffect]
example {I J K : Type*} [Fintype K] : (idTensorSuperop traceRight) (0 : Op (I × J × K)) = 0 := by
ext a b
simp [idTensorSuperop, traceRight]
example {I J : Type*} [Fintype I] [Fintype J] {m n : ℕ} (i : Fin m) (j : Fin n) :
sharingMarginal (0 : Op (SharingIndex I J m n)) i j = 0 := by
ext a b
simp [sharingMarginal]
example (U : Op (Fin 2)) : collectiveTensorOperator (N := 0) false U = 1 := by
ext a b
simp [collectiveTensorOperator, Matrix.one_apply, Subsingleton.elim a b]
/-- Appendix A, PDF p.14: the three actual transpositions and the oriented 3-cycle. -/
def triplePerm (d : ℕ) (k : Fin 4) : Op (Fin d × Fin d × Fin d) :=
fun a b => if a = (match k.val with
| 0 => (b.2.1,b.1,b.2.2)
| 1 => (b.1,b.2.2,b.2.1)
| 2 => (b.2.2,b.2.1,b.1)
| _ => (b.2.2,b.1,b.2.1)) then 1 else 0
/-- Appendix A, PDF p.14: transpose on factor A, without changing B,C. -/
def transposeA {d : ℕ} (X : Op (Fin d × Fin d × Fin d)) : Op (Fin d × Fin d × Fin d) :=
fun a b => X (b.1,a.2) (a.1,b.2)
/-- Eqs.(A1)–(A2), PDF p.14; coordinates ordered +,-,0,1,2,3. -/
def wernerBasis (d : ℕ) : Fin 6 → Op (Fin d × Fin d × Fin d) :=
let A := triplePerm d 0
let B := triplePerm d 1
let C := triplePerm d 2
let T := triplePerm d 3
![(1/6 : ℂ) • (1+A+B+C+T+Tᴴ),
(1/6 : ℂ) • (1-A-B-C+T+Tᴴ),
(1/3 : ℂ) • ((2 : ℂ) • 1-T-Tᴴ),
(1/3 : ℂ) • ((2 : ℂ) • B-C-A),
(Real.sqrt 3 : ℂ)⁻¹ • (A-C),
(Complex.I/(Real.sqrt 3 : ℂ)) • (T-Tᴴ)]
/-- Eqs.(A5)–(A6), PDF p.14; no unit Hilbert–Schmidt normalization is asserted. -/
def mixedBasis (d : ℕ) : Fin 6 → Op (Fin d × Fin d × Fin d) :=
let A := transposeA (triplePerm d 0)
let B := triplePerm d 1
let C := transposeA (triplePerm d 2)
let T := transposeA (triplePerm d 3)
let Td := transposeA ((triplePerm d 3)ᴴ)
![(1/2 : ℂ) • (1+B-((d : ℂ)+1)⁻¹ • (A+C+T+Td)),
(1/2 : ℂ) • (1-B+((d : ℂ)-1)⁻¹ • (T+Td-A-C)),
((d : ℂ)^2-1)⁻¹ • ((d : ℂ) • (A+C)-(T+Td)),
((d : ℂ)^2-1)⁻¹ • ((d : ℂ) • (T+Td)-(A+C)),
(Real.sqrt ((d : ℝ)^2-1) : ℂ)⁻¹ • (A-C),
(Complex.I/(Real.sqrt ((d : ℝ)^2-1) : ℂ)) • (T-Td)]
/-- Eqs.(A3),(A7), PDF p.14: actual density reconstruction, with the absent
antisymmetric sector explicitly omitted at d=2. -/
def coordinateOperator (mixed : Bool) (d : ℕ) (r : Fin 6 → ℝ) :
Op (Fin d × Fin d × Fin d) :=
let B := if mixed then mixedBasis d else wernerBasis d
let cp : ℂ := if mixed then 2/((d : ℂ)*(d+2)*(d-1)) else 6/((d : ℂ)*(d+1)*(d+2))
let cm : ℂ := if mixed then 2/((d : ℂ)*(d-2)*(d+1)) else 6/((d : ℂ)*(d-1)*(d-2))
let c0 : ℂ := if mixed then 1/(2*(d : ℂ)) else 3/(2*(d : ℂ)*((d : ℂ)^2-1))
(cp*(r 0 : ℂ)) • B 0 +
(if d = 2 then 0 else (cm*(r 1 : ℂ)) • B 1) +
c0 • ∑ i : Fin 4, (r ((⟨i.val+2, by omega⟩ : Fin 6)) : ℂ) • B ((⟨i.val+2, by omega⟩ : Fin 6))
/-- Eqs.(A4),(A7), PDF pp.14–15: trace one, positivity ball, and absent sector. -/
def PhysicalCoordinates (d : ℕ) (r : Fin 6 → ℝ) : Prop :=
r 0+r 1+r 2 = 1 ∧ 0 ≤ r 0 ∧ 0 ≤ r 1 ∧ 0 ≤ r 2 ∧
(r 3)^2+(r 4)^2+(r 5)^2 ≤ (r 2)^2 ∧ (d = 2 → r 1 = 0)
/-- Appendix A, PDF p.14: coordinates computed from the physical operator. -/
def tripleSymmetryCoordinates (mixed : Bool) (d : ℕ) (X : Op (Fin d × Fin d × Fin d)) : Fin 6 → ℝ :=
fun k => (X * (if mixed then mixedBasis d k else wernerBasis d k)).trace.re
/-- Eqs.(14),(19), PDF p.8: the concrete collective-invariant subspace. -/
def TripleInvariant {d : ℕ} (mixed : Bool) (X : Op (Fin d × Fin d × Fin d)) : Prop :=
∀ U : Matrix.unitaryGroup (Fin d) ℂ,
collectiveTriple mixed (U : Op (Fin d)) * X * (collectiveTriple mixed (U : Op (Fin d)))ᴴ = X
/-- Appendix A's two full physical coordinate characterizations, PDF pp.14–15. -/
def CoordinateCharacterization (mixed : Bool) (d : ℕ) : Prop :=
(∀ X, IsDensityMatrix X → TripleInvariant mixed X →
PhysicalCoordinates d (tripleSymmetryCoordinates mixed d X) ∧
coordinateOperator mixed d (tripleSymmetryCoordinates mixed d X) = X) ∧
(∀ r : Fin 6 → ℝ, (d = 2 → r 1 = 0) →
(IsDensityMatrix (coordinateOperator mixed d r) ↔ PhysicalCoordinates d r)) ∧
(∀ r, PhysicalCoordinates d r →
TripleInvariant mixed (coordinateOperator mixed d r) ∧
tripleSymmetryCoordinates mixed d (coordinateOperator mixed d r) = r)
/-- Appendix B, PDF p.17: the actual cross-group swap matrix. -/
def crossSwap {d m n : ℕ} (i : Fin m) (j : Fin n) : Op (SharingIndex (Fin d) (Fin d) m n) :=
fun a b => if a = (Function.update b.1 i (b.2 j),Function.update b.2 j (b.1 i)) then 1 else 0
/-- Appendix B, PDF p.17: minus the average of the mn cross-group swaps. -/
def sharingHamiltonian (d m n : ℕ) : Op (SharingIndex (Fin d) (Fin d) m n) :=
(-(1/((m : ℂ)*(n : ℂ)))) • ∑ i : Fin m, ∑ j : Fin n, crossSwap i j
/-- Appendix B, PDF p.17: real eigenvalues, defined by actual nonzero eigenvectors. -/
def realEigenvalues {I : Type*} [Fintype I] [DecidableEq I] (H : Op I) : Set ℝ :=
{r | ∃ v : EuclideanSpace ℂ I, v ≠ 0 ∧ act H v = (r : ℂ) • v}
/-- Appendix B, PDF p.17: maximum of the nonempty finite real spectrum of a
Hermitian operator on the nonempty physical register. Only that domain is used. -/
def maximalRealEigenvalue {I : Type*} [Fintype I] [DecidableEq I] (H : Op I) : ℝ :=
sSup (realEigenvalues H)
/-- Appendix B, PDF p.17: the orthogonal projector onto the entire eigenspace. -/
def fullEigenkernelProjector {I : Type*} [Fintype I] [DecidableEq I] (H : Op I) (r : ℝ) : Op I :=
let E := LinearMap.ker (Matrix.toEuclideanLin (H-(r : ℂ) • 1))
fun a b => inner ℂ (ket a) (E.starProjection (ket b))
/-- Appendix B, PDF p.17: the whole top-eigenspace projector divided by its trace. -/
def extremalSharingState (d m n : ℕ) : Op (SharingIndex (Fin d) (Fin d) m n) :=
let H := sharingHamiltonian d m n
let P := fullEigenkernelProjector H (maximalRealEigenvalue H)
P.trace⁻¹ • P
/-- Eq.(B1), PDF p.17: insert a local generator on one site of a tensor register. -/
def embeddedQuditGenerator {d N : ℕ} (i : Fin N) (A : Op (Fin d)) : Op (Fin N → Fin d) :=
fun a b => A (a i) (b i) * ∏ k ∈ Finset.univ.erase i, if a k = b k then 1 else 0
/-- Eq.(B1), PDF p.17: group Casimir embedded in the same full register.
left/right flags select L, R, or their union. -/
def collectiveCasimir {d m n : ℕ} (left right : Bool)
(L : Fin (d*d-1) → Op (Fin d)) : Op (SharingIndex (Fin d) (Fin d) m n) :=
∑ alpha : Fin (d*d-1),
((if left then Matrix.kronecker (∑ i : Fin m, embeddedQuditGenerator i (L alpha))
(1 : Op (Fin n → Fin d)) else 0) +
(if right then Matrix.kronecker (1 : Op (Fin m → Fin d))
(∑ j : Fin n, embeddedQuditGenerator j (L alpha)) else 0))^2
/-- Eq.(B1)'s normalization, PDF p.17: Hermitian traceless generators with
Tr(lambda_alpha lambda_beta)=delta_alpha,beta, spanning by their full dimension. -/
def NormalizedGenerators (d : ℕ) (L : Fin (d*d-1) → Op (Fin d)) : Prop :=
(∀ alpha, (L alpha).IsHermitian ∧ (L alpha).trace = 0) ∧
∀ alpha beta, (L alpha * L beta).trace = if alpha = beta then 1 else 0
/-- Eq.(B3), PDF p.18: sum of squared column heights, over all possibly nonempty columns. -/
def youngColumnSquareSum {d n : ℕ} (Y : Schur.Partition d n) : ℝ :=
∑ j ∈ Finset.range n, (Y.val.colLen j : ℝ)^2
/-- Eq.(B3), PDF p.18: sum of squared row lengths, with zero padding up to d. -/
def rowSquares {d n : ℕ} (Y : Schur.Partition d n) : ℝ :=
∑ i ∈ Finset.range d, (Y.val.rowLen i : ℝ)^2
/-- Eq.(B3), PDF p.18: scalar prescribed by three Young diagrams. -/
def youngEigenvalue {d m n : ℕ} (YL : Schur.Partition d m) (YR : Schur.Partition d n)
(Y : Schur.Partition d (m+n)) : ℝ :=
(youngColumnSquareSum Y-youngColumnSquareSum YL-youngColumnSquareSum YR-rowSquares Y+rowSquares YL+rowSquares YR)/
(2*(m : ℝ)*(n : ℝ))
/-- PDF pp.17–18: actual simultaneous physical isotypic sector.
The accepted character idempotents are constructed independently of H and of Eq.(B3). -/
def youngSector {d m n : ℕ} (YL : Schur.Partition d m) (YR : Schur.Partition d n)
(Y : Schur.Partition d (m+n)) : Op (SharingIndex (Fin d) (Fin d) m n) :=
let P : Op (SharingIndex (Fin d) (Fin d) m n) := fun a b =>
Schur.isotypicProjector Y (Fin.append a.1 a.2) (Fin.append b.1 b.2)
P * Matrix.kronecker (Schur.isotypicProjector YL) (Schur.isotypicProjector YR)
example {d : ℕ} (X : Op (Fin d × Fin d × Fin d)) : transposeA (transposeA X) = X := rfl
example {d m n : ℕ} : collectiveCasimir (m := m) (n := n) false false
(fun _ : Fin (d*d-1) => (0 : Op (Fin d))) = 0 := by
simp [collectiveCasimir]
example (d n : ℕ) : sharingHamiltonian d 0 n = 0 := by
simp [sharingHamiltonian]
example (d : ℕ) : coordinateOperator false d (fun _ => 0) = 0 := by
simp [coordinateOperator]
example (d : ℕ) : coordinateOperator true d (fun _ => 0) = 0 := by
simp [coordinateOperator]
end QAlgorithms.Papers.Independent.Extend50.P36
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
QAlgorithms.Papers.Independent.Extend50.P36.ArbitrarilySharable
For finite types and a complex matrix on , this predicate means that for every pair of positive natural numbers , there exists a positive semidefinite complex matrix on with trace such that, for every , , and all , ,
The updates replace the specified coordinate, and may depend on . No requirement is made for or . If either or is empty, this predicate is false.
QAlgorithms.Papers.Independent.Extend50.P36.ClassicalTripleJoinable
For every natural number and real numbers , this predicate means that there exists a function such that every value of is nonnegative, , and
for every indicated pair of indices, where when and otherwise, with division by zero equal to zero. No separate restrictions on are imposed. For the normalization requirement is impossible; for the predicate holds exactly when .
QAlgorithms.Papers.Independent.Extend50.P36.CoordinateCharacterization
For any Boolean and natural number , this defines a property using the following explicit constructions on the space with basis indexed by triples from . Let swap the indicated factors, let send to , let be the identity, and let denote conjugate transpose. For , set
For , define first-factor partial transpose by , put , , , , , and set
For any matrix , define . For any real six-tuple , define
with
Call a six-tuple admissible precisely when
and call invariant precisely when for every unitary matrix , where in the mixed case and otherwise. The defined property is the conjunction of three requirements: every positive semidefinite trace-one matrix that is invariant has admissible coordinates and satisfies ; every real six-tuple satisfying satisfies the equivalence that is positive semidefinite with trace one if and only if is admissible; and every admissible gives an invariant matrix with . There is no lower bound on : all formulas include , with inverse zero equal to zero and real square roots of negative numbers equal to zero. At , there are no trace-one matrices, so the first requirement has no matrices satisfying its premises.
QAlgorithms.Papers.Independent.Extend50.P36.IsClassicalQuantum
For arbitrary finite types , with decidable equality on , and an arbitrary complex matrix indexed by , this predicate means that there exist a unitary matrix indexed by , real weights , and complex matrices indexed by , such that for every , , every is positive semidefinite with trace , and
Here has its sole nonzero entry, equal to , at , is the conjugate transpose, and . If is empty the weight normalization is impossible; if is empty and is nonempty the required trace-one matrices cannot exist.
QAlgorithms.Papers.Independent.Extend50.P36.IsotropicStarJoinable
For every pair of natural numbers and every real-valued family , this proposition asserts the existence of a positive semidefinite complex matrix of trace , indexed by pairs with and , such that for every its specified marginal equals
Here exactly when and , and otherwise is zero; the required marginal has entries
The notation and means replacement of the indicated coordinate. No bounds on the are assumed, and division by zero gives zero. When , there are no marginal requirements, leaving only the existence of such a trace-one positive semidefinite ; when , its index set is empty and the trace-one requirement is impossible.
QAlgorithms.Papers.Independent.Extend50.P36.JoinableThree
For finite types and arbitrary complex matrices on , , and , respectively, this predicate means that there exists a positive semidefinite complex matrix on with trace satisfying, for all indices,
The predicate is false if any of is empty.
QAlgorithms.Papers.Independent.Extend50.P36.JoinableTwo
For finite types and arbitrary complex matrices on and on , this predicate means that there exists a positive semidefinite complex matrix on with trace such that, for every choice of indices,
The predicate is false if any of is empty.
QAlgorithms.Papers.Independent.Extend50.P36.JoiningList
For any natural numbers , dimensions for indices, subsets indexed by , complex matrices indexed by configurations on , and a complex matrix indexed by full configurations, this predicate means that is positive semidefinite with trace , and that for every and configurations on ,
where the combined configurations use or on and elsewhere. The dimensions may be zero and the subsets may be empty or repeated. When , the marginal conditions are vacuous and the predicate requires only that be positive semidefinite with trace ; if the full configuration set is empty, this trace requirement cannot hold.
QAlgorithms.Papers.Independent.Extend50.P36.JoinsTwo
For finite types , a complex matrix indexed by , and complex matrices indexed by and , respectively, this predicate means that is positive semidefinite with trace , and that
for all indicated indices. Empty finite types are allowed, but if any of is empty, no such can have trace .
QAlgorithms.Papers.Independent.Extend50.P36.NeighborhoodConfiguration
For every natural number , every assignment of natural-number dimensions to indices , and every finite subset of those indices, this abbreviates the type of assignments
Thus each selected index receives a value in its own dimension. If is empty there is exactly one such assignment, the empty assignment; if some has , no such assignment exists.
QAlgorithms.Papers.Independent.Extend50.P36.NormalizedGenerators
For a natural number and complex matrices indexed by , this predicate means that every is Hermitian with complex trace zero, and that for every pair of indices,
When or , the indexing set is empty and all these requirements hold vacuously.
QAlgorithms.Papers.Independent.Extend50.P36.PhysicalCoordinates
For any natural number and any six real coordinates , this predicate means exactly
There is no further restriction on , so and are included. When , the final implication imposes no additional condition.
QAlgorithms.Papers.Independent.Extend50.P36.Sharable
For finite types , arbitrary natural numbers , and a complex matrix on , this predicate means that there exists a positive semidefinite complex matrix on with trace such that, for every , , and all matrix indices,
where updates replace the indicated coordinate. If or , the marginal constraints are vacuous and this asks only for a density matrix on , without restricting . In particular, makes the predicate true for every ; an empty configuration type makes it false.
QAlgorithms.Papers.Independent.Extend50.P36.Shares
For finite types , natural numbers , a complex matrix on , and an arbitrary complex matrix on , this predicate means that is positive semidefinite with trace , and that for every , , , and ,
Here updates replace the indicated coordinate. If or , all marginal requirements are vacuous, so only the density-matrix condition on remains and is unrestricted. If is empty, the trace condition is impossible.
QAlgorithms.Papers.Independent.Extend50.P36.SharingIndex
For arbitrary types and natural numbers , this is the type : its elements are pairs , where and . No finiteness or nonemptiness of is assumed. When an exponent is zero, the corresponding function type has exactly one element, including when its codomain is empty.
QAlgorithms.Papers.Independent.Extend50.P36.TripleInvariant
For any natural number , Boolean choice , and complex matrix indexed by triples from , this predicate requires that for every complex unitary matrix ,
where is entrywise complex conjugation and is conjugate transpose. No density-matrix or Hermiticity condition on is included. The value is permitted, in which case is the unique matrix with empty index set and the required equality holds.
QAlgorithms.Papers.Independent.Extend50.P36.assembleNeighborhood
For every natural number , every dimension assignment for , every finite subset of these indices, an assignment for , and an assignment in the same respective ranges for , this defines the full assignment by
The complement is taken within . Empty or empty complement is allowed, and for the result is the unique empty assignment; a zero dimension at any index makes the required input assignments unavailable.
QAlgorithms.Papers.Independent.Extend50.P36.classicalAgreementLaw
For every natural number and real number , this defines a real-valued function on pairs by
There is no restriction on and no assertion that this function is a probability distribution. For its domain is empty; for its sole value is . Division uses the total convention .
QAlgorithms.Papers.Independent.Extend50.P36.classicalVertices
For every natural number , this defines a set of real triples, viewed as functions on , by
Thus the four displayed nonzero triples are included even when or .
QAlgorithms.Papers.Independent.Extend50.P36.collectiveCasimir
For arbitrary natural numbers , Boolean flags , and a family of complex matrices indexed by , this defines a matrix on pairs of configurations by
Here and are for a true flag and otherwise, the identities act on the corresponding configuration spaces, and the matrix placing at coordinate has entries
The square is matrix multiplication. No Hermiticity or normalization of is assumed. Empty sums are zero, so the result is zero when or , when both flags are false, or when both configuration lengths are zero.
QAlgorithms.Papers.Independent.Extend50.P36.collectiveTensorOperator
For any natural numbers , Boolean flag , and arbitrary complex matrix , this defines the complex matrix indexed by functions whose entries are
Thus only the factor at index is conjugated when the flag is true; no unitarity is assumed. For , there is one empty configuration and its sole matrix entry is the empty product . For , there are no configurations and the matrix has no entries.
QAlgorithms.Papers.Independent.Extend50.P36.collectiveTriple
For any natural number , Boolean flag , and arbitrary complex matrix , this defines a matrix on triples from by
where is entrywise complex conjugation. Explicitly, is the product of the corresponding three entries, with only the first entry conjugated when the flag is true. No unitarity is assumed, and gives a matrix with no entries.
QAlgorithms.Papers.Independent.Extend50.P36.convexStateMixture
For any type , any real number , and arbitrary complex matrices indexed by , this defines the matrix , with the real coefficients regarded as complex scalars. There is no restriction , and neither matrix is required to be positive semidefinite or have trace .
QAlgorithms.Papers.Independent.Extend50.P36.coordinateOperator
For a Boolean choice , any natural number , and six arbitrary real numbers , this defines a complex matrix on triples from . To specify it, let be the permutation matrices swapping the indicated tensor factors, and let send a basis triple to . Write for the identity and for conjugate transpose. Define first-factor partial transpose by
When , put , , , and define the six matrices
When , instead put , , , , , and define
The defined matrix is
Scalar coefficients act on matrices by scalar multiplication. No positivity or normalization condition is imposed on . All , including , are allowed; subtraction in these coefficients is ordinary scalar subtraction, every inverse of zero is zero, and the real square root of a negative number is zero. For the matrix has an empty index set, and for the term is omitted regardless of .
QAlgorithms.Papers.Independent.Extend50.P36.cqWitness
For each Boolean value , this defines the complex matrix on
Here is the identity matrix and the tensor product has entries .
QAlgorithms.Papers.Independent.Extend50.P36.crossSwap
For natural numbers , a left position , and a right position , this defines a complex matrix on configurations , where and . Its entry in row and column is
Thus the column configuration is changed by exchanging its values at left position and right position , leaving all other positions unchanged. If or , the corresponding required position does not exist; if and such positions exist, the configuration index set is empty.
QAlgorithms.Papers.Independent.Extend50.P36.diagonalAxisRotation
For every real number and real vector , let . This defines the real vector
There are no restrictions on or .
QAlgorithms.Papers.Independent.Extend50.P36.embeddedQuditGenerator
For natural numbers , a position , and an arbitrary complex matrix , this defines a complex matrix indexed by configurations , with entries
Equivalently, the entry is when and agree at every position other than , and is zero otherwise. No Hermiticity, trace, or normalization condition is imposed on . For , the product over other positions is empty and equals ; for , no required position exists; and for with a position present, the configuration index set is empty.
QAlgorithms.Papers.Independent.Extend50.P36.entangledEffect
For every natural number , including , this defines a complex matrix whose rows and columns are indexed by pairs from , with entries
Equivalently, , where and is the coordinate vector at ; no normalization factor is included. For , this is the matrix on an empty index set.
QAlgorithms.Papers.Independent.Extend50.P36.extremalSharingState
For arbitrary natural numbers , let be the set of pairs of -valued configurations on left positions and right positions. Define by
Let be the real supremum of all real for which there exists a nonzero with , using when this set is empty. Let , and let , where is the coordinate unit vector and is Euclidean orthogonal projection. The defined matrix is
where the trace and its inverse are complex scalars. No positivity restriction is imposed on . Division by zero is interpreted as zero, so or gives , and a zero trace of gives the zero output matrix. If and , the configuration space is empty and the output is the empty matrix.
QAlgorithms.Papers.Independent.Extend50.P36.fullAntisymmetricVector
For every natural number , this defines a vector in the complex Euclidean space whose coordinates are indexed by functions :
Here is the set of permutations of , is regarded as a complex scalar, and has coordinate at the function and elsewhere. When , the sum contains the unique empty permutation and the result is the coordinate vector at the unique empty function.
QAlgorithms.Papers.Independent.Extend50.P36.fullEigenkernelProjector
For any finite index type equipped with decidable equality, any complex matrix , and any real number , let
This defines the complex matrix with entries
where is the vector equal to at and elsewhere, the inner product is the standard complex Euclidean inner product, and is orthogonal projection onto the entire subspace . Neither Hermiticity of nor existence of a nonzero -eigenvector is assumed. If , the resulting matrix is zero; an empty index type is also permitted.
QAlgorithms.Papers.Independent.Extend50.P36.fullyMixed
For a finite type equipped with decidable equality, this defines the complex matrix , where is the identity matrix and the inverse is taken in . Thus its diagonal entries are and its off-diagonal entries are zero when is nonempty. The definition also includes empty : the scalar inverse of zero is defined to be zero, and the resulting empty matrix has trace zero.
QAlgorithms.Papers.Independent.Extend50.P36.isotropicConcurrence
For every natural number , including , and every real number , this defines
where all arithmetic inside the square root is real arithmetic. Division by zero gives zero, so the value is zero for and , for every . For every , the value is also zero when ; no upper bound on is assumed.
QAlgorithms.Papers.Independent.Extend50.P36.isotropicEllipse
For every natural number , this defines the set of real pairs satisfying the equality
There are no additional bounds on either coordinate. The subtraction and division are real arithmetic, with division by zero giving zero; thus for the condition is , and for it is .
QAlgorithms.Papers.Independent.Extend50.P36.isotropicOverlapState
For every natural number and every real number , with no restriction on either parameter, this defines the complex matrix
on the index set , where is the identity matrix and is when both and , and is otherwise. The coefficients are interpreted in , with division by zero giving zero; consequently this matrix is zero for or . No positivity or trace condition is imposed.
QAlgorithms.Papers.Independent.Extend50.P36.localConjugate
For finite types , arbitrary complex matrices indexed by , respectively, and an arbitrary complex matrix on , this defines
where denotes conjugate transpose. No unitarity, positivity, trace, or nonemptiness assumptions are imposed.
QAlgorithms.Papers.Independent.Extend50.P36.maximalRealEigenvalue
For any finite index type equipped with decidable equality and any complex matrix , this defines the real number
There is no Hermiticity assumption and no assumption that a real eigenvalue exists. The supremum uses the total real supremum operation, which returns for the empty set; consequently, the defined value is when has no real eigenvalues, including when is empty.
QAlgorithms.Papers.Independent.Extend50.P36.mixedBasis
For every natural number , let be complex matrices on triples from , with entries precisely when the row triple is obtained from the column triple by, respectively, , , , or , and entries otherwise. For any such matrix , define , and set , , , , and , where is conjugate transpose. With the identity matrix and the imaginary unit, this defines
Here is interpreted in the real or complex numbers as appropriate, so the displayed subtractions are ordinary subtraction. All natural , including and , are admitted: inversion of zero is defined as zero, and the real square root of a negative number is zero. In particular, the last two scalar coefficients are zero for ; at , the coefficients involving and are also zero. No linear independence or spanning property is asserted.
QAlgorithms.Papers.Independent.Extend50.P36.mixedCone
For every natural number , this defines the set of real triples satisfying
The modulus is complex modulus, the bar denotes complex conjugation, and all fractions and square roots displayed in the coefficients are real. The definition includes and : division by zero gives zero, and the real square root of a nonpositive number is zero.
QAlgorithms.Papers.Independent.Extend50.P36.mixedConePhase
For every natural number , this defines the complex number
where the fractions and square roots are computed in , so denotes real subtraction. Real division by zero gives zero, and the real square root of a nonpositive number is zero. In particular, and .
QAlgorithms.Papers.Independent.Extend50.P36.mixedRegion
For every natural number , let consist of the triples satisfying
This defines the set when , and the real convex hull of when ; the latter consists of finite convex combinations of points of that union. No positivity assumption on is made. All divisions are total, with division by zero giving zero, and real square roots of nonpositive numbers giving zero.
QAlgorithms.Papers.Independent.Extend50.P36.neighborhoodMarginal
For any natural number , dimensions for , a subset of these indices, and any complex matrix indexed by configurations with , this defines a matrix indexed by configurations on through
where takes its coordinates from on and from on , and similarly for . No positivity or normalization of , or positivity of the dimensions, is assumed. A configuration on an empty index set is unique; if some dimension on is zero, the sum is empty and equals zero.
QAlgorithms.Papers.Independent.Extend50.P36.pairMarginal
For arbitrary natural numbers , an arbitrary complex matrix indexed by functions , and indices , this defines a complex matrix indexed by pairs from , with entries
The two coordinate replacements occur in the displayed order. No positivity or normalization of , and no inequality , is required. If , entries with vanish, and otherwise the final replacement sets that coordinate to , overriding . For no indices exist; for the resulting matrix has an empty index set.
QAlgorithms.Papers.Independent.Extend50.P36.pairTwirl
For any natural number , Boolean flag , and arbitrary complex matrix indexed by pairs from , this defines
where is entrywise conjugation, is conjugate transpose, and is Haar measure normalized to total measure . No positivity or trace condition is imposed on ; is allowed and gives a matrix with no entries.
QAlgorithms.Papers.Independent.Extend50.P36.pseudoPure
For every real number and every vector in the complex Euclidean space indexed by , this defines the matrix
There is no requirement that have norm or that lie in , and the definition imposes no density-matrix condition on the result.
QAlgorithms.Papers.Independent.Extend50.P36.qubitJoiningWitness
This defines the complex matrix indexed by triples in as , where
Each displayed ket is the coordinate vector at that triple, and the matrix entry at triples is .
QAlgorithms.Papers.Independent.Extend50.P36.qubitSharingWitness
This defines the complex matrix indexed by
Each ket is the coordinate vector with value at its displayed pair and elsewhere, and a vector contributes the matrix with entries ; in particular, the vector is used without normalization.
QAlgorithms.Papers.Independent.Extend50.P36.quditSwapOperator
For every natural number , this defines the complex matrix indexed by whose entry at row and column is if and , and is otherwise. For it is the empty matrix; for it is the identity matrix.
QAlgorithms.Papers.Independent.Extend50.P36.realEigenvalues
For any finite index type equipped with decidable equality and any complex matrix indexed by , this defines the set
where carries its Euclidean norm and the real scalar is embedded in . No Hermiticity assumption is made on , and only real eigenvalues are included. The set can be empty; in particular, it is empty when is empty because no nonzero vector then exists.
QAlgorithms.Papers.Independent.Extend50.P36.rowSquares
For natural numbers and a finite Young diagram with exactly cells and first-column length at most , this defines the real number
where is the number of cells in row , with rows numbered from zero. The sum is empty and zero when , in which case such a diagram can exist only when ; it is also zero for the empty diagram.
QAlgorithms.Papers.Independent.Extend50.P36.sharingHamiltonian
For arbitrary natural numbers , let consist of pairs of functions and . For each left position and right position , let be the complex matrix whose row-, column- entry is exactly when , and is otherwise. This defines the matrix on
with the coefficient computed in . No positivity assumptions on are imposed. If or , the sum is empty and the matrix is zero, with division by zero also interpreted as zero; if and , its configuration index set is empty.
QAlgorithms.Papers.Independent.Extend50.P36.sharingMarginal
For finite types , natural numbers , an arbitrary complex matrix on , and indices , , this defines a complex matrix on by
where an update replaces just the specified coordinate. No positivity or trace condition is imposed on . The supplied indices require ; when either is zero, there is no corresponding index with which to evaluate this definition.
QAlgorithms.Papers.Independent.Extend50.P36.tableFour
This defines a function on all ordered pairs of natural numbers, returning either a real value or no value, according to
Every unlisted pair returns no value, including every pair containing zero.
QAlgorithms.Papers.Independent.Extend50.P36.transposeA
For every natural number and arbitrary complex matrix indexed by triples from , this defines the matrix
Thus the first coordinates of the row and column indices are exchanged, without complex conjugation. No Hermitian, positivity, or normalization assumption is imposed; gives a matrix with no entries.
QAlgorithms.Papers.Independent.Extend50.P36.triplePerm
For every natural number and , this defines a complex matrix indexed by triples . Its entry is exactly when , and is otherwise, where
The case is included and gives a matrix with no entries.
QAlgorithms.Papers.Independent.Extend50.P36.tripleSymmetryCoordinates
For a Boolean choice , any natural number , and any complex matrix indexed by triples from , this defines six real coordinates , for . Here swap the indicated tensor factors, sends to , is the identity, and denotes conjugate transpose. If , the matrices are
If , define
and use
No Hermiticity, positivity, trace, or invariance assumption is made on . The definition includes , using zero for division by zero and for the real square root of a negative number; when , all six traces and hence all six coordinates are zero.
QAlgorithms.Papers.Independent.Extend50.P36.tripleTwirl
For any natural number , Boolean flag , and arbitrary complex matrix indexed by triples from , this defines
where denotes conjugate transpose, denotes entrywise conjugation, and is Haar measure on the unitary group normalized to give the whole group measure . There is no positivity or trace assumption on , and is included, giving a matrix with no entries.
QAlgorithms.Papers.Independent.Extend50.P36.wernerBasis
For every natural number , consider complex matrices indexed by triples from . For a permutation of these triples, write for the matrix with entry when the row index equals applied to the column index, and otherwise. Define using, respectively, the maps , , , and . With the identity matrix, the imaginary unit, and conjugate transpose, this defines the six indexed matrices
This is a definition of the family, with no accompanying assertion of linear independence or spanning; is allowed and all six matrices then have no entries.
QAlgorithms.Papers.Independent.Extend50.P36.wernerConcurrence
For every real number , this defines the real number
which equals for and equals for . There is no restriction on .
QAlgorithms.Papers.Independent.Extend50.P36.wernerCubeRoot
This defines the complex constant
where is the imaginary unit.
QAlgorithms.Papers.Independent.Extend50.P36.wernerRegion
For every natural number and every three real numbers , define
The defined proposition holds exactly when and, additionally, if , or if . Here the absolute value is the complex modulus. No bounds on or positivity assumption on are imposed; and use the branch.
QAlgorithms.Papers.Independent.Extend50.P36.wernerSwapState
For every natural number and every real number , with no restriction on either parameter, this defines the complex matrix
on the index set , where is the identity matrix and
The coefficients are interpreted in . Division by zero is defined to give zero, so for or the resulting matrix is zero. The definition imposes no positivity or trace condition.
QAlgorithms.Papers.Independent.Extend50.P36.youngColumnSquareSum
For natural numbers and a finite Young diagram with exactly cells and first-column length at most , this defines the real number
where is the number of cells in column , with columns numbered from zero. The sum is zero when ; if , there is no diagram satisfying the input conditions.
QAlgorithms.Papers.Independent.Extend50.P36.youngEigenvalue
For natural numbers , let be finite Young diagrams with respectively cells, each having first-column length at most . Writing
this defines the real number
No compatibility between the three diagrams beyond their sizes and column bounds is required. Zero values of or are allowed; division by zero is defined to be zero, so the result is zero in either case.
QAlgorithms.Papers.Independent.Extend50.P36.youngSector
For natural numbers and finite Young diagrams of sizes , respectively, each with first-column length at most , this defines the matrix
on pairs of words of lengths and over , where denotes concatenation. The matrices are defined as follows, without requiring any additional compatibility of the diagrams. For a diagram of size , use the chosen bijection between its cells and ; let and be the permutations preserving, respectively, the row and column of every labelled cell. On the permutation group , form the matrix
let be its range in , let be the orthogonal projection onto , and let . Set . On words of length , let . Then
The definition includes and , using the unique empty word and the permutation group on the empty set.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.