Documentation

QICLean.Channel.Basic

Positive maps, completely positive maps, density matrices, and quantum channels #

This file defines positive maps, completely positive (CP) maps, trace-preserving maps, and quantum channels on M_D(ℂ), together with the basic theory of density matrices (compactness, convexity), following Chapters 3 and 6 of Wolf's lecture notes.

Main results #

References #

Positive maps #

def IsPositiveMap {m : Type u_1} {n : Type u_2} (E : Matrix n n →ₗ[] Matrix m m ) :

A linear map E : M_n(ℂ) →ₗ[ℂ] M_m(ℂ) is positive if it maps positive semidefinite matrices to positive semidefinite matrices.

Equations
Instances For

    A linear map is trace-preserving if Tr(E(X)) = Tr(X) for all X.

    Equations
    Instances For

      A matrix endomorphism is trace-nonincreasing if it does not increase the trace of any positive semidefinite input.

      Equations
      Instances For

        Every trace-preserving matrix endomorphism is trace-nonincreasing.

        def IsCPMap {n : Type u_2} [Fintype n] (E : Matrix n n →ₗ[] Matrix n n ) :

        A linear map is completely positive if it admits a Kraus representation: E(X) = ∑ᵢ Kᵢ X Kᵢ† for some family of operators {Kᵢ}.

        Equivalently (by Choi's theorem), E is completely positive iff E ⊗ idₙ is positive for all n. We use the Kraus characterisation since it matches the formulation used in the Kadison–Schwarz and multiplicative-domain proofs.

        Equations
        Instances For
          def IsKrausCP {α : Type u_3} {β : Type u_4} [Fintype α] [DecidableEq α] [Fintype β] [DecidableEq β] (S : Matrix α α →ₗ[] Matrix β β ) :

          A completely positive map between possibly different matrix algebras, in rectangular Kraus form: S(X) = ∑ᵢ Aᵢ X Aᵢ†, where Aᵢ : Matrix β α ℂ.

          This is the dimension-changing Kraus notion in [M. Wolf, Quantum Channels & Operations: Guided Tour, Section 2.1, Theorem 2.1][Wolf2012QChannels]. It is also the notion used for the support formula of the Petz transpose map in Hayden--Jozsa--Petz--Winter, arXiv:quant-ph/0304007v2, Theorem 3, equation (8). No trace-preservation condition is included.

          Equations
          Instances For
            structure IsChannel {n : Type u_2} [Fintype n] (E : Matrix n n →ₗ[] Matrix n n ) :

            A quantum channel is a completely positive trace-preserving (CPTP) map.

            This matches the standard definition in quantum information theory (see \cite[Definition 4.1]{Wolf2012Quantum}). Earlier versions of this formalisation required only positivity; the upgrade to complete positivity is important because the Kadison–Schwarz inequality and the multiplicative domain characterisation require CP, not merely positivity.

            Instances For

              Matrix transposition as a complex-linear map on M_n(ℂ).

              Equations
              Instances For

                Matrix transposition preserves positive semidefinite matrices.

                A map is completely copositive if composing it with transposition gives a completely positive map.

                This is the convention used in Wolf Chapter 3: a decomposable positive map is written as a completely positive map plus a map F for which F ∘ transpose is completely positive.

                Equations
                Instances For

                  A decomposable positive map is a sum of a completely positive map and a completely copositive map. This is the class used in Wolf Chapter 3 to describe positive maps that cannot detect PPT entanglement.

                  Equations
                  Instances For

                    An indecomposable positive map is positive but not decomposable.

                    Equations
                    Instances For
                      theorem IsCPMap.isPositiveMap {n : Type u_1} [Fintype n] {E : Matrix n n →ₗ[] Matrix n n } (h : IsCPMap E) :

                      A completely positive map is positive.

                      Completely copositive maps are positive.

                      Decomposable positive maps are positive.

                      theorem IsChannel.pos {n : Type u_1} [Fintype n] {E : Matrix n n →ₗ[] Matrix n n } (hE : IsChannel E) :

                      A channel is a positive map (derived from complete positivity).

                      A positive matrix map is a positive linear map: if A ≤ B, then E A ≤ E B.

                      Equations
                      Instances For
                        theorem IsPositiveMap.map_isHermitian {m : Type u_1} {n : Type u_2} [Finite m] [Finite n] {E : Matrix n n →ₗ[] Matrix m m } (hE : IsPositiveMap E) {X : Matrix n n } (hX : X.IsHermitian) :

                        Positive maps preserve Hermiticity.

                        Density matrices: compactness and convexity #

                        def densityMatrices (D : ) :
                        Set (Matrix (Fin D) (Fin D) )

                        The set of density matrices: PSD matrices with trace 1.

                        Equations
                        Instances For
                          @[simp]
                          theorem mem_densityMatrices {D : } {ρ : Matrix (Fin D) (Fin D) } :

                          Auxiliary lemmas for boundedness #

                          Main results #

                          PSD matrices with trace ≤ c form a bounded set (in the Frobenius norm).

                          For PSD X, every entry satisfies ‖X i j‖ ≤ ‖trace X‖ (diagonal: nonneg summand of trace; off-diagonal: Cauchy-Schwarz). Hence the sup-norm ‖X‖ ≤ ‖trace X‖ ≤ c.

                          The set of density matrices is compact (Heine-Borel).

                          Closed: intersection of the closed PSD cone and the closed set {trace = 1}. Bounded: PSD matrices with unit trace have bounded entries.

                          The set of density matrices is convex.

                          PSD cone is convex: a • ρ + b • σ is PSD when ρ, σ are PSD and a, b ≥ 0. Trace is linear: trace(a • ρ + b • σ) = a * 1 + b * 1 = 1 when a + b = 1.

                          theorem densityMatrices_nonempty {D : } (hD : 0 < D) :

                          The set of density matrices is nonempty when D > 0.

                          The matrix (1/D) • I is a density matrix.

                          Channels preserve density matrices #

                          theorem IsChannel.map_densityMatrices {D : } (E : Matrix (Fin D) (Fin D) →ₗ[] Matrix (Fin D) (Fin D) ) (hE : IsChannel E) (ρ : Matrix (Fin D) (Fin D) ) :

                          A channel (CPTP map) maps density matrices to density matrices.