Documentation

Kraus.Entropy

Trace distance and von Neumann entropy #

To prove more results here we should probably work with the characteristic polynomial of a density matrix.

noncomputable def traceDistance {R : Type u_1} [RCLike R] {q : } (ρ σ : densityMatrix (Fin q)) :

The trace distance between two density matrices.

Equations
Instances For
    noncomputable def vonNeumannEntropy {R : Type u_1} [RCLike R] {q : } (ρ : densityMatrix (Fin q)) :

    The von Neumann entropy of a density matrix.

    Equations
    Instances For
      theorem densityMatrix_one {R : Type u_1} [Ring R] [PartialOrder R] [StarRing R] (ρ : densityMatrix (Fin 1)) :
      ρ = !![1]

      A 1x1 density matrix has 1 as its single entry.

      theorem traceDistance_zero {R : Type u_1} [RCLike R] {q : } (ρ : densityMatrix (Fin q)) :

      The trace distance satisfies the axiom d(x,x)=0 of a metric.

      theorem unitary_iff₁₁ (z : ) :
      star z * z = 1 !![z] unitary (Matrix (Fin 1) (Fin 1) )
      theorem unitary_iff₂₂ (a b c d : ) :
      star a * a + star c * c = 1 star b * b + star d * d = 1 star a * b + star c * d = 0 !![a, b; c, d] unitary (Matrix (Fin 2) (Fin 2) )