qbraid.runtime.native.QbraidQirSimulatorResultData
- class QbraidQirSimulatorResultData(backend_version, seed=None, **kwargs)[source]
Class for storing and accessing the results of a qBraid QIR simulator job.
Create a new QbraidQirSimulatorResultData instance.
- __init__(backend_version, seed=None, **kwargs)[source]
Create a new QbraidQirSimulatorResultData instance.
Methods
__init__
(backend_version[, seed])Create a new QbraidQirSimulatorResultData instance.
from_dict
(data)Creates a new GateModelResult instance from a dictionary.
from_object
(model, **kwargs)Creates a new ResultData instance from an ExperimentMetadata object.
get_counts
([include_zero_values, decimal])Returns the histogram data of the run with optional zero values and binary/decimal keys.
get_probabilities
([include_zero_values, decimal])Returns the probabilities of the measurement outcomes based on counts.
to_dict
()Converts the GateModelResulData instance to a dictionary.
Attributes
backend_version
Returns the version of the simulator backend used.
experiment_type
Returns the experiment type.
measurement_counts
Returns the histogram data of the run as passed in the constructor.
measurements
Returns the measurements data of the run.
seed
Returns the seed used for the simulation.