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

calc_density_matrix()

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

__init__(norb[, use_Ntot, use_Sz, thermal, ...])

build_Hemb(D, eloc, Lambdac, V2E[, verbose, ...])

calc_density_matrix()

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.