qiskit.result.BaseReadoutMitigator.quasi_probabilities¶

abstract
BaseReadoutMitigator.
quasi_probabilities
(data, qubits=None, clbits=None, shots=None)[source]¶ Convert counts to a dictionary of quasiprobabilities
 Parameters
data (
Counts
) – Counts to be mitigated.qubits (
Optional
[Iterable
[int
]]) – the physical qubits measured to obtain the counts clbits. If None these are assumed to be qubits [0, …, N1] for Nbit counts.clbits (
Optional
[List
[int
]]) – Optional, marginalize counts to just these bits.shots (
Optional
[int
]) – Optional, the total number of shots, if None shots will be calculated as the sum of all counts.
 Returns
 A dictionary containing pairs of [output, mean] where “output”
is the key in the dictionaries, which is the lengthN bitstring of a measured standard basis state, and “mean” is the mean of nonzero quasiprobability estimates.
 Return type
QuasiDistibution