is_density_matrix_state
def
A density matrix state on a finite-dimensional Hilbert space is an α × α complex matrix ρ whose associated linear map Matrix.toEuclideanLin ρ is positive semidefinite and whose matrix trace ρ.trace equals 1.
Statement
def is_density_matrix_state {α : Type*} [Fintype α] [DecidableEq α] (ρ : Matrix α α ℂ) : Prop
- Defined in
- arXiv:2610.35838 Sec. II.3
- Verified
- 17 Nov 2026
- Axioms
- none listed
- Used by 1
- eb_pauli_outputsThe set eb_pauli_outputs n is the set of all density matrices σ = pauli_channel_apply p ρ where p is an entanglement-breaking Pauli…
Read back from the Lean
For a type α equipped with Fintype α and DecidableEq α, and a complex square matrix ρ : Matrix α α ℂ, is_density_matrix_state ρ is defined as the conjunction of two conditions:
1. (Matrix.toEuclideanLin ρ).IsPositive: the linear map on EuclideanSpace ℂ α represented by ρ is positive (in Mathlib, positive semidefinite and self-adjoint).
2. ρ.trace = 1: the trace of ρ is equal to 1.
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
Lean source view module on GitHub
/-- A quantum state is a positive semidefinite matrix with trace 1. -/ def is_density_matrix_state {α : Type*} [Fintype α] [DecidableEq α] (ρ : Matrix α α ℂ) : Prop := (Matrix.toEuclideanLin ρ).IsPositive ∧ ρ.trace = 1