PySCF Scientific Reports#

Open <output-dir>/logs/pyscf.log for the system specification, effective calculation controls, energies and orbital populations. Every CLI calculation writes these reports alongside native PySCF output. Use --full-output to mirror them to the terminal; the default console shows concise progress.

Report Sections#

Section

Contents

Calculation setup

Versions, input, fresh/resumed mode, planned stages

System specification

Charge, multiplicity, electrons, atoms, shells, AO functions, ECP/GRPP and SO policy

Geometry and resources

Coordinates and units, effective atomic charges, per-atom/per-element AO counts, basis/potential resources, point charges

SCF setup and results

Effective solver settings, DF/auxiliary basis, initial guess, threads, convergence, energy components and MO populations

CASSCF setup and results

Active space, state groups/weights, convergence settings, energies, excitation energies, S² and correlated populations

Scientific tables use space-separated columns without borders. This includes the interface’s existing orbital, projection and Fock tables. Native PySCF diagnostics retain their native formatting. The ! SCF energy and ! CASSCF energy markers remain available to existing parsers. The CASCI energy: marker is also retained; it denotes the active-space CI contribution returned by the CASSCF kernel, not the total molecular energy.

Missing values are printed as NA. Energy units appear in the headings. Source orbital energies accompanying projected orbitals are metadata, not newly canonicalized eigenvalues.

CASSCF Populations#

Frontend numerical checks print [WARN], not exceptions. These include density trace, Hermiticity, state averaging, weights and occupation bounds; MO orthonormality; and hcore/Fock/property symmetry. Comparison warnings include the measured maximum absolute deviation and the existing absolute/relative tolerances. These thresholds are diagnostics, not solver convergence controls.

Warnings do not renormalize densities, sort native eigenstates, change solver settings or prevent saving/restoring otherwise usable checkpoints. Missing data, incompatible shapes, unsupported representations and nonfinite required arrays remain errors. Initial-density orbital tags must describe the density consumed by DF exchange; conflicting representations remain errors. A completed workflow with warnings is not a certificate of scientific convergence or correct physical results.

CASSCF populations come from the spin-summed one-particle density matrix in the final MO basis. Inactive orbitals have occupation two, active populations are the density diagonal, and external virtual orbitals have occupation zero. State averaging uses the solver’s actual weights and each state’s correct spin sector. Root identifiers remain in solver order even when the energy table is sorted by energy.

For projected/rotated orbitals, the density is transformed into the reported orbital basis before extracting populations. The stored active matrix retains off-diagonal information; simply rotating a vector of populations is incorrect.

Enable per-state analysis with:

casscf:
  verbose: 5

At casscf.verbose >= 5, each root has an active-MO population table and a separately labelled natural-occupation spectrum. Values below five keep the main averaged population and energy tables. The existing CASSCF verbosity default is six, so its default output includes per-state analysis.

Natural occupations are density eigenvalues. Their rank is not an index into the current MO list. All roots use the same optimized CASSCF orbitals for the current-basis population tables.

Downstream Pseudo-Restricted Occupations#

Always specify mppt.downstream_nocc when preparing a downstream export. It is the number of spatial MOs in the leading occupied prefix of the pseudo-restricted reference used by DIAGPT and HEFFSO. Each of those MOs is treated as doubly occupied; all following MOs are empty in that reference. Choose the prefix together with the prepared orbital ordering, not by counting nonzero or fractional CASSCF populations.

This doubly occupied vacuum is a representation constraint, not the physical state. For a physical electron in one chosen f spatial MO, the vacuum includes its opposite-spin partner too, making that MO doubly occupied in the reference. The physical model-space determinant still contains its original electron count; the choice does not change molecular charge or the CASSCF density. Likewise, the vacuum population vector is not a correlated orbital-population result.

The field is optional in the software schema. If omitted, the producer infers:

nocc = ceil(N_electrons / 2)
     = n_inactive + ceil(N_active_electrons / 2)

One or two active electrons add one downstream occupied orbital; three add two. The number of fractionally occupied MOs does not enter this formula. The count comes from the actual reference molecule, including CASSCF charge overrides. Even when this inferred value matches the intended vacuum, write the choice explicitly. It must lie between zero and the retained post-trim MO count.

New HDF5 exports record physical source_mo_occupation separately from downstream_reference_occupation under /mppt/orbital_analysis. The additive occupation_source attribute identifies casscf-1rdm, scf, provided, or unavailable populations. Historical artifacts without this attribute retain their historical semantics.

Energy Conventions#

SCF decomposition reuses PySCF’s final one-/two-electron energy summary rather than building J/K again. The potential contribution includes ECP/GRPP and any installed embedding potential. The closure residual compares the components with the reported SCF total.

The SCF nuclear/classical constant follows the actual solver’s energy_nuc. For point-charge inputs, the existing MPPT export constant can additionally include nucleus–point-charge and point-charge–point-charge terms. These constants must not be interchanged when comparing energies.

Progress And Restart#

SCF, CASSCF, orbital preparation and export emit timed substage messages. SCF iterations and completed CASSCF macroiterations expose energy changes and available gradient norms. Iteration notifications are throttled to ten seconds; the final available snapshot is flushed at exit. Iterative convergence is not reported as a percentage.

Structured progress uses kind: progress in logs/events.jsonl, separate from parent-stage lifecycle transitions. Consumers calculating stage status should ignore these diagnostic records. Reports and progress are captured once in logs/pyscf.log and in the timestamped run.log.

New CASSCF checkpoints retain active densities, weights and S² in the saved MO basis. Partial continuation can report them without rerunning the CI solver. Fully reused Python stages retain their original raw log and producing attempt.

Old checkpoints without density evidence remain readable. Their correlated populations are labelled NA in reports; compatibility reference vectors in new exports carry occupation_source=unavailable. Start a fresh run to obtain the missing densities. Reusing an old complete HDF5 artifact does not regenerate its reports or apply the new downstream occupied-prefix rule.