qrunch.chemistry.qrackle.integrals.overlap_calculator_protocol

Protocol for overlap-matrix calculators.

An overlap calculator is a small object that owns whatever it needs to evaluate the atomic-orbital overlap matrix for a particular molecular system, and exposes a single compute() method that returns the result as a matrix on a user-chosen MatrixModuleProtocol backend.

Concrete implementations accept their matrix module on construction so that the returned matrix is always of the backend’s concrete matrix type.

Classes

OverlapCalculatorProtocol

Protocol for objects that compute an AO overlap matrix.

class OverlapCalculatorProtocol

Bases: Protocol, Generic[TMatrix_co, TVector_co]

Protocol for objects that compute an AO overlap 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 overlap 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).