MPPT v0.4.0#
Analyze SOC microstates and group them into spectral terms using scalar parents, export zeroth-order 1-RDMs, and select orbitals by threshold or count.
At a glance#
Caspy spectral analysis: analyze SOC microstates and group them into spectral terms based on their scalar parents, with tables and plots.
Portable eigenstates: DIAGPT saves every computed CASCI/selected-CI and MPPT2 root; HEFFSO saves complex SOC vectors even with properties disabled.
DIAGPT density export: save zeroth-order one-particle density matrices (1-RDMs) from DIAGPT results.
Orbital selection: choose occupied and virtual orbitals by a projector eigenvalue threshold or a specified number of orbitals, in YAML or Python.
Action required#
Rebuild and update both Python packages#
Rebuild DIAGPT/HEFFSO and install pyscf2mppt 0.7.0 and Caspy 0.6.0 together.
Follow the installation guide, then check
pyscf2mppt version. Parent analysis needs the HDF5 adapter:
python -m pip install './caspy[parents-hdf5]'
Select orbitals by threshold or count#
Use orbital_character_threshold to keep orbitals whose projector eigenvalues
are strictly above the chosen threshold. Set expected_count instead to keep a
fixed number of orbitals. Both options work for occupied and virtual orbital
selection; active orbitals and the correlated reference density are preserved.
The input guide documents the YAML controls;
the Python reference guide exposes the same settings
through ExportConfig. Existing exact-count inputs retain their selection rule.
New analysis workflows#
Analyze microstates and spectral terms#
caspy-parents --handoff data/Ce_heffso.h5 \
--soc data/Ce_heffso_states.h5 --output-dir reports/parents \
--plot splitting --plot composition --plot terms
The command identifies the scalar-parent contributions to each SOC microstate and groups related microstates into spectral terms. It writes composition and term tables, together with the requested energy-level and composition plots. Caspy has since been retired; see Analysis Of Finished Runs for the current commands.
Export zeroth-order 1-RDMs from DIAGPT#
mppt:
diagpt:
model_density: true
This saves a spin-summed 1-RDM for each final DIAGPT state and their weighted
average under /diagpt_density. The density uses the final MPPT2 model-space
coefficients with the zeroth-order density operator; external-space density
corrections are not included. HEFFSO can be disabled.
See Outputs for the saved datasets.
Component versions#
Component |
Version |
|---|---|
MPPT bundle, DIAGPT and HEFFSO |
|
pyscf2mppt |
|
Caspy |
|
libgrpppy |
|
CIPSIXX |
|
The selector remains pinned to 2c91153fb61f3c0a14e577ff5da634fdc33d7df7.
Caspy’s parents-hdf5 extra requires pyscf2mppt >=0.7.0.
Source and snapshot builds and regression checks passed.
Known limitations#
Saved vectors and densities describe the retained model space. They do not include explicit external-space perturbative amplitudes or density corrections. Only requested, converged roots are saved.
Parent analysis requires matched spatial orbitals, electron sectors and valid
spin closure. Missing parent weight stays visible; grouping does not certify
atomic LSJ labels. Large spin closures are bounded by explicit resource limits.
Default joint-projection selection can change the selected count as its
threshold changes; use expected_count when the count must be fixed.