qib.backend.wmi.wmi_experiment.WMIExperimentResults

class qib.backend.wmi.wmi_experiment.WMIExperimentResults(experiment: WMIExperiment)[source]

Bases: ExperimentResults

The WMI quantum experiment results implementation.

Methods

from_json

Initialize an experiment results object from a JSON dictionary.

get_counts

Returns the measured counts of the experiment

Attributes

runtime

Returns the runtime of the experiment in ns (i.e. how long it took for the experiment to run on the given backend).

from_json(json: dict) WMIExperimentResults[source]

Initialize an experiment results object from a JSON dictionary.

get_counts(binary: bool = False) dict[source]

Returns the measured counts of the experiment

Parameters:

binary (bool) – If True, returns the counts states in binary string format

Returns:

A dictionary of states and their respective counts

Return type:

dict

property runtime: float

Returns the runtime of the experiment in ns (i.e. how long it took for the experiment to run on the given backend)