Result¶
- class Result(backend_name, backend_version, qobj_id, job_id, success, results, **kwargs)[source]¶
Model for Results.
Please note that this class only describes the required fields. For the full description of the model, please check
ResultSchema
.- backend_name¶
backend name.
- Type
str
- backend_version¶
backend version, in the form X.Y.Z.
- Type
str
- qobj_id¶
user-generated Qobj id.
- Type
str
- job_id¶
unique execution id from the backend.
- Type
str
- success¶
True if complete input qobj executed correctly. (Implies each experiment success)
- Type
bool
- results¶
corresponding results for array of experiments of the input qobj
- Type
list[ExperimentResult]
BaseModel initializer.
Note
The
validate
argument is used for controlling the behavior of the schema binding, and will not be present on the created object.Attributes
Methods
Result.data
([experiment])Get the raw data for an experiment.
Result.from_dict
(dict_)Deserialize a dict of simple types into an instance of this class.
Result.get_counts
([experiment])Get the histogram data of an experiment.
Result.get_memory
([experiment])Get the sequence of memory states (readouts) for each shot The data from the experiment is a list of format [‘00000’, ‘01000’, ‘10100’, ‘10100’, ‘11101’, ‘11100’, ‘00101’, …, ‘01010’]
Result.get_statevector
([experiment, decimals])Get the final statevector of an experiment.
Result.get_unitary
([experiment, decimals])Get the final unitary of an experiment.
Serialize the model into a Python dict of simple types.