H.coeff
expands a \((d,d)\)-dimensional Hermitian matrix H
with respect to
an orthonormal (in terms of the Frobenius inner product) basis of the space of Hermitian matrices.
That is, H.coeff
transforms H
into a numeric vector of \(d^2\) real-valued basis coefficients,
which is possible as the space of Hermitian matrices is a real vector space. Let \(E_{nm}\) be a
\((d,d)\)-dimensional zero matrix with a 1 at location \((1, 1) \leq (n,m) \leq (d,d)\).
The orthonormal basis contains the following matrix elements; let \(1 \le n \le d\) and
\(1 \le m \le d\),
- If
n == m
the real matrix element \(E_{nn}\)
- If
n < m
the complex matrix element \(2i/\sqrt 2 E_{nm}\)
- If
n > m
the real matrix element \(2/\sqrt 2 E_{nm}\)
The orthonormal basis coefficients are ordered by scanning through the matrix H
in a row-by-row
fashion.