Given a set of occupied M.O.s, ψi =Σλcλiφλ, the density matrix, P, is defined as: Ψλσ = 2Σiocc cλicσi. If ROUHF is used, the "2" would be replaced by the fractional occupancy.
For UHF, the density matrix is given by the sum of the alpha and beta density matrices: Ψλσ = 1σiocc(α) cλiαcσiα + σiocc(β) cλiβcσiβ. If fractional occupancy of α UHF M.O.'s is used, the "1" would be replaced by the fractional occupancy.
When configuration interaction is used, the total density matrix, P, is the sum of the density matrix for the doubly-occupied M.O.s plus the density matrix for the active space M.O.s.
Given n M.O.s in the active space, and l microstates, Ψ, in each state, so that a State Φi can be defined as Φi = Σλl (cλiΨλ), then the contribution to the electron population can be expressed in terms of active-space M.O.s ψk and ψl as Δkl.
Calculating Δkl requires evaluating the product Φi x Φi, i.e., evaluating the set: Σλl (cλiΨλ) x Σσl (cσiΨσ). This operation involves evaluating three types of integrals:
(A) Ψλ= Ψσ
The contribution to the active-space M.O.s ψk and ψl is Δkl = OkiOli cki x cli, where Oki and Oli are 1 (unity) if the M.O. is occupied, zero otherwise.
(B) Except for M.O. ψi in Ψλ and ψj in Ψσ, Ψλ= Ψσ, for example, if ψλ has active-space occupancy [000101] and Ψσ, has occupancy [000011] so ψi in Ψλ would be 4 and ψj in Ψσ would be 5. Both M.O.s ψi and ψj must have the same spin.
The contribution to the active-space M.O.s ψi and ψj is Δij = (-1)p.cki.cli, where "p" is the number of permutations needed to put ψi in Ψλ into coincidence with ψj in Ψσ . In this example, "p" would be zero. If the microstates were [000110] and [000011] the number of permutations would be one.
(C) If more than one difference exists between Ψλand Ψσ, or if the number of α electrons in the two microstates is different, then the integral is zero.
Using the newly-formed matrix Δ, and the density matrix over M.O.s below the active space, P', the change to the density matrix is given by:
Pλσ = P'λσ + ΣiΣj cλiΔi,jcσj
where i and j run over the active-space M.O.s
When degenerate C.I. States are present, Δ is calculated using the weighted average of all components of the degenerate manifold. This is necessary in order to preserve symmetry.