iqm.iqm_client.models.RunRequest#
- class iqm.iqm_client.models.RunRequest(*, circuits, custom_settings=None, calibration_set_id=None, qubit_mapping=None, shots, max_circuit_duration_over_t2=None, heralding_mode=HeraldingMode.NONE, move_validation_mode=MoveGateValidationMode.STRICT, move_gate_frame_tracking_mode=MoveGateFrameTrackingMode.FULL)#
Bases:
BaseModel
Request for an IQM quantum computer to run a job that executes a batch of quantum circuits.
Note: all circuits in a batch must measure the same qubits otherwise batch execution fails.
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.
batch of quantum circuit(s) to execute
Custom settings to override default IQM hardware settings and calibration data.
ID of the calibration set to use, or None to use the latest calibration set
mapping of logical qubit names to physical qubit names, or None if using physical qubit names
how many times to execute each circuit in the batch, must be greater than zero
Circuits are disqualified on the server if they are longer than this ratio of the T2 time of the qubits.
which heralding mode to use during the execution of circuits in this request.
Which method of MOVE gate validation to use for circuit compilation.
Which method of MOVE gate frame tracking to use for circuit compilation.
Methods
- Parameters:
calibration_set_id (UUID | None) –
qubit_mapping (list[SingleQubitMapping] | None) –
shots (int) –
max_circuit_duration_over_t2 (float | None) –
heralding_mode (HeraldingMode) –
move_validation_mode (MoveGateValidationMode) –
move_gate_frame_tracking_mode (MoveGateFrameTrackingMode) –
- 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]] = {'calibration_set_id': FieldInfo(annotation=Union[UUID, NoneType], required=False, default=None), 'circuits': FieldInfo(annotation=list[Circuit], required=True), 'custom_settings': FieldInfo(annotation=Union[dict[str, Any], NoneType], required=False, default=None), 'heralding_mode': FieldInfo(annotation=HeraldingMode, required=False, default=<HeraldingMode.NONE: 'none'>), 'max_circuit_duration_over_t2': FieldInfo(annotation=Union[float, NoneType], required=False, default=None), 'move_gate_frame_tracking_mode': FieldInfo(annotation=MoveGateFrameTrackingMode, required=False, default=<MoveGateFrameTrackingMode.FULL: 'full'>), 'move_validation_mode': FieldInfo(annotation=MoveGateValidationMode, required=False, default=<MoveGateValidationMode.STRICT: 'strict'>), 'qubit_mapping': FieldInfo(annotation=Union[list[SingleQubitMapping], NoneType], required=False, default=None), 'shots': FieldInfo(annotation=int, required=True, metadata=[Gt(gt=0)])}#
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.
- circuits: CircuitBatch#
batch of quantum circuit(s) to execute
- custom_settings: dict[str, Any] | None#
Custom settings to override default IQM hardware settings and calibration data. Note: This field should be always None in normal use.
- calibration_set_id: UUID | None#
ID of the calibration set to use, or None to use the latest calibration set
- qubit_mapping: list[SingleQubitMapping] | None#
mapping of logical qubit names to physical qubit names, or None if using physical qubit names
- max_circuit_duration_over_t2: float | None#
Circuits are disqualified on the server if they are longer than this ratio of the T2 time of the qubits. If set to 0.0, no circuits are disqualified. If set to None the server default value is used.
- heralding_mode: HeraldingMode#
which heralding mode to use during the execution of circuits in this request.
- move_validation_mode: MoveGateValidationMode#
Which method of MOVE gate validation to use for circuit compilation.
- move_gate_frame_tracking_mode: MoveGateFrameTrackingMode#
Which method of MOVE gate frame tracking to use for circuit compilation.