pytc.solver.bug_ccsd¶
BUG-CCSD: adaptive low-rank RCCSD on density-fitted integrals.
The doubles amplitude is kept as T = U diag(S) U^T in occupied-virtual
pair space. Each iteration applies the CCSD doubles numerator N(t1, T) to
the basis, augments the basis with residual directions, solves the Galerkin
(Sylvester) problem in the augmented space and truncates by eigenvalue
magnitude (basis update & Galerkin, BUG). N is exact at the retained
rank: no dense T2 or residual is stored. The occupied ladder W*tau and the
crossed ring Z*T, with their t1-dressed integrals, form one pair-space
operator X built once per state on the device (sixth order); everything else
is a DF contraction of fifth order.
The action runs on JAX (GPU, or CPU for the tests); the DF factors live on
the host and are uploaded once per solve, or streamed in auxiliary chunks
when they exceed bug_helper.RESIDENT_LIMIT_BYTES. The reference for N is PySCF’s
DF-RCCSD numerator: N(t1, T) V is PySCF’s doubles numerator in pair form
applied to V.
Classes
(kc|ld) occupied row blocks rebuilt on the device from B_ov on demand. |
|
Exact quadratic operator X built once per state, applied as |
|
Norm decomposition for the doubles residual action. |
Functions
(p, q, naux) -> (npanel, block, p, q), zero-padding the last panel. |
|
Apply the direct DF pair kernel |
|
Apply the virtual and occupied one-body groups with GEMMs. |
|
Apply |
|
Apply |
|
The four tau-dependent DF singles groups in explicit N5 order. |
|
Apply Wvoov and its transpose to two probe blocks in one DF pass. |
|
Apply Wvovo and its transpose without retaining Wvovo. |
|
State-dependent intermediates and the exact quadratic operator. |
|
|
|
Apply |
|
|
|
Matrix-free CCSD correlation energy from (t1, U, S) (canonical HF). |
|
|
|
|
|
Solve RCCSD with an adaptive symmetric low-rank doubles amplitude. |
|
Low-rank warm start: a few BUG-MP2 iterations on the direct-only amplitude. |
|
|
|
The singles numerator ( |
|
|