pytc.solver.bug_mp2ΒΆ

BUG-MP2: iterative low-rank DF-MP2.

The amplitude is carried as T = U diag(S) U^T in the pair space, so t2 is never formed, and the energy denominator is closed exactly by one r x r Sylvester solve per iteration (no Laplace grid). The iteration applies only the direct kernel (ia|jb) (canonical MP2 has t = (ia|jb)/Delta); the exchange enters once, in the energy sum t (2(ia|jb) - (ib|ja)).

Functions

_hb_orth

Streamed CholeskyQR2: directions orthonormal and orthogonal to U.

bug_mp2_amplitudes

Matrix-free low-rank MP2 amplitudes as a LowRankResult (energy=None; U is (o, v, r), on the device).

bug_mp2_amplitudes_host_backed

bug_mp2_amplitudes() with B_ov and the basis in host memory.

bug_mp2_energy

E = sum_z S_z U_z^T (2J - K) U_z (PySCF RMP2 convention).

bug_mp2_energy_host_backed

sum_z S_z <U_z, (2J - K) U_z> with B_ov and U on the host.

df_kernel

Pair-kernel callable on the DF factor: (ia|jb) if direct_only, else 2(ia|jb) - (ib|ja).

kernel

Low-rank DF-MP2 from the ov factor (LowRankResult).

kernel_host_backed

kernel() with B_ov and the basis in host memory.

low_rank_mp2

Low-rank closed-shell DF-MP2 of a PySCF density-fitted mean field.