QuantumInfo.Finite.CPTPMap.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`.
61 declarations
Choi matrix of a CPTP map
Let be a completely positive trace-preserving (CPTP) map from to . The function returns the Choi matrix associated with the underlying linear map of . The Choi matrix is defined such that its entries are given by , where is the standard basis matrix.
Equality of Choi Matrices implies for CPTP Maps
Let and be completely positive trace-preserving (CPTP) maps from input dimension to output dimension . If their Choi matrices are equal, denoted by , then the maps themselves are equal, i.e., .
The Choi matrix of a CPTP map is positive semidefinite
Let be a completely positive trace-preserving (CPTP) map from matrices of dimension to matrices of dimension over . Then its associated Choi matrix is positive semidefinite.
for CPTP maps
Let be a completely positive trace-preserving (CPTP) map from the space of matrices over an input index set to a space of matrices over an output index set . The trace of its associated Choi matrix, denoted , is equal to the cardinality of the input space .
CPTP map from a PSD Choi matrix with
Given a matrix , if is positive semi-definite () and its partial trace over the output system satisfies , then the linear map constructed via the Choi-Jamiołkowski isomorphism such that is a completely positive trace-preserving (CPTP) map from matrices to matrices.
The Choi matrix of a CPTP map reconstructed from is
Let be a matrix such that is positive semi-definite () and its partial trace over the output system satisfies . If is the completely positive trace-preserving (CPTP) map constructed from via the Choi-Jamiołkowski isomorphism, then the Choi matrix of is equal to , i.e., .
The matrix of a CPTP map applied to a state equals
Let be a completely positive trace-preserving (CPTP) map from -dimensional density matrices to -dimensional density matrices. For any mixed state , the underlying complex matrix of the state resulting from the application of the map, denoted , is equal to the result of applying the underlying linear map of to the underlying matrix of , denoted .
Function Extensionality for CPTP Maps
Let and be completely positive trace-preserving (CPTP) maps from the space of matrix states to . If for every density matrix , the application of the maps yields the same result, i.e., , then the CPTP maps are equal, .
Composition of CPTP maps
Given two completely positive trace-preserving (CPTP) maps, and , their composition is the CPTP map from to whose underlying linear map is the function composition of the linear maps of and . This composition inherits the properties of being completely positive and trace-preserving from its constituents.
Notation for CPTP map composition
The symbol denotes the composition of two completely positive trace-preserving (CPTP) maps. Given and , is defined as the composition .
Composition of CPTP maps
Let and be two completely positive trace-preserving (CPTP) maps. Application of the composed CPTP map to a density matrix (matrix state) is equal to applying to the result of applying to , i.e., .
Composition of CPTPMaps is associative:
Let , , and be completely positive trace-preserving (CPTP) maps. Then the composition of these maps is associative, satisfying .
Convex structure of CPTP maps via Choi matrices
The type of completely positive trace-preserving (CPTP) maps from matrices to matrices admits a convex structure. This is established by identifying each CPTP map with its Choi matrix in . Specifically, a linear combination of CPTP maps (where and ) is again a CPTP map because the corresponding convex combination of Choi matrices preserves positive semi-definiteness and the trace-preserving condition .
Identity CPTP map on
Let be a finite type representing the dimensions of a Hilbert space. The identity CPTP map is the completely positive trace-preserving map that acts as the identity operator on the space of complex matrices. It is defined such that its underlying linear map is the identity, and it inherits the properties of being completely positive and trace-preserving from the identity linear map.
The underlying linear map of is
Let be the identity completely positive trace-preserving (CPTP) map on matrices of dimension . The underlying linear map of is equal to the identity linear map on the space of matrices.
The identity CPTP map satisfies for any mixed state
Let be the identity completely positive trace-preserving (CPTP) map from -dimensional density matrices to themselves. For any mixed state , applying the identity map to the state leaves it unchanged, such that .
for CPTP maps
For any completely positive trace-preserving (CPTP) map from a system of dimension to a system of dimension , the composition of the identity CPTP map with is equal to itself, i.e., .
for CPTP maps
For any completely positive trace-preserving (CPTP) map from a system with dimension to a system with dimension , the composition of with the identity CPTP map on the input system is equal to itself, i.e., .
CPTP Map induced by a bijection
Given an equivalence (bijection) between two finite types, the function `CPTPMap.ofEquiv` defines a Completely Positive Trace Preserving (CPTP) map between the corresponding spaces of matrices. This map is defined by the action , which permutes or relabels the indices of a density matrix according to the inverse bijection . Such maps represent unitary-like operations that change the underlying label type of a quantum system without loss of information.
Action of on state equals
Let and be finite sets representing the basis dimensions of quantum systems. For any bijection (equivalence) and any mixed state , the action of the CPTP map induced by , denoted as , on the state is equal to the relabeling of by the inverse bijection . That is, .
Let and be finite types, and let be a bijection (equivalence) between them. Let and be the completely positive trace-preserving (CPTP) maps induced by and its inverse, respectively. The composition of the map induced by with the map induced by is equal to the identity CPTP map on the space of density matrices indexed by , such that .
The SWAP channel CPTPMap (d₁ × d₂) → (d₂ × d₁)
The Swap operator is defined as a completely positive trace-preserving (CPTP) map from the space of density matrices on the bipartite system to the space of density matrices on the permuted system . It is constructed from the underlying equivalence that maps to .
The associator channel `assoc` for CPTP maps
The associator channel `assoc` is a completely positive trace-preserving (CPTP) map from the space of density matrices on the nested system to the space . It is the quantum channel induced by the set-theoretic associativity equivalence for indices .
The inverse associator channel `assoc'`
The inverse associator for Completely Positive Trace Preserving (CPTP) maps is defined as the quantum channel induced by the set-theoretic inverse associativity equivalence . It maps density matrices between these differently grouped tensor product spaces.
Action of CPTP SWAP map equals state SWAP operation
For any quantum mixed state on a composite system with dimensions , the application of the SWAP CPTP map to is equal to the SWAP operation applied directly to the mixed state, denoted as .
The CPTP map acts as the quantum state associator
Let be a quantum mixed state on a tripartite Hilbert space with dimensions structured as . Then the application of the associator CPTP map, denoted by , to the state is equal to the state-level associator , which maps the density matrix from the space to .
The associator map equals the operation
For any quantum mixed state on a tripartite system with dimensions , the application of the completely positive trace-preserving (CPTP) associator map to is equal to the state-level association operation , which re-groups the system into dimensions .
for CPTP maps
Let and be the associator and inverse associator completely positive trace-preserving (CPTP) maps, respectively. Then their composition is equal to the identity CPTP map .
Partial trace over the left subsystem as a CPTP map
A completely positive trace-preserving (CPTP) map that performs the partial trace over the first subsystem of a bipartite system. For dimensions and , it maps a density matrix acting on the joint Hilbert space (represented as a matrix of size ) to a density matrix acting on the second subsystem (represented as a matrix of size ). The map is defined by the partial trace operator , which traces out the -dimensional component.
Partial trace over the right subsystem as a CPTP map
A completely positive trace-preserving (CPTP) map that performs the partial trace over the second subsystem of a bipartite system. For dimensions and , it maps a density matrix in the joint Hilbert space (represented as a matrix of size ) to a density matrix in the first subsystem of size . Formally, it is defined as the composition of the swap operation and the partial trace over the left subsystem .
The partial trace CPTP map coincides with the state-level partial trace
Let be a mixed state (density matrix) of a composite quantum system with dimensions . The result of applying the partial trace channel (viewed as a completely positive trace-preserving map) to is equal to the reduced density matrix obtained by the partial trace operation over the first subsystem.
The partial trace CPTP map coincides with the state-level partial trace
Let be a mixed state (density matrix) of a bipartite system with dimensions . The result of applying the partial trace channel (as a CPTP map) to is equal to the reduced density matrix obtained via the partial trace operation on states.
Replacement channel mapping to state
Given a quantum state of dimension , the replacement channel is a completely positive trace-preserving (CPTP) map from the space of states of dimension to the space of states of dimension . For any input state , the map is defined such that . Formally, this is constructed by taking the Kronecker product of the input matrix and the matrix , and then performing a partial trace over the input system.
The replacement channel always outputs
Let be a non-empty index type and be an index type with decidable equality. For any density matrix (mixed state) , the replacement channel is a completely positive trace-preserving (CPTP) map from to . For any input state , the action of this map is given by .
The replacement channel to the maximally mixed state is the default `Inhabited` instance for `CPTPMap dIn dOut`
For two finite-dimensional index sets and representing Hilbert spaces, if and are non-empty, there exists a default completely positive trace-preserving (CPTP) map from to . This default map is the replacement channel , which maps any input density matrix to the default (maximally mixed) state .
Existence of CPTP maps for non-empty input and output spaces
Given two finite types and which are both non-empty, the type of completely positive trace-preserving (CPTP) maps from matrices indexed by to matrices indexed by is non-empty.
The CPTP map that destroys a system by tracing it out to a 1D system
For a finite-dimensional system with index set and a one-dimensional system with a unique index set , where is non-empty, the map `CPTPMap.destroy` is the unique completely positive trace-preserving (CPTP) map from the space of matrices over to the space of matrices over . It is defined as the replacement map that sends any input density matrix to the unique state in the 1-dimensional output space. This represents the operation of "destroying" a system or tracing out all its degrees of freedom.
Uniqueness of CPTP maps to 1D spaces
For any input Hilbert space index type that is non-empty, and any output Hilbert space index type that is a singleton (1-dimensional space), there exists a unique Completely Positive Trace Preserving (CPTP) map from the space of matrices over to the space of matrices over . This unique map is the trace operation (often called the discarding or "destroy" channel).
for any CPTP map
Let , , and be finite types representing the dimensions of quantum systems. Suppose and are non-empty, and is a singleton set (i.e., it has a unique element). Let be a completely positive trace-preserving (CPTP) map. Let denote the unique CPTP map whose output space is a system of dimension 1. Then the composition of followed by the destroy map to is equal to the destroy map from to . That is, .
Tensor product of CPTP maps
Let be a completely positive trace-preserving (CPTP) map from matrices of dimension to , and be a CPTP map from matrices of dimension to . Their tensor product is a CPTP map from matrices of dimension to . The underlying linear map is given by the Kronecker product of the maps , and it inherits the properties of being completely positive and trace-preserving from its components.
Tensor Product Notation for CPTP Maps (`⊗ᶜᵖ`)
An infix notation `⊗ᶜᵖ` representing the tensor product of two completely positive trace-preserving (CPTP) maps. Given two maps and , denotes their tensor product as a new CPTP map from to .
Tensor product of a family of CPTP maps
Given a family of completely positive trace-preserving (CPTP) maps indexed by , where each maps matrices over the finite type to matrices over , the function returns their finitely-indexed tensor product . The resulting map is a CPTP map from matrices indexed by the product type to matrices indexed by the product type . The underlying linear map is defined as the tensor product of the individual matrix maps, and it preserves both complete positivity and the trace.
The tensor product of a single CPTP map equals up to isomorphism
Let be the index set (represented by `Fin 1`). For any family of input Hilbert spaces and output Hilbert spaces indexed by , and for any family of completely positive trace-preserving (CPTP) maps , the tensor product of these maps (denoted `piProd`) is equal to the single map up to the canonical isomorphisms between the product spaces and the individual spaces.
for CPTP maps
Let be an indexing set. For each , let , , and be finite types. Suppose we have two families of completely positive trace-preserving (CPTP) maps, acting from matrices over to matrices over , and acting from matrices over to matrices over . Then the tensor product of the composed maps is equal to the composition of the tensor products of the maps: where denotes the tensor product of a family of CPTP maps (represented by `piProd` in the formal statement) and denotes map composition.
CPTP map induced by a unitary
Given a unitary matrix , this definition constructs the corresponding completely positive trace-preserving (CPTP) map from to . The map is defined by the conjugation for any matrix . The proof ensures that this map is both completely positive and trace-preserving.
The action of on is equal to
For any unitary matrix and any density matrix (matrix state) , the action of the completely positive trace-preserving (CPTP) map associated with , denoted as , on the state is equal to the unitary conjugation of by , denoted as (i.e., ).
is Unitary iff
A completely positive trace-preserving (CPTP) map from to is said to be unitary if there exists a unitary matrix such that is the unitary channel . In terms of its action on density matrices, this means there exists a such that for all states , .
Let be a completely positive trace-preserving (CPTP) map from the space of density matrices to itself. is a unitary channel (satisfies `IsUnitary`) 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, .
The CPTP map induced by a permutation is unitary
Let be a finite-dimensional Hilbert space (or a type representing the indices of a density matrix). For any permutation (equivalence) , the CPTP map induced by this permutation, denoted as , is unitary.
Existence of Unitary Purification for CPTP Maps
For any completely positive trace-preserving (CPTP) map from input dimension to output dimension , there exists a unitary CPTP map acting on the enlarged space such that can be represented by the following sequence of operations: 1. Append a ancillary state to the input via an equivalence . 2. Prepare an ancillary system in the fixed pure state on the space and tensor it with the input: . 3. Apply the unitary evolution . 4. Perform partial traces over the ancillary systems: . Mathematically, .
Unitary purification of a CPTP map
Given a completely positive trace-preserving (CPTP) map from an input system of dimension to an output system of dimension , its purification is a unitary CPTP map acting on the enlarged system . This construction is a canonical choice satisfying the Stinespring dilation theorem, such that can be recovered by preparing the environment in a fixed pure state on and subsequently performing a partial trace over the environment after the unitary evolution. The existence of such a map is guaranteed by the Choi–Jamiolkowski isomorphism and the fact that any CP map can be represented as a restriction of a unitary operation on a sufficiently large Hilbert space.
The purification of a CPTP map is unitary
For any completely positive trace-preserving (CPTP) map between finite-dimensional quantum systems, its purification is a unitary CPTP map.
The channel is the partial trace of its own purification under zero-state preparation.
Let be a completely positive trace-preserving (CPTP) map. Let be the purified unitary channel of . Then can be recovered by the following sequence of operations: 1. Append a system in a trivial state (isomorphic to ) to the input . 2. Prepare two auxiliary systems of type in the pure state , where is the default basis vector. 3. Apply the identity map on the input system and the state preparation on the auxiliary systems (denoted as ). 4. Apply the purified unitary channel to the combined system . 5. Perform a partial trace over the two leftmost components of the output. Formally, .
Complementary channel of a CPTP map
Let be a completely positive trace-preserving (CPTP) map. The complementary channel is defined by tracing out the "right half" of the purified unitary channel . Specifically, the map is constructed as follows: 1. Append a trivial system to the input via the equivalence . 2. Prepare two auxiliary systems of dimension in the pure state , where is the default basis vector. 3. Apply the identity map on the input and the state preparation on the auxiliaries (). 4. Apply the purified unitary channel to the combined system . 5. Apply the inverse associator to regroup the systems. 6. Perform a partial trace over the rightmost subsystem (). Formally, .
is degradable to via some channel
Let and be completely positive trace-preserving (CPTP) maps (quantum channels). We say that is degradable to if there exists a CPTP map , called a degrading channel, such that .
is antidegradable to via being degradable to
Let and be completely positive trace-preserving (CPTP) maps. We say that is **antidegradable to** if is degradable to . That is, there exists a CPTP map such that .
is a degradable quantum channel
A quantum channel (represented as a completely positive trace-preserving map from matrices to matrices) is said to be **degradable** if there exists a CPTP map such that the complementary channel can be obtained by composing with , i.e., .
is an antidegradable quantum channel
A quantum channel (a completely positive trace-preserving map from to ) is said to be **antidegradable** if it is antidegradable to its own complementary channel . Specifically, this property holds if there exists a CPTP map such that can be obtained by composing its complementary channel with , i.e., .
Topological space structure on via Choi matrices
The space of completely positive trace-preserving (CPTP) maps between matrix algebras and is equipped with a topology. This topology is the induced topology (or subspace topology) obtained from the Choi matrix representation, where a CPTP map is identified with its Choi matrix in the topological space of complex matrices.
The Choi representation of CPTP maps is a topological embedding
The map that sends a completely positive trace-preserving (CPTP) map to its Choi matrix is a topological embedding. This means that is injective and is a homeomorphism onto its image when the space of CPTP maps is equipped with the subspace topology induced by the Choi representation.
The Space of CPTP Maps is a Space
The space of completely positive trace-preserving (CPTP) maps between matrix algebras of dimensions and , denoted by `CPTPMap dIn dOut`, is a space (a regular Hausdorff space) under the topology induced by the Choi-Jamiołkowski isomorphism.
