gem.solvers.solver_template.SolverTemplate
- class gem.solvers.solver_template.SolverTemplate(norb, use_Ntot=False, use_Sz=False, thermal=False, solver_params=None)[source]
Your class aim to solve general impurity Hamiltonian.
Methods
Compute denstiy matrix. Return: denmat: numpy.array. Densty matrix, <c^dagger_i c_j>, of the system (impurity+bath).
compute_E1loc(eloc[, mu])Compute the local one-body energy E1loc = Tr[eloc * denmat_impurity] Return: E1loc: float. Local one-body energy.
compute_E2loc(eloc, D, Lambdac[, mu])Compute local energy including local one and two-body term from a given set od thermal states Works also at zero Temperature Input: Return: Eloc: float. Total local energy.
solve_Hemb([num_eig, verbose, tol, T])diagonalize the Hamiltonian.
build_Hemb
Methods
|
|
|
|
Compute denstiy matrix. Return: denmat: numpy.array. Densty matrix, <c^dagger_i c_j>, of the system (impurity+bath). |
|
|
Compute the local one-body energy E1loc = Tr[eloc * denmat_impurity] Return: E1loc: float. Local one-body energy. |
|
Compute local energy including local one and two-body term from a given set od thermal states Works also at zero Temperature Input: Return: Eloc: float. Total local energy. |
|
diagonalize the Hamiltonian. |