Scalar and SOC eigenvectors#
Every converged CI, MPPT2 and SOC root is saved in HDF5 at full double precision. No coefficient threshold is applied. Logging reports energies, occupations and selected configuration weights; coefficient arrays are HDF5-only.
Read computed states#
from pyscf2mppt.eigenstates import read_eigenstates, validate_eigenstates
ci = read_eigenstates("data/Ce_heffso.h5", stage="h1")
mppt2 = read_eigenstates("data/Ce_heffso.h5", stage="h2")
soc = read_eigenstates("data/Ce_heffso_states.h5")
print(soc.energies_hartree)
print(soc.coefficients.shape) # (determinants, computed roots)
# Validate all coefficients with bounded memory, returning only energies.
energies = validate_eigenstates("data/Ce_heffso_states.h5")
read_eigenstates loads owned arrays. Its coefficients are complex128 even
for real scalar states. coefficient_basis and determinant_hash identify
their coordinates. HDF5 datasets use the opposite axis convention:
(state, determinant). Validation streams eight roots at a time and checks
metadata, finite values, root normalization and recorded solver convergence.
It does not re-diagonalize the matrix or certify complete physical multiplets.
Files and lifecycle#
File and group |
Computed states |
|---|---|
|
Initial model-space CI |
|
Final MPPT2 |
|
Final SOC |
The scalar file also contains h1_packed, h2_packed and their determinant
catalog. Denominator construction is not a third CI eigensystem.
Only requested, converged roots are saved; unrequested higher roots are absent.
These are model-space wavefunctions, not external-space perturbative amplitudes.
SOC export occurs immediately after the successful solve, including when
properties: false. Properties are a separate output. Each eigenstate group
gets write_complete=1 only after its arrays have been written. A failed later
stage can leave an earlier native stage available for explicit inspection;
it never makes the workflow complete. Managed DIAGPT acceptance requires both
scalar groups, and managed HEFFSO acceptance requires the SOC payload, matching
source identities and matching logged energies. Changed file bytes invalidate reuse.
With mppt.diagpt.model_density: true, the same scalar handoff also contains
/diagpt_density: the spin-summed bare model-space densities of the final MPPT2
states. Both scalar eigensystems remain available. Completion, reuse and managed
artifact collection require the eigenstates and the requested density output;
neither payload substitutes for the other.
Schema mppt_eigenstates_v1#
Each stage declares schema, stage, coefficient_basis,
matrix_axis_order=state,determinant, state_count, determinant_count,
determinant_content_hash_fnv1a64 and write_complete.
energy_unit=hartree and energy_reference=absolute_electronic apply to
state_energy_hartree; vacuum_energy_hartree records the added reference offset.
Dataset |
Shape |
Contents |
|---|---|---|
|
|
One-based IDs in native energy order |
|
|
Absolute electronic energies |
|
|
Real coefficient components |
|
|
Imaginary components, SOC only |
Scalar groups include root_residual_norm_hartree, solver=primme, requested
and converged root counts, return_status, and convergence_limit_hartree. Their row hash,
dimensions and offset must agree with the owning handoff file.
PRIMME owns convergence: acceptance requires return status zero and all requested roots, plus finite, valid arrays and matching identities. The stored residual limit is the nominal diagnostic scale. PRIMME’s practical-convergence test can accept a full residual above that scale; native writers and Python readers do not repeat a different threshold test. Norm and orthogonality integrity checks remain in place.
Scalar artifacts produced before MPPT v0.4.2 lack return_status. Rerun DIAGPT
to obtain the explicit solver evidence required by the current reader and
restart validation. Preserve older artifacts with their original release.
SOC stores the same determinant-identity and solver-diagnostics groups used by
the properties contract. It additionally
records scalar_matrix_stage (h1 or h2),
source_handoff_determinant_hash_fnv1a64 and
model_space_content_hash_fnv1a64. Source hashes identify catalogs; managed
input fingerprints additionally bind the calculation to its input matrices.
Determinant coordinates and phases#
Scalar diagpt_excitation_records_v1 coefficients use exactly the row order
and phase convention of the corresponding packed scalar matrix. The owning
det_ne, det_nd, det_trou, det_part, orbital count and closed-shell
reference occupation define this basis. Selected-route rows already use full
orbital numbering.
SOC canonical_alpha_then_beta_v1 uses full-orbital occupation determinants:
ascending alpha orbitals followed by ascending beta orbitals. Native excitation
phases are applied to coefficient rows before writing. The compact
determinant_identity catalog represents the varying window plus its reference
vacuum; reconstruct full occupations before matching scalar and SOC rows.
Do not multiply scalar and SOC coefficient arrays directly. Their determinant spaces generally differ. Match occupations, reconcile scalar excitation phases, and complete the scalar spin multiplets needed by the projector. Compare degenerate parent subspaces rather than individual columns; retain uncovered probability for a truncated parent set. Eigenvectors alone do not assign atomic L/J terms to molecular states.
pyscf2mppt analyze consumes this contract and writes parent composition
tables and spin weights. The numerical API owns the interpretation; native
stages retain responsibility for converged vectors, coordinate conventions and
operator evidence. See Analysis Of Finished Runs for the API and
admission rules.
Format transition#
sovec, its writer and the dependent ROSO executable have been removed.
There is no runtime legacy reader or converter. Use the HDF5 reader above for
new calculations. ROSO’s perturbative transition-density functionality is not
provided by this eigenstate export. Existing archives retain their original
files and require their original release for validation; the current workflow
does not accept them as new complete HDF5-eigenstate runs.