qdk_chemistry.algorithms.circuit_executor.base module

QDK/Chemistry circuit executor abstractions and utilities.

This module defines the abstract base class for circuit executor algorithms that execute quantum circuits and return bitstring measurement results. The module provides an abstract interface, allowing custom circuit strategies, backends (simulator or quantum hardware), and noise models.

class qdk_chemistry.algorithms.circuit_executor.base.CircuitExecutor[source]

Bases: Algorithm

Abstract base class for circuit executor algorithms.

__init__()[source]

Initialize the CircuitExecutor with default settings.

type_name()[source]

Return the algorithm type name as circuit_executor.

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.circuit_executor.base.CircuitExecutorFactory[source]

Bases: AlgorithmFactory

Factory class for creating CircuitExecutor instances.

__init__()[source]

Initialize the CircuitExecutorFactory.

algorithm_type_name()[source]

Return the algorithm type name as circuit_executor.

Return type:

str

default_algorithm_name()[source]

Return the qdk sparse state simulator as default algorithm name.

Return type:

str