iqm.iqm_client.models.RunResult#
- class iqm.iqm_client.models.RunResult(*, status: Status, measurements: list[dict[str, list[list[int]]]] | None = None, message: str | None = None, metadata: Metadata, warnings: list[str] | None = None)#
- Bases: - BaseModel- Results of the quantum circuit execution job. If the job succeeded, - measurementscontains the output of the batch of circuits, consisting of the results of the measurement operations in each circuit. It is a list of dictionaries, where each dict maps each measurement key to a 2D array of measurement results, represented as a nested list.- RunResult.measurements[circuit_index][key][shot][qubit_index]is the result of measuring the- qubit_index’th qubit in measurement operation- keyin the shot- shotin the- circuit_index’th circuit of the batch.- measurementsis present iff the status is- 'ready'.- messagecarries additional information for the- 'failed'status. If the status is- 'pending compilation'or- 'pending execution',- measurementsand- messageare- None.- The results are non-negative integers representing the computational basis state (for qubits, 0 or 1) that was the measurement outcome. 
 - Attributes - Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict]. - current status of the job, in - {'pending_compilation', 'pending_execution', 'ready', 'failed', 'aborted'}- if the job has finished successfully, the measurement results for the circuit(s) - if the job failed, an error message - metadata about the job - list of warning messages - Methods - from_dict(inp)- Parses the result from a dict. - Parameters:
 - model_config: ClassVar[ConfigDict] = {}#
- Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict]. 
 - status: Status#
- current status of the job, in - {'pending_compilation', 'pending_execution', 'ready', 'failed', 'aborted'}
 
