quasi_probabilities(data, qubits=None, clbits=None, shots=None)¶
Convert counts to a dictionary of quasi-probabilities
Counts) – Counts to be mitigated.
int]]) – the physical qubits measured to obtain the counts clbits. If None these are assumed to be qubits [0, …, N-1] for N-bit counts.
int]]) – Optional, marginalize counts to just these bits.
int]) – Optional, the total number of shots, if None shots will be calculated as the sum of all counts.
- A dictionary containing pairs of [output, mean] where “output”
is the key in the dictionaries, which is the length-N bitstring of a measured standard basis state, and “mean” is the mean of non-zero quasi-probability estimates.
- Return type