qrunch.chemistry.qrackle.integrals.coulomb_calculator_protocol

Protocol for Coulomb-matrix calculators.

A Coulomb calculator computes the electron-electron Coulomb repulsion matrix (J matrix) from a given density matrix. It supports both restricted (single density matrix) and unrestricted (alpha/beta density matrices) calculations.

Classes

CoulombCalculatorProtocol

Protocol for objects that compute the Coulomb repulsion matrix.

class CoulombCalculatorProtocol

Bases: Protocol, Generic[TMatrix, TVector_co]

Protocol for objects that compute the Coulomb repulsion matrix.

The protocol is generic over the concrete matrix and vector types of the backing MatrixModuleProtocol.

__init__(*args, **kwargs)
compute_restricted(density_matrix: RestrictedMatrix[TMatrix], molecular_configuration: MolecularConfiguration) → RestrictedMatrix[TMatrix]

Compute the Coulomb matrix from a restricted (closed-shell) density matrix.

Parameters:
Return type:

RestrictedMatrix[TMatrix]

compute_restricted_many(density_matrices: list[RestrictedMatrix[TMatrix]], molecular_configuration: MolecularConfiguration) → list[RestrictedMatrix[TMatrix]]

Compute Coulomb matrices for several restricted density matrices.

Parameters:
Return type:

list[RestrictedMatrix[TMatrix]]

compute_unrestricted(density_matrix: UnrestrictedMatrix[TMatrix], molecular_configuration: MolecularConfiguration) → UnrestrictedMatrix[TMatrix]

Compute the Coulomb matrix from an unrestricted density matrix.

The Coulomb contribution for each spin channel depends on the total density (alpha + beta).

Parameters:
Return type:

UnrestrictedMatrix[TMatrix]

compute_unrestricted_many(density_matrices: list[UnrestrictedMatrix[TMatrix]], molecular_configuration: MolecularConfiguration) → list[UnrestrictedMatrix[TMatrix]]

Compute Coulomb matrices for several unrestricted density matrices.

Parameters:
Return type:

list[UnrestrictedMatrix[TMatrix]]