qrunch.chemistry.qrackle.integrals.pyscf_nuclear_attraction_calculator

PySCF-backed implementation of NuclearAttractionCalculatorProtocol.

Classes

PySCFNuclearAttractionCalculator

Compute the AO nuclear-attraction matrix via PySCF's one-electron integrals.

class PySCFNuclearAttractionCalculator

Bases: NuclearAttractionCalculatorProtocol[TMatrix, TVector]

Compute the AO nuclear-attraction matrix via PySCF’s one-electron integrals.

The result is wrapped in a matrix allocated by the configured MatrixModuleProtocol, so callers downstream can treat the result uniformly with matrices produced by any other backend.

__init__(matrix_module: MatrixModuleProtocol[TMatrix, TVector]) → None

Initialise the calculator.

Parameters:

matrix_module (MatrixModuleProtocol[TMatrix, TVector]) – Matrix module used to allocate the result matrix.

Return type:

None

compute(molecular_configuration: MolecularConfiguration) → TMatrix

Compute the AO nuclear-attraction matrix.

Parameters:

molecular_configuration (MolecularConfiguration) – The molecular configuration.

Return type:

TMatrix