qbraid.providers.aws.BraketGateModelResult

class BraketGateModelResult(_result)[source]

Wrapper class for Amazon Braket result objects.

__init__(_result)

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()

2d array - row is shot and column is qubit.

raw_counts()

Returns the histogram data of the run