pytc.solver.bug_core¶
Shared machinery of the basis-update & Galerkin (BUG) low-rank solvers.
The result type, the stopping rule, truncation of the Galerkin core, DF factor extraction, and the device kernels of the augment–Galerkin–truncate loop: blocked products, row panels streamed from host memory, orthogonalisation and counted host<->device transfers. The dependency runs one way only: methods -> bug_core. Nothing here imports from the individual solvers.
Classes
What every BUG solver returns. |
|
Exceptions
Raised when JAX is not in x64 mode: a float32 run agrees with any reference to ~1e-7, which looks like success rather than an error. |
Functions
|
|
The stop rule of every BUG solver; returns the reason, or |
|
The last |
|
PySCF DF 3-index MO factors |
|
Updated basis written to the HOST, with the cross accumulated in flight. |
|
Rank-revealing QR of projected directions, optionally consuming |
|
Energy change below which the iteration has settled under the cut. |
|
Project and optionally select augmentation directions once. |
|
|
|
Columns the augmentation selector will ask for at this rank. |
|
Fail closed unless JAX actually produces float64 ( |
|
|
|
Solve |
|
Tolerance-truncate a symmetric core |