pytc.solver.test.test_isdf_xtc_ccsd_factor_direct

Numerical gates for the factor-direct VVVV–T2 prototype.

Classes

TestFactorDirectPhysicalH10

Opt-in physical H10 case.

TestFactorDirectRandomFP64

Every unsymmetrized and pair-swapped branch is exact in FP64.

TestMemoryMeasurement

The tier gate's memory measurements, including their fallback paths.

TestRankMajorXLayout

Rank-major X backings (rank, nmo, nmo): same math, contiguous panels.

TestStreamedXParity

Streamed-X contraction matches the full-block lift term for term.

TestTieredXAuto

Three-tier auto dispatcher: forced tiers match the full-lift math.

TestTuckerXFactorDirect

Rank-M X contracts directly with T2 without reconstructing X or V⁴.

Functions

_dense_full

Test-only V^4 reference in PyTC's (a,c,b,d) tile order.

_dense_reference_terms

_dense_x

Test-only partial-THC X reference in (a,c,b,d) order.

_jaxpr_output_shapes

_nested_jaxprs

Yield nested JAXPRs, including the body of a staged jit call.

_random_inputs

_relative_l2

_tile_t2