QuantumInfo.ForMathlib.HermitianMat.Trace
34 declarations
Trace of a Hermitian matrix as an element of the self-adjoint base
#traceLet be a -ring and be a subring of its self-adjoint elements such that is the maximal self-adjoint part of . For a Hermitian matrix , the function returns the trace of as an element of . For example, if , then the trace is returned as a real number in .
Let be a Hermitian matrix with entries in , where is an algebra over a ring . Let denote the underlying matrix of , and denote the trace of the Hermitian matrix as an element of . Then the image of the Hermitian trace under the horizontal map is equal to the standard matrix trace .
Linearity of Trace under Scalar Multiplication for Hermitian Matrices
#trace_smulLet be a Hermitian matrix with entries in , and let be a scalar from a self-adjoint ring . The trace of the scalar multiplication of and is equal to the product of and the trace of : where denotes the trace specialized for Hermitian matrices that maps to the self-adjoint part of the base ring .
The trace of the zero Hermitian matrix is zero
#trace_zeroThe trace of the zero Hermitian matrix is equal to in the base ring , where is the subring of self-adjoint elements.
for Hermitian matrices
#trace_addLet and be Hermitian matrices of size with entries in . The trace of the sum of these matrices is equal to the sum of their individual traces, namely . Here, the trace is defined such that it maps to the self-adjoint part of the scalar ring .
Trace of is for Hermitian Matrices
#trace_negLet be a Hermitian matrix of size over a star-ring . The trace of the negative of the matrix is equal to the negation of the trace of the matrix, i.e., , where the trace is defined as a self-adjoint element of the underlying scalar structure.
for Hermitian matrices
#trace_subFor any two Hermitian matrices and of the same size, the trace of their difference is equal to the difference of their traces, i.e., . Here, the trace of a Hermitian matrix is defined as a self-adjoint element of the underlying scalar ring (for example, a real number when the matrices are over the complex numbers).
The trace of a Hermitian matrix is self-adjoint
#isSelfAdjoint_traceLet be an matrix over a star-ring . If is Hermitian, then its trace is a self-adjoint element of .
for Hermitian Matrices
#trace_kroneckerLet and be Hermitian matrices. Assuming a faithful scalar action of the base ring on the matrix entries , the trace of the Kronecker product of and is equal to the product of their individual traces, denoted as . Here, the trace is defined such that it maps a Hermitian matrix to a self-adjoint element of its base ring.
`A.trace` equals for real Hermitian matrices
#trace_eq_trace_trivialFor any Hermitian matrix with entries in , the value of the Hermitian trace `A.trace` is equal to the standard matrix trace .
Trace of a Hermitian matrix over equals
#trace_eq_re_traceLet be a Hermitian matrix of size over an `RCLike` field (such as or ). The trace of as a Hermitian matrix coincides with the real part of the standard matrix trace of . That is, , where denotes the trace operation specifically defined for Hermitian matrices.
The trace of the identity Hermitian matrix equals the size of the index set
#trace_oneLet be a finite index set with decidable equality. For the identity Hermitian matrix over an -clike field (such as or ), the trace of this matrix, denoted as , is equal to the cardinality of the index set .
The Hermitian trace of equals the standard matrix trace for `RCLike` fields
#trace_eq_trace_rcLet be an index type and be an `RCLike` field (such as or ). For any Hermitian matrix , the trace of the Hermitian matrix, , is equal to the standard matrix trace of its underlying matrix, .
The trace of a diagonal Hermitian matrix equals
#trace_diagonalLet be a finite type and let be a function. Let be the Hermitian diagonal matrix over a field whose diagonal entries are given by . Then the trace of this Hermitian matrix is equal to the sum of the elements of , i.e., .
for Hermitian matrices over or
#sum_eigenvalues_eq_traceLet be a Hermitian matrix with entries in an `RCLike` field (such as or ). The sum of the eigenvalues of is equal to the trace of , where the trace is considered as an element of the real numbers . Formally, , where is the specialized trace for Hermitian matrices that maps to the self-adjoint part of the base field.
The real trace of a Hermitian matrix is iff its standard trace is
#trace_eq_zero_iffLet be a Hermitian matrix with entries in an `RCLike` field (such as or ). The real-valued trace of , denoted as `A.trace`, is equal to if and only if the standard matrix trace of , denoted as `A.mat.trace`, is equal to .
The self-adjoint trace of a Hermitian matrix is iff its matrix trace is
#trace_eq_one_iffLet be an index type and be an `RCLike` field (such as or ). For any Hermitian matrix over , the self-adjoint trace is equal to if and only if the standard matrix trace is equal to . Here, the self-adjoint trace is defined to be the real-valued trace (specifically, the real part of the matrix trace in the case of complex matrices).
The trace of a Hermitian matrix is invariant under reindexing:
#trace_reindexLet be a Hermitian matrix with complex entries indexed by . Given a bijection (equivalence) between index sets and , let be the Hermitian matrix obtained by reindexing by . Then the trace of is equal to the trace of . Specifically, since the trace of a Hermitian matrix is defined as a real number, this equality holds in .
Left partial trace of a Hermitian matrix
#traceLeftGiven a Hermitian matrix over a star-ring with indices in the product space , the left partial trace is a Hermitian matrix with indices in . It is obtained by taking the left partial trace of the underlying matrix , where the result remains Hermitian. For an entry indexed by , the operation is defined by summing over the first subsystem:
Right partial trace of a Hermitian matrix
#traceRightGiven a Hermitian matrix over a star-ring , where the index set is a product , the right partial trace is a Hermitian matrix in . It is defined by applying the matrix right partial trace to the underlying matrix of : The result is guaranteed to be a Hermitian matrix of size if the original matrix is Hermitian.
The underlying matrix of the left partial trace of a Hermitian matrix equals the left partial trace of
#traceLeft_matLet be a Hermitian matrix with indices in . Let denote the underlying matrix in . Then the underlying matrix of the left partial trace of is equal to the left partial trace of the underlying matrix . That is, where the left partial trace for a matrix is defined as .
Additivity of the left partial trace for Hermitian matrices:
#traceLeft_addLet and be Hermitian matrices with row and column indices in over a star-additive monoid. The left partial trace of their sum is equal to the sum of their individual left partial traces: where the left partial trace of a Hermitian matrix is defined such that its underlying matrix coincides with the standard matrix partial trace over the first subsystem.
Left Partial Trace of a Negated Hermitian Matrix is
#traceLeft_negFor any Hermitian matrix whose row and column indices are structured as products and respectively, the left partial trace operation commutes with negation: . Here, denotes the partial trace taken over the first component of the index products, resulting in a Hermitian matrix of size .
The left partial trace of Hermitian matrices is distributive over subtraction:
#traceLeft_subLet and be Hermitian matrices whose row and column indices are structured as the product of two index sets . The left partial trace operation on Hermitian matrices, denoted , is distributive over subtraction: where the left partial trace of a Hermitian matrix is defined such that its entries are the sums over the first index component , maintaining the Hermitian property in the resulting matrix.
The Matrix Representation of the Right Partial Trace of a Hermitian Matrix is Equal to the Right Partial Trace of its Matrix
#traceRight_matLet be a Hermitian matrix with row indices in and column indices in . The matrix representation of the right partial trace of , denoted as , is equal to the right partial trace of the matrix representation of , denoted as . Here, the right partial trace of a matrix is defined as the sum over the second index: .
The right partial trace of Hermitian matrices is additive:
#traceRight_addFor any Hermitian matrices and whose row and column indices are structured as , the right partial trace satisfies the additivity property . Here, the right partial trace denotes the operation of taking the trace over the second component of the index products, resulting in a Hermitian matrix with indices in .
for Hermitian matrices
#traceRight_negLet be a Hermitian matrix with row and column indices in . The right partial trace of the negation of is equal to the negation of the right partial trace of , i.e., .
The right partial trace of Hermitian matrices is distributive over subtraction:
#traceRight_subLet and be Hermitian matrices whose row and column indices are structured as . The right partial trace satisfies the distributive property over subtraction: where denotes the Hermitian matrix obtained by taking the partial trace over the second subsystem (the component of the index product).
for Hermitian matrices and
#traceLeft_smulLet be a Hermitian matrix with indices in , and let be a real number. The left partial trace of the scalar product is equal to the scalar product of and the left partial trace of , denoted as . Here, the operation maps a Hermitian matrix to a smaller Hermitian matrix by summing over the first subsystem's indices.
for Hermitian matrices and real scalars
#traceRight_smulLet be a Hermitian matrix in and be a real number. The right partial trace of the scalar multiplication of by is equal to times the right partial trace of , that is, .
for Hermitian matrices
#traceLeft_traceLet be a Hermitian matrix with row and column indices in . The trace of the left partial trace of is equal to the trace of : where denotes the partial trace of the Hermitian matrix over the first subsystem, and denotes the trace of a Hermitian matrix (which, for scalars in an `RCLike` field like , corresponds to the real part of the standard matrix trace).
for Hermitian matrices
#traceRight_traceLet be a Hermitian matrix with row and column indices in . The trace of its right partial trace is equal to the trace of , i.e., where the trace of a Hermitian matrix is take in the sense of `HermitianMat.trace` (mapping to the maximal self-adjoint part of the scalars).
Left Partial Trace of Kronecker Product equals
#traceLeft_kronLet be a Hermitian matrix of size and be a Hermitian matrix of size over an -clike field . Assume the index set for is finite. Then the left partial trace of the Kronecker product is equal to the product of the trace of and the matrix , i.e., where is the real-valued trace of the Hermitian matrix .
Right Partial Trace of Kronecker Product equals
#traceRight_kronLet be an Hermitian matrix and be an Hermitian matrix. Let denote the Kronecker product of and , which is a Hermitian matrix over the index set . Then the right partial trace of the Kronecker product is given by: where is the trace of (viewed as an element of the self-adjoint part of the base ring) and denotes scalar multiplication.
