gem.solvers.simple_ed.SimpleED.build_Hemb

SimpleED.build_Hemb(D, eloc, Lambdac, V2E, mu=0.0, debug=False, verbose=0, spin_pen=None, sz_pen=None, sx_pen=None, sy_pen=None)[source]

Build the embedding Hamiltonian in every sector owned by this rank.

In matrix-free mode nothing is built: the one-body and two-body coefficients are flattened into term lists and each sector gets an EmbeddingHamiltonian that applies them on the fly. With debug=True the returned Ham_list then holds those operators rather than sparse matrices.

Collective: must be called by every rank.