qiskit.result.LocalReadoutMitigator.quasi_probabilities¶
- LocalReadoutMitigator.quasi_probabilities(data, qubits=None, clbits=None, shots=None)[source]¶
Compute mitigated quasi probabilities value.
- Parameters
data (
Counts
) – counts objectqubits (
Optional
[List
[int
]]) – qubits the count bitstrings correspond to.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 length-N bitstring of a measured standard basis state, and “mean” is the mean of non-zero quasi-probability estimates.
- Return type
QuasiDistibution
- Raises
QiskitError – if qubit and clbit kwargs are not valid.