Definitions for Quantum channels with polytopic images and image additivity
DefinitionQAlgorithms_Papers_Independent_Intakenext100_P01The objects the formalized statements of Quantum channels with polytopic images and image additivity (arXiv:1408.2340) are stated in. Each was checked against the paper by a blind read-back and a moderator.
channelImage: §2, PDF p.2: the physical image, never the range on all operators.IsVertex: §3, Definition 3.1, PDF p.4: intersection of all supporting hyperplanes is a singleton. The ambient real space is the matrix space, including for non-Hermitian linear-map images. Membership and the singleton intersection imply the boundary condition in positive dimension. This is stronger than being an extreme point of a general convex set.HasVertices: §3, PDF pp.4–6: the displayed list is precisely the distinct extreme points of a polytope.IsPolytopic: §2, PDF p.3: finite convex hull, including the empty hull as a set-theoretic polytope. Positive-dimensional channel inputs always have a nonempty physical image.affineDimension: §3, PDF p.6: real affine dimension; used only on nonempty physical images.compressToSubspace: §3, PDF p.6: compression P_V A P_V, with no trace-one requirement on the result.IsSupportedOn: §3, PDF pp.5–6: operators in End(V), embedded in the ambient matrix algebra.restrictedImage: §3, PDF pp.5–6: physical image of the actual restriction of T to End(V). For V=0 the state set, hence this image, is empty.vertexFibre: §3, equation (8), PDF p.6: the subspace constructed from all pure preimages.vertexSpace: §3, PDF p.6: orthogonal sum of the vertex-fibre spaces (orthogonality is concluded).BasisMeasurementOn: §3, PDF pp.5–6: basis-measurement formula on End(V). No positivity of the output matrices is imposed here: the same definition is used for the explicitly announced linear-map extension. For CPTP T the basis outputs are density matrices.CanonicalDecomposition: Proposition 3.4, PDF pp.5–6: canonical subspaces, nonzero vertex fibres, orthogonality, full decomposition, and both identities in (7). Restrictions are applications of T itself. The identity is stated on all operators by complex-linear extension of (7).TwoPureGeometry: Lemma 3.2, PDF pp.4–5, including the moreover clause. Different pure states means different projectors. x_perp is a unit vector, and the formula is on every operator on H.FibreSpanGeometry: Corollary 3.3, PDF p.5: no independence or orthogonality assumption on the given vectors.VertexDecompositionGeometry: Proposition 3.4, PDF pp.5–6: the listed vertices need not exhaust the image. No polytopic-image assumption is used. k=0 is allowed.PolytopeGeometry: Theorem 3.5, PDF p.6: both directions. The forward direction uses canonical fibres. The converse quantifies over arbitrary nonzero orthogonal blocks, whose output list must be exactly the distinct vertices of its hull. Internal zero-dimensional residual blocks are allowed.DimensionGeometry: Corollary 3.6, PDF p.6: real affine dimension and both inequalities.HasHolevoRepresentation: Definition 2.1, PDF pp.2–3: the Holevo formula on all operators.IsEssentialCQ: Definition 2.1(2), PDF p.3: the norm is the spectral operator norm.HasCQRepresentation: Definition 2.1(3), PDF p.3: a full orthonormal-basis measurement.cqMap: §3, PDF p.6, and §7, PDF pp.13–14: the actual basis-measurement map.diagonalBlockSum: Lemma 7.2, PDF p.12: kill off-diagonal blocks, and add the channel actions on the two diagonal blocks. The sum-index register is canonically the (d1+d2)-dimensional input.tensorOnFunctions: Definition 6.1, PDF p.10: physical tensor action by matrix-unit expansion, including entangled inputs. It is not defined through the desired product-image hull.IsImageAdditive: Definition 6.1(i), PDF p.10: product-image convex hull.IsUniversalImageAdditive: Definition 6.1, PDF p.10: all other positive finite dimensions and all CPTP maps.minimumOutputRenyiEntropy: §4, PDF p.7: minimum output entropy. Used only for CPTP maps with nonempty finite input and p≥1. Then the set is nonempty and compact, the entropy is continuous and bounded, and this infimum is the attained minimum, not an empty/unbounded-set default.conjugateMap: §4, PDF p.8: conjugate all Kraus matrices, equivalently conjugate the input and output.cesaroAverage: §5, equation (14), PDF p.9: (1/N) sum of iterates numbered 1 through N. At N=0 this auxiliary average is zero; the limit is at infinity.cesaroLimit: §5, equation (14), PDF p.9: the actual pointwise Cesàro limit, with a default of zero only if convergence fails. Theorem 5.3 explicitly concludes convergence for every A.fixedOperators: §5, equation (16), PDF p.9: all fixed operators, not only fixed density matrices.qubitDensityFromBloch: Appendix A, PDF p.15: reuse the accepted Bloch state (I+w·sigma)/2, transporting false,true to the finite computational basis 0,1. Source correction: printed (22) is I/2 + sum w_j sigma_j; changed to (I + sum w_j sigma_j)/2, because the stated unit Bloch ball and the radii in Propositions 7.3-7.4 require the latter normalization.blochDisc: Proposition 7.3, PDF p.13: a filled centered disc of radius r, in any two-plane.blochBall: Proposition 7.4, PDF p.14: source's “sphere” is the filled Bloch ball.qubitDepolarizing: Proposition 7.4, PDF p.14: reuse accepted trace-linear depolarization. The accepted parameter is replacement probability; the paper uses retained-signal r.trineVector: §2, equation (4), PDF p.3: omega^(j+1) in its two REAL coordinates in C²; omega=exp(2pii/3) is primitive, and the vectors have Euclidean norm one.trineEffect: §2, equation (4), PDF p.3: two-thirds of a rank-one trine projection.trineMap: §2, equation (4), PDF p.3: the actual M₂→M₃ example, in a chosen output basis.trineCircle: §2, PDF pp.3–4: the filled circle in the trace-one diagonal plane, parametrized by the two real Bloch coordinates that the trine measurement sees.
import Mathlib
import Definitions.Def_QAlgorithms_Defs_Channel
import Definitions.Def_QAlgorithms_Defs_BipartiteSeparability
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P44
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P07
import Definitions.Def_QAlgorithms_Papers_Independent_Dependency50_P23
import Definitions.Def_QAlgorithms_Papers_Independent_Dependency50_P05
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P59
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P08
/-!
Statements from Fukuda–Nechita–Wolf, arXiv:1408.2340v1.
All page numbers are PDF page numbers. Exact interfaces are reused from pinned accepted
library modules; new adapters and geometry are paper-local. Compilation is pending the
mechanical batch handoff.
Source correction: PDF p.7 prints +sum x log x at p=1; the reused entropy uses
-sum x log_2 x, agreeing with the stated p-to-1 limit. Independent moderation of
this existing correction remains required.
-/
noncomputable section
open scoped Matrix ComplexConjugate ComplexOrder
open Filter
attribute [local instance] Classical.propDecidable
attribute [local instance] Classical.decEq
namespace QAlgorithms.Papers.Independent.Intakenext100.P01
-- Only pinned accepted-library modules are imported, under the independent-paper override.
open QAlgorithms.Papers.Independent.Information100.P44 (Mat)
open QAlgorithms.Papers.Independent.Information100.P07 (projection)
open QAlgorithms.Papers.Independent.Dependency50.P23 (IsEB)
open QAlgorithms.Papers.Independent.Dependency50.P05 (renyiEntropy)
/-- §2, PDF p.2: the physical image, never the range on all operators. -/
def channelImage {I J : Type*} [Fintype I] (T : Superop I J) :
Set (Matrix J J ℂ) := T '' {A | IsDensityMatrix A}
/-- §3, Definition 3.1, PDF p.4: intersection of all supporting hyperplanes is a singleton.
The ambient real space is the matrix space, including for non-Hermitian linear-map images.
Membership and the singleton intersection imply the boundary condition in positive dimension.
This is stronger than being an extreme point of a general convex set. -/
def IsVertex {n : ℕ} (C : Set (Mat n)) (x : Mat n) : Prop :=
x ∈ C ∧ {y | ∀ f : Mat n →ₗ[ℝ] ℝ,
f ≠ 0 → (∀ z ∈ C, f z ≤ f x) → f y = f x} = {x}
/-- §3, PDF pp.4–6: the displayed list is precisely the distinct extreme points of a polytope. -/
def HasVertices {n k : ℕ} (C : Set (Mat n)) (s : Fin k → Mat n) : Prop :=
Function.Injective s ∧ C = convexHull ℝ (Set.range s) ∧
C.extremePoints ℝ = Set.range s
/-- §2, PDF p.3: finite convex hull, including the empty hull as a set-theoretic polytope.
Positive-dimensional channel inputs always have a nonempty physical image. -/
def IsPolytopic {J : Type*} (C : Set (Matrix J J ℂ)) : Prop :=
∃ k : ℕ, ∃ s : Fin k → Matrix J J ℂ, C = convexHull ℝ (Set.range s)
/-- §3, PDF p.6: real affine dimension; used only on nonempty physical images. -/
def affineDimension {n : ℕ} (C : Set (Mat n)) : ℕ :=
Module.finrank ℝ (affineSpan ℝ C).direction
/-- §3, PDF p.6: compression P_V A P_V, with no trace-one requirement on the result. -/
def compressToSubspace {d : ℕ} (V : Submodule ℂ (EuclideanSpace ℂ (Fin d))) (A : Mat d) : Mat d :=
projection V * A * projection V
/-- §3, PDF pp.5–6: operators in End(V), embedded in the ambient matrix algebra. -/
def IsSupportedOn {d : ℕ} (V : Submodule ℂ (EuclideanSpace ℂ (Fin d))) (A : Mat d) : Prop :=
compressToSubspace V A = A
/-- §3, PDF pp.5–6: physical image of the actual restriction of T to End(V).
For V=0 the state set, hence this image, is empty. -/
def restrictedImage {d n : ℕ} (T : Superop (Fin d) (Fin n))
(V : Submodule ℂ (EuclideanSpace ℂ (Fin d))) : Set (Mat n) :=
T '' {A | IsDensityMatrix A ∧ IsSupportedOn V A}
/-- §3, equation (8), PDF p.6: the subspace constructed from all pure preimages. -/
def vertexFibre {d n : ℕ} (T : Superop (Fin d) (Fin n)) (s : Mat n) :
Submodule ℂ (EuclideanSpace ℂ (Fin d)) :=
Submodule.span ℂ {x | ‖x‖ = 1 ∧ T (pureDensity x) = s}
/-- §3, PDF p.6: orthogonal sum of the vertex-fibre spaces (orthogonality is concluded). -/
def vertexSpace {d n k : ℕ} (T : Superop (Fin d) (Fin n)) (s : Fin k → Mat n) :
Submodule ℂ (EuclideanSpace ℂ (Fin d)) := ⨆ i, vertexFibre T (s i)
/-- §3, PDF pp.5–6: basis-measurement formula on End(V). No positivity of the output
matrices is imposed here: the same definition is used for the explicitly announced linear-map
extension. For CPTP T the basis outputs are density matrices. -/
def BasisMeasurementOn {d n : ℕ} (T : Superop (Fin d) (Fin n))
(V : Submodule ℂ (EuclideanSpace ℂ (Fin d))) : Prop :=
∃ e : OrthonormalBasis (Fin (Module.finrank ℂ V)) ℂ V,
∃ s : Fin (Module.finrank ℂ V) → Mat n,
∀ A, IsSupportedOn V A → T A = ∑ i,
(Matrix.trace (pureDensity (e i : EuclideanSpace ℂ (Fin d)) * A)) • s i
/-- Proposition 3.4, PDF pp.5–6: canonical subspaces, nonzero vertex fibres, orthogonality,
full decomposition, and both identities in (7). Restrictions are applications of T itself.
The identity is stated on all operators by complex-linear extension of (7). -/
def CanonicalDecomposition {d n k : ℕ} (T : Superop (Fin d) (Fin n))
(s : Fin k → Mat n) : Prop :=
let U := vertexFibre T ∘ s
let V := vertexSpace T s
(∀ i, 0 < Module.finrank ℂ (U i)) ∧
(∀ i j, i ≠ j → ∀ x ∈ U i, ∀ y ∈ U j, inner ℂ x y = 0) ∧
V ⊔ Vᗮ = ⊤ ∧ BasisMeasurementOn T V ∧
∀ A, T A = T (compressToSubspace V A) + T (compressToSubspace (Vᗮ) A) ∧
T (compressToSubspace V A) = ∑ i, (Matrix.trace (projection (U i) * A)) • s i
/-- Lemma 3.2, PDF pp.4–5, including the moreover clause. Different pure states means
different projectors. x_perp is a unit vector, and the formula is on every operator on H. -/
def TwoPureGeometry {d n : ℕ} (T : Superop (Fin d) (Fin n)) : Prop :=
∀ x y : EuclideanSpace ℂ (Fin d), ‖x‖ = 1 → ‖y‖ = 1 → pureDensity x ≠ pureDensity y →
IsVertex (channelImage T) (T (pureDensity x)) →
let H := Submodule.span ℂ ({x, y} : Set (EuclideanSpace ℂ (Fin d)))
(∃ z : EuclideanSpace ℂ (Fin d), ‖z‖ = 1 ∧ z ∈ H ∧ inner ℂ x z = 0 ∧
∀ A, IsSupportedOn H A → T A =
(Matrix.trace (pureDensity x * A)) • T (pureDensity x) +
(Matrix.trace (pureDensity z * A)) • T (pureDensity z)) ∧
(IsVertex (channelImage T) (T (pureDensity y)) →
T (pureDensity y) ≠ T (pureDensity x) → inner ℂ x y = 0)
/-- Corollary 3.3, PDF p.5: no independence or orthogonality assumption on the given vectors. -/
def FibreSpanGeometry {d n : ℕ} (T : Superop (Fin d) (Fin n)) : Prop :=
∀ (s : Mat n), IsVertex (channelImage T) s →
∀ (k : ℕ) (x : Fin k → EuclideanSpace ℂ (Fin d)),
(∀ i, ‖x i‖ = 1 ∧ T (pureDensity (x i)) = s) →
∀ y ∈ Submodule.span ℂ (Set.range x), ‖y‖ = 1 → T (pureDensity y) = s
/-- Proposition 3.4, PDF pp.5–6: the listed vertices need not exhaust the image.
No polytopic-image assumption is used. k=0 is allowed. -/
def VertexDecompositionGeometry {d n : ℕ} (T : Superop (Fin d) (Fin n)) : Prop :=
∀ (k : ℕ) (s : Fin k → Mat n), Function.Injective s →
(∀ i, IsVertex (channelImage T) (s i)) → CanonicalDecomposition T s
/-- Theorem 3.5, PDF p.6: both directions. The forward direction uses canonical fibres.
The converse quantifies over arbitrary nonzero orthogonal blocks, whose output list must be
exactly the distinct vertices of its hull. Internal zero-dimensional residual blocks are allowed. -/
def PolytopeGeometry {d n : ℕ} (T : Superop (Fin d) (Fin n)) : Prop :=
(∀ (k : ℕ) (s : Fin k → Mat n), 0 < k → HasVertices (channelImage T) s →
CanonicalDecomposition T s ∧
restrictedImage T ((vertexSpace T s)ᗮ) ⊆ restrictedImage T (vertexSpace T s) ∧
(∀ i, s i ∉ restrictedImage T ((vertexSpace T s)ᗮ))) ∧
(∀ (k : ℕ) (s : Fin k → Mat n) (U : Fin k → Submodule ℂ (EuclideanSpace ℂ (Fin d))),
0 < k → HasVertices (convexHull ℝ (Set.range s)) s →
(∀ i, 0 < Module.finrank ℂ (U i)) →
(∀ i j, i ≠ j → ∀ x ∈ U i, ∀ y ∈ U j, inner ℂ x y = 0) →
let V := ⨆ i, U i
(∀ A, T A = (∑ i, (Matrix.trace (projection (U i) * A)) • s i) +
T (compressToSubspace (Vᗮ) A)) →
restrictedImage T (Vᗮ) ⊆ restrictedImage T V →
(∀ i, s i ∉ restrictedImage T (Vᗮ)) → HasVertices (channelImage T) s)
/-- Corollary 3.6, PDF p.6: real affine dimension and both inequalities. -/
def DimensionGeometry {d n : ℕ} (T : Superop (Fin d) (Fin n)) : Prop :=
∀ (k : ℕ) (s : Fin k → Mat n), 0 < k → HasVertices (channelImage T) s →
affineDimension (channelImage T) ≤ k - 1 ∧ k - 1 ≤ d - 1
/-- Definition 2.1, PDF pp.2–3: the Holevo formula on all operators. -/
def HasHolevoRepresentation {I J : Type*} [Fintype I] {k : ℕ}
(T : Superop I J) (M : Fin k → Matrix I I ℂ) (s : Fin k → Matrix J J ℂ) : Prop :=
∀ A, T A = ∑ i, (Matrix.trace (M i * A)) • s i
/-- Definition 2.1(2), PDF p.3: the norm is the spectral operator norm. -/
def IsEssentialCQ {I J : Type*} [Fintype I] [Fintype J] [DecidableEq I]
(T : Superop I J) : Prop :=
∃ k : ℕ, ∃ M : Fin k → Matrix I I ℂ, ∃ s : Fin k → Matrix J J ℂ,
IsPOVM M ∧ (∀ i, specNorm (M i) = 1) ∧
(∀ i, IsDensityMatrix (s i)) ∧ HasHolevoRepresentation T M s
/-- Definition 2.1(3), PDF p.3: a full orthonormal-basis measurement. -/
def HasCQRepresentation {d n : ℕ} (T : Superop (Fin d) (Fin n)) : Prop :=
∃ e : OrthonormalBasis (Fin d) ℂ (EuclideanSpace ℂ (Fin d)), ∃ s : Fin d → Mat n,
(∀ i, IsDensityMatrix (s i)) ∧
HasHolevoRepresentation T (fun i => pureDensity (e i)) s
/-- §3, PDF p.6, and §7, PDF pp.13–14: the actual basis-measurement map. -/
def cqMap {d n : ℕ} (e : OrthonormalBasis (Fin d) ℂ (EuclideanSpace ℂ (Fin d)))
(s : Fin d → Mat n) : Superop (Fin d) (Fin n) :=
fun A => ∑ i, (Matrix.trace (pureDensity (e i) * A)) • s i
/-- Lemma 7.2, PDF p.12: kill off-diagonal blocks, and add the channel actions on the
two diagonal blocks. The sum-index register is canonically the (d1+d2)-dimensional input. -/
def diagonalBlockSum {I J K : Type*} (T : Superop I K) (S : Superop J K) :
Superop (I ⊕ J) K :=
fun A => T (A.submatrix Sum.inl Sum.inl) + S (A.submatrix Sum.inr Sum.inr)
/-- Definition 6.1, PDF p.10: physical tensor action by matrix-unit expansion,
including entangled inputs. It is not defined through the desired product-image hull. -/
def tensorOnFunctions {I J K L : Type*} [Fintype I] [Fintype J] [DecidableEq I] [DecidableEq J]
(T : Superop I K) (S : Superop J L) : Superop (I × J) (K × L) :=
fun A => Matrix.of fun a b => ∑ i, ∑ j, ∑ k, ∑ l,
A (i, k) (j, l) * T (Matrix.single i j 1) a.1 b.1 *
S (Matrix.single k l 1) a.2 b.2
/-- Definition 6.1(i), PDF p.10: product-image convex hull. -/
def IsImageAdditive {I J K L : Type*} [Fintype I] [Fintype J]
[DecidableEq I] [DecidableEq J] (T : Superop I K) (S : Superop J L) : Prop :=
channelImage (tensorOnFunctions T S) = convexHull ℝ
{B | ∃ A ∈ channelImage T, ∃ C ∈ channelImage S, B = Matrix.kronecker A C}
/-- Definition 6.1, PDF p.10: all other positive finite dimensions and all CPTP maps. -/
def IsUniversalImageAdditive {d n : ℕ} (T : Superop (Fin d) (Fin n)) : Prop :=
∀ a b : ℕ, 0 < a → 0 < b → ∀ S : Superop (Fin a) (Fin b),
IsChannel S → IsImageAdditive T S
/-- §4, PDF p.7: minimum output entropy. Used only for CPTP maps with nonempty finite
input and p≥1. Then the set is nonempty and compact, the entropy is continuous and bounded,
and this infimum is the attained minimum, not an empty/unbounded-set default. -/
def minimumOutputRenyiEntropy {I J : Type} [Fintype I] [Fintype J] [DecidableEq J]
(p : ℝ) (T : Superop I J) : ℝ :=
sInf (renyiEntropy p '' channelImage T)
/-- §4, PDF p.8: conjugate all Kraus matrices, equivalently conjugate the input and output. -/
def conjugateMap {I J : Type*} (T : Superop I J) : Superop I J :=
fun A => (T (A.map star)).map star
/-- §5, equation (14), PDF p.9: (1/N) sum of iterates numbered 1 through N. At N=0
this auxiliary average is zero; the limit is at infinity. -/
def cesaroAverage {d : ℕ} (T : Superop (Fin d) (Fin d)) (N : ℕ) (A : Mat d) : Mat d :=
(N : ℂ)⁻¹ • ∑ j ∈ Finset.range N, (T^[j + 1]) A
/-- §5, equation (14), PDF p.9: the actual pointwise Cesàro limit, with a default of zero
only if convergence fails. Theorem 5.3 explicitly concludes convergence for every A. -/
def cesaroLimit {d : ℕ} (T : Superop (Fin d) (Fin d)) (A : Mat d) : Mat d :=
if h : ∃ B, Tendsto (fun N => cesaroAverage T N A) atTop (nhds B) then h.choose else 0
/-- §5, equation (16), PDF p.9: all fixed operators, not only fixed density matrices. -/
def fixedOperators {d : ℕ} (T : Superop (Fin d) (Fin d)) : Set (Mat d) := {A | T A = A}
/-- Appendix A, PDF p.15: reuse the accepted Bloch state (I+w·sigma)/2,
transporting false,true to the finite computational basis 0,1.
Source correction: printed (22) is I/2 + sum w_j sigma_j; changed to
(I + sum w_j sigma_j)/2, because the stated unit Bloch ball and the radii
in Propositions 7.3-7.4 require the latter normalization. -/
def qubitDensityFromBloch (w : EuclideanSpace ℝ (Fin 3)) : Mat 2 :=
(QAlgorithms.Papers.Independent.Information100.P59.blochState (fun j => w j)).submatrix
(fun i : Fin 2 => i.val == 1) (fun i : Fin 2 => i.val == 1)
/-- Proposition 7.3, PDF p.13: a filled centered disc of radius r, in any two-plane. -/
def blochDisc (r : ℝ) (L : Submodule ℝ (EuclideanSpace ℝ (Fin 3))) : Set (Mat 2) :=
qubitDensityFromBloch '' {w | w ∈ L ∧ ‖w‖ ≤ r}
/-- Proposition 7.4, PDF p.14: source's “sphere” is the filled Bloch ball. -/
def blochBall (r : ℝ) : Set (Mat 2) := qubitDensityFromBloch '' {w | ‖w‖ ≤ r}
/-- Proposition 7.4, PDF p.14: reuse accepted trace-linear depolarization.
The accepted parameter is replacement probability; the paper uses retained-signal r. -/
def qubitDepolarizing (r : ℝ) : Superop (Fin 2) (Fin 2) :=
QAlgorithms.Papers.Independent.Information100.P08.depolarizing 2 (1 - r)
/-- §2, equation (4), PDF p.3: omega^(j+1) in its two REAL coordinates in C²;
omega=exp(2*pi*i/3) is primitive, and the vectors have Euclidean norm one. -/
def trineVector (j : Fin 3) : EuclideanSpace ℂ (Fin 2) :=
WithLp.toLp 2 ![(Real.cos (2 * Real.pi * (j.val + 1) / 3) : ℂ),
(Real.sin (2 * Real.pi * (j.val + 1) / 3) : ℂ)]
/-- §2, equation (4), PDF p.3: two-thirds of a rank-one trine projection. -/
def trineEffect (j : Fin 3) : Mat 2 := (2 / 3 : ℂ) • pureDensity (trineVector j)
/-- §2, equation (4), PDF p.3: the actual M₂→M₃ example, in a chosen output basis. -/
def trineMap : Superop (Fin 2) (Fin 3) :=
fun A => ∑ j, (Matrix.trace (trineEffect j * A)) • pureDensity (ket j)
/-- §2, PDF pp.3–4: the filled circle in the trace-one diagonal plane, parametrized by
the two real Bloch coordinates that the trine measurement sees. -/
def trineCircle : Set (Mat 3) :=
{A | ∃ a b : ℝ, a ^ 2 + b ^ 2 ≤ 1 ∧ A = Matrix.diagonal (fun j : Fin 3 =>
((1 / 3 + (a * Real.cos (4 * Real.pi * (j.val + 1) / 3) +
b * Real.sin (4 * Real.pi * (j.val + 1) / 3)) / 3 : ℝ) : ℂ))}
/-! Small sanity examples pin definitions without proving any paper result. -/
example {d : ℕ} (V : Submodule ℂ (EuclideanSpace ℂ (Fin d))) : compressToSubspace V (0 : Mat d) = 0 := by
simp [compressToSubspace]
example {d n : ℕ} (T : Superop (Fin d) (Fin n)) (A : Mat n) :
A ∈ channelImage T ↔ ∃ B, IsDensityMatrix B ∧ T B = A := Iff.rfl
example {I : Type} [Fintype I] [DecidableEq I] (A : Matrix I I ℂ) :
renyiEntropy 1 A = vnEntropy A := by simp [renyiEntropy, vnEntropy]
example {d : ℕ} (T : Superop (Fin d) (Fin d)) (A : Mat d) :
cesaroAverage T 0 A = 0 := by simp [cesaroAverage]
example : qubitDepolarizing 1 = (id : Superop (Fin 2) (Fin 2)) := by
funext A
simp [qubitDepolarizing, QAlgorithms.Papers.Independent.Information100.P08.depolarizing]
end QAlgorithms.Papers.Independent.Intakenext100.P01
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
QAlgorithms.Papers.Independent.Intakenext100.P01.BasisMeasurementOn
For any natural numbers , any function , and any complex-linear subspace , means that there exist an orthonormal basis of , where , and arbitrary complex matrices , such that every complex matrix satisfying obeys . Here is the orthogonal projection onto , each is viewed as an ambient vector, and . The condition applies to all supported matrices, without positivity or normalization restrictions; no channel assumption on or density assumption on the is made. If , the basis and sum are empty and the condition is exactly . Zero dimensions are permitted.
QAlgorithms.Papers.Independent.Intakenext100.P01.CanonicalDecomposition
For any natural numbers , any function , and any family of complex matrices, let be the complex-linear span of all unit vectors satisfying , and let , where . Then means that every has positive complex dimension; distinct are orthogonal, meaning for every and ; ; there exist an orthonormal basis of , with , and complex matrices such that whenever ; and, for every complex matrix , both and hold. Every here denotes orthogonal projection onto . No channel assumption on , density assumption on the listed matrices, or restriction to positive is imposed. The case is included: then , the indexed conditions are vacuous, and the remaining requirements reduce to ; if and , the positive-dimension requirement cannot hold.
QAlgorithms.Papers.Independent.Intakenext100.P01.DimensionGeometry
For any natural numbers and any function from complex matrices to complex matrices, let . This property states that, for every positive integer and every injective family such that and the real extreme points of are exactly the , one has
Both subtractions are natural number subtraction, truncated at zero; in particular, when . No linearity or channel assumption is made on , and the condition is vacuous if no such nonempty vertex family exists.
QAlgorithms.Papers.Independent.Intakenext100.P01.FibreSpanGeometry
For any natural numbers and any function from complex matrices to complex matrices, let and . A matrix is a “vertex” here when and , with ranging over all complex matrices. The property states that for every such vertex , every natural number , and every family of unit vectors in satisfying for every , every unit vector also satisfies . The function need not be linear or a channel. The case is included: its span is , so the conclusion has no unit vector to quantify over.
QAlgorithms.Papers.Independent.Intakenext100.P01.HasCQRepresentation
For any natural numbers and any function from complex matrices to complex matrices, this property means that there exist an orthonormal basis of and matrices with and for every , such that every complex matrix satisfies
There is no separate linearity or channel assumption on . The case is included, with an empty basis and empty sum, so the representation then requires to be zero. If and , the required trace one output matrices cannot exist.
QAlgorithms.Papers.Independent.Intakenext100.P01.HasHolevoRepresentation
For any finite type , any type , any natural number , any function from complex matrices indexed by to complex matrices indexed by , and any families of matrices on and on , this property means that every complex matrix on satisfies
The coefficients are complex traces. There are no positivity, normalization, measurement, or density assumptions on either family, and no prior linearity assumption on . Empty and are included; for , the property says that for every .
QAlgorithms.Papers.Independent.Intakenext100.P01.HasVertices
For any natural numbers , any set of complex matrices, and any indexed family of such matrices, means that the family is injective, is the real convex hull of , and the set of extreme points of , with respect to real convexity, is exactly . No positivity or trace condition is imposed. The case is included and gives ; is also allowed.
QAlgorithms.Papers.Independent.Intakenext100.P01.IsEssentialCQ
For any finite types , with decidable equality on , and any function from complex matrices on to complex matrices on , this property means that there exist a natural number and families on and on such that
for every , and, for every complex matrix on ,
Here is the operator norm for the Euclidean norms. No separate channel or linearity assumption is imposed on . The existential quantifier permits ; then the measurement sum condition requires , which holds for empty , and the representation requires to be zero. For nonempty , cannot satisfy the conditions.
QAlgorithms.Papers.Independent.Intakenext100.P01.IsImageAdditive
For any finite types with decidable equality, any types , and any functions from complex matrices on to complex matrices on and from complex matrices on to complex matrices on , define , and similarly and . Define on matrices on by
where each has a single entry at . The property states the exact set equality
where . No linearity or channel assumptions are made on , and need not be finite. Empty input types are allowed; if either or is empty, the corresponding density matrix sets and both sides of the asserted equality are empty.
QAlgorithms.Papers.Independent.Intakenext100.P01.IsPolytopic
For any type and any set of complex matrices indexed by , means that there exist a natural number and matrices such that is their real convex hull. The index type need not be finite, and the matrices need not be distinct, positive, or normalized. The choice is permitted, so the empty set satisfies this definition.
QAlgorithms.Papers.Independent.Intakenext100.P01.IsSupportedOn
For any natural number , any complex-linear subspace , and any complex matrix , means exactly , where is the orthogonal projection onto for the standard Euclidean inner product. No Hermitian, positivity, or trace assumption is imposed on . In particular, for this condition requires ; is included.
QAlgorithms.Papers.Independent.Intakenext100.P01.IsUniversalImageAdditive
For natural numbers , possibly zero, and an arbitrary function , this property means that for every pair of positive natural numbers and every channel ,
Here a channel means a function admitting a finite representation with , and the function denoted is defined entrywise by
where denotes a matrix unit. No linearity, positivity, or channel assumption is imposed on .
QAlgorithms.Papers.Independent.Intakenext100.P01.IsVertex
For any natural number , any set of complex matrices, and any complex matrix , means that and that the set of all complex matrices satisfying the following condition is exactly : for every nonzero real-linear functional , if for every , then . Here is unrestricted and need not belong to , and the functionals act on the entire real vector space of complex matrices. If no such nonzero functional is maximized at , the condition on is vacuous. The definition includes , when the matrix space has just one element.
QAlgorithms.Papers.Independent.Intakenext100.P01.PolytopeGeometry
For any natural numbers and any function from complex matrices to complex matrices, write , , , and , where is the orthogonal projection onto a complex subspace . This property is the conjunction of two requirements. First, for every positive integer and family that is injective, satisfies , and has range exactly the real extreme points of , define and . Then each has positive complex dimension, distinct are orthogonal, , and there exist an orthonormal basis of and arbitrary complex matrices such that whenever . Every complex matrix must also satisfy
Furthermore, and for every . Second, for every positive integer , every family that is injective and whose range is exactly the extreme points of its real convex hull, and every family of positive dimensional, pairwise orthogonal complex subspaces , put . If, for every complex matrix ,
and if and every lies outside , then and its extreme points are exactly the . No linearity or channel assumption is imposed on ; zero dimensions are permitted, and any conditional requirement whose hypotheses cannot hold is vacuous.
QAlgorithms.Papers.Independent.Intakenext100.P01.TwoPureGeometry
For any natural numbers and any function from complex matrices to complex matrices, this property means the following. Write , whose entries are , and let . Here a matrix is a “vertex” of precisely when and the only matrix satisfying for every nonzero real linear functional such that for all is ; is not restricted to . For every pair of unit vectors with , if is such a vertex, then, setting , there exists a unit vector with such that every complex matrix satisfying , where is the orthogonal projection onto , obeys
In addition, if is a vertex and differs from , then . No linearity or channel assumption is imposed on . Zero dimensions are included; when no qualifying pair exists, the requirements are vacuous.
QAlgorithms.Papers.Independent.Intakenext100.P01.VertexDecompositionGeometry
For any natural numbers and any function from complex matrices to complex matrices, put and . A “vertex” means and that the only ambient matrix satisfying for every nonzero real linear functional maximized at over is . This property requires that, for every natural number and every injective family of such vertices, the following holds. Define
and write for the orthogonal projection onto a subspace . Each has positive complex dimension, distinct are orthogonal, and . There exist an orthonormal basis of and complex matrices such that, for every complex matrix with ,
Moreover, every complex matrix satisfies
There is no assumption that is linear or a channel, and no density requirement on the . The quantifier includes , when and all displayed sums over or are empty.
QAlgorithms.Papers.Independent.Intakenext100.P01.affineDimension
For any natural number and any set of complex matrices, is the dimension over of the direction subspace of the real affine span of . Thus complex matrices are treated as a real vector space. The definition applies to arbitrary , including the empty set, whose value is , and to .
QAlgorithms.Papers.Independent.Intakenext100.P01.blochBall
For any real number , this defines the set
Negative radii give the empty set, and radius zero gives . No upper bound on or separate positivity requirement is included.
QAlgorithms.Papers.Independent.Intakenext100.P01.blochDisc
For any real number and any real linear subspace , this defines the set
There is no dimension restriction on or upper bound on . For the set is empty, and for it is ; positivity is not imposed separately.
QAlgorithms.Papers.Independent.Intakenext100.P01.cesaroAverage
For any natural numbers , any function , and any matrix , this defines
where means -fold function iteration. Thus the summands begin with . When , the sum is empty and the reciprocal of zero is defined as zero, so the result is the zero matrix. The dimension is allowed, and no channel or linearity assumption is imposed on .
QAlgorithms.Papers.Independent.Intakenext100.P01.cesaroLimit
For any natural number , any function , and any matrix , this defines a matrix chosen from those satisfying
if such a matrix exists, and defines the result to be the zero matrix otherwise. Convergence is in the usual finite-dimensional matrix topology, and denotes function iteration. The average at is zero. No convergence, linearity, positivity, or channel hypothesis is required, and is included.
QAlgorithms.Papers.Independent.Intakenext100.P01.channelImage
For any finite type , any type , and any function , the set consists of all matrices where is positive semidefinite and . No linearity, positivity, or trace preservation is required of . The type need not be finite; if is empty, no such exists and this image is empty.
QAlgorithms.Papers.Independent.Intakenext100.P01.compressToSubspace
For any natural number , any complex-linear subspace equipped with the standard Euclidean inner product, and any complex matrix , is the matrix , where is the orthogonal projection onto . The result is still a matrix on the ambient space. No positivity or normalization of is required; and are allowed.
QAlgorithms.Papers.Independent.Intakenext100.P01.conjugateMap
For arbitrary types and any function , this defines the function
where both conjugations act entrywise, without transposing the matrices. The types need not be finite, and need not be linear, positive, or a channel.
QAlgorithms.Papers.Independent.Intakenext100.P01.cqMap
For any natural numbers , any orthonormal basis of , and any family of complex matrices, this defines the function on complex matrices given by
The matrices are unrestricted: positivity and trace one are not required. Zero dimensions are allowed; when , the empty sum gives the zero output matrix.
QAlgorithms.Papers.Independent.Intakenext100.P01.diagonalBlockSum
For any types and any functions from complex matrices on to complex matrices on and from complex matrices on to complex matrices on , this defines a function on complex matrices indexed by the disjoint union by
where and . Thus only the two diagonal blocks are supplied to the given functions. No finiteness, linearity, positivity, or channel assumptions are required, and any of the index types may be empty.
QAlgorithms.Papers.Independent.Intakenext100.P01.fixedOperators
For any natural number , including zero, and any function , this defines the set
The matrices are unrestricted: they need not be Hermitian, positive, or normalized, and no linearity or channel assumption is imposed on .
QAlgorithms.Papers.Independent.Intakenext100.P01.minimumOutputRenyiEntropy
For finite types , with decidable equality on , any real number , and any function , this defines
where, writing for the continuous functional calculus used in the definition,
No channel assumption on , restriction on , or density-matrix condition on its outputs is required; the functional calculus, real powers, and logarithms are the total functions appearing in these formulas. The infimum is the real-valued infimum, which returns for an empty set or a set unbounded below; in particular, the set is empty when is empty.
QAlgorithms.Papers.Independent.Intakenext100.P01.qubitDensityFromBloch
For every vector , regarded as a real Euclidean vector, this defines the complex matrix indexed by
The indexing identifies with false and with true in the underlying Boolean-indexed Pauli matrices. There is no restriction on , and the definition imposes no positivity condition on the resulting matrix.
QAlgorithms.Papers.Independent.Intakenext100.P01.qubitDepolarizing
For every real number , this defines the function on complex matrices
Both and the input matrix are unrestricted; the definition does not require to be a density matrix or assume that the resulting function is a channel.
QAlgorithms.Papers.Independent.Intakenext100.P01.restrictedImage
For any natural numbers , any function , and any complex-linear subspace , consists of all matrices such that is positive semidefinite, , and , where is the orthogonal projection onto . No channel or linearity assumption is imposed on . Both dimensions may be zero; if , including when , the defining input set is empty.
QAlgorithms.Papers.Independent.Intakenext100.P01.tensorOnFunctions
For any finite types with decidable equality, any types , and any functions from complex matrices on to complex matrices on and from complex matrices on to complex matrices on , this defines a function taking a complex matrix on to the matrix on whose entries are
Here and are the matrices with entry at their indicated position and elsewhere. The output index types need not be finite, and neither nor is assumed linear or a channel. If either input index type is empty, the sum is empty and the defined output is zero.
QAlgorithms.Papers.Independent.Intakenext100.P01.trineCircle
This defines the set of complex matrices consisting exactly of the diagonal matrices
for real numbers satisfying ; the displayed real entries are regarded as complex numbers. The quantification includes the entire closed unit disk, including its boundary and its center.
QAlgorithms.Papers.Independent.Intakenext100.P01.trineEffect
For each index , writing , this defines the complex matrix
QAlgorithms.Papers.Independent.Intakenext100.P01.trineMap
This defines a map from arbitrary complex matrices to complex matrices. For , put and . The map is
where is the -th standard basis vector of . Thus is diagonal with -th diagonal entry . The input is not required to be Hermitian, positive semidefinite, or normalized, and the trace coefficient is complex-valued, without taking its real part.
QAlgorithms.Papers.Independent.Intakenext100.P01.trineVector
For each index , this defines the vector in
with the real coordinates embedded into and equipped with the Euclidean norm.
QAlgorithms.Papers.Independent.Intakenext100.P01.vertexFibre
For any natural numbers , any function , and any complex matrix , is the complex-linear span of all vectors with Euclidean norm for which , where . Neither a channel property of nor a vertex or density property of is assumed. If no such vector exists, the span is ; this occurs in particular when .
QAlgorithms.Papers.Independent.Intakenext100.P01.vertexSpace
For any natural numbers , any function , and any family of complex matrices, is the smallest complex-linear subspace of containing, for every , all unit vectors satisfying , with . Equivalently, it is the sum of the complex spans of those sets of vectors. No channel, density, distinctness, or vertex assumptions are imposed. For , or if all those sets are empty, the result is ; zero dimensions are allowed.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.