qiskit.result.QuasiDistribution.binary_probabilities¶
- QuasiDistribution.binary_probabilities(num_bits=None)[ソース]¶
Build a quasi-probabilities dictionary with binary string keys
- パラメータ
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.
- 戻り値
- A dictionary where the keys are binary strings in the format
"0110"
- 戻り値の型
dict