qrunch.chemistry.qrackle.integrals.exchange_correlation_calculator_protocol

Protocol for exchange-correlation functional calculators.

Classes

ExactExchange

Describe the exact-exchange parameters implied by an XC functional.

ExchangeCorrelationCalculatorProtocol

Compute XC energies, potentials, and first-order potential responses.

ExchangeCorrelationResult

Store an XC energy, potential matrix, and exact-exchange parameters.

class ExactExchange

Bases: object

Describe the exact-exchange parameters implied by an XC functional.

__init__(short_range_fraction: float, long_range_fraction: float, omega: float = 0.0) → None
Parameters:
  • short_range_fraction (float)

  • long_range_fraction (float)

  • omega (float)

Return type:

None

property fraction: float

The global or short-range exact-exchange fraction.

property is_range_separated: bool

Whether the functional uses range-separated exact exchange.

long_range_fraction: float
omega: float = 0.0
short_range_fraction: float
class ExchangeCorrelationCalculatorProtocol

Bases: Protocol, Generic[TMatrix, TVector_co]

Compute XC energies, potentials, and first-order potential responses.

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

Compute the XC energy and potential for one restricted density.

Parameters:
Return type:

ExchangeCorrelationResult

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

Compute XC energies and potentials for several restricted densities.

Parameters:
Return type:

list[ExchangeCorrelationResult]

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

Compute the XC energy and potentials for one unrestricted density.

Parameters:
Return type:

ExchangeCorrelationResult

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

Compute XC energies and potentials for several unrestricted densities.

Parameters:
Return type:

list[ExchangeCorrelationResult]

property exact_exchange: ExactExchange

Exact-exchange parameters implied by the configured functional.

xc_response_on_density_restricted(reference_density_matrix: RestrictedMatrix[TMatrix], density_matrix_direction: RestrictedMatrix[TMatrix], molecular_configuration: MolecularConfiguration) → RestrictedMatrix[TMatrix]

Apply the restricted first-order XC response at a reference density.

Parameters:
Return type:

RestrictedMatrix[TMatrix]

xc_response_on_density_restricted_many(reference_density_matrix: RestrictedMatrix[TMatrix], density_matrix_directions: list[RestrictedMatrix[TMatrix]], molecular_configuration: MolecularConfiguration) → list[RestrictedMatrix[TMatrix]]

Apply the restricted first-order XC response to several density directions.

Parameters:
Return type:

list[RestrictedMatrix[TMatrix]]

xc_response_on_density_unrestricted(reference_density_matrix: UnrestrictedMatrix[TMatrix], density_matrix_direction: UnrestrictedMatrix[TMatrix], molecular_configuration: MolecularConfiguration) → UnrestrictedMatrix[TMatrix]

Apply the unrestricted first-order XC response at a reference density.

Parameters:
Return type:

UnrestrictedMatrix[TMatrix]

xc_response_on_density_unrestricted_many(reference_density_matrix: UnrestrictedMatrix[TMatrix], density_matrix_directions: list[UnrestrictedMatrix[TMatrix]], molecular_configuration: MolecularConfiguration) → list[UnrestrictedMatrix[TMatrix]]

Apply the unrestricted first-order XC response to several density directions.

Parameters:
Return type:

list[UnrestrictedMatrix[TMatrix]]

class ExchangeCorrelationResult

Bases: object

Store an XC energy, potential matrix, and exact-exchange parameters.

__init__(energy: float, matrix: NDArray[float64], exact_exchange: ExactExchange, functional: str) → None
Parameters:
  • energy (float)

  • matrix (NDArray[float64])

  • exact_exchange (ExactExchange)

  • functional (str)

Return type:

None

energy: float
exact_exchange: ExactExchange
functional: str
matrix: NDArray[float64]