qrunch.chemistry.qrackle.integrals.coulomb_calculator_protocol
Protocol for Coulomb-matrix calculators.
A Coulomb calculator computes the electron-electron Coulomb repulsion matrix (J matrix) from a given density matrix. It supports both restricted (single density matrix) and unrestricted (alpha/beta density matrices) calculations.
Classes
Protocol for objects that compute the Coulomb repulsion matrix. |
- class CoulombCalculatorProtocol
Bases:
Protocol,Generic[TMatrix,TVector_co]Protocol for objects that compute the Coulomb repulsion matrix.
The protocol is generic over the concrete matrix and vector types of the backing
MatrixModuleProtocol.- __init__(*args, **kwargs)
- compute_restricted(density_matrix: RestrictedMatrix[TMatrix], molecular_configuration: MolecularConfiguration) RestrictedMatrix[TMatrix]
Compute the Coulomb matrix from a restricted (closed-shell) density matrix.
- Parameters:
density_matrix (RestrictedMatrix[TMatrix]) – The total density matrix in the AO basis.
molecular_configuration (MolecularConfiguration) – The molecular configuration.
- Return type:
RestrictedMatrix[TMatrix]
- compute_restricted_many(density_matrices: list[RestrictedMatrix[TMatrix]], molecular_configuration: MolecularConfiguration) list[RestrictedMatrix[TMatrix]]
Compute Coulomb matrices for several restricted density matrices.
- Parameters:
density_matrices (list[RestrictedMatrix[TMatrix]]) – Restricted density matrices in the AO basis.
molecular_configuration (MolecularConfiguration) – The molecular configuration.
- Return type:
list[RestrictedMatrix[TMatrix]]
- compute_unrestricted(density_matrix: UnrestrictedMatrix[TMatrix], molecular_configuration: MolecularConfiguration) UnrestrictedMatrix[TMatrix]
Compute the Coulomb matrix from an unrestricted density matrix.
The Coulomb contribution for each spin channel depends on the total density (alpha + beta).
- Parameters:
density_matrix (UnrestrictedMatrix[TMatrix]) – The unrestricted density matrix holding alpha and beta components.
molecular_configuration (MolecularConfiguration) – The molecular configuration.
- Return type:
UnrestrictedMatrix[TMatrix]
- compute_unrestricted_many(density_matrices: list[UnrestrictedMatrix[TMatrix]], molecular_configuration: MolecularConfiguration) list[UnrestrictedMatrix[TMatrix]]
Compute Coulomb matrices for several unrestricted density matrices.
- Parameters:
density_matrices (list[UnrestrictedMatrix[TMatrix]]) – Unrestricted density matrices in the AO basis.
molecular_configuration (MolecularConfiguration) – The molecular configuration.
- Return type:
list[UnrestrictedMatrix[TMatrix]]