pytc.solver.bug_rpa.weighted_pairs¶
- pytc.solver.bug_rpa.weighted_pairs(B, mo_energy, mo_occ, occ_tol=1e-06)[source]¶
Direct-RPA pair factors and gaps for a (possibly) fractional reference.
Bholds(p q|P)forp, qinpair_window(), shape(|O|, |V|, naux). With spin-summed occupationsf, the pairp -> qenters chi_0 with weightn = (f_p - f_q) / 2, which folds into the factors assqrt(n) B; the problem is then an ordinary one in(sqrt(n) B, e_q - e_p)andkernel()solves it unchanged. Every pair of the window withn > 0is kept, however smalln: as in fcdmft,occ_tolonly selects the orbitals. (Near-degenerate pairs have tinynand tiny gap but a finiten / gap; cutting them atn > occ_tolmoved a 36-Cu slab by 2e-6 Ha against fcdmft.) Pairs with no weight (equal occupations, or the wrong direction) get zero factors and a positive dummy gap, so they decouple exactly. Integer occupations return(B, e_i - e_a).- Parameters:
B (numpy.typing.NDArray.numpy.generic)
mo_energy (numpy.typing.NDArray.numpy.generic)
mo_occ (numpy.typing.NDArray.numpy.generic)
occ_tol (float)
- Return type:
tuple[numpy.typing.NDArray.numpy.generic, numpy.typing.NDArray.numpy.generic]