QuantumInfo.Finite.CPTPMap.MatrixMap
34 declarations
Linear map between square matrix spaces
#MatrixMapLet be a semiring and be types representing the indices of square matrices. A `MatrixMap` is the type of -linear maps from the space of square matrices to the space of square matrices, denoted by .
The identity matrix map
#idThe identity map on the space of square matrices , which maps every matrix to itself. Formally, this is the linear map defined by for all .
Choi matrix of a linear matrix map
#choi_matrixThe Choi matrix of a linear map is a matrix in whose entries are defined by: where is the matrix with at index and elsewhere, and denotes the entry at row and column of the matrix resulting from applying to .
Linear matrix map reconstructed from a Choi matrix
#of_choi_matrixGiven a matrix , the function constructs the corresponding -linear map . For an input matrix , the output matrix has entries defined by: This construction serves as the inverse of the Choi matrix mapping .
`choi_matrix` is the Left Inverse of `of_choi_matrix`
#map_choi_invLet be a semiring and let be a matrix in . Then the Choi matrix of the matrix map associated with is equal to itself; that is, .
Recovery of a linear map from its Choi matrix ()
#choi_map_invLet be a semiring and let be a linear map between square matrices, specifically . Let denote the Choi matrix of and let denote the linear map reconstructed from a Choi-type matrix . Then, applying the reconstruction to the Choi matrix of recovers the original map: .
The Choi matrix construction is injective
#choi_matrix_injLet be a semiring and let and be types indexing square matrices. The operation that assigns a linear map to its Choi matrix is injective. That is, if , then .
Linear equivalence between linear maps of matrices and Choi matrices
#choi_equivLet be a semiring and be types. Let denote the space of -linear maps from matrices to matrices over . There exists a linear equivalence between and the space of matrices indexed by over , defined by mapping a linear map to its Choi matrix and vice versa.
Linear equivalence between matrix maps and transfer matrices
#toMatrixLet be a semiring and be types indexing square matrices. A `MatrixMap` is a linear map between matrix spaces, denoted as . For finite , there exists a linear equivalence between these linear maps and the "transfer matrices" of size . Specifically, the map `toMatrix` sends a linear map to its representation in the standard bases of and . This transfer matrix is constructed such that the composition of matrix maps corresponds to the product of their respective transfer matrices.
is a homomorphism from map composition to matrix multiplication
#toMatrix_compLet be a semiring and be finite types. For any two linear maps between square matrices and , let denote the transfer matrix associated with a map . Then the transfer matrix of the composition is equal to the matrix product of their respective transfer matrices:
Matrix map from Kraus operators and
#of_krausGiven two families of matrices , the function constructs a linear map defined by the action: where denotes the conjugate transpose (Hermitian adjoint) of the matrix .
Existence of a Kraus representation for a linear map
#exists_krausFor any linear map between square matrices over a semiring , there exists a natural number and two families of matrices and such that can be represented in a generalized Kraus form: \[ \Phi(X) = \sum_{i=1}^r M_i X N_i^\top \] where .
Linear map defined by the submatrix
#submatrixGiven a ring and a function between index sets, the `MatrixMap.submatrix` defines a linear map from the space of matrices to the space of matrices over . For any matrix , the map sends to the submatrix whose -th entry is defined as for all .
The submatrix map of the identity index function is the identity matrix map.
#submatrix_idLet be a type and be a semiring. Let be the identity function on indices. The matrix map (which maps a matrix to the matrix with entries ) is equal to the identity matrix map (which maps a matrix to itself).
Composition of operations equals of composed functions
#submatrix_compLet be a ring and be types. For any functions and , the composition of the matrix map submatrix operations is equal to the submatrix operation defined by the composed function .
Kronecker product of matrix maps
#kronGiven two linear maps between square matrices and over a commutative semiring , their Kronecker product is a linear map from to . It is constructed by taking the tensor product of the linear maps , reindexing the resulting basis from to (and similarly for the domain), and converting the result back into a linear map between matrices.
Infix notation `⊗ₖₘ` for Kronecker product of matrix maps
#term_⊗ₖₘ_An infix notation `⊗ₖₘ` is defined to represent the Kronecker product of matrix maps, specifically mapping it to the `MatrixMap.kron` operation.
Formula for Entry-wise Matrix Kronecker Product
#kron_defLet be a commutative semiring. For two linear maps of matrices and , their Kronecker product is a linear map acting on matrices . The entries of the resulting matrix are given by the formula: where denotes the standard basis matrix (a matrix with at position and elsewhere).
Left Distributivity of Kronecker Product of Matrix Maps over Addition
#add_kronLet be a commutative semiring. For any linear maps between square matrices and , the Kronecker product of matrix maps distributes over addition on the left:
Distributivity of Matrix Map Kronecker Product over Addition (Right)
#kron_addLet be a commutative semiring. For any linear map between matrices and any linear maps , the Kronecker product of with the sum is equal to the sum of the Kronecker products, i.e., .
Let be a commutative semiring and let and be linear maps between spaces of square matrices (matrix maps). For any scalar , the Kronecker product of the scaled matrix map with is equal to the scalar multiplied by the Kronecker product of and . That is, , where denotes the Kronecker product of matrix maps.
Kronecker Product of Matrix Maps is Homogeneous in the Right Argument
#kron_smulLet be a commutative semiring and let and be linear maps between square matrices (specifically, is a `MatrixMap` from -indexed matrices to -indexed matrices, and is a `MatrixMap` from -indexed matrices to -indexed matrices). For any scalar , the Kronecker product of and the scalar multiple is equal to the scalar multiple of the Kronecker product of and . That is, .
Let be a commutative semiring. For any linear map between square matrices , the Kronecker product of the zero matrix map with is equal to the zero map from to . That is, .
Kronecker Product of a Matrix Map with Zero is Zero
#kron_zeroLet be a commutative semiring. For any linear map between matrices , the Kronecker product of with the zero map is equal to the zero map from to . That is, .
For any types and and a commutative semiring , the Kronecker product of the identity matrix maps on and is equal to the identity matrix map on the product type . That is, .
Mixed-product property of the Kronecker product of matrix maps
#kron_comp_distribLet be a commutative semiring. For any linear maps between square matrices , , , and , the Kronecker product of their compositions satisfies the distributive law: where denotes linear map composition and denotes the Kronecker product of matrix maps.
Let be a commutative ring. For any two matrix maps and , and for any two matrices and , the Kronecker product of the maps applied to the Kronecker product of the matrices satisfies where denotes the Kronecker product of matrix maps and denotes the Kronecker product of matrices.
Representation of the Choi matrix via the maximally entangled state:
#choi_matrix_state_repLet and be finite non-empty types. Let be a linear map from matrices to matrices over the complex numbers . The Choi matrix of , denoted , is given by: where is the cardinality of , denotes the Kronecker product of matrix maps, is the identity map on matrices, and is the density matrix of the maximally entangled state on .
Let be a commutative semiring. For any functions and , let and denote the linear maps that take a square matrix and return the submatrix indexed by and respectively. Then the Kronecker product of these matrix maps is equal to the submatrix map indexed by the product function : where is defined by .
Let be a commutative semiring and be a function between index sets. Let denote the linear map that sends a matrix to the submatrix , and let denote the identity linear map on square matrices over the index set . Then the Kronecker product of the submatrix map and the identity map is equal to the submatrix map defined by the product function : where is the map .
Let be a commutative semiring and be a function. Let denote the identity linear map on square matrices over , and let denote the linear map that takes a square matrix and returns the submatrix indexed by . Then the Kronecker product of the identity map and the submatrix map is equal to the submatrix map indexed by the product function : Where is the map .
Basis for a family tensor product indexed by
#piTensorProductLet be a ring and be an indexing type. For each , let be an -module and be a finite type. If is a basis for indexed by for every , then there exists a basis for the family tensor product (denoted `PiTensorProduct R s`) indexed by the dependent function type . This basis is constructed by taking the tensor products of the basis elements from each .
Tensor product of a family of MatrixMaps
#piProdGiven a family of matrix maps for , where each is a linear map between square matrices, the function returns the tensor product of these maps . This is a linear map from matrices indexed by to matrices indexed by . It is defined by taking the -tensor product of the underlying linear maps and reindexing the resulting basis to match the structure of a square matrix map over the product types.
Composition of tensor product matrix maps distributes over components:
#piProd_compLet be a semiring and be an indexing type. For each , let , , and be finite types with decidable equality. Suppose we have two families of linear maps between square matrices, and , for each . Then the product map of the compositions is equal to the composition of the product maps: where (represented by `piProd` in the formal statement) denotes the tensor product of matrix maps.
