iqm.benchmarks.benchmark.BenchmarkConfigurationBase#

class iqm.benchmarks.benchmark.BenchmarkConfigurationBase(*, benchmark: Type[BenchmarkBase], shots: int = 256, max_gates_per_batch: int | None = None, max_circuits_per_batch: int | None = None, calset_id: str | None = None, routing_method: Literal['basic', 'lookahead', 'stochastic', 'sabre', 'none'] = 'sabre', physical_layout: Literal['fixed', 'batching'] = 'fixed', use_dd: bool | None = False, dd_strategy: DDStrategy | None = None)#

Bases: BaseModel

Benchmark configuration base.

Parameters:
  • benchmark (Type[BenchmarkBase]) –

  • shots (int) –

  • max_gates_per_batch (int | None) –

  • max_circuits_per_batch (int | None) –

  • calset_id (str | None) –

  • routing_method (Literal['basic', 'lookahead', 'stochastic', 'sabre', 'none']) –

  • physical_layout (Literal['fixed', 'batching']) –

  • use_dd (bool | None) –

  • dd_strategy (DDStrategy | None) –

benchmark#

the benchmark configuration.

Type:

Type[BenchmarkBase]

shots#

the number of shots to use in circuit execution. * Default for all benchmarks is 2**8.

Type:

int

max_gates_per_batch#

the maximum number of gates per circuit batch. * Default for all benchmarks is None.

Type:

Optional[int]

max_circuits_per_batch#

the maximum number of circuits per batch. * Default for all benchmarks is None.

Type:

Optional[int]

calset_id#

the calibration ID to use in circuit execution. * Default for all benchmarks is None (uses last available calibration ID).

Type:

Optional[str]

routing_method#

the Qiskit routing method to use in transpilation. * Default for all benchmarks is “sabre”.

Type:

Literal[“basic”, “lookahead”, “stochastic”, “sabre”, “none”]

physical_layout#

whether physical layout is constrained during transpilation to selected physical qubits. - “fixed”: physical layout is constrained during transpilation to the selected initial physical qubits. - “batching”: physical layout is allowed to use any other physical qubits, and circuits are batched according to final measured qubits. * Default for all benchmarks is “fixed”.

Type:

Literal[“fixed”, “batching”]

use_dd#

Boolean flag determining whether to enable dynamical decoupling during circuit execution. * Default: False

Type:

bool

Attributes

model_config

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

benchmark

shots

max_gates_per_batch

max_circuits_per_batch

calset_id

routing_method

physical_layout

use_dd

dd_strategy

Methods

model_config: ClassVar[ConfigDict] = {}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].