pytc.solver.bug_rpa.rpa_inputs

pytc.solver.bug_rpa.rpa_inputs(mf, sigma=None, method='fermi', occ_tol=1e-06, frozen=0)[source]

(B, eia) for kernel() from a closed-shell PySCF DF mean field.

frozen drops the lowest frozen orbitals.

sigma (Hartree) and method ('fermi' or 'gauss') are PySCF’s own smearing keywords: given sigma, the SCF is re-run through pyscf.scf.addons.smearing from mf’s density, so the occupations are self-consistent. An mf that is already smeared is used as it is.

Parameters:
  • sigma (float | None)

  • method (str)

  • occ_tol (float)

  • frozen (int)

Return type:

tuple[numpy.typing.NDArray.numpy.generic, numpy.typing.NDArray.numpy.generic]