qrunch.chemistry.qrackle.integrals.kinetic_calculator_protocol

Protocol for kinetic-energy-matrix calculators.

A kinetic calculator is a small object that owns whatever it needs to evaluate the atomic-orbital kinetic-energy matrix \(T_{\\mu\\nu} = -\\tfrac{1}{2}\\langle \\chi_\\mu \\mid \\nabla^2 \\mid \\chi_\\nu \\rangle\) 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

KineticCalculatorProtocol

Protocol for objects that compute an AO kinetic-energy matrix.

class KineticCalculatorProtocol

Bases: Protocol, Generic[TMatrix_co, TVector_co]

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