gftool.beb.SpecDec.from_hamiltonian

classmethod SpecDec.from_hamiltonian(hamilton)

Decompose the Hamiltonian matrix.

The similarity transformation:

\[H = U h U^†, \quad h = diag(λ_l)\]
Parameters
hamilton(…, N, N) complex np.ndarray

Hermitian matrix to be decomposed

Returns
Decomposition