qrunch.chemistry.qrackle.integrals.pyscf_exact_exchange_calculator
PySCF-backed implementation of ExactExchangeCalculatorProtocol.
Classes
Compute full- or range-separated exact-exchange matrices with PySCF. |
- class PySCFExactExchangeCalculator
Bases:
ExactExchangeCalculatorProtocol[TMatrix,TVector]Compute full- or range-separated exact-exchange matrices with PySCF.
- __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, *, omega: float | None = None) RestrictedMatrix[TMatrix]
Compute exchange from a restricted density matrix.
- Parameters:
density_matrix (RestrictedMatrix[TMatrix]) – The spin-summed restricted density matrix in the AO basis.
molecular_configuration (MolecularConfiguration) – The molecular configuration.
omega (float | None) – Range-separation parameter. Use
Nonefor full-range exchange.
- Return type:
RestrictedMatrix[TMatrix]
- compute_restricted_many(density_matrices: list[RestrictedMatrix[TMatrix]], molecular_configuration: MolecularConfiguration, *, omega: float | None = None) list[RestrictedMatrix[TMatrix]]
Compute exchange 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.
omega (float | None) – Range-separation parameter. Use
Nonefor full-range exchange.
- Return type:
list[RestrictedMatrix[TMatrix]]
- compute_unrestricted(density_matrix: UnrestrictedMatrix[TMatrix], molecular_configuration: MolecularConfiguration, *, omega: float | None = None) UnrestrictedMatrix[TMatrix]
Compute exchange from an unrestricted density matrix.
Each spin channel’s exchange depends only on its own density.
- Parameters:
density_matrix (UnrestrictedMatrix[TMatrix]) – The unrestricted density matrix holding alpha and beta components.
molecular_configuration (MolecularConfiguration) – The molecular configuration.
omega (float | None) – Range-separation parameter. Use
Nonefor full-range exchange.
- Return type:
UnrestrictedMatrix[TMatrix]
- compute_unrestricted_many(density_matrices: list[UnrestrictedMatrix[TMatrix]], molecular_configuration: MolecularConfiguration, *, omega: float | None = None) list[UnrestrictedMatrix[TMatrix]]
Compute exchange 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.
omega (float | None) – Range-separation parameter. Use
Nonefor full-range exchange.
- Return type:
list[UnrestrictedMatrix[TMatrix]]