LocalReadoutMitigator¶
- class LocalReadoutMitigator(assignment_matrices=None, qubits=None, backend=None)[source]¶
Bases:
BaseReadoutMitigator
1-qubit tensor product readout error mitigator.
Mitigates
expectation_value()
andquasi_probabilities()
. The mitigator should either be calibrated using qiskit experiments, or calculated directly from the backend properties. This mitigation method should be used in case the readout errors of the qubits are assumed to be uncorrelated. For N qubits there are N mitigation matrices, each of size \(2 x 2\) and the mitigation complexity is \(O(2^N)\), so it is more efficient than theCorrelatedReadoutMitigator
class.Initialize a LocalReadoutMitigator
- Parameters
assignment_matrices (Optional[List[ndarray]]) – Optional, list of single-qubit readout error assignment matrices.
qubits (Optional[Iterable[int]]) – Optional, the measured physical qubits for mitigation.
backend – Optional, backend name.
- Raises
QiskitError – matrices sizes do not agree with number of qubits
Methods
Return the measurement assignment matrix for specified qubits.
Compute the mitigated expectation value of a diagonal observable.
Return the measurement mitigation matrix for the specified qubits.
Compute mitigated quasi probabilities value.
Return an upper bound on standard deviation of expval estimator.
Attributes
- qubits¶
The device qubits for this mitigator
- settings¶
Return settings.