Skip to main contentIBM Quantum Documentation

BaseReadoutMitigator

qiskit.result.BaseReadoutMitigatorGitHub(opens in a new tab)

Bases: ABC(opens in a new tab)

Base readout error mitigator class.


Methods

expectation_value

abstract expectation_value(data, diagonal, qubits=None, clbits=None, shots=None)

Calculate the expectation value of a diagonal Hermitian operator.

Parameters

Returns

The mean and an upper bound of the standard deviation of operator expectation value calculated from the current counts.

Return type

Tuple(opens in a new tab)[float(opens in a new tab), float(opens in a new tab)]

quasi_probabilities

abstract quasi_probabilities(data, qubits=None, clbits=None, shots=None)

Convert counts to a dictionary of quasi-probabilities

Parameters

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

QuasiDistribution

Was this page helpful?