qrunch.chemistry.qrackle.integrals.pyscf_coulomb_calculator

PySCF-backed implementation of CoulombCalculatorProtocol.

Classes

PySCFCoulombCalculator

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:
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:
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:
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:
Return type:

list[UnrestrictedMatrix[TMatrix]]