qrunch.chemistry.creators.lowest_states_calculator

Builders selecting calculators capable of calculating the lowest states.

Functions

lowest_states_calculator_creator()

Create a calculator capable of calculating the lowest molecular energy states.

Classes

LowestStatesCalculatorCreator

Select a lowest-states calculator for molecular or reaction-path problems.

LowestStatesConfigurationInteractionCreator

Select a CI calculator supporting the lowest molecular energy states.

LowestStatesQuantumSelectedConfigurationInteractionCreator

Select a quantum-selected configuration interaction (QSCI) calculator supporting the lowest states.

class LowestStatesCalculatorCreator

Bases: object

Select a lowest-states calculator for molecular or reaction-path problems.

static configuration_interaction() → LowestStatesConfigurationInteractionCreator

Select a configuration interaction calculator supporting the lowest states.

Return type:

LowestStatesConfigurationInteractionCreator

static quantum_selected_configuration_interaction() → LowestStatesQuantumSelectedConfigurationInteractionCreator

Select a quantum-selected configuration interaction (QSCI) calculator supporting the lowest states.

Return type:

LowestStatesQuantumSelectedConfigurationInteractionCreator

class LowestStatesConfigurationInteractionCreator

Bases: object

Select a CI calculator supporting the lowest molecular energy states.

static standard() → ConfigurationInteractionGroundStateCalculatorCreator

Select standard CI (FCI or CASCI in the provided orbital space).

The returned builder shares options and persistence configuration with the standard CI path from calculator_creator().

Return type:

ConfigurationInteractionGroundStateCalculatorCreator

class LowestStatesQuantumSelectedConfigurationInteractionCreator

Bases: object

Select a quantum-selected configuration interaction (QSCI) calculator supporting the lowest states.

static custom() → CustomQuantumSelectedConfigurationInteractionGroundStateCalculatorCreator

Select custom QSCI with a chosen subspace state generator.

The returned builder is the same as the custom QSCI path from calculator_creator(). Choose a generator that spans the excited states, such as krylov_qdrift; the default only samples the reference state.

Return type:

CustomQuantumSelectedConfigurationInteractionGroundStateCalculatorCreator

static sqdrift() → SqDriftGroundStateCalculatorCreator

Select SqDRIFT: QSCI sampling Krylov states built by qDRIFT time evolution.

The returned builder is the same as the SqDRIFT path from calculator_creator().

Return type:

SqDriftGroundStateCalculatorCreator

lowest_states_calculator_creator() → LowestStatesCalculatorCreator

Create a calculator capable of calculating the lowest molecular energy states.

Pass n_lowest to the created calculator’s calculate() method to request the lowest states. Omitting it retains the calculator’s ground-state behavior.

See https://qrunch.docs.kvantify.net/docs/explanations/builder_pattern.html for more information on using the builder pattern.

Return type:

LowestStatesCalculatorCreator