QuantumInfo.Channels.CPTP
Completely Positive Trace Preserving maps
A `CPTPMap` is a `ℂ`-linear map between matrices (`MatrixMap` is an alias), bundled with the facts that it `IsCompletelyPositive` and `IsTracePreserving`. CPTP maps are typically regarded as the "most general quantum operation", as they map density matrices (`MState`s) to density matrices. The type `PTPMap`, for maps that are positive (but not necessarily completely positive) is also declared.
A large portion of the theory is in terms of the Choi matrix (`MatrixMap.choi_matrix`), as the positive-definiteness of this matrix corresponds to being a CP map. This is [Choi's theorem on CP maps](https://en.wikipedia.org/wiki/Choi%27s_theorem_on_completely_positive_maps).
This file also defines several important examples of, classes of, and operations on, CPTPMaps: * `compose`: Composition of maps * `id`: The identity map * `replacement`: The replacement channel that always outputs the same state * `prod`: Tensor product of two CPTP maps, with notation M₁ ⊗ M₂ * `piProd`: Tensor product of finitely many CPTP maps (Pi-type product) * `of_unitary`: The CPTP map corresponding to a unitary operation `U` * `IsUnitary`: Predicate whether the map corresponds to any unitary * `purify`: Purifying a channel into a unitary on a larger Hilbert space * `complementary`: The complementary channel to its purification * `IsEntanglementBreaking`, `IsDegradable`, `IsAntidegradable`: Entanglement breaking, degradable and antidegradable channels. * `SWAP`, `assoc`, `assoc'`, `traceLeft`, `traceRight`: The CPTP maps corresponding to important operations on states. These correspond directly to `MState.SWAP`, `MState.assoc`, `MState.assoc'`, `MState.traceLeft`, and `MState.traceRight`.
4 declarations
Let and be completely positive trace-preserving (CPTP) maps acting on mixed states of dimensions and respectively. For any two mixed states (density matrices) and , the application of the tensor product map to the product state is equal to the tensor product of the maps applied individually to each state:
Let be an index set and be a family of finite types representing dimensions of Hilbert spaces. For each , let denote the identity CPTP map on the space of matrices over . Then the tensor product of these identity maps, , is equal to the identity CPTP map on the space of matrices over the product type .
is Unitary iff for some Unitary
A completely positive trace-preserving (CPTP) map on the space of density matrices of dimension is unitary if and only if there exists a unitary matrix such that for every density matrix , the action of the map is given by unitary conjugation, .
Matrix Entries of the Stinespring Preparation
Let and be finite types. Let be a complex matrix. Let be the pure state density matrix on the space corresponding to the default basis element. Let be the CPTP map induced by the index equivalence . Let be the tensor product of the identity map on and the replacement channel that always outputs . Then the matrix entries of the composition satisfy: for all and .
