qbraid.runtime.GateModelJobResult
- class GateModelJobResult(result=None)[source]
Abstract interface for gate model quantum job results.
- __init__(result=None)
Methods
__init__
([result])counts_to_measurements
(counts)Convert counts dictionary to measurements array.
format_counts
(counts[, include_zero_values])Formats, sorts, and adds missing bit indices to counts dictionary Can pass in a 'include_zero_values' parameter to decide whether to include the states with zero counts.
get_counts
()Returns histogram data of the run
measurement_counts
([include_zero_values])Returns the sorted histogram data of the run
measurements
()Return measurements as a 2d array where each row is a shot and each column is qubit.