NLA-lib Explorer

Matrix.IsHermitian.re_trace_exp

Library ยท theorem

The trace of the exponential of a Hermitian matrix is the sum of the exponentials of its eigenvalues: \operatorname{Re} \operatorname{tr} \exp(\mathbf{A}) = \sum_{i < \lvert n \rvert} e^{\lambda_i(\mathbf{A})}.

Matrix.IsHermitian.re_trace_exp.{u_1, u_3} {๐•œ : Type u_1} [RCLike ๐•œ] {n : Type u_3} [Fintype n]
  [DecidableEq n] {A : Matrix n n ๐•œ} (hA : A.IsHermitian) :
  RCLike.re (NormedSpace.exp A).trace = โˆ‘ i โˆˆ Finset.range (Fintype.card n), rexp (eigenvalue A i)

Full source on GitHub

Import NLAlib.Matrix.Functions.Exponential.