qrunch.chemistry.calculators.configuration_interaction.configuration_interaction_calculator

Ground state energy calculator using configuration interaction (CI).

Classes

ConfigurationInteractionLowestStatesCalculator

Class for performing full configuration interaction calculations.

ConfigurationInteractionOptions

Options to use for full configuration interaction calculations.

class ConfigurationInteractionLowestStatesCalculator

Bases: object

Class for performing full configuration interaction calculations.

__init__(options: ConfigurationInteractionOptions | None = None, data_persister_manager: DataPersisterManager | None = None) → None

Initialize an instance of ConfigurationInteractionLowestStatesCalculator.

Parameters:
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:
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:
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: DataclassPublicAPI

Options 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