qdk_chemistry.algorithms.expectation_estimator.expectation_estimator module

QDK/Chemistry expectation estimator abstractions and utilities.

class qdk_chemistry.algorithms.expectation_estimator.expectation_estimator.ExpectationEstimator[source]

Bases: Algorithm

Abstract base class for expectation estimator algorithms.

__init__()[source]

Initialize the ExpectationEstimator.

type_name()[source]

Return expectation_estimator as the algorithm type name.

Return type:

str

run(*args, **kwargs)

Run the algorithm with the provided arguments.

This method wraps the internal _run_impl method to provide a consistent interface for executing the algorithm.

Parameters:
  • args – The arguments required to run the algorithm.

  • kwargs – The keyword arguments required to run the algorithm.

Returns:

The results of the algorithm

Return type:

Any

class qdk_chemistry.algorithms.expectation_estimator.expectation_estimator.ExpectationEstimatorFactory[source]

Bases: AlgorithmFactory

Factory class for creating ExpectationEstimator instances.

algorithm_type_name()[source]

Return expectation_estimator as the algorithm type name.

Return type:

str

default_algorithm_name()[source]

Return qdk as the default algorithm name.

Return type:

str