Skip to content

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 ​

  1. Validate the geometry and the element set.
  2. Run RHF in the STO-3G basis. A non-converged reference is an error.
  3. Transform the AO two-electron integrals to the MO basis.
  4. Build the determinant space: the reference, all singly excited determinants, and the doubles required by the selected spin coupling.
  5. Build the CI matrix with the Slater rules and diagonalise it.
  6. 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

Ecorr=ECI,0−ERHF,

in Hartree. Each excited state is reported relative to the CI ground state, not relative to the RHF reference:

ΔEk=ECI,k−ECI,0.

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 ​

ConditionPathapproximation
Determinants ≤ 5000 and basis ≤ 64Exact determinant CISDfull
Larger spaceCIS excitations + MP2 correlation energyperturbative

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

f≈23ΔEsingles-weight,

so it ranks bright singles transitions but is not a quantitative absorption cross-section. Use it for qualitative state ordering only.

Example ​

bash
$ 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-states must be a positive integer. Python rejects zero and negative values with ValueError; WASM rejects zero, negative, fractional, NaN and 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.CISD for the fixture set in tests/fixtures/validation/pyscf_tda.json; the tolerance is 1e-6 Ha and the gate passes.
  • Water/STO-3G: E_corr = -0.0488500227 Ha versus PySCF -0.0488500312 Ha (difference 8.4e-9 Ha).

Surfaces ​

SurfaceEntry point
CLIsci-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
Pythonsci_form.compute_cisd(elements, coords, n_states)
WASMcompute_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).

Released under the MIT License.