Documentation

CslibFrontier.Foundations.Quantum.DensityMatrix.PartialTracePairing

Pairing with a partial trace #

Multiplication by an operator that acts only on the retained system passes through the partial trace on either side. Under the matrix trace pairing, tensoring with the identity is therefore adjoint to discarding the second system.

Main results #

theorem Cslib.Quantum.partialTraceRight_kronecker_one_mul {ι : Type u_1} {κ : Type u_2} {R : Type u_3} [Fintype ι] [Fintype κ] [DecidableEq κ] [CommSemiring R] (X : Matrix ι ι R) (A : Matrix (ι × κ) (ι × κ) R) :
partialTraceRight (Matrix.kroneckerMap (fun (x1 x2 : R) => x1 * x2) X 1 * A) = X * partialTraceRight A

Left multiplication by an operator on the retained system passes through the partial trace.

theorem Cslib.Quantum.partialTraceRight_mul_kronecker_one {ι : Type u_1} {κ : Type u_2} {R : Type u_3} [Fintype ι] [Fintype κ] [DecidableEq κ] [CommSemiring R] (X : Matrix ι ι R) (A : Matrix (ι × κ) (ι × κ) R) :
partialTraceRight (A * Matrix.kroneckerMap (fun (x1 x2 : R) => x1 * x2) X 1) = partialTraceRight A * X

Right multiplication by an operator on the retained system passes through the partial trace.

theorem Cslib.Quantum.trace_kronecker_one_mul {ι : Type u_1} {κ : Type u_2} {R : Type u_3} [Fintype ι] [Fintype κ] [DecidableEq κ] [CommSemiring R] (X : Matrix ι ι R) (A : Matrix (ι × κ) (ι × κ) R) :
(Matrix.kroneckerMap (fun (x1 x2 : R) => x1 * x2) X 1 * A).trace = (X * partialTraceRight A).trace

Tensoring an operator with the identity and taking its trace pairing with a joint matrix is equivalent to pairing it with the retained marginal.

theorem Cslib.Quantum.partialTraceRight_reindex_prodComm {ι : Type u_1} {κ : Type u_2} {R : Type u_3} [Fintype ι] [CommSemiring R] (A : Matrix (ι × κ) (ι × κ) R) :

Swapping the two factors exchanges the two partial traces.

theorem Cslib.Quantum.partialTraceRight_kraus {ι : Type u_1} {κ : Type u_2} [Fintype ι] [Fintype κ] [DecidableEq κ] [DecidableEq ι] {α : Type u_4} (s : Finset α) (K : α → Matrix κ κ ℂ) (hK : ∑ a ∈ s, (K a).conjTranspose * K a = 1) (ρ : Matrix (ι × κ) (ι × κ) ℂ) :
partialTraceRight (∑ a ∈ s, Matrix.kroneckerMap (fun (x1 x2 : ℂ) => x1 * x2) 1 (K a) * ρ * (Matrix.kroneckerMap (fun (x1 x2 : ℂ) => x1 * x2) 1 (K a)).conjTranspose) = partialTraceRight ρ

A trace-preserving Kraus operation on the second system leaves the first marginal unchanged. This is partialTraceLeft_kraus after exchanging the two systems.