qrunch.chemistry.qrackle.scf.builders.density_matrix_builder
Free function for constructing the AO density matrix from MO coefficients.
Functions
|
Build the AO density matrix from occupied MO coefficients. |
- build_ao_density_matrix(scf_matrix_module: SCFMatrixModuleProtocol[TSCFMatrix, TSCFVector, TMatrix, TVector], mo_coefficients: TSCFMatrix, orbital_occupation: OrbitalOccupation) TSCFMatrix
Build the AO density matrix from occupied MO coefficients.
Computes \(D^{\sigma} = C_{\mathrm{occ}}^{\sigma} C_{\mathrm{occ}}^{\sigma T}\) where \(C_{\mathrm{occ}}\) contains the occupied columns of the MO coefficient matrix.
For restricted calculations the Density matrix is the spin summed density matrix:
\[P = D^{\alpha} + D^{\beta} = 2 D^{\alpha}\]This ensures that the trace of the density matrix is equal to the number of electrons in the system.
- Parameters:
scf_matrix_module (SCFMatrixModuleProtocol[TSCFMatrix, TSCFVector, TMatrix, TVector]) – SCF matrix module for spin-level operations.
mo_coefficients (TSCFMatrix) – Full MO coefficient matrix (all orbitals).
orbital_occupation (OrbitalOccupation) – Electron occupation specifying how many orbitals are occupied.
- Return type:
TSCFMatrix