pytc.solver.isdf_xtc_ccsd¶
Factorized ISDF xTC-CCSD: RCCSD dispatch + factor-direct VVVV–T2 kernels.
The RCCSD class inherits the CCSD machinery of
pytc.solver.jax_xtc_ccsd and replaces only the VVVV–T2 leg through
that module’s instance hook. The rest of this module is the factor-direct
contraction machinery it dispatches to. Full X stays on its host/HDF5
backing and is streamed one rank panel at a time (three residency tiers:
device lift / host-resident / store stream). Opt-in rank-M X instead keeps
its separated U/Z orbital factors through the T2 contraction. Neither path
materializes a virtual four-index tile.
The raw ERI-like tile order in PyTC is (a, c, b, d); the public
functions contract that tile directly with a dense RCCSD t2 in
(i, j, c, d) order, without creating a (v, v, v, v) tile.
Classes
Backend-specific buffer accounting reported by a JAX executable. |
|
One steady-state contraction measurement. |
|
JAX RCCSD whose default on-the-fly VVVV path is factorized. |
|
Virtual-orbital Tucker factors for the factor-direct X branches. |
Functions
Available bytes under the most restrictive enclosing cgroup limit, or None. |
|
Compile the exact three-component K1/K2 branch for its XLA accounting. |
|
Return stable integer fields from JAX's executable memory analysis. |
|
JIT implementation of the blocked full-THC VVVV--T2 contraction. |
|
Measured free bytes on the first local device, or None when unmeasurable. |
|
Measured available host RAM in bytes, capped by any cgroup limit. |
|
Rank width of one pipelined X panel, a multiple of |
|
Compile once, then record one synchronized steady-state wall time. |
|
Read one X rank panel from any backing (ndarray view or HDF5 dataset). |
|
Rank-major twin of |
|
Host-loop rank-panel streaming shared by the left and right X terms. |
|
Working-set X panel loop with double-buffered async prefetch. |
|
Validate |
|
Detect an X backing's axis layout: |
|
Panel source that reads straight from the X backing (tier 3). |
|
Panel source that slices a host-resident X (tier 2). |
|
Return XLA accounting for the compiled full-THC branch executable. |
|
Return XLA accounting for |
|
Return XLA accounting for |
|
Contract |
|
Contract a full-THC |
|
Return each exact-current-ISDF VVVV--T2 branch and final residual. |
|
Three-tier X path, selected on measured free memory. |
|
Factor-direct VVVV--T2 terms with rank-M Tucker X. |
|
Factor-direct terms with X streamed panel-wise from its backing. |
|
Factor-direct left X term; neither dense X nor a V⁴ tile is formed. |
|
Factor-direct pair X term; neither dense X nor a V⁴ tile is formed. |
|
Contract |
|
Pipelined |
|
Streamed |
|
Contract |
|
Pipelined |
|
Streamed |
|
Estimate only the named live algebraic panels for a full-THC branch. |
|
Estimate only the named live algebraic panels for an X branch. |
|
Measure every branch and return the exact factor-direct terms. |