structure
Oseledets.OperatorEntropy.DensityMatrix
(n : Type u_2)
[Fintype n]
[DecidableEq n]
:
Type u_2
A finite-dimensional density matrix over ℂ: a positive-semidefinite, unit-trace matrix.
- posSemidef : self.val.PosSemidef
Instances For
noncomputable def
Oseledets.OperatorEntropy.vonNeumannEntropy
{n : Type u_1}
[Fintype n]
[DecidableEq n]
(ρ : DensityMatrix n)
:
The von Neumann entropy S(ρ) = ∑ᵢ negMulLog(λᵢ) over the (real) eigenvalues of ρ.
Equations
- Oseledets.OperatorEntropy.vonNeumannEntropy ρ = ∑ i : n, (⋯.eigenvalues i).negMulLog
Instances For
theorem
Oseledets.OperatorEntropy.DensityMatrix.eigenvalues_nonneg
{n : Type u_1}
[Fintype n]
[DecidableEq n]
(ρ : DensityMatrix n)
(i : n)
:
The eigenvalues of a density matrix are nonnegative.
theorem
Oseledets.OperatorEntropy.DensityMatrix.sum_eigenvalues_eq_one
{n : Type u_1}
[Fintype n]
[DecidableEq n]
(ρ : DensityMatrix n)
:
The eigenvalues of a density matrix sum to 1 (its trace).
theorem
Oseledets.OperatorEntropy.DensityMatrix.eigenvalues_le_one
{n : Type u_1}
[Fintype n]
[DecidableEq n]
(ρ : DensityMatrix n)
(i : n)
:
Each eigenvalue of a density matrix is at most 1.
theorem
Oseledets.OperatorEntropy.vonNeumannEntropy_nonneg
{n : Type u_1}
[Fintype n]
[DecidableEq n]
(ρ : DensityMatrix n)
:
The von Neumann entropy of a density matrix is nonnegative.
noncomputable def
Oseledets.OperatorEntropy.DensityMatrix.maximallyMixed
{n : Type u_1}
[Fintype n]
[DecidableEq n]
[Nonempty n]
:
The maximally mixed state (dim)⁻¹ • I: a canonical inhabitant of DensityMatrix n for
nonempty n, witnessing that the density-matrix API and the entropy bounds are non-vacuous.
Equations
- Oseledets.OperatorEntropy.DensityMatrix.maximallyMixed = { val := (↑(Fintype.card n))⁻¹ • 1, posSemidef := ⋯, trace_one := ⋯ }
Instances For
@[implicit_reducible]
noncomputable instance
Oseledets.OperatorEntropy.instInhabitedDensityMatrixFinOfNatNat :
Inhabited (DensityMatrix (Fin 1))