qrunch.chemistry.qrackle.integrals.exchange_correlation_calculator_protocol
Protocol for exchange-correlation functional calculators.
Classes
Describe the exact-exchange parameters implied by an XC functional. |
|
Compute XC energies, potentials, and first-order potential responses. |
|
Store an XC energy, potential matrix, and exact-exchange parameters. |
- class ExactExchange
Bases:
objectDescribe 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:
density_matrix (RestrictedMatrix[TMatrix])
molecular_configuration (MolecularConfiguration)
- Return type:
- compute_restricted_results_many(density_matrices: list[RestrictedMatrix[TMatrix]], molecular_configuration: MolecularConfiguration) list[ExchangeCorrelationResult]
Compute XC energies and potentials for several restricted densities.
- Parameters:
density_matrices (list[RestrictedMatrix[TMatrix]])
molecular_configuration (MolecularConfiguration)
- Return type:
- compute_unrestricted_result(density_matrix: UnrestrictedMatrix[TMatrix], molecular_configuration: MolecularConfiguration) ExchangeCorrelationResult
Compute the XC energy and potentials for one unrestricted density.
- Parameters:
density_matrix (UnrestrictedMatrix[TMatrix])
molecular_configuration (MolecularConfiguration)
- Return type:
- compute_unrestricted_results_many(density_matrices: list[UnrestrictedMatrix[TMatrix]], molecular_configuration: MolecularConfiguration) list[ExchangeCorrelationResult]
Compute XC energies and potentials for several unrestricted densities.
- Parameters:
density_matrices (list[UnrestrictedMatrix[TMatrix]])
molecular_configuration (MolecularConfiguration)
- Return type:
- 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:
reference_density_matrix (RestrictedMatrix[TMatrix])
density_matrix_direction (RestrictedMatrix[TMatrix])
molecular_configuration (MolecularConfiguration)
- 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:
reference_density_matrix (RestrictedMatrix[TMatrix])
density_matrix_directions (list[RestrictedMatrix[TMatrix]])
molecular_configuration (MolecularConfiguration)
- 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:
reference_density_matrix (UnrestrictedMatrix[TMatrix])
density_matrix_direction (UnrestrictedMatrix[TMatrix])
molecular_configuration (MolecularConfiguration)
- 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:
reference_density_matrix (UnrestrictedMatrix[TMatrix])
density_matrix_directions (list[UnrestrictedMatrix[TMatrix]])
molecular_configuration (MolecularConfiguration)
- Return type:
list[UnrestrictedMatrix[TMatrix]]
- class ExchangeCorrelationResult
Bases:
objectStore 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]