gem.utility.utilities
Functions
|
Return an orthonormal (Hilbert–Schmidt) basis of N×N Hermitian matrices. |
|
Calculate the Kanamori U and Uprime matrices. Parameters ---------- n_orb : integer Number of orbitals in basis. U_int : scalar Value of the screened Hubbard interaction. J_hund : scalar Value of the Hund's coupling. Returns ------- U_matrix : float numpy array The four-index interaction matrix in the chosen basis. |
|
calculate the fermi function for a vector x. |
|
Compute Lambda matrix from R, D, Lambda_c and Delta. |
|
Compute Lambda_c matrix from R, D, Lambda and Delta. |
|
|
|
Utility function that sets all elements smaller than "tol" to zero in an numpy ndarray. |
|
|
|
|
|
|
|
|
|
Apply a scalar function f to a Hermitian matrix H via diagonalization. |
|
x[i] = Re[Tr(H_list[i] @ H)] for Hermitian basis (returns real vector). |
|
H = sum_i x[i] * H_list[i] (x real). |