German
Sprachen
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.result.QuasiDistribution.binary_probabilities

QuasiDistribution.binary_probabilities(num_bits=None)[Quellcode]

Build a quasi-probabilities dictionary with binary string keys

Parameter

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.

Rückgabe

A dictionary where the keys are binary strings in the format

"0110"

Rückgabetyp

dict