Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

qamomile.qiskit.execution

Configure IBM Runtime execution through Qamomile-owned options.

Overview

ClassDescription
QiskitExecutionOptionsConfigure Runtime primitives without constructing Qiskit option objects.

Classes

QiskitExecutionOptions [source]

class QiskitExecutionOptions

Configure Runtime primitives without constructing Qiskit option objects.

Per-request sampling shots and estimation precision remain arguments to the executable. Advanced mappings use Runtime’s option names; the SDK validates their supported fields when the executor is constructed.

Parameters:

NameTypeDescription
max_execution_timeint | NonePositive quantum execution time limit in seconds for both primitives, excluding queue time. Defaults to the SDK setting; does not set the local result-wait timeout.
resilience_levelint | NoneEstimator error mitigation level from zero through two. Defaults to the SDK setting.
sampler_optionsMapping[str, Any]Additional sampler settings. Defaults to an empty mapping. Nested values are copied.
estimator_optionsMapping[str, Any]Additional estimator settings. Defaults to an empty mapping. Nested values are copied.

Raises:

Example:

>>> options = QiskitExecutionOptions(
...     max_execution_time=300,
...     resilience_level=1,
...     sampler_options={"dynamical_decoupling": {"enable": True}},
... )

Constructor

def __init__(
    self,
    max_execution_time: int | None = None,
    resilience_level: int | None = None,
    sampler_options: Mapping[str, Any] = dict(),
    estimator_options: Mapping[str, Any] = dict(),
) -> None

Attributes

Methods

estimator_kwargs
def estimator_kwargs(self) -> dict[str, Any]

Build an independent Runtime estimator options dictionary.

Returns:

dict[str, Any] — dict[str, Any]: Estimator settings with execution and mitigation settings when supplied.

sampler_kwargs
def sampler_kwargs(self) -> dict[str, Any]

Build an independent Runtime sampler options dictionary.

Returns:

dict[str, Any] — dict[str, Any]: Sampler settings with the shared execution limit.