qbraid.runtime.native.QbraidJobResult

class QbraidJobResult(device_id, job_id, success, result)[source]

Class to represent the results of a quantum circuit simulation.

Create a new Result object.

__init__(device_id, job_id, success, result)[source]

Create a new Result object.

Methods

__init__(device_id, job_id, success, result)

Create a new Result object.

counts_to_measurements(counts)

Convert counts dictionary to measurements array.

counts_to_probabilities(counts)

Convert histogram counts to probabilities.

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([decimal])

Returns raw histogram data of the run

measurement_counts([include_zero_values])

Returns the sorted histogram data of the run

measurement_probabilities(**kwargs)

Calculate and return the probabilities of each measurement result.

measurements()

Return the measurement results 2D numpy array.

metadata()

Return metadata about the measurement results.