gem.solvers.solver_template.SolverTemplate.build_Hemb

SolverTemplate.build_Hemb(D, eloc, Lambdac, V2E, verbose=0)[source]

Construct the embedded Hamiltonian. The four matrices are the only things the Fragment passes, positionally.

Solver-specific parameters are read from self.solver_params with sensible defaults, e.g.: my_param = self.solver_params.get(‘my_param’, default_value). This includes the penalty terms used to enforce symmetries (‘spin_pen’, ‘sz_pen’, ‘sx_pen’, ‘sy_pen’ in SimpleED): Fragment.solve_impurity does not pass them.

Parameters:
  • D – array. D matrix.

  • eloc – array. Local part of the Hamiltonian.

  • Lambdac – array. Lambda_c matrix.

  • V2E – array. Two-body interaction of the impurity (Fragment).

  • verbose – int. Level of verbosity (default 0).