MPPT v0.4.2#

More reliable and observable PRIMME solves, with faster DIAGPT matrix products. This patch includes the v0.4.1 penalized-singlet fix.

At a glance#

  • DIAGPT progress: compact CASCI/MPPT2 start, root-progress and return summaries are enabled by default and flushed to the log.

  • Solver controls: YAML exposes residual_tolerance, max_basis, max_block, max_matvecs, print_level and progress_interval_seconds using HEFFSO names.

  • Convergence: native, workflow and Caspy readers respect PRIMME’s practical convergence. Finite residuals above the nominal diagnostic scale alone no longer cause a successful solve to be rejected.

  • Lowest roots: automatic multiple-vector searches and a root-scaled basis improve recovery of clustered low states. Root counts alone are insufficient to verify that the lowest spectrum was found.

  • Thread scaling: OpenMP packed-matrix products replace the threaded OpenBLAS DSPMV call, keeping additional workspace linear in matrix size and thread count. The DIAGPT launcher uses serial dense BLAS alongside the requested OpenMP team to avoid additional solver synchronization overhead.

Action required#

Update the native programs together with pyscf2mppt 0.7.2 and Caspy 0.6.1. The new generated DIAGPT namelist requires the matching native executable. Use the installation guide.

The default DIAGPT relative tolerance is now 1.0e-6. To keep the previous stricter precision, set mppt.diagpt.residual_tolerance: 1.0e-10. Relative tolerance does not specify an absolute energy error.

Regenerate scalar eigenstate artifacts from older versions: current readers require explicit PRIMME return_status and actual converged-root evidence. Preserve older calculation archives with their original software version.

DIAGPT’s omp_num_threads now controls its OpenMP team; the Python launcher sets dense BLAS to one thread. For manual native launches, use OPENBLAS_NUM_THREADS=1 MKL_NUM_THREADS=1 BLIS_NUM_THREADS=1 with the desired OMP_NUM_THREADS to obtain the same threading policy.

A compact input can omit both molecule.symmetry and the progress interval. No-symmetry operation and the 60-second compact-report interval remain the defaults. See the YAML reference and eigenstate contract.

Component versions#

Component

Version

MPPT bundle, DIAGPT and HEFFSO

v0.4.2

pyscf2mppt

0.7.2

Caspy

0.6.1

libgrpppy

0.1.2

CIPSIXX

0.2.0

Validation evidence#

Fixed-matrix acceptance covers analytic clustered spectra, independently computed products/residuals, full-spectrum solves, successful practical convergence and failed/incomplete solver output. Selected-HDF5 tests cover native eigenstate persistence, reader acceptance and stricter/default precision.

RuO₂ validation completed 100 scalar and 210 SOC roots. Compared with the 1e-10 scalar solve, the 1e-6 default changed CASCI energies by at most 2.60e-10 Eh and MPPT2 energies by 2.52e-9 Eh. Each saved matrix also matched an independent dense-LAPACK spectrum within 2.60e-10 Eh. These results validate the tested 3071-determinant model space, not a universal accuracy bound.

Repeated products on a 15109-dimensional RuO₂ matrix reproduce the OpenBLAS 16-thread slowdown. On the tested eight-core/sixteen-thread CPU, the replacement takes approximately 0.027 seconds at eight threads and 0.034 seconds at sixteen, with maximum product differences below 3.2e-15 against an independent scalar oracle. These are kernel timings on one shared host, not whole-calculation speedup claims.

On a fixed 3071-dimensional RuO₂ solve, separating dense BLAS from OpenMP gave 22.23/22.43 seconds at eight/sixteen OpenMP threads with one BLAS thread. Sixteen BLAS threads took 61.57 seconds. The corresponding energy differences from the strict reference remained below 2.3e-10 Eh.

Known limitations#

Sixteen logical threads need not outperform eight physical cores. Solver precision and physical model-space completeness remain separate questions. Progress intervals are sampled at outer iterations, so a long individual solver operation can delay the next line. PRIMME success does not certify complete physical multiplets or completion of later workflow stages.