Configuration interaction (CISD)
sci-form cisd computes excited states with configuration interaction singles and doubles (CISD) on top of an internal STO-3G restricted Hartree–Fock reference.
flowchart LR
A[Geometry] --> B[RHF / STO-3G]
B --> C[Canonical orbitals + MO ERIs]
C --> D[Reference, singles, doubles determinants]
D --> E[CI matrix]
E --> F[Diagonalise]
F --> G[Ground-state correlation]
F --> H[Excited states]
Pipeline
- Validate the geometry and the element set.
- Run RHF in the STO-3G basis. A non-converged reference is an error.
- Transform the AO two-electron integrals to the MO basis.
- Build the determinant space: the reference, all singly excited determinants, and the doubles required by the selected spin coupling.
- Build the CI matrix with the Slater rules and diagonalise it.
- Report the lowest eigenvalue as the CI ground state and the following eigenvalues as excited states.
The reference must be closed-shell: the electron count has to be even. Systems with an odd electron count must use uhf/rohf instead.
Energies
The ground-state correlation energy is
in Hartree. Each excited state is reported relative to the CI ground state, not relative to the RHF reference:
wavelength_nm is 1239.84193 / energy_ev, and dominant_transition lists pairs of zero-based spatial orbital indices [occupied, virtual] taken from the determinant with the largest coefficient in that eigenvector.
Full and perturbative paths
| Condition | Path | approximation |
|---|---|---|
| Determinants ≤ 5000 and basis ≤ 64 | Exact determinant CISD | full |
| Larger space | CIS excitations + MP2 correlation energy | perturbative |
The perturbative path keeps the CIS excitation energies and uses the MP2 correlation energy for the ground state, so correlation_energy and the excitation energies come from different approximations. This is reported explicitly through the approximation field.
Oscillator strengths
The current backend does not compute transition dipole integrals. The reported oscillator_strength is the proxy
so it ranks bright singles transitions but is not a quantitative absorption cross-section. Use it for qualitative state ordering only.
Example
$ WATER='[0,0,0.1173,0,0.7572,-0.4692,0,-0.7572,-0.4692]'
$ sci-form cisd "[8,1,1]" "$WATER" --n-states 2
{
"excitations": [
{
"energy": 0.4191404324575245,
"energy_ev": 11.405392104191437,
"wavelength_nm": 108.70664670479528,
"oscillator_strength": 0.2694557295780764,
"dominant_transition": [[4, 5]],
"character": "singles",
"singles_weight": 0.9643154491140016
},
{
"energy": 0.4790943143547537,
"energy_ev": 13.03682032789443,
"wavelength_nm": 95.10309253454643,
"oscillator_strength": 0.3032287888236403,
"dominant_transition": [[4, 5]],
"character": "singles",
"singles_weight": 0.9493813005233537
}
],
"correlation_energy": -0.04885002271124961,
"n_csfs": 141,
"approximation": "full"
}Input validation
--n-statesmust be a positive integer. Python rejects zero and negative values withValueError; WASM rejects zero, negative, fractional,NaNand infinite values with{"error": ...}. Values larger than the CI space report only the states that exist.- every element must have an STO-3G contraction in the HF backend (H, C, N, O, F, P, S, Cl).
- the electron count must be even (closed-shell reference).
- coordinates must contain three finite values per atom and the molecule must be non-empty.
- a non-converged RHF reference is rejected instead of being used silently.
Validation
- F41 compares the ground-state CISD correlation energy against PySCF
ci.cisd.CISDfor the fixture set intests/fixtures/validation/pyscf_tda.json; the tolerance is1e-6 Haand the gate passes. - Water/STO-3G:
E_corr = -0.0488500227 Haversus PySCF-0.0488500312 Ha(difference8.4e-9 Ha).
Surfaces
| Surface | Entry point |
|---|---|
| CLI | sci-form cisd "<elements>" "<coords>" --n-states N |
| Rust (geometry) | sci_form::hf::compute_cisd_from_geometry |
| Rust (low level) | sci_form::hf::cisd::compute_cisd |
| Python | sci_form.compute_cisd(elements, coords, n_states) |
| WASM | compute_cisd(elements_json, coords_flat_json, n_states) |
The Python binding exposes the reference metadata as well (scf_energy, scf_converged, n_basis, n_occupied). The CLI and WASM payloads contain the CISD result (excitations, correlation_energy, n_csfs, approximation).