pytc.solver.bug_mp2.bug_mp2_energy_host_backed

pytc.solver.bug_mp2.bug_mp2_energy_host_backed(B_ov, U, S, *, block_rows, col_block=64, aux_block=64)[source]

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

The direct part needs only X = B^T U; the exchange is taken over column chunks of U and aux slices of B, as tr(P P) with P = U_z B_q^T, so K U is never formed.