quemb.molbe.pfrag.Frags

class quemb.molbe.pfrag.Frags(fsites, ifrag, edge=None, center=None, edge_idx=None, center_idx=None, efac=None, eri_file='eri_file.h5', centerf_idx=None, unrestricted=False)

Class for handling fragments in bootstrap embedding.

This class contains various functionalities required for managing and manipulating fragments for BE calculations.

Methods

__init__(fsites, ifrag[, edge, center, ...])

Constructor function for Frags class.

cons_fock(hf_veff, S, dm[, eri_])

Construct the Fock matrix for the fragment.

cons_h1(h1)

Construct the one-electron Hamiltonian for the fragment.

get_nsocc(S, C, nocc[, ncore])

Get the number of occupied orbitals for the fragment.

scf([heff, fs, eri, dm0, unrestricted, spin_ind])

Perform self-consistent field (SCF) calculation for the fragment.

sd(lao, lmo, nocc[, norb, return_orb_count])

Perform Schmidt decomposition for the fragment.

set_udim(cout)

update_ebe_hf([rdm_hf, mo_coeffs, eri, ...])

update_heff(u[, cout, only_chem])

Update the effective Hamiltonian for the fragment.