qbraid.runtime.qiskit.QiskitResult

class QiskitResult(result=None)[source]

Qiskit Result wrapper class.

__init__(result=None)

Methods

__init__([result])

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.

measurement_counts([include_zero_values])

Returns the sorted histogram data of the run

measurements()

Return measurements as list

normalize_tuples(measurements)

Normalizes lists of tuples in a list to have the same tuple length across all entries by padding shorter tuples with zeros on the left.

raw_counts(**kwargs)

Returns the histogram data of the run