pytc.solver.bug_rpa¶
BUG-dRPA: low-rank direct RPA, matrix-free and iterative.
The Riccati amplitude is kept as T = U diag(S) U^T in the occupied-virtual
pair space. Each iteration augments U with projected-residual directions,
solves the Galerkin (Casida) problem in the augmented space exactly, damps and
truncates. Two residencies:
host_backed=False–B_ovandUon the device;host_backed=True–B_ovand every pair-height array in host memory, streamed to the device one row panel at a time, for systems whose pair-height arrays do not fit in device memory.
Functions
Normalize and validate a low-rank initial factorization. |
|
Mask to the rows panel |
|
Row panel and panel count, clamped to the array. |
|
Form the updated amplitude basis without extra full-height results. |
|
|
|
Core Grams and the selected projected residual, without forming |
|
Projected core blocks with every tall operand on the host. |
|
Low-rank closed-shell dRPA from the DF factor |
|
Low-rank closed-shell dRPA of a PySCF density-fitted mean field. |
|
Orbitals that can give ( |
|
RPA residual |
|
|
|
|
|
Rank-revealing orthonormal basis of a HOST-resident block. |
|
Second Gram-Schmidt pass of host-resident |
|
R factor of a host-resident tall matrix, by panel reduction. |
|
Direct-RPA pair factors and gaps for a (possibly) fractional reference. |