Documentation

CslibFrontier.Foundations.Quantum.DensityMatrix.Normalize

Normalizing positive density operators #

A positive matrix with positive trace can be normalized to a density matrix. The same formula sends the zero matrix to zero; it does not assign a state to an impossible measurement branch. Multiplying the normalized matrix by its original trace recovers every positive matrix, including the zero matrix. These are original bridges for supported probabilistic continuations.

Main definitions #

Main results #

noncomputable def Cslib.Quantum.normalizeDensity {ι : Type u_1} [Fintype ι] (ρ : Matrix ι ι ℂ) :
Matrix ι ι ℂ

Divide by the real trace. A zero-trace input maps to zero, not to a chosen default state.

Normalization scales by the inverse real trace.

A positive matrix with positive mass normalizes to a density matrix.

theorem Cslib.Quantum.trace_smul_normalizeDensity {ι : Type u_1} [Fintype ι] {ρ : Matrix ι ι ℂ} (hρ : ρ.PosSemidef) :

A positive matrix is its mass times its normalized value, even when its mass is zero.