qdk_chemistry.algorithms.energy_estimator package

QDK/Chemistry energy estimation module.

This module provides quantum state preparation algorithms for preparing quantum states from classical wavefunctions.

class qdk_chemistry.algorithms.energy_estimator.EnergyEstimatorFactory

Bases: AlgorithmFactory

Factory class for creating EnergyEstimator instances.

algorithm_type_name()

Return energy_estimator as the algorithm type name.

Return type:

str

default_algorithm_name()

Return qdk_base_simulator as the default algorithm name.

Return type:

str

class qdk_chemistry.algorithms.energy_estimator.QDKEnergyEstimator(seed=42, qubit_loss=0.0)

Bases: EnergyEstimator

Energy Estimator to estimate expectation values of quantum circuits with respect to a given observable.

This class uses a QDK base simulator backend to run quantum circuits and estimate the expectation values of qubit Hamiltonians. It supports optional noise models for noise simulation.

Parameters:
__init__(seed=42, qubit_loss=0.0)

Initialize the Estimator with optional settings.

Parameters:
  • seed (int) – Random seed for reproducibility.

  • qubit_loss (float) – Probability of qubit loss in simulation.

name()

Get the name of the estimator for registry purposes.

Return type:

str

class qdk_chemistry.algorithms.energy_estimator.QDKEnergyEstimatorSettings

Bases: Settings

Settings configuration for a QDKEnergyEstimator.

QDKEnergyEstimator-specific settings:

seed (int, default=42): Random seed for reproducibility. qubit_loss (float, default=0.0): Probability of qubit loss in simulation.

__init__()

Initialize QDKEnergyEstimatorSettings.

Submodules