iqm.benchmarks.benchmark_definition.BenchmarkConfigurationBase#
- class iqm.benchmarks.benchmark_definition.BenchmarkConfigurationBase(*, benchmark: type[Benchmark] | str, shots: int = 256, max_gates_per_batch: int | None = None, max_circuits_per_batch: int | None = None, routing_method: RoutingMethod = RoutingMethod.SABRE, physical_layout: PhysicalLayout = PhysicalLayout.FIXED, use_dd: bool | None = False, dd_strategy: DDStrategy | None = None, active_reset_cycles: int | None = None)#
Bases:
BaseModelBenchmark configuration base.
- Parameters:
shots (int)
max_gates_per_batch (int | None)
max_circuits_per_batch (int | None)
routing_method (RoutingMethod)
physical_layout (PhysicalLayout)
use_dd (bool | None)
dd_strategy (DDStrategy | None)
active_reset_cycles (int | None)
- benchmark#
Benchmark configuration.
- shots#
Number of shots to use in circuit execution. The default for all benchmarks is 2**8.
- Type:
- max_gates_per_batch#
Maximum number of gates per circuit batch. The default for all benchmarks is None.
- Type:
int | None
- max_circuits_per_batch#
Maximum number of circuits per batch. The default for all benchmarks is None.
- Type:
int | None
- routing_method#
Qiskit routing method to use in transpilation. The default for all benchmarks is “sabre”.
- 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. The default for all benchmarks is “fixed”.
- use_dd#
Boolean flag determining whether to enable dynamical decoupling during circuit execution. The default for all benchmarks is False.
- Type:
bool | None
- dd_strategy#
Dynamical decoupling strategy.
- active_reset_cycles#
Number of active reset cycles to apply after each circuit execution. If None, passive reset is used.
- Type:
int | None
Attributes
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
Methods
- model_config = {}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].