Choi–Jamiołkowski matrix , partial trace , trace preservation
DefinitionOCB2012_cjprocess-matricesquantum-information
Definitions for the Choi–Jamiołkowski (CJ) correspondence used by Oreshkov, Costa and Brukner (2012).
- CJ matrix (p. 3). For a linear map ,
where is not normalized and is the full transpose. In the index order its entries are .
2. Partial trace over the first factor: . It complements ptrace₂ from OCB2012_defs.
3. Trace preservation: for every .
These definitions connect the mission's representation of local operations by CJ matrices to the maps themselves.
Definition code
import Mathlib
import Definitions.Def_PeresTerno_kraus_basics
import Definitions.Def_OCB2012_defs
/-!
# The Choi–Jamiołkowski matrix (Oreshkov–Costa–Brukner 2012, p. 3 and App. B)
O. Oreshkov, F. Costa, Č. Brukner, *Quantum correlations with no causal order*,
Nat. Commun. 3, 1092 (2012), arXiv:1105.4464v3.
For a linear map `𝓜 : L(H^{X1}) → L(H^{X2})` the paper (p. 3) defines its CJ matrix
`M^{X1X2} := [𝓘 ⊗ 𝓜(|φ⁺⟩⟨φ⁺|)]ᵀ`, with `|φ⁺⟩ = ∑ⱼ |jj⟩` (not normalized) and `ᵀ` the full
transpose. Expanding `|φ⁺⟩⟨φ⁺| = ∑_{i,j} |i⟩⟨j| ⊗ |i⟩⟨j|` gives the entries
`M_{(i,k),(j,l)} = 𝓜(|j⟩⟨i|)_{l k}`, in the index order `X1 × X2` used throughout the mission.
-/
namespace OCB2012
open Matrix
noncomputable section
/-- p. 3: the CJ matrix `M^{X1X2} = [𝓘 ⊗ 𝓜(|φ⁺⟩⟨φ⁺|)]ᵀ` of a linear map
`𝓜 : L(H^{X1}) → L(H^{X2})`; entrywise `M_{(i,k),(j,l)} = 𝓜(|j⟩⟨i|)_{l k}`. -/
def cjMatrix {x1 x2 : Type*} [DecidableEq x1]
(Φ : Matrix x1 x1 ℂ →ₗ[ℂ] Matrix x2 x2 ℂ) : Matrix (x1 × x2) (x1 × x2) ℂ :=
Matrix.of fun r c => Φ (Matrix.single c.1 r.1 1) c.2 r.2
/-- Partial trace over the first tensor factor:
`(Tr₁ M)_{kl} = ∑ᵢ M_{(i,k),(i,l)}`. -/
def ptrace₁ {α β : Type*} [Fintype α] (M : Matrix (α × β) (α × β) ℂ) : Matrix β β ℂ :=
Matrix.of fun k l => ∑ i, M (i, k) (i, l)
/-- A linear map is trace preserving: `Tr 𝓜(ρ) = Tr ρ` for every `ρ`. -/
def IsTracePreserving {x1 x2 : Type*} [Fintype x1] [Fintype x2]
(Φ : Matrix x1 x1 ℂ →ₗ[ℂ] Matrix x2 x2 ℂ) : Prop :=
∀ ρ, (Φ ρ).trace = ρ.trace
end
end OCB2012
Source
O. Oreshkov, F. Costa, C. Brukner, Quantum correlations with no causal order, Nat. Commun. 3, 1092 (2012), https://arxiv.org/abs/1105.4464v3, p. 3 (definition of the CJ matrix) and Appendix B, Eq. (15)