qiskit.result.QuasiDistribution.binary_probabilities¶
- QuasiDistribution.binary_probabilities(num_bits=None)[source]¶
Build a quasi-probabilities dictionary with binary string keys
- Paramètres
num_bits (int) – number of bits in the binary bitstrings (leading zeros will be padded). If None, a default value will be used. If keys are given as integers or strings with binary or hex prefix, the default value will be derived from the largest key present. If keys are given as bitstrings without prefix, the default value will be derived from the largest key length.
- Renvoie
- A dictionary where the keys are binary strings in the format
"0110"
- Type renvoyé
dict