Definitions for Asymptotic performance of port-based teleportation
DefinitionQAlgorithms_Papers_Independent_Extend50_P25The objects the formalized statements of Asymptotic performance of port-based teleportation (arXiv:1809.10751) are stated in. Each was checked against the paper by a blind read-back and a moderator.
Ports: Bob's N labelled d-dimensional ports (1809.10751v2, PDF p.11).portBranch: Effect-conditioned port output, tracing out Alice, the input and all other Bob ports. PDF pp.11,16,51, Eq. (7.3). The effect rather than its square root is legitimate because all of Alice's systems are traced out. The resource is fixed independently of X.PBTProtocol: Physical deterministic PBT data (PDF pp.9,11). Alice's finite space A includes purifications and classical flags; Bob can only retain the announced port.PBTProtocol.channel: The channel actually implemented by a PBT protocol (PDF p.11).pbtFidelity: Squared entanglement fidelity against identity (PDF p.9), reusing the frozen qudit normalized-Choi overlap. The d=0 totalization is excluded by all statements.diamondError: Full stabilized trace norm error against identity, without a factor 1/2 (PDF p.9). Reuse the frozen diamond norm on the linearized map; all physical channels are already linear. d=0 is a harmless totalization excluded from every theorem using this definition.pbtOptimalFidelity: Constructed optimum over BOTH resources and POVMs, including every finite Alice ancilla (PDF p.11). For d,N>0 the attainable set is nonempty and contained in [0,1].optimalDiamondError: Constructed minimum diamond error over the same physical model (PDF p.11). For d,N>0 the attainable set is nonempty and contained in [0,2].portProjector: The physical EPR projector on the input and port i, identity on all other ports. PDF p.17, Lemma 3.6.eprResource: N maximally entangled d-by-d pairs (PDF pp.11–13).standardMeasurement: PGM for the physical EPR ensemble, completed uniformly on its kernel (PDF p.12). The completion is irrelevant on ensemble support.standardFidelity: Fidelity of the constructed standard PGM/EPR protocol (PDF pp.4,12).HeraldedProtocol: Physical probabilistic PBT data: failure plus N success effects, and a success subchannel p_i id for each successful port (PDF p.13).HeraldedProtocol.success: Total heralded success probability (PDF p.13).pbtOptimalSuccess: Optimize the actual heralded physical model, including resource and POVM (PDF p.13).eprSuccess: Optimize the measurement only, with exactly N EPR pairs as resource (PDF p.13).BobSymmetric: Symmetric Werner marginal: diagonal-unitary AND permutation invariance, without a restriction to the totally symmetric subspace (PDF pp.14–15).SymmetricPurification: Unit pure resource with simultaneous port-permutation invariance and conjugate-U on Alice, U on Bob, plus its symmetric Werner marginal (PDF p.15, Proposition 3.3). Replacing U by its conjugate gives the equivalent source convention.conjugateChannel: Simultaneous conjugation of channel input and output (PDF pp.14–16).ConvexInvariantCost: The convex invariant channel costs explicitly allowed after Lemma 3.2 and Proposition 3.4 (PDF pp.14,16); no claim of exact preservation is imposed.NoWorse: Full conclusion of no-worse performance (PDF pp.14–16).SchurDiagram: Bounded row-tuples representing partitions of n into at most d rows (PDF p.9). The bound alpha_i<=n is automatic mathematically and ensures a concrete finite type.diagramWeylDimension: Source Eq.(2.3), PDF p.10: evaluate the frozen Weyl dimension formula on the actual padded rows. The row adapter is zero beyond the d allowed rows.spechtDimension: Specht dimension, hook-length formula rewritten as on PDF p.20, proof of (4.8).schurMass: The actual Schur–Weyl probability mass, Eq. (4.1), PDF p.18.fluctuation: Centered Schur–Weyl fluctuations, Eq. (4.3), PDF p.18.normalCoordinates: Independent standard real Gaussian coordinates (PDF p.9).gueMatrix: Concrete GUE matrix: diagonal variance 1, off-diagonal real/imaginary variance 1/2. PDF p.9.gueZero: Traceless GUE as the trace-centered pushforward, PDF p.9.gueSpectrum: Ordered eigenvalues of the concrete Hermitian traceless GUE matrix (PDF pp.9,18). The frozen spectral API sorts increasingly; Fin.rev restores the source's order.expectedLargest: Expected largest eigenvalue for the precise GUE normalization in the paper.dirichletFirst: First Dirichlet eigenvalue on the ordered simplex, intrinsically Euclidean. PDF pp.6,39,45. Coordinates z in R^(d-1) map to (z,1-sum z); their Gram matrix is I+11^T and inverse is I-11^T/d. Its constant volume factor sqrt(d) cancels in the Rayleigh quotient. Taking C_c^infinity functions gives the H_0^1 infimum. At d=1 the domain is the zero-dimensional point, its boundary is empty, and its lowest eigenvalue is 0.profileSimplex: Closed ordered probability simplex in the coordinates x=(z,1-sum z). PDF pp.39,42: the affine hyperplane carries its induced Euclidean metric.sampledProfileWeight: Unnormalized sampled profile, PDF p.43, Eq.(6.25). Only the restriction of a to the simplex is used; N>0 is required in the theorem.sampledProfileMass: The normalized q(mu)=eta_N a(mu/N)^2/N^(d-1) in Eq.(6.25), PDF p.43. The normalizing sum is constructed, and is eventually positive for source profiles.sampledProfileFidelity: Fidelity F_a of the sampled resource profile with its source measurement, PDF pp.43,56: substitute q=c*p into Eq.(3.6). The inner sum is exactly over partitions obtained by adding one box to alpha; there is no optimization over a.profileEnergy: Intrinsic Dirichlet energy integral of the source's normalized profile, PDF pp.42,45: sqrt(d) is the coordinate volume Jacobian, and I-11^T/d is the inverse metric. Derivatives within the closed simplex express C2 up to its boundary.dimensionCoefficient: Explicit coefficient appearing in the proof of Theorem 1.5, PDF p.47.smoothMaxInformation: Relative smoothing of max-mutual information in bits, specialized to phi+. PDF p.48. A single extended-real infimum flattens the three nested minimizations: subnormalized rho within purified distance eps, normalized sigma_B, and lambda with rho <= 2^lambda rho_A tensor sigma_B. EReal avoids junk real infima for empty or unbounded sets. The overlap condition is exactly P(phi+,rho)<=eps for 0<=eps<1.communicatedChannel: Entanglement-assisted encoding and decoding, with identity on Bob's retained ancilla during encoding (PDF p.50). d0 counts transmitted dimension only.IsQC: A qc-channel has output diagonal in the fixed classical basis (PDF p.50).binaryRoot: Binary root fidelity b(x,y), without a further outer square root (PDF p.52).portOperatorNorm: Euclidean complex operator norm, using Mathlib's bundled map rather than the real Bloch-matrix norm in Information100.P23 (PDF p.18).gammaInterval: Maximum of adjacent exponents from i through j-1 (PDF p.20). Only i<j is used; this range is then nonempty. NNReal encodes nonnegativity.
import Mathlib
import Definitions.Def_QAlgorithms_Defs_Channel
import Definitions.Def_QAlgorithms_Defs_ChannelDiamondNorm
import Definitions.Def_QAlgorithms_Defs_QuantumInformation
import Definitions.Def_QAlgorithms_Defs_MatrixDistances
import Definitions.Def_QAlgorithms_Defs_Hamiltonian
import Definitions.Def_QAlgorithms_Defs_QuditChannelFidelities
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P21
import Definitions.Def_QAlgorithms_Defs_TensorPermutationRepresentations
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P63
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P65
import Definitions.Def_QAlgorithms_Papers_Independent_Support50_P22
noncomputable section
namespace QAlgorithms.Papers.Independent.Extend50.P25
open QAlgorithms MeasureTheory
open QAlgorithms.Papers.Independent.Information100.P21 (Op)
open scoped BigOperators ComplexConjugate Matrix ComplexOrder
/-- Bob's N labelled d-dimensional ports (1809.10751v2, PDF p.11). -/
abbrev Ports (d N : ℕ) := Fin N → Fin d
/-- Effect-conditioned port output, tracing out Alice, the input and all other Bob ports.
PDF pp.11,16,51, Eq. (7.3). The effect rather than its square root is legitimate because
all of Alice's systems are traced out. The resource is fixed independently of X. -/
def portBranch {d N : ℕ} {A : Type*} [Fintype A]
(rho : Op (A × Ports d N)) (E : Op (Fin d × A)) (i : Fin N) :
Superop (Fin d) (Fin d) :=
fun X y z => ∑ a, ∑ b, ∑ u : A, ∑ v : A,
∑ s : Ports d N, ∑ t : Ports d N,
if s i = y ∧ t i = z ∧ (∀ j, j ≠ i → s j = t j) then
E (b,v) (a,u) * X a b * rho (u,s) (v,t) else 0
/-- Physical deterministic PBT data (PDF pp.9,11). Alice's finite space A includes
purifications and classical flags; Bob can only retain the announced port. -/
structure PBTProtocol (d N : ℕ) (A : Type*) [Fintype A] [DecidableEq A] where
resource : Op (A × Ports d N)
resource_state : IsDensityMatrix resource
measurement : Fin N → Op (Fin d × A)
measurement_povm : IsPOVM measurement
/-- The channel actually implemented by a PBT protocol (PDF p.11). -/
def PBTProtocol.channel {d N : ℕ} {A : Type*} [Fintype A] [DecidableEq A]
(P : PBTProtocol d N A) : Superop (Fin d) (Fin d) :=
fun X => ∑ i, portBranch P.resource (P.measurement i) i X
/-- Squared entanglement fidelity against identity (PDF p.9), reusing the frozen
qudit normalized-Choi overlap. The d=0 totalization is excluded by all statements. -/
def pbtFidelity (d : ℕ) (Phi : Superop (Fin d) (Fin d)) : ℝ :=
if hd : 0 < d then QAlgorithms.QuditFidelity.entanglementFidelity d hd Phi else 0
/-- Full stabilized trace norm error against identity, without a factor 1/2 (PDF p.9).
Reuse the frozen diamond norm on the linearized map; all physical channels are already
linear. d=0 is a harmless totalization excluded from every theorem using this definition. -/
def diamondError (d : ℕ) (Phi : Superop (Fin d) (Fin d)) : ℝ :=
if hd : 0 < d then
QAlgorithms.IntrinsicLearning.diamondNorm d hd
(QAlgorithms.Papers.Independent.Support50.P22.linearExtension Phi - LinearMap.id)
else 0
/-- Constructed optimum over BOTH resources and POVMs, including every finite Alice
ancilla (PDF p.11). For d,N>0 the attainable set is nonempty and contained in [0,1]. -/
def pbtOptimalFidelity (d N : ℕ) : ℝ :=
sSup {v | ∃ m : ℕ, ∃ P : PBTProtocol d N (Fin m), v = pbtFidelity d P.channel}
/-- Constructed minimum diamond error over the same physical model (PDF p.11).
For d,N>0 the attainable set is nonempty and contained in [0,2]. -/
def optimalDiamondError (d N : ℕ) : ℝ :=
sInf {v | ∃ m : ℕ, ∃ P : PBTProtocol d N (Fin m), v = diamondError d P.channel}
/-- The physical EPR projector on the input and port i, identity on all other ports.
PDF p.17, Lemma 3.6. -/
def portProjector (d N : ℕ) (i : Fin N) : Op (Fin d × Ports d N) :=
fun x y => if x.1 = x.2 i ∧ y.1 = y.2 i ∧ (∀ j, j ≠ i → x.2 j = y.2 j)
then (d : ℂ)⁻¹ else 0
/-- N maximally entangled d-by-d pairs (PDF pp.11–13). -/
def eprResource (d N : ℕ) : Op (Ports d N × Ports d N) :=
fun x y => if x.1 = x.2 ∧ y.1 = y.2 then ((d : ℂ)^N)⁻¹ else 0
/-- PGM for the physical EPR ensemble, completed uniformly on its kernel (PDF p.12).
The completion is irrelevant on ensemble support. -/
def standardMeasurement (d N : ℕ) : Fin N → Op (Fin d × Ports d N) :=
let S := ∑ i : Fin N, portProjector d N i
let R := cfc (fun x : ℝ => (Real.sqrt x)⁻¹) S
fun i => R * portProjector d N i * R + (N : ℂ)⁻¹ • (1 - R * S * R)
/-- Fidelity of the constructed standard PGM/EPR protocol (PDF pp.4,12). -/
def standardFidelity (d N : ℕ) : ℝ :=
pbtFidelity d (fun X => ∑ i : Fin N,
portBranch (eprResource d N) (standardMeasurement d N i) i X)
/-- Physical probabilistic PBT data: failure plus N success effects, and a success
subchannel p_i id for each successful port (PDF p.13). -/
structure HeraldedProtocol (d N : ℕ) (A : Type*) [Fintype A] [DecidableEq A] where
resource : Op (A × Ports d N)
resource_state : IsDensityMatrix resource
successEffect : Fin N → Op (Fin d × A)
failureEffect : Op (Fin d × A)
success_positive : ∀ i, (successEffect i).PosSemidef
failure_positive : failureEffect.PosSemidef
complete : failureEffect + ∑ i, successEffect i = 1
weight : Fin N → ℝ
weight_nonnegative : ∀ i, 0 ≤ weight i
exact_success : ∀ i X, portBranch resource (successEffect i) i X = (weight i : ℂ) • X
/-- Total heralded success probability (PDF p.13). -/
def HeraldedProtocol.success {d N : ℕ} {A : Type*} [Fintype A] [DecidableEq A]
(P : HeraldedProtocol d N A) : ℝ := ∑ i, P.weight i
/-- Optimize the actual heralded physical model, including resource and POVM (PDF p.13). -/
def pbtOptimalSuccess (d N : ℕ) : ℝ :=
sSup {p | ∃ m : ℕ, ∃ P : HeraldedProtocol d N (Fin m), p = P.success}
/-- Optimize the measurement only, with exactly N EPR pairs as resource (PDF p.13). -/
def eprSuccess (d N : ℕ) : ℝ :=
sSup {p | ∃ P : HeraldedProtocol d N (Ports d N),
P.resource = eprResource d N ∧ p = P.success}
/-- Symmetric Werner marginal: diagonal-unitary AND permutation invariance,
without a restriction to the totally symmetric subspace (PDF pp.14–15). -/
def BobSymmetric {d N : ℕ} (rho : Op (Ports d N)) : Prop :=
(∀ U : Matrix.unitaryGroup (Fin d) ℂ,
conjSuperop (QAlgorithms.Papers.Independent.Information100.P63.tensorPower N (U : Op (Fin d))) rho = rho) ∧
(∀ pi : Equiv.Perm (Fin N), conjSuperop (QAlgorithms.Schur.tensorPermutation d N pi) rho = rho)
/-- Unit pure resource with simultaneous port-permutation invariance and conjugate-U
on Alice, U on Bob, plus its symmetric Werner marginal (PDF p.15, Proposition 3.3).
Replacing U by its conjugate gives the equivalent source convention. -/
def SymmetricPurification {d N : ℕ} (rho : Op (Ports d N × Ports d N)) : Prop :=
∃ psi : EuclideanSpace ℂ (Ports d N × Ports d N), ‖psi‖ = 1 ∧
rho = pureDensity psi ∧ BobSymmetric (traceLeft rho) ∧
(∀ pi : Equiv.Perm (Fin N),
(Matrix.kronecker (QAlgorithms.Schur.tensorPermutation d N pi) (QAlgorithms.Schur.tensorPermutation d N pi)).mulVec psi = psi) ∧
(∀ U : Matrix.unitaryGroup (Fin d) ℂ,
(Matrix.kronecker (QAlgorithms.Papers.Independent.Information100.P63.tensorPower N (fun i j => conj ((U : Op (Fin d)) i j)))
(QAlgorithms.Papers.Independent.Information100.P63.tensorPower N (U : Op (Fin d)))).mulVec psi = psi)
/-- Simultaneous conjugation of channel input and output (PDF pp.14–16). -/
def conjugateChannel {d : ℕ} (U : Matrix.unitaryGroup (Fin d) ℂ)
(Phi : Superop (Fin d) (Fin d)) : Superop (Fin d) (Fin d) :=
fun X => conjSuperop (U : Op (Fin d)) (Phi (conjSuperop ((U : Op (Fin d))ᴴ) X))
/-- The convex invariant channel costs explicitly allowed after Lemma 3.2 and
Proposition 3.4 (PDF pp.14,16); no claim of exact preservation is imposed. -/
def ConvexInvariantCost {d : ℕ} (J : Superop (Fin d) (Fin d) → ℝ) : Prop :=
(∀ Phi Psi, IsChannel Phi → IsChannel Psi → ∀ t : ℝ, 0 ≤ t → t ≤ 1 →
J (fun X => (t : ℂ) • Phi X + ((1-t : ℝ) : ℂ) • Psi X) ≤
t * J Phi + (1-t) * J Psi) ∧
(∀ U Phi, IsChannel Phi → J (conjugateChannel U Phi) = J Phi)
/-- Full conclusion of no-worse performance (PDF pp.14–16). -/
def NoWorse {d : ℕ} (new old : Superop (Fin d) (Fin d)) : Prop :=
pbtFidelity d old ≤ pbtFidelity d new ∧ diamondError d new ≤ diamondError d old ∧
∀ J, ConvexInvariantCost J → J new ≤ J old
/-- Bounded row-tuples representing partitions of n into at most d rows (PDF p.9).
The bound alpha_i<=n is automatic mathematically and ensures a concrete finite type. -/
def SchurDiagram (d n : ℕ) :=
{a : Fin d → Fin (n+1) // (∑ i, (a i).val) = n ∧
∀ i j, i ≤ j → (a j).val ≤ (a i).val}
/-- Finite padded Young diagrams, with a decidable constraint predicate (PDF p.9). -/
instance schurDiagramFintype (d n : ℕ) : Fintype (SchurDiagram d n) := by
classical
unfold SchurDiagram
infer_instance
/-- Source Eq.(2.3), PDF p.10: evaluate the frozen Weyl dimension formula
on the actual padded rows. The row adapter is zero beyond the d allowed rows. -/
def diagramWeylDimension {d n : ℕ} (a : SchurDiagram d n) : ℝ :=
QAlgorithms.Papers.Independent.Information100.P65.weylDimension
(fun i => if h : i < d then (a.val ⟨i,h⟩).val else 0) d
/-- Specht dimension, hook-length formula rewritten as on PDF p.20, proof of (4.8). -/
def spechtDimension {d n : ℕ} (a : SchurDiagram d n) : ℝ :=
(n.factorial : ℝ) * diagramWeylDimension a *
(∏ i : Fin d, ((d - 1 - i.val).factorial : ℝ)) /
(∏ i : Fin d, (((a.val i).val + d - 1 - i.val).factorial : ℝ))
/-- The actual Schur–Weyl probability mass, Eq. (4.1), PDF p.18. -/
def schurMass {d n : ℕ} (a : SchurDiagram d n) : ℝ :=
spechtDimension a * diagramWeylDimension a / (d : ℝ)^n
/-- Centered Schur–Weyl fluctuations, Eq. (4.3), PDF p.18. -/
def fluctuation {d n : ℕ} (a : SchurDiagram d n) (i : Fin d) : ℝ :=
(((a.val i).val : ℝ) - (n : ℝ)/d) / Real.sqrt ((n : ℝ)/d)
/-- Independent standard real Gaussian coordinates (PDF p.9). -/
def normalCoordinates (I : Type*) [Fintype I] : Measure (I → ℝ) :=
Measure.pi (fun _ : I => ProbabilityTheory.gaussianReal 0 1)
/-- Concrete GUE matrix: diagonal variance 1, off-diagonal real/imaginary variance 1/2.
PDF p.9. -/
def gueMatrix (d : ℕ) (x : (Fin d × Fin d) → ℝ) : Op (Fin d) :=
fun i j => if i = j then (x (i,i) : ℂ)
else if i < j then ((x (i,j) : ℂ) + Complex.I * (x (j,i) : ℂ)) / (Real.sqrt 2 : ℂ)
else ((x (j,i) : ℂ) - Complex.I * (x (i,j) : ℂ)) / (Real.sqrt 2 : ℂ)
/-- Traceless GUE as the trace-centered pushforward, PDF p.9. -/
def gueZero (d : ℕ) (x : (Fin d × Fin d) → ℝ) : Op (Fin d) :=
gueMatrix d x - ((gueMatrix d x).trace / (d : ℂ)) • (1 : Op (Fin d))
/-- Ordered eigenvalues of the concrete Hermitian traceless GUE matrix (PDF pp.9,18).
The frozen spectral API sorts increasingly; Fin.rev restores the source's order. -/
def gueSpectrum (d : ℕ) (x : (Fin d × Fin d) → ℝ) (j : Fin d) : ℝ :=
ascEigenvalues (gueZero d x) (Fin.cast (Fintype.card_fin d).symm (Fin.rev j))
/-- Expected largest eigenvalue for the precise GUE normalization in the paper. -/
def expectedLargest (d : ℕ) (hd : 0 < d) : ℝ :=
∫ x, gueSpectrum d x ⟨0,hd⟩ ∂normalCoordinates (Fin d × Fin d)
/-- First Dirichlet eigenvalue on the ordered simplex, intrinsically Euclidean.
PDF pp.6,39,45. Coordinates z in R^(d-1) map to (z,1-sum z); their Gram matrix
is I+11^T and inverse is I-11^T/d. Its constant volume factor sqrt(d) cancels in
the Rayleigh quotient. Taking C_c^infinity functions gives the H_0^1 infimum. At d=1 the
domain is the zero-dimensional point, its boundary is empty, and its lowest eigenvalue is 0. -/
def dirichletFirst (d : ℕ) : ℝ :=
let point := fun z : EuclideanSpace ℝ (Fin (d-1)) => fun i : Fin d =>
if h : i.val < d-1 then z ⟨i.val,h⟩ else 1 - ∑ j, z j
let domain : Set (EuclideanSpace ℝ (Fin (d-1))) :=
{z | (∀ i, 0 < point z i) ∧ ∀ i j, i < j → point z j < point z i}
let energy := fun (f : EuclideanSpace ℝ (Fin (d-1)) → ℝ) z =>
‖fderiv ℝ f z‖^2 -
(∑ i : Fin (d-1), (fderiv ℝ f z)
(WithLp.toLp 2 (fun j => if j = i then (1 : ℝ) else 0)))^2 / (d : ℝ)
sInf {v : ℝ | ∃ f : EuclideanSpace ℝ (Fin (d-1)) → ℝ,
ContDiff ℝ (⊤ : ℕ∞) f ∧ HasCompactSupport f ∧ tsupport f ⊆ domain ∧
Integrable (fun z => f z ^ 2) ∧ Integrable (energy f) ∧
(∫ z, f z ^ 2) = 1 ∧ v = ∫ z, energy f z}
/-- Closed ordered probability simplex in the coordinates x=(z,1-sum z).
PDF pp.39,42: the affine hyperplane carries its induced Euclidean metric. -/
def profileSimplex (d : ℕ) : Set (EuclideanSpace ℝ (Fin (d-1))) :=
let point := fun z : EuclideanSpace ℝ (Fin (d-1)) => fun i : Fin d =>
if h : i.val < d-1 then z ⟨i.val,h⟩ else 1 - ∑ j, z j
{z | (∀ i, 0 ≤ point z i) ∧ ∀ i j, i < j → point z j ≤ point z i}
/-- Unnormalized sampled profile, PDF p.43, Eq.(6.25). Only the restriction of a
to the simplex is used; N>0 is required in the theorem. -/
def sampledProfileWeight (d N : ℕ) (a : EuclideanSpace ℝ (Fin (d-1)) → ℝ)
(mu : SchurDiagram d N) : ℝ :=
a (WithLp.toLp 2 (fun i : Fin (d-1) =>
(((mu.val ⟨i.val, by omega⟩).val : ℝ) / (N : ℝ)))) ^ 2
/-- The normalized q(mu)=eta_N a(mu/N)^2/N^(d-1) in Eq.(6.25), PDF p.43.
The normalizing sum is constructed, and is eventually positive for source profiles. -/
def sampledProfileMass (d N : ℕ) (a : EuclideanSpace ℝ (Fin (d-1)) → ℝ)
(mu : SchurDiagram d N) : ℝ :=
sampledProfileWeight d N a mu / ∑ nu : SchurDiagram d N, sampledProfileWeight d N a nu
/-- Fidelity F_a of the sampled resource profile with its source measurement,
PDF pp.43,56: substitute q=c*p into Eq.(3.6). The inner sum is exactly over
partitions obtained by adding one box to alpha; there is no optimization over a. -/
def sampledProfileFidelity (d N : ℕ) (a : EuclideanSpace ℝ (Fin (d-1)) → ℝ) : ℝ :=
(∑ alpha : SchurDiagram d (N-1),
(∑ mu : SchurDiagram d N,
if ∃ j : Fin d, ∀ i : Fin d,
(mu.val i).val = (alpha.val i).val + (if i = j then 1 else 0)
then Real.sqrt (sampledProfileMass d N a mu) else 0)^2) / (d : ℝ)^2
/-- Intrinsic Dirichlet energy integral of the source's normalized profile,
PDF pp.42,45: sqrt(d) is the coordinate volume Jacobian, and I-11^T/d is the
inverse metric. Derivatives within the closed simplex express C2 up to its boundary. -/
def profileEnergy (d : ℕ) (a : EuclideanSpace ℝ (Fin (d-1)) → ℝ) : ℝ :=
Real.sqrt (d : ℝ) * ∫ z in profileSimplex d,
(‖fderivWithin ℝ a (profileSimplex d) z‖^2 -
(∑ i : Fin (d-1), (fderivWithin ℝ a (profileSimplex d) z)
(WithLp.toLp 2 (fun j => if j = i then (1 : ℝ) else 0)))^2 / (d : ℝ))
example (d N : ℕ) (mu : SchurDiagram d N) :
sampledProfileMass d N (fun _ => 0) mu = 0 := by
simp [sampledProfileMass, sampledProfileWeight]
/-- Explicit coefficient appearing in the proof of Theorem 1.5, PDF p.47. -/
def dimensionCoefficient (d : ℕ) : ℝ :=
((d : ℝ)-1)/2 * (Real.sqrt (((d : ℝ)+1)/2) + 1)^2 * (d : ℝ) *
((d : ℝ)*((d : ℝ)-1)/Real.sqrt 2 + Real.sqrt ((d : ℝ)*((d : ℝ)-1)) + Real.sqrt 2)
/-- Relative smoothing of max-mutual information in bits, specialized to phi+.
PDF p.48. A single extended-real infimum flattens the three nested minimizations:
subnormalized rho within purified distance eps, normalized sigma_B, and lambda with
rho <= 2^lambda rho_A tensor sigma_B. EReal avoids junk real infima for empty or
unbounded sets. The overlap condition is exactly P(phi+,rho)<=eps for 0<=eps<1. -/
def smoothMaxInformation (d : ℕ) (eps : ℝ) : EReal :=
sInf {v : EReal | ∃ rho : Op (Fin d × Fin d), rho.PosSemidef ∧ rho.trace.re ≤ 1 ∧
1 - eps^2 ≤ (∑ i : Fin d, ∑ j : Fin d, rho (i,i) (j,j)).re / (d : ℝ) ∧
∃ sigma : Op (Fin d), IsDensityMatrix sigma ∧ ∃ t : ℝ,
(((Real.rpow 2 t : ℝ) : ℂ) •
Matrix.kronecker (fun i j => ∑ k : Fin d, rho (i,k) (j,k)) sigma - rho).PosSemidef ∧
v = (t : EReal)}
/-- Entanglement-assisted encoding and decoding, with identity on Bob's retained
ancilla during encoding (PDF p.50). d0 counts transmitted dimension only. -/
def communicatedChannel {d d0 a b : ℕ} (rho : Op (Fin a × Fin b))
(E : Superop (Fin d × Fin a) (Fin d0))
(D : Superop (Fin d0 × Fin b) (Fin d)) : Superop (Fin d) (Fin d) :=
fun X => D (fun y z =>
E (fun u v => X u.1 v.1 * rho (u.2,y.2) (v.2,z.2)) y.1 z.1)
/-- A qc-channel has output diagonal in the fixed classical basis (PDF p.50). -/
def IsQC {A B : Type*} [Fintype A] [Fintype B] [DecidableEq A]
(E : Superop A B) : Prop :=
IsChannel E ∧ ∀ X i j, i ≠ j → E X i j = 0
/-- Binary root fidelity b(x,y), without a further outer square root (PDF p.52). -/
def binaryRoot (x y : ℝ) : ℝ :=
Real.sqrt (x*y) + Real.sqrt ((1-x)*(1-y))
/-- Euclidean complex operator norm, using Mathlib's bundled map rather than
the real Bloch-matrix norm in Information100.P23 (PDF p.18). -/
def portOperatorNorm {A : Type*} [Fintype A] (T : Op A) : ℝ := by
classical
exact ‖Matrix.toEuclideanCLM (𝕜 := ℂ) T‖
/- Sanity checks for the constructed objects. No theorem proof is part of this draft. -/
example {A B : Type*} (X : Op A) (Y : Op B) (a c : A) (b e : B) :
Matrix.kronecker X Y (a,b) (c,e) = X a c * Y b e := rfl
example {d N : ℕ} {A : Type*} [Fintype A] [DecidableEq A]
(P : PBTProtocol d N A) (X : Op (Fin d)) :
P.channel X = ∑ i, portBranch P.resource (P.measurement i) i X := rfl
example {d N : ℕ} {A : Type*} [Fintype A] [DecidableEq A]
(P : HeraldedProtocol d N A) : P.success = ∑ i, P.weight i := rfl
example {d : ℕ} (U : Op (Fin d)) : QAlgorithms.Papers.Independent.Information100.P63.tensorPower 0 U = 1 := by
ext x y
simp [QAlgorithms.Papers.Independent.Information100.P63.tensorPower,
Matrix.one_apply, Subsingleton.elim x y]
example (x : (Fin 1 × Fin 1) → ℝ) : gueZero 1 x = 0 := by
ext i j
fin_cases i
fin_cases j
simp [gueZero, gueMatrix, Matrix.trace, Matrix.one_apply]
example : binaryRoot 0 0 = 1 := by norm_num [binaryRoot]
example (Phi : Superop (Fin 0) (Fin 0)) : pbtFidelity 0 Phi = 0 := by
simp [pbtFidelity]
example : dimensionCoefficient 1 = 0 := by
norm_num [dimensionCoefficient]
/-- Maximum of adjacent exponents from i through j-1 (PDF p.20).
Only i<j is used; this range is then nonempty. NNReal encodes nonnegativity. -/
def gammaInterval (d : ℕ) (gamma : Fin (d-1) → NNReal) (i j : Fin d) : ℝ :=
((Finset.univ.filter (fun k : Fin (d-1) => i.val ≤ k.val ∧ k.val < j.val)).sup gamma : NNReal)
end QAlgorithms.Papers.Independent.Extend50.P25
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
QAlgorithms.Papers.Independent.Extend50.P25.BobSymmetric
For arbitrary natural numbers , let , and let be any complex matrix on , without a density-matrix assumption. It is Bob-symmetric precisely when both of the following invariances hold:
where
The dagger denotes conjugate transpose. The definition includes , when has one element and the empty product equals , so both invariances hold for every scalar matrix; it also includes .
QAlgorithms.Papers.Independent.Extend50.P25.ConvexInvariantCost
For any natural number , a real-valued function on all functions is a convex invariant cost precisely when it satisfies
for every pair of channels and every real with , and
for every unitary and every channel . Here a channel means a function having a finite Kraus representation: there exist a natural number and matrices such that and for every . The two requirements constrain only at the indicated channels and their combinations or conjugations; no further property of its values on other functions is required. The definition includes , and are included.
QAlgorithms.Papers.Independent.Extend50.P25.HeraldedProtocol
For natural numbers and a finite type with decidable equality, put , , and let denote complex matrices indexed by . A heralded protocol consists of a positive semidefinite matrix with complex trace , matrices for every , a matrix on the same space, and real numbers . Every and must be positive semidefinite, and . For every , every complex matrix , and every , they must satisfy
Here the indicator means that the summand is zero unless its stated conditions hold. The equality applies to arbitrary , without positivity or normalization assumptions. No positivity assumption is imposed on or ; when , the branch conditions are vacuous and , while an empty resource index space cannot support a matrix of trace .
QAlgorithms.Papers.Independent.Extend50.P25.HeraldedProtocol.success
For arbitrary natural numbers , a finite type with decidable equality, and a heralded protocol , its success is the real number
Here, writing and , the protocol contains a positive semidefinite resource matrix on of trace , positive semidefinite matrices on summing to the identity, and nonnegative real weights such that, for every complex matrix on ,
for every and . The definition of success uses only these weights. In particular, for it is the empty sum, hence .
QAlgorithms.Papers.Independent.Extend50.P25.IsQC
For finite types and , with decidable equality on , and any function from complex matrices to complex matrices, this predicate means that admits a finite trace-preserving Kraus representation and every output of is diagonal. Explicitly, there exist and matrices , indexed by , such that and for every complex matrix ; additionally, for every and all distinct . The condition on outputs applies to all matrices, without requiring to be positive or have trace one. Empty finite types and are included, with empty sums interpreted as zero.
QAlgorithms.Papers.Independent.Extend50.P25.NoWorse
For any natural number and any two functions , the relation means
for every real-valued function on such functions that is convex on channels and invariant under for every unitary . Explicitly, convexity means for channels and ; a channel is a function with . For , let when and otherwise, put , and define
where , is the corresponding matrix unit, , and the supremum is over all complex matrices on . The square root is defined by continuous functional calculus; amplification of any map means . For , both and are defined to be . No channel or linearity assumption is imposed on either or .
QAlgorithms.Papers.Independent.Extend50.P25.PBTProtocol.channel
For any natural numbers , finite type with a finite enumeration and decidable equality, and protocol , let , let be its positive semidefinite, trace-one resource matrix on , and let be its positive semidefinite measurement matrices on , satisfying . The definition assigns the matrix-valued function
Thus it adds the contribution from every port. A sum over no ports is zero; this declaration defines the function and does not itself assert a channel property.
QAlgorithms.Papers.Independent.Extend50.P25.PBTProtocol
For natural numbers and a finite type equipped with a finite enumeration and decidable equality, a protocol consists of a complex matrix indexed by , where , together with proofs that is positive semidefinite and , and a family of complex matrices , indexed by , acting on , together with proofs that every is positive semidefinite and
Zero values of and empty are not excluded by the parameters, although the required proofs can make such data impossible: empty is incompatible with the resource having trace one; likewise makes the resource index set empty; and is incompatible with the two normalization requirements. When , the measurement requirement is an equality of empty matrices and imposes no additional restriction on the resource.
QAlgorithms.Papers.Independent.Extend50.P25.Ports
For any natural numbers , is the set of functions from to , equivalently the set of -tuples of -valued labels. When , it contains exactly the empty tuple, including when ; when , it is empty.
QAlgorithms.Papers.Independent.Extend50.P25.SchurDiagram
For natural numbers , a Schur diagram is a tuple of natural numbers , each belonging to , such that
Thus the tuple is weakly decreasing, and zero entries are allowed. The definition includes , when the unique tuple is identically zero, and , when the empty tuple qualifies exactly when .
QAlgorithms.Papers.Independent.Extend50.P25.SymmetricPurification
For arbitrary natural numbers , put . A complex matrix on has a symmetric purification in the stated sense precisely when there exists a complex Euclidean vector on with and , such that, defining
one has for every unitary , for every permutation of the coordinates, and additionally
where is entrywise complex conjugation and is the matrix Kronecker product. These are exact vector equalities. Zero parameters are included: for , the vector space is one-dimensional and these conditions reduce to and ; for , no unit vector exists.
QAlgorithms.Papers.Independent.Extend50.P25.binaryRoot
For arbitrary real numbers and , this defines the real-valued function
There is no assumption that . Each real square root is defined to be zero when its argument is negative.
QAlgorithms.Papers.Independent.Extend50.P25.communicatedChannel
For arbitrary natural numbers , an arbitrary complex matrix indexed by , and arbitrary functions from complex matrices on to complex matrices and from complex matrices on to complex matrices, the declaration defines the function , where
Thus the matrix supplied to has entry at row and column . No density, positivity, linearity, or channel hypotheses are imposed on , and zero values of any of the four dimensions are allowed.
QAlgorithms.Papers.Independent.Extend50.P25.conjugateChannel
For any natural number , any unitary matrix , and any function , the function called is defined on every complex matrix by
No linearity, positivity, trace preservation, or channel assumption is imposed on . The definition also applies to .
QAlgorithms.Papers.Independent.Extend50.P25.diagramWeylDimension
For arbitrary natural numbers and a weakly decreasing tuple of integers in with , the real number called its diagram Weyl dimension is
where all entries and indices in the fractions are interpreted as real numbers. The underlying row function is extended by zero at indices , although those entries do not occur in this product. Each displayed denominator is positive because ; for or , the product is empty and equals , whenever a tuple satisfying the hypotheses exists.
QAlgorithms.Papers.Independent.Extend50.P25.diamondError
For any natural number and arbitrary function from complex matrices to complex matrices, the value is zero if . For , let be the matrix with its sole nonzero entry equal to one at , form the complex-linear map
and define
Here , with the square root defined by continuous functional calculus, and the tensor extension applies to each block with fixed. The optimization includes arbitrary complex matrices , without positivity or Hermiticity restrictions, and has no factor of . No linearity or channel assumption is imposed on ; the definition uses , which is constructed from its values on matrix units.
QAlgorithms.Papers.Independent.Extend50.P25.dimensionCoefficient
For every natural number , the declaration defines the real number
Here every occurrence of has already been converted to a real number, so is ordinary real subtraction. The values and are included, and both give zero.
QAlgorithms.Papers.Independent.Extend50.P25.dirichletFirst
For every natural number , set , using subtraction truncated at zero, and work on Euclidean . For and , define if , and otherwise; let consist of those for which every and whenever . For a real-valued function , define
where is its real Fréchet derivative and is the -th Euclidean coordinate vector. The declaration defines as the real infimum of over all infinitely continuously differentiable having compact support, whose closed support is contained in , such that both and are integrable with respect to Euclidean volume and . No positivity assumption on is imposed: for the conditions defining are vacuous and the energy uses the totalized quotient ; for , is also the singleton zero-dimensional space and the energy is zero. A real infimum of an empty or unbounded-below set is defined to be zero.
QAlgorithms.Papers.Independent.Extend50.P25.eprResource
For any natural numbers , let . The definition gives a complex matrix on by
The power and inverse are taken in , with and . For , is a singleton and this is the matrix with entry one, including when ; for , it is an empty matrix.
QAlgorithms.Papers.Independent.Extend50.P25.eprSuccess
For any natural numbers , put and . The quantity is the real supremum of over protocols whose auxiliary index set is exactly and whose resource matrix is exactly
with the inverse and power taken in . Such a protocol must have this resource positive semidefinite with trace , positive semidefinite matrices on satisfying , and nonnegative real weights satisfying
for every , every complex matrix on , and every . No maximizing protocol is asserted to exist. The parameters may be zero, empty sums are zero, and ; the real supremum is if its defining set is empty or unbounded above.
QAlgorithms.Papers.Independent.Extend50.P25.expectedLargest
For every natural number with , take a real array under the product measure of independent Gaussian coordinates of mean zero and variance one. Form the Hermitian matrix with , for , and for , and set . The declaration defines
where is that product Gaussian measure and is the first entry of the descending eigenvalue list, counting multiplicities. The integral is the real measure-theoretic integral, whose total definition gives zero if its integrand is not integrable. The hypothesis excludes ; for , , so the value is zero.
QAlgorithms.Papers.Independent.Extend50.P25.fluctuation
For natural numbers , a nonincreasing sequence of natural numbers at most with sum , and an index , the declaration defines
where division and square root are real operations. The index assumption forces , but is allowed: then every , and the value is , since division by zero is defined to be zero.
QAlgorithms.Papers.Independent.Extend50.P25.gammaInterval
For every natural number , every function , with this domain interpreted as having elements using natural-number subtraction, and every , the real number is the maximum of over indices satisfying , with maximum when there are no such indices. In particular, it is whenever ; for , the function has empty domain and the sole value, at , is . For , there are no possible arguments .
QAlgorithms.Papers.Independent.Extend50.P25.gueMatrix
For every natural number and every real array , the declaration defines a complex matrix by
The array is arbitrary; no probability distribution is assumed. The case defines the empty matrix.
QAlgorithms.Papers.Independent.Extend50.P25.gueSpectrum
For every natural number , real array , and index , let have diagonal entries , upper triangular entries , and lower triangular entries , and set . The declaration defines to be the entry at position in the ascending eigenvalue list of , counting multiplicities; equivalently, it is the eigenvalue at position in descending order, starting at position zero. The underlying ascending-list definition returns zeros for a non-Hermitian matrix; here is Hermitian by its displayed entries. There is no admissible index when .
QAlgorithms.Papers.Independent.Extend50.P25.gueZero
For every natural number and real array , form the complex matrix with diagonal entries , upper triangular entries , and lower triangular entries . The declaration defines
For , its diagonal entries are , and its off-diagonal entries are those of . The case is included: the trace and the quotient are zero, and the result is the empty matrix.
QAlgorithms.Papers.Independent.Extend50.P25.normalCoordinates
For any type equipped with a finite enumeration, the declaration defines a measure on the space of functions as the product, over all , of the real Gaussian measure with mean and variance . Thus its coordinates are independent standard real Gaussian variables. The empty index type is included; its function space has one element, and the product measure assigns that element mass .
QAlgorithms.Papers.Independent.Extend50.P25.optimalDiamondError
For any natural numbers , this is the real infimum over all natural numbers , positive semidefinite trace-one resource matrices on , and positive semidefinite measurement matrices on with , where , of the error defined as follows:
For , set , where are the matrix units; the error is , over all complex matrices on two -dimensional registers, with and the tensor extension acting separately on each reference-index block. For , the error is zero. No attainment of the infimum is asserted. The parameter admits no trace-one resource; when or , the protocol set is empty and the real infimum is defined to be zero. The value is also zero when .
QAlgorithms.Papers.Independent.Extend50.P25.pbtFidelity
For any natural number and arbitrary function from complex matrices to complex matrices, the value is zero if . If , define the vector , indexed by pairs , by , and let . The value is
No linearity or channel assumption is imposed on .
QAlgorithms.Papers.Independent.Extend50.P25.pbtOptimalFidelity
For any natural numbers , this is the real supremum over all natural numbers , all positive semidefinite trace-one matrices on , and all families of positive semidefinite matrices on satisfying , where , of the following fidelity. Define
For , its fidelity is , where , , and the tensor extension applies separately to each block with fixed reference indices ; for , its fidelity is defined to be zero. The supremum need not be attained. The parameter is included but admits no trace-one resource; when or , there are no protocols and the real supremum of the empty set is zero. The value is also zero when .
QAlgorithms.Papers.Independent.Extend50.P25.pbtOptimalSuccess
For any natural numbers , put and . The quantity is the real supremum of all numbers obtained by choosing a natural number , an auxiliary set , a positive semidefinite resource matrix on of trace , positive semidefinite matrices on with , and real weights , subject to the identities
for every , arbitrary complex matrix on , and . The supremum ranges over all such finite auxiliary dimensions; it does not assert attainment. Zero values of are included, although an empty resource space makes the trace-one requirement impossible. This is a supremum in , whose convention gives for an empty or unbounded-above set.
QAlgorithms.Papers.Independent.Extend50.P25.portBranch
Let be natural numbers, let be a finite type with a specified finite enumeration, and write . For arbitrary complex square matrices indexed by and indexed by , and any , the definition gives a function from complex matrices to complex matrices by
There are no positivity, normalization, or measurement assumptions on or . The parameter cannot be supplied when ; empty summation sets contribute zero, and when the output matrix has no entries.
QAlgorithms.Papers.Independent.Extend50.P25.portOperatorNorm
For any finite type and any complex matrix , this defines the operator norm of the complex linear map on given by matrix multiplication, using the Euclidean norm on vectors:
No Hermitian, positivity, or normalization assumption is imposed on . Equality on is chosen classically in the definition. If is empty, the vector space is zero-dimensional and this norm is zero.
QAlgorithms.Papers.Independent.Extend50.P25.portProjector
For natural numbers and any , write . The definition gives a complex matrix indexed by whose entries are
The inverse is taken in , where . When , the matrix has no entries; when , no index exists.
QAlgorithms.Papers.Independent.Extend50.P25.profileEnergy
For every natural number and every function , where and natural-number subtraction truncates at , form by completing with the final coordinate and requiring all completed coordinates to be nonnegative and nonincreasing; when , these requirements are vacuous. Let denote the total within-set Fréchet derivative used by the definition, and let be the usual coordinate vector in . The defined energy is
where integration uses Euclidean volume restricted to . No differentiability or integrability hypothesis is imposed: the derivative and integral are Lean’s total operations, including their default values when unavailable. Empty sums and total division apply in dimensions ; the defined energy is in both cases.
QAlgorithms.Papers.Independent.Extend50.P25.profileSimplex
For every natural number , let with its Euclidean norm, where is natural-number subtraction and hence equals when . For , define coordinates by for , and otherwise. The defined set is
For , these are the first coordinates of a nonincreasing, nonnegative -tuple summing to . For , both conditions are vacuous, so the set is the whole zero-dimensional space; for , it is also the whole zero-dimensional space, with its sole completed coordinate equal to .
QAlgorithms.Papers.Independent.Extend50.P25.sampledProfileFidelity
For all natural numbers and every function , let be the finite set of nonincreasing natural-number -tuples summing to , with entries at most , and put
The defined value is
The inner condition is existential, so a qualifying contributes once, rather than once for each witness . Both and are truncated natural-number subtractions, and all divisions are total, with division by equal to . Thus zero total sampled weight gives zero masses, gives value , and also gives value .
QAlgorithms.Papers.Independent.Extend50.P25.sampledProfileMass
For all natural numbers , every function , and every nonincreasing natural-number -tuple whose entries sum to , define
for every nonincreasing natural-number -tuple summing to . The defined mass is
Each entry of these tuples lies between and , and uses truncated natural-number subtraction. No hypothesis requires the denominator to be positive: if it is , the defined mass is . In particular, this definition does not by itself assert that the masses sum to . When , all sampled coordinates are , using .
QAlgorithms.Papers.Independent.Extend50.P25.sampledProfileWeight
For all natural numbers , every function , and every nonincreasing tuple of natural numbers with and , the defined weight is
The argument of is a vector in Euclidean space, and no regularity, sign, or normalization assumption is imposed on . Natural-number subtraction determines the dimension when ; division is total real division, so for every sampled coordinate is and the weight is . For , such a tuple exists only when .
QAlgorithms.Papers.Independent.Extend50.P25.schurDiagramFintype
For every pair of natural numbers , the type of tuples with , , and whenever is equipped with a finite enumeration containing every such tuple. This supplies finiteness without asserting a formula for the number of tuples. It includes the empty type when , the single empty tuple when , and the single all-zero tuple when .
QAlgorithms.Papers.Independent.Extend50.P25.schurMass
For natural numbers and a nonincreasing sequence of natural numbers at most , summing to , put
The declaration defines
with all numerical quantities interpreted in after taking the indicated natural-number factorials. Empty products equal ; when , necessarily , and the value is , using .
QAlgorithms.Papers.Independent.Extend50.P25.smoothMaxInformation
For every natural number and every real , the declaration defines an extended real number as the infimum of all real , embedded in the extended reals, for which there exist a complex matrix indexed by pairs from and a complex matrix satisfying
where and is the Kronecker product. There is no restriction on , and it enters only through its square. The infimum of an empty feasible set is ; in particular, this occurs for , since no empty matrix has trace one, even though the displayed quotient is then totalized to zero. For and , choosing makes every real feasible, so the infimum is .
QAlgorithms.Papers.Independent.Extend50.P25.spechtDimension
For natural numbers , let be a nonincreasing sequence of natural numbers, each at most , with . Define
The declaration defines the real number
All factorial arguments are natural numbers; the subtractions in their definitions are natural-number subtraction, truncated at zero. Empty products equal . In particular, requires , and the value is then .
QAlgorithms.Papers.Independent.Extend50.P25.standardFidelity
For any natural numbers , put , define if and , and zero otherwise, with ; define if , , and for all , and zero otherwise; and set , by continuous functional calculus for , and . Form the matrix-valued function
For , the defined value is , where , , and the tensor extension applies to each block with reference indices fixed; for , the value is zero. All zero reciprocals are zero, , and for . In particular, when , is the zero function and the value is zero.
QAlgorithms.Papers.Independent.Extend50.P25.standardMeasurement
For any natural numbers , let , and, for each , define a matrix on by when , , and for all , and zero otherwise. Set
where uses continuous functional calculus with a real scalar function, and scalar inverses multiplying matrices are interpreted in . The returned family is . The scalar function has value zero for , since the real square root and reciprocal are total with for and . When , and the returned family is empty; when , its matrices have empty index sets. This declaration defines the matrices without asserting that the family is a POVM.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.