Conventional MP2 correlation energy
The v2.x wavefunction prototype adds a closed-shell MP2 correlation energy on top of the existing RHF/STO-3G orbitals. It is a conventional four-index MP2, not yet the RI/local variant.
Status. Implemented and exposed on the Rust, Python, WASM and CLI surfaces. The RI approximation, local PNO correlation and a PySCF parity benchmark are pending. See the v2.x roadmap.
Feature.
alpha-mp2(included inalpha-v2).
Theory
For closed-shell spatial orbitals,
The implementation transforms the AO ERIs to the MO basis one index at a time:
The quarter transforms keep the memory at O(N² N_occ N_vir) instead of materialising the full N⁴ MO tensor.
API
use sci_form::compute_mp2_energy;
let result = compute_mp2_energy(&[8, 1, 1], &water)?;
println!("HF = {:.6} Ha", result.hf_energy_hartree);
println!("MP2 = {:.6} Ha", result.correlation_energy_hartree);
println!("Total= {:.6} Ha", result.total_energy_hartree);Output
| Field | Meaning |
|---|---|
hf_energy_hartree | RHF total energy |
correlation_energy_hartree | MP2 correlation energy |
correlation_energy_kcal_mol | Correlation energy in kcal/mol |
total_energy_hartree | HF + MP2 |
n_basis, n_occupied, n_virtual | Orbital dimensions |
For water at the test geometry:
hf_energy_hartree = -74.96297768393549
correlation_energy_hartree = -0.03552066349518875
correlation_energy_kcal_mol= -22.28955286823825
total_energy_hartree = -74.99849834743068
n_basis / n_occupied / n_virtual = 7 / 5 / 2The Python binding returns the JSON encoding of Mp2Result, like the CLI and WASM. Invalid geometry, an odd/closed-shell-incompatible electron count and a basis with no virtual orbital are ValueError/{error}; an RHF non-convergence remains NotConvergedError/{error}.
Scope
| Capability | Status |
|---|---|
| Closed-shell conventional MP2 | implemented |
| RHF/STO-3G reference | implemented |
| RI-MP2 / auxiliary basis | not implemented |
| SCS/SOS scaling | not implemented |
| Local PNO correlation | not implemented |
| Frozen core | not implemented |
| Open-shell MP2 | not implemented |
Validation
| Gate | Observable | Result |
|---|---|---|
| Water correlation | Negative and finite | passes |
| Energy decomposition | Total = HF + correlation | < 1e-12 |
| Invalid geometry | Length mismatch | rejected |
A PySCF MP2 comparison and a basis-convergence study are still required before promotion. The CLI and bindings run neutral, closed-shell systems only; an odd electron count or a basis with no virtual orbital is rejected.
Bindings
| Surface | Entry point |
|---|---|
| CLI | sci-form mp2 '<elements>' '<coords>' |
| WASM | compute_mp2_energy(elements, coords) |
| Python | compute_mp2_energy(elements, coords) |
The CLI prints the full JSON result.
Limitations
- Conventional
O(N⁵)transform; not suitable for large molecules. - STO-3G only.
- All occupied orbitals are correlated; no frozen core.
- No RI, SCS/SOS or local correlation.
- No analytical MP2 gradient or response properties.
- No RI/local approximation and no analytic gradient.
- No benchmark against PySCF/ORCA yet.
Next steps
- Add def2-SVP/TZVP and auxiliary basis sets.
- Add RI-MP2 and SCS/SOS scaling.
- Add frozen-core handling.
- Add local PNO correlation.
- Add PySCF parity and basis-convergence gates.
- Add an analytic MP2 gradient.