qrunch.chemistry.calculators.lowest_states_result

Result classes for the lowest state calculators.

Classes

LowestStateExpectationValues

Specialized class for expectation values of the lowest states.

LowestStatesResult

Result dataclass returned by the lowest-state calculators.

ReactionPathLowestStatesResult

Result dataclass returned by the reaction path calculators.

class LowestStateExpectationValues

Bases: ListOfExpectationValues

Specialized class for expectation values of the lowest states.

__init__(expectation_values: list[ExpectationValue]) → None
Parameters:

expectation_values (list[ExpectationValue])

Return type:

None

copy() → ListOfExpectationValues

Return a new instance containing the same expectation values.

Return type:

ListOfExpectationValues

property errors: list[float]

List of associated errors.

expectation_values: list[ExpectationValue]
property values: list[float]

List of numerical expectation values.

class LowestStatesResult

Bases: object

Result dataclass returned by the lowest-state calculators.

With a solvent, solvent holds each state’s solvent energy separately from the electronic energies, including both the frozen potential contribution and its constant offset.

All fields are immutable (frozen=True) so an instance can be safely reused.

Parameters:
  • initial_active_electrons_energy – Initial energy of the active electrons. Usually this would mean the uncorrelated energy (Hartree-Fock). This does not include nuclear repulsion or the energy of frozen electrons from, e.g., active space or projective embedding. Does not include solvent energies.

  • non_active_electrons_energy – Energy of the non-active electrons. This is the energy of all non-active electrons from, e.g., active space or projective embedding. Does not include solvent energies.

  • nuclear_repulsion – Nuclear repulsion energy.

  • second_order_corrections – Second-order energy corrections, one for each lowest state.

  • uncorrected_active_electrons_energies – The uncorrected energies of the active electrons, in order of lowest (ground state) to highest ((n-1)-th excited state). Does not include solvent energies.

  • solvent – Solvent contributions at the initial and final state, one per lowest state, or None without a solvent. The initial energies are the same for all states. (default=None)

__init__(initial_active_electrons_energy: float, non_active_electrons_energy: float, nuclear_repulsion: float, second_order_corrections: LowestStateExpectationValues, uncorrected_active_electrons_energies: LowestStateExpectationValues, *, _qmmm: list[QMMMResultEnergies] | None = None, solvent: list[SolventResultEnergies] | None = None) → None
Parameters:
Return type:

None

property active_electrons_correlation_energy: LowestStateExpectationValues

Correlation energy of the active electrons.

This is the difference between the active electrons energy and the initial (Hartree-Fock) active electrons energy.

property active_electrons_energies: LowestStateExpectationValues

Energy of the active electrons.

This does not include nuclear repulsion or the energy of frozen electrons from, e.g., active space or projective embedding.

It may also include a second-order correction, if applicable.

property electronic_energies: LowestStateExpectationValues

Energy of all electrons.

This excludes nuclear repulsion and any solvent energy.

initial_active_electrons_energy: float
property initial_electronic_energy: ExpectationValue

Initial electronic energy of all electrons.

property initial_total_energy: ExpectationValue

Initial total energy, including nuclear repulsion and any solvent energy.

property n_lowest_states: int

Number of lowest states considered.

non_active_electrons_energy: float
nuclear_repulsion: float
property qm_energies: LowestStateExpectationValues | None

The final energy of the quantum region, E_QM, of each state, or None without a solvent.

This is the energy of all electrons and nuclear repulsion, i.e., the energy of the quantum region as in isolation but with orbitals polarized by the environment.

second_order_corrections: LowestStateExpectationValues
solvent: list[SolventResultEnergies] | None = None
property solvent_energies: list[float] | None

Final solvent energy of each state, or None without a solvent.

property total_energies: LowestStateExpectationValues

Total energy, including nuclear repulsion and any solvent energy.

uncorrected_active_electrons_energies: LowestStateExpectationValues
class ReactionPathLowestStatesResult

Bases: object

Result dataclass returned by the reaction path calculators.

All fields are immutable (frozen=True) so an instance can be safely reused.

Parameters:
  • _lowest_states_results – Results for the \(n\) lowest states at every geometry.

  • _requested_n_lowest_states – Requested number of states, retained even for an empty path.

__init__(_lowest_states_results: list[LowestStatesResult]) → None
Parameters:

_lowest_states_results (list[LowestStatesResult])

Return type:

None

property active_electrons_energies: list[LowestStateExpectationValues]

Energy of the active electrons along the reaction path.

This does not include nuclear repulsion or the energy of frozen electrons from, e.g., active space or projective embedding.

property electronic_energies: list[LowestStateExpectationValues]

Energy of all electrons along the reaction path.

This excludes nuclear repulsion and environment energies.

property initial_electronic_energies: ListOfExpectationValues

Initial electronic energy of all electrons along the reaction path.

property initial_total_energies: ListOfExpectationValues

Initial total energy of all electrons and nuclear repulsion along the reaction path.

property lowest_states_results: list[LowestStatesResult]

The list of results for each ground state problem in the reaction path.

property n_lowest_states: int

Number of lowest states considered.

property non_active_electrons_energies: list[float]

Energy of the non-active electrons along the reaction path.

This the energy of all non-active electrons from, e.g., active space or projective embedding.

property nuclear_repulsions: list[float]

Nuclear repulsion energy along the reaction path.

property second_order_corrections: list[LowestStateExpectationValues]

Second order correction to the energy of the active electrons along the reaction path.

This is the second-order correction from, e.g., Møller-Plesset perturbation theory.

property total_energies: list[LowestStateExpectationValues]

Total energy of all electrons and nuclear repulsion along the reaction path.

total_energies_of_state_n(n: int) → ListOfExpectationValues

Total energies of each the \(n\)-th lowest state along the reaction path.

This includes the energy of all electrons and nuclear repulsion for each state.

Parameters:
  • n (int) – The index of the lowest state for which to retrieve the total energies.

  • energies. (Zero means the ground state)

Return type:

ListOfExpectationValues