qrunch.chemistry.qrackle.integrals.pyscf_coulomb_calculator
PySCF-backed implementation of CoulombCalculatorProtocol.
Classes
Compute the Coulomb (J) matrix via PySCF's two-electron integrals. |
- class PySCFCoulombCalculator
Bases:
CoulombCalculatorProtocol[TMatrix,TVector]Compute the Coulomb (J) matrix via PySCF’s two-electron integrals.
- __init__(matrix_module: MatrixModuleProtocol[TMatrix, TVector]) None
Initialise the calculator.
- Parameters:
matrix_module (MatrixModuleProtocol[TMatrix, TVector]) – Matrix module used to allocate result matrices.
- Return type:
None
- compute_restricted(density_matrix: RestrictedMatrix[TMatrix], molecular_configuration: MolecularConfiguration) RestrictedMatrix[TMatrix]
Compute the Coulomb matrix from a restricted density matrix.
- Parameters:
density_matrix (RestrictedMatrix[TMatrix]) – The spin summed RHF 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 a batch of restricted densities.
- 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 matrix for both spin channels is identical and is computed from 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 a batch of unrestricted densities.
- Parameters:
density_matrices (list[UnrestrictedMatrix[TMatrix]]) – Unrestricted density matrices in the AO basis.
molecular_configuration (MolecularConfiguration) – The molecular configuration.
- Return type:
list[UnrestrictedMatrix[TMatrix]]