MPPT v0.5.1#

MPPT v0.5.1 combines:

  • phase-aware PySCF parallelism with coordinated BLAS and OpenMP thread limits;

  • CIPSIXX 0.3.0 with consistent energies for the spin-closed variational space;

  • pyscf2mppt analyze, replacing the separate Caspy package;

  • MPPT Viewer for logs, inputs, scientific plots and recorded calculation properties;

  • further OpenMP parallelization of the MPPT2 kernels.

At a glance#

  • Viewer: inspect calculation parameters, stage results, convergence, scalar/SOC levels, occupations and spectra; compare runs and export figures. Combine backends from several servers in one frontend.

  • Analysis: pyscf2mppt analyze replaces the separate Caspy commands and records the outcome of each analysis task.

  • CIPSIXX: diagonalize the spin-closed variational space by default and retain per-iteration and final root energies and occupations.

  • PySCF: coordinate OpenMP and BLAS threads, reuse hcore to avoid redundant calculations, continue CASSCF from saved orbitals/MPS and include waited block2 solver processes in CPU accounting.

  • Pipeline: resolve generated orbital complements in the Fock eigenbasis, export from saved references, parallelize more of the DIAGPT diagonal effective-Hamiltonian build and report magnetic applicability explicitly.

Action required#

Install pyscf2mppt 0.7.4 with PySCF 2.15.0 from the supported environment. Pass -DINSTALL_MPPT_VIEWER=ON so cmake --install also installs MPPT Viewer 0.1.0a1 from the pinned external/mppt-viewer tree.

To enable a bounded PySCF thread policy, add:

parallelism:
  threads: 32

The budget does not change CPU/NUMA placement or downstream solver controls. Use phase overrides when a measured workload needs a different OMP/BLAS split. The parallelism guide explains the complete policy, manual examples, backend admission and benchmark interpretation. The active-space guide documents continuation and its separate source-admission rules. Ordinary --resume still reuses completed work rather than adding macroiterations.

Viewer: from run overview to scientific results#

MPPT Viewer is a separately installed application. Enable INSTALL_MPPT_VIEWER=ON during the configuration for the full CMake install, or use the standalone target:

cmake --build build --target install-mppt-viewer
mppt-viewer serve runs --port 8765

Open http://127.0.0.1:8765. A built Viewer wheel includes frontend assets.

Overview, attempts and bounded data access#

  • Calculation overview: system, basis and potential; requested SCF/CASSCF and selection settings; recorded stage outcomes and links to logs.

  • Attempt provenance: reused and continued stages retain their source identity; unavailable evidence stays missing.

  • Basis and potential details: conventional ECP core-shell labels are identified as conventions rather than reconstructed from the potential.

  • Paged state tables: absolute energies in Hartree or relative energies in eV/cm⁻¹, with separate CASCI/selected CI, MPPT2 and SOC labels.

  • Lightweight catalog: list runs without loading integral tensors or eigenvector matrices; distinguish source availability from calculation status.

Plots, comparison and exports#

  • Convergence and levels: CIPSIXX root histories, scalar/SOC level diagrams and parent links when compatible analysis is available.

  • Properties and diagnostics: occupations, PRIMME histories and thermal spectra; DIAGPT H0 removal costs −eps(+) and attachment costs eps(−), with the recorded intruder-gap check. Missing data remain missing.

  • Plot controls: select series, add axis breaks and adjust parent-link weights. Tables appear before plots, which load on demand.

  • Run comparison: parameter differences, energy differences from a chosen reference and level diagrams in separate run columns.

  • Export and refresh: tables/CSV and PNG/SVG figures; live refresh preserves the current inspection state.

The Viewer guide describes source setup, analysis permissions and limits. The prototype has no built-in login; its remote usage is through a controlled connection such as an SSH tunnel.

Analysis moves from Caspy into pyscf2mppt#

Analyze a completed managed calculation with:

pyscf2mppt analyze runs/ce

Outputs go under runs/ce/analysis/<UTC>/, with analysis/latest.json identifying the current record. The command does not rerun SCF, selection, DIAGPT or HEFFSO.

Each task records complete, skipped with missing-input context, or failed with its error. A completed analysis command does not imply that every task completed. Failed report validation is retained rather than weakened to make historical artifacts pass.

Reuse and provenance#

analysis.json records options, input/output hashes, software versions and task outcomes. Only options of tasks with available inputs enter the reuse key. For example, changing parent-stage options does not recompute a run with no handoff; adding the handoff makes the previous analysis stale. Changed relevant inputs or options, missing outputs or --force create a new analysis. Use --check for an existing-match check and --json for structured status. The analysis guide lists task inputs, options, exit codes and output roles.

The Viewer Analysis panel lists these records and task outcomes. Starting an analysis is disabled by default, enabled explicitly per local source and restricted to completed runs. Its configured command writes in analysis/; opening a chart does not start a calculation or silently run analysis. The panel can show Up to date, changed inputs and failed/skipped tasks.

CIPSIXX 0.3.0: energies of the exported space#

With spin closure enabled, variational_space: closed is now the default. Closure is applied before diagonalization, so variational energies, CI coefficients, occupations and subsequent selection generators refer to the closed space exported to DIAGPT. Explicit variational_space: selected retains the selected-only diagonalization for deliberate comparisons.

/cipsixx/iterations and /cipsixx/final retain progress and final results. Per-root occupations use zero-based selected-orbital indices and sum to the selected-space electron count. Final root energies belong to the fully grown space; an iteration row describes the space before its next growth batch. These records feed Viewer plots without treating selection weights as orbital populations or the stored selected-root coefficients as every root’s full wavefunction.

Reference preparation and export#

Fock-resolved orbital complements#

  1. Build the spin-free Fock operator hcore + J[D] - K[D]/2 from the full source density, including active off-diagonal terms, using its exact or density-fitted integrals.

  2. Diagonalize this operator within the generated occupied and virtual complements to obtain energy-resolved directions.

  3. Rotate only unselected complement directions; keep selected targets and active orbitals fixed. No additional SCF/CASSCF calculation or setting is required.

For DFT references, this uses the HF-like operator rather than the Kohn–Sham Fock matrix.

Resume identity now includes preparation settings and projector resource contents. An ineffective delete_from above the source MO count is treated as zero, so unchanged effective preparation can resume. See orbital evidence and preparation.

Export from a saved converged reference#

--reference-checkpoint prepares a new integral export from saved SCF and CASSCF/CASCI data without rerunning either solver. Use a new output directory and a YAML defining the desired mppt preparation/export. The importer inherits the physical model, correlated density and exact/DF provider, preserves the source, captures source/resource identities and rejects overlapping trees.

  1. Use converged SCF and CASSCF/CASCI checkpoints containing the required correlated-density data. Export preserves the source Hamiltonian; additional CASSCF continuation is a separate mode that can also start from an unconverged CASSCF checkpoint.

  2. Adjust memory and thread limits through molecule.max_memory, scf and casscf. Use --reference-input-dir when source resources have moved.

See the saved-reference export guide for resource and path rules.

Native kernels and diagnostic behavior#

DIAGPT diagonal OpenMP work#

Seven determinant-local diagonal kernels (a0001, a0002, a0003, a0005, bubl01, bubl02, bubl03) now distribute independent determinants across the OpenMP threads with per-determinant accumulators. Small spaces remain serial when ncf < 4 * omp_get_max_threads(). See DIAGPT thread controls.

Numerical warnings preserve native results#

  • Numerical checks warn: density/matrix identities, occupations, state weights, residual summaries and report-rounding discrepancies issue [WARN] while preserving native results and convergence flags.

  • Usable intermediate results are retained: SCF with the required arrays can proceed to active-space work even if unconverged; CASSCF reaching its iteration limit can still save a checkpoint. Completion does not imply convergence.

  • Structural failures still stop the workflow: missing data, incompatible dimensions, invalid schema or identity, nonfinite required values, conflicting initial-density orbital tags and native solver failures remain errors.

  • Convergence rules are unchanged: review warnings and solver flags; saved-reference export still requires converged source calculations.

Magnetic g values with unconfirmed isolation#

HEFFSO now retains g values for a two-state pair at the top of a truncated spectrum even when its separation from higher states is unknown. These values are labelled diagnostic: isolation unconfirmed and should not be treated as confirmed effective spin-1/2 g factors. Results for isolated, eligible doublets are unchanged.

See magnetic applicability for interpretation and applicability criteria.

Guides and runtime recipes#

SCF, CASSCF/CASCI, AVAS and YAML-default documentation now distinguishes the minimal required choices from optional overrides, source-reference preparation from later selected spaces, and a warning from solver convergence. Numerical defaults are documented without turning experiment-specific tuning into defaults.

The block2 environment and image recipe include the pinned solver/adapter requirements. Managed YAML resolves block2main and owns solver directories; native Python API setup remains separately documented. Existing calculation images and checkpoints are not modified by these source changes. No MPS-to-DIAGPT handoff is introduced: CIPSIXX still constructs its own model space.

Component versions#

Component

Version

MPPT bundle

v0.5.1

pyscf2mppt

0.7.4

Analysis

Included in pyscf2mppt; replaces Caspy

libgrpppy

0.1.2

CIPSIXX

0.3.0

MPPT Viewer

0.1.0a1, accepted source b3fc1aa

What the parallelism benchmark measures#

The large cerium CASSCF comparison used the same worker, image and source checkpoint. Only the DF phase split changed; each setting ran once and continued one CASSCF macroiteration. Both endpoints remained unconverged.

Inclusive wall time

OMP1 / BLAS32

OMP32 / BLAS32

Native in-core DF build

135.923 s

26.062 s

CASSCF including DF

3076.225 s

2968.887 s

DF alone was 5.22× faster; total CASSCF time decreased 3.49%. The benchmark guide separates cache reuse, fixed-thread scaling and automatic-policy observations.

Known limitations#

Automatic allocation of the thread budget between OpenMP and BLAS uses fixed rules; it does not benchmark or tune the workload. Allowing both libraries to use the full budget in successive DF stages is limited to the audited PySCF 2.15.0 native in-core Cholesky route with independent pthread/serial OpenBLAS. Outcore, other providers, eigen fallback and MKL retain conservative policies; broader backend validation remains separate. Shared OpenMP OpenBLAS has policy coverage rather than full native acceptance. Visible cgroup-v2 quotas are supported; portable cgroup-v1 quota detection is not implemented.

Changing parallel evaluation can change the PySCF iterative trajectory and the solution reached. Endpoint state energies differed by up to 1.06545×10⁻⁶ Eh; this observation is not a package regression criterion or a convergence claim.

The Viewer remains an alpha package. Persistent indexing, SSE and explicit sweep relationships remain outside this release scope. Real SSH/HTTPS-prefix and large-catalog acceptance must not be inferred from localhost browser checks. Specialized analysis requires its own input artifacts; older runs can legitimately produce skipped or failed tasks. A full cmake --install includes the Viewer only when INSTALL_MPPT_VIEWER=ON. The separate install-mppt-viewer target installs it alone into the configured prefix.