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

Water — run MP2 from saved RHF orbitals

See shared setup for STO-3G installation and output paths.

This tutorial saves the converged restricted Hartree–Fock (RHF) reference for water, then uses MP2 to calculate a correlation correction without repeating the HF calculation.

Create a directory named h2o with an inputs subdirectory. Save the geometry as h2o/h2o.xyz.

3
Water molecule
O 0.000  0.000 0.000
H 0.000 -0.757 0.587
H 0.000  0.757 0.587

Save the runfile as h2o/inputs/calculation.toml. Its geometry path resolves relative to the TOML file, one directory up.

[basis]
name = "sto-3g"

[molecule]
geometry = "../h2o.xyz"

[method.hf]

Save the Post-SCF settings as h2o/postscf.toml.

[method.mp2]
frozen_orbitals = 0
memory_limit = "1 GiB"

The neutral singlet has five doubly occupied spatial orbitals. frozen_orbitals = 0 includes all five in MP2 correlation. A positive count excludes that many of the lowest-energy occupied RHF spatial orbitals. memory_limit budgets estimated additional MP2 workspace (1 GiB here). The resident HF data and AO integrals are outside this budget. The settings file contains only MP2 options, so you can reuse it with another compatible HF bundle. The bundle supplies the molecule, basis, orbitals, and AO integrals.

From inside h2o, save and verify the converged reference, then run MP2 using that reference without repeating SCF.

rustiq run inputs/calculation.toml --artifact hf.rustiq --format json > hf.json
rustiq artifact verify hf.rustiq
rustiq run hf.rustiq --post-scf postscf.toml --artifact mp2.rustiq --format json > mp2.json
rustiq artifact verify mp2.rustiq

To repeat SCF from the archived input, run rustiq run hf.rustiq. Adding --post-scf postscf.toml instead restores the converged reference for MP2.

The HF report gives a total HF energy of −74.9630631541 Hartree. The following method record is from calculations[0].methods[0] in the generated version 1 JSON report. Open hf.json and mp2.json in a text editor to inspect HF convergence and energy under calculation.hf, and the MP2 status and energies under calculations[0].methods[0].

{
  "method": "mp2",
  "status": "succeeded",
  "result": {
    "reference": "RHF",
    "correlation_energy": -0.035566837117355324,
    "electronic_energy": -84.18688840870615,
    "nuclear_repulsion_energy": 9.188258417450937,
    "total_energy": -74.99862999125521
  }
}

The status confirms that MP2 completed with an RHF reference. Adding the MP2 correlation energy (−0.0355668371 Hartree) to the total HF energy gives the total MP2 energy (−74.9986299913 Hartree). Keep the portable bundle for the scientific inputs, saved HF reference and AO integrals, and applied MP2 settings. Keep mp2.json for the MP2 status and energies, and hf.json for the HF report. See portable bundles and MP2 limitations. For independent checks of the methods used here, see reference checks.