Result

class Result(backend_name, backend_version, qobj_id, job_id, success, results, date=None, status=None, header=None, **kwargs)[source]

Model for Results.

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]

Methods

Result.data([experiment])

Get the raw data for an experiment.

Result.from_dict(data)

Create a new ExperimentResultData object from a dictionary.

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.

Result.to_dict()

Return a dictionary format representation of the Result