iqm.benchmarks.randomized_benchmarking.interleaved_rb.interleaved_rb.InterleavedRBConfiguration#
- class iqm.benchmarks.randomized_benchmarking.interleaved_rb.interleaved_rb.InterleavedRBConfiguration(*, benchmark: ~typing.Type[~iqm.benchmarks.benchmark_definition.Benchmark] = <class 'iqm.benchmarks.randomized_benchmarking.interleaved_rb.interleaved_rb.InterleavedRandomizedBenchmarking'>, shots: int = 256, max_gates_per_batch: int | None = None, calset_id: str | None = None, routing_method: ~typing.Literal['basic', 'lookahead', 'stochastic', 'sabre', 'none'] = 'sabre', physical_layout: ~typing.Literal['fixed', 'batching'] = 'fixed', qubits_array: ~typing.Sequence[~typing.Sequence[int]], sequence_lengths: ~typing.Sequence[int], num_circuit_samples: int, parallel_execution: bool = False, interleaved_gate: str, interleaved_gate_params: ~typing.Sequence[float] | None = None, simultaneous_fit: ~typing.Sequence[~typing.Literal['amplitude', 'offset']] = ['amplitude', 'offset'])#
Bases:
BenchmarkConfigurationBase
Interleaved RB configuration. .. attribute:: benchmark
InterleavedRandomizedBenchmarking.
- type:
Type[Benchmark]
- Parameters:
shots (int) –
max_gates_per_batch (int | None) –
calset_id (str | None) –
routing_method (Literal['basic', 'lookahead', 'stochastic', 'sabre', 'none']) –
physical_layout (Literal['fixed', 'batching']) –
num_circuit_samples (int) –
parallel_execution (bool) –
interleaved_gate (str) –
simultaneous_fit (Sequence[Literal['amplitude', 'offset']]) –
- qubits_array#
The array of physical qubit labels with which to execute IRB.
- Type:
Sequence[Sequence[int]]
- parallel_execution#
Whether the benchmark is executed on all qubits in parallel or not. * Default is False.
- Type:
- interleaved_gate#
The name of the gate to interleave. * Should be specified as a qiskit circuit library gate name, e.g., “YGate” or “CZGate”.
- Type:
- interleaved_gate_params#
Any optional parameters entering the gate. * Default is None.
- Type:
Optional[Sequence[float]]
- simultaneous_fit#
Optional parameters to fit simultaneously. * Default is [“amplitude”, “offset”].
- Type:
Sequence[Literal[“amplitude”, “offset”]]
Attributes
A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.
benchmark
max_gates_per_batch
calset_id
routing_method
physical_layout
Methods
- model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}#
A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
- model_config: ClassVar[ConfigDict] = {}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_fields: ClassVar[Dict[str, FieldInfo]] = {'benchmark': FieldInfo(annotation=Type[Benchmark], required=False, default=<class 'iqm.benchmarks.randomized_benchmarking.interleaved_rb.interleaved_rb.InterleavedRandomizedBenchmarking'>), 'calset_id': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'interleaved_gate': FieldInfo(annotation=str, required=True), 'interleaved_gate_params': FieldInfo(annotation=Union[Sequence[float], NoneType], required=False, default=None), 'max_gates_per_batch': FieldInfo(annotation=Union[int, NoneType], required=False, default=None), 'num_circuit_samples': FieldInfo(annotation=int, required=True), 'parallel_execution': FieldInfo(annotation=bool, required=False, default=False), 'physical_layout': FieldInfo(annotation=Literal['fixed', 'batching'], required=False, default='fixed'), 'qubits_array': FieldInfo(annotation=Sequence[Sequence[int]], required=True), 'routing_method': FieldInfo(annotation=Literal['basic', 'lookahead', 'stochastic', 'sabre', 'none'], required=False, default='sabre'), 'sequence_lengths': FieldInfo(annotation=Sequence[int], required=True), 'shots': FieldInfo(annotation=int, required=False, default=256), 'simultaneous_fit': FieldInfo(annotation=Sequence[Literal['amplitude', 'offset']], required=False, default=['amplitude', 'offset'])}#
Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.
This replaces Model.__fields__ from Pydantic V1.