The Fock Matrix

The Fock matrix elements are:

where:

  • is the core Hamiltonian (kinetic + nuclear attraction)
  • is the two-electron contribution

The density matrix is:

Core Hamiltonian

The core Hamiltonian matrix elements are computed directly from one-electron integrals:

These integrals are evaluated using the Obara–Saika recurrence relations and are independent of the electron density.

Two-Electron Contribution

The two-electron part of the Fock matrix is built from the density matrix and electron repulsion integrals (ERIs):

The ERIs are computed using:

  • McMurchie–Davidson algorithm (default, universal for all angular momenta)
  • SP fast paths for S/P shells (up to 10× speedup)
  • Rys quadrature for D/F+ shells
  • Direct SCF mode for large systems (recomputes ERIs each iteration)

ERIs have 8-fold permutational symmetry:

Only unique ERIs are stored, and symmetry is exploited in all ERI-heavy computations (energy, gradients, Hessians).

Symmetry Acceleration

When point-group symmetry is enabled, only symmetry-unique shell quartets are computed. The detected point group is used to skip symmetry-equivalent ERI shell quartets during energy, gradient, and Hessian computations, and to assign irreducible representation labels (A₁, B₁, B₂, …) to molecular orbitals.