qiskit.result.QuasiDistribution.binary_probabilities¶
-
QuasiDistribution.
binary_probabilities
(num_bits=None)[source]¶ Build a quasi-probabilities dictionary with binary string keys
- Parameters
num_bits (int) – number of bits in the binary bitstrings (leading zeros will be padded). If None, the length will be derived from the largest key present.
- Returns
- A dictionary where the keys are binary strings in the format
"0110"
- Return type
dict