Density operator: and
DefinitionWildeQIT_IsDensityOperatorDefinition 4.1.3 (Density Operator as the State). The state of a quantum system is given by a density operator , which is a positive semi-definite operator with trace equal to one:
denotes the set of all density operators acting on a Hilbert space .
This is the shared notion of quantum state for the whole Wilde formalization series: distance measures (Chapter 9), entropies (Chapters 10–11) and channel coding are all stated for .
Formalization Note. Operators on a finite-dimensional Hilbert space are matrices ρ : Matrix n n ℂ over a finite index type n. WildeQIT.IsDensityOperator ρ : Prop is the predicate ρ.PosSemidef ∧ ρ.trace = 1; Mathlib's Matrix.PosSemidef includes Hermiticity () together with for all vectors (the complex order open scoped ComplexOrder). A bipartite state on is a matrix indexed by the product type a × b.
import Mathlib.LinearAlgebra.Matrix.PosDef
import Mathlib.Analysis.Complex.Basic
open scoped ComplexOrder
/-!
Wilde, *Quantum Information Theory* (2nd ed.), §4.1.1, Definition 4.1.3
(Density Operator as the State).
"The state of a quantum system is given by a density operator `ρ`, which is a positive
semi-definite operator with trace equal to one. Let `𝒟(ℋ)` denote the set of all density
operators acting on a Hilbert space `ℋ`."
Operators on a finite-dimensional Hilbert space are matrices over `ℂ` indexed by a finite type.
-/
namespace WildeQIT
/-- **Definition 4.1.3 (Density Operator).** A matrix `ρ : Matrix n n ℂ` is a density operator
when it is positive semidefinite and has trace equal to one. `ρ ∈ 𝒟(ℋ)` is written
`IsDensityOperator ρ`. -/
def IsDensityOperator {n : Type} [Fintype n] (ρ : Matrix n n ℂ) : Prop :=
ρ.PosSemidef ∧ ρ.trace = 1
end WildeQIT