qrunch.chemistry.calculators.configuration_interaction.configuration_interaction_calculator
Ground state energy calculator using configuration interaction (CI).
Classes
Class for performing full configuration interaction calculations. |
|
Options to use for full configuration interaction calculations. |
- class ConfigurationInteractionLowestStatesCalculator
Bases:
objectClass for performing full configuration interaction calculations.
- __init__(options: ConfigurationInteractionOptions | None = None, data_persister_manager: DataPersisterManager | None = None) None
Initialize an instance of ConfigurationInteractionLowestStatesCalculator.
- Parameters:
options (ConfigurationInteractionOptions | None) – Options to use for the calculation. None results in default options.
data_persister_manager (DataPersisterManager | None) – Manager to handle saving and loading CI results.
- Return type:
None
- static build_metadata(ground_state_problem: RestrictedGroundStateProblem | UnrestrictedGroundStateProblem, *, n_lowest: int | None = None) MetadataFields
Create meta-data that represent the input.
- Parameters:
ground_state_problem (RestrictedGroundStateProblem | UnrestrictedGroundStateProblem) – The ground state problem.
n_lowest (int | None) – Number of lowest states to calculate, if calculating multiple states.
- Return type:
MetadataFields
- calculate(problem: RestrictedGroundStateProblem | LazyRestrictedGroundStateProblem | UnrestrictedGroundStateProblem | LazyUnrestrictedGroundStateProblem, n_lowest: int) LowestStatesResult
- calculate(problem: RestrictedReactionPathProblem | UnrestrictedReactionPathProblem, n_lowest: int) ReactionPathLowestStatesResult
- calculate(problem: RestrictedGroundStateProblem | LazyRestrictedGroundStateProblem | UnrestrictedGroundStateProblem | LazyUnrestrictedGroundStateProblem) GroundStateProblemCalculatorResult
- calculate(problem: RestrictedReactionPathProblem | UnrestrictedReactionPathProblem) ReactionPathProblemCalculatorResult
Solve the configuration interaction (CI) calculation.
Note that the problem may restrict the orbital space - in which case this is not a FCI calculation but a CASCI calculation. However, we consider this a FCI calculation in the provided orbital space, and in case of a restricted orbital space the inactive energy contribution associated with the CAS is included in the problem.
The Hamiltonian for all geometries is assumed to be real.
- Parameters:
problem (RestrictedGroundStateProblem | LazyRestrictedGroundStateProblem | UnrestrictedGroundStateProblem | LazyUnrestrictedGroundStateProblem | RestrictedReactionPathProblem | UnrestrictedReactionPathProblem) – The problem to calculate the ground state energy / energies for.
n_lowest (int | None) – The number of lowest energy states to consider. When omitted, only the ground state is calculated.
- Return type:
GroundStateProblemCalculatorResult | ReactionPathProblemCalculatorResult | LowestStatesResult | ReactionPathLowestStatesResult
- classmethod persistence_checkpoints() list[str]
Define the persistence checkpoints used for CI calculation.
These checkpoints specify computational stages where intermediate results can be saved and loaded to optimize computations and ensure reproducibility.
- Return type:
list[str]
- class ConfigurationInteractionOptions
Bases:
DataclassPublicAPIOptions to use for full configuration interaction calculations.
All fields are immutable (
frozen=True) so an instance can be safely reused.- Parameters:
tolerance – Finite, positive convergence tolerance (default: 1e-12).
- __init__(*, tolerance: float = 1e-12) None
- Parameters:
tolerance (float)
- Return type:
None
- tolerance: float = 1e-12