The partial trace of a matrix on a product index #
For a square matrix Y with rows and columns indexed by m × n, the partial trace over the
second factor is the m × m matrix Matrix.partialTraceRight Y with entries
∑ k, Y (i, k) (j, k), the sum of the diagonal blocks Matrix.blockDiag Y k. When the index
m × n labels the monomial basis of a tensor product of two finite-dimensional spaces, this is
the partial trace Tr₂ of quantum mechanics, which forgets the second subsystem.
The partial trace preserves the trace, Matrix.trace_partialTraceRight, sends a Kronecker product
A ⊗ₖ B to Tr B • A, Matrix.partialTraceRight_kronecker, sends 1 to card n • 1,
Matrix.partialTraceRight_one, and is a bimodule map over the first factor:
Tr₂ ((A ⊗ₖ 1) * Y * (B ⊗ₖ 1)) = A * Tr₂ Y * B
(Matrix.partialTraceRight_kronecker_one_mul, Matrix.partialTraceRight_mul_kronecker_one). It
commutes with conjugate transposition and preserves positive semidefiniteness, since each
diagonal block is a compression of Y.
Symmetrically, the partial trace over the first factor is the n × n matrix
Matrix.partialTraceLeft Y with entries ∑ k, Y (k, i) (k, j), the partial trace Tr₁ that
forgets the first subsystem. It has the mirror-image properties: it preserves the trace and
positive semidefiniteness, sends A ⊗ₖ B to Tr A • B, and is a bimodule map over the second
factor, Tr₁ ((1 ⊗ₖ A) * Y * (1 ⊗ₖ B)) = A * Tr₁ Y * B. Together, Tr₂ ρ and Tr₁ ρ are the two
reduced density matrices of a state ρ of a bipartite system.
The partial trace over the second factor of a square matrix indexed by m × n: the
m × m matrix with entries ∑ k, Y (i, k) (j, k), the sum of the diagonal blocks of Y.
Instances For
The partial trace preserves the trace.
The partial trace commutes with conjugate transposition.
The partial trace of a Kronecker product A ⊗ₖ B is Tr B • A.
The partial trace of the identity is card n • 1.
The partial trace of a positive semidefinite matrix is positive semidefinite: it is the sum of
the compressions of Y to the diagonal blocks.
The partial trace over the first factor of a square matrix indexed by m × n: the
n × n matrix with entries ∑ k, Y (k, i) (k, j), the sum of the compressions of Y to the
blocks {k} × n.
Instances For
The partial trace over the first factor preserves the trace.
The partial trace over the first factor commutes with conjugate transposition.
The partial trace over the first factor of the identity is card m • 1.
The partial trace over the first factor is left linear over the second factor:
Tr₁ ((1 ⊗ₖ A) * Y) = A * Tr₁ Y.
The partial trace over the first factor is right linear over the second factor:
Tr₁ (Y * (1 ⊗ₖ B)) = Tr₁ Y * B.
The partial trace over the first factor of a positive semidefinite matrix is positive
semidefinite: it is the sum of the compressions of Y to the blocks {k} × n.