qrunch.chemistry.qrackle.integrals.nuclear_attraction_calculator_protocol

Protocol for nuclear attraction matrix calculators.

Classes

NuclearAttractionCalculatorProtocol

Protocol for objects that compute an AO nuclear attraction matrix.

class NuclearAttractionCalculatorProtocol

Bases: Protocol, Generic[TMatrix_co, TVector_co]

Protocol for objects that compute an AO nuclear attraction matrix.

The protocol is generic over the concrete matrix and vector types of the backing MatrixModuleProtocol so that compute returns the backend’s own matrix type rather than the general MatrixProtocol.

__init__(*args, **kwargs)
compute(molecular_configuration: MolecularConfiguration) → TMatrix_co

Compute the atomic-orbital nuclear attraction matrix.

Parameters:

molecular_configuration (MolecularConfiguration) – The molecular configuration.

Return type:

TMatrix_co

The shape of the returned matrix is (number_of_atomic_orbitals, number_of_atomic_orbitals).