Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Examples

After running your own molecule, use these tutorials to practice saved-reference MP2, open-shell analysis, and orbital export.

Shared setup

Use the installed rustiq executable and save the inputs from each tutorial in a working directory of your choice. All three tutorials use STO-3G. Download the complete basis once with an online build.

rustiq basis download sto-3g

For offline use, import previously obtained Basis Set Exchange JSON files with rustiq basis import /path/to/sto-3g.json and, for the Nickel study, rustiq basis import /path/to/6-31g.json. A partial basis supports only the elements present in its JSON. See basis setup for storage and import details.

On repeat runs, choose fresh output paths or add --force to replace existing bundles and Molden files. Shell redirection with > truncates an existing report, so choose a new JSON filename if you want to keep it. For failures, see basis setup and error messages and exit codes.

Example index

Example and objectiveBasisGuide and prerequisites
Water / RHF and MP2STO-3GReuse a saved RHF reference.
Benzene / RHFSTO-3GExport molecular orbitals and render them in Jmol.
H₂ / RHF: first calculationSTO-3GFirst calculation; create the XYZ file and obtain the basis.
OH / UHF: open-shell calculationSTO-3GInspect an unrestricted solution.
H₂ / RHF-MP2: electron correlationSTO-3GMP2; first create H₂ as in the first calculation.
OH / UHF-MP2: open-shell correlationSTO-3GOpen-shell MP2; create OH as in the HF guide.
Inspect and transform XYZ geometryNoneGeometry; create an XYZ file.
Parameterized and batch studiesSTO-3G and 6-31GNickel studies; obtain both bases. No separate Nickel executable is needed.
Create, inspect, verify and rerun bundles; reuse AO ERIsSTO-3GPortable bundles; first prepare the H₂ input and basis.

Contributor reproduction and reference checks

From a source checkout, you can use the files in samples/h2o, samples/oh, and samples/benzene directly. The method-only input is samples/h2/sto-3g/postscf.toml. Use the installed executable or substitute cargo run --locked -- from the repository root.

The split-run integration test checks that fresh and restored water STO-3G MP2 energies agree within 10⁻¹² Hartree. Separate PySCF checks cover water STO-3G RHF (3 × 10⁻⁸ Hartree), water MP2 with 6-31G and cc-pVDZ, and OH STO-3G UHF (5 × 10⁻⁸ Hartree for total energy and 2 × 10⁻⁵ for ⟨S²⟩). The reference suite does not include water STO-3G MP2 or benzene.

cargo test --locked --test artifact_cli post_scf_split_run_matches_full_mp2_calculation
uv run --locked pytest tools/reference/test_compare_pyscf.py -k 'h2o or oh-sto-3g-uhf'

Report scientific discrepancies through the issue tracker. Include the RustiQ version, input and geometry, basis source, observed and expected results, comparison method, and units. Use the same tracker for feature requests and workflow feedback.