CTMPExpvalMeasMitigator

class CTMPExpvalMeasMitigator(generators, rates, num_qubits=None, seed=None)[source]

N-qubit CTMP measurement error mitigator.

This class can be used with the qiskit.ignis.mitigation.expectation_value() function to apply measurement error mitigation of N-qubit measurement errors caused by one and two-body error generators. Expectation values can also be computed directly using the expectation_value() method.

For measurement mitigation to be applied the mitigator should be calibrated using the qiskit.ignis.mitigation.expval_meas_mitigator_circuits() function and qiskit.ignis.mitigation.ExpvalMeasMitigatorFitter class with the 'CTMP' mitigation method.

Initialize a TensorMeasurementMitigator

Methods

CTMPExpvalMeasMitigator.assignment_fidelity([…])

Return the measurement assignment fidelity on the specified qubits.

CTMPExpvalMeasMitigator.assignment_matrix([…])

Return the measurement assignment matrix for specified qubits.

CTMPExpvalMeasMitigator.expectation_value(counts)

Compute the mitigated expectation value of a diagonal observable.

CTMPExpvalMeasMitigator.generator_matrix([…])

Return the generator matrix on the specified qubits.

CTMPExpvalMeasMitigator.mitigation_matrix([…])

Return the measurement mitigation matrix for the specified qubits.

CTMPExpvalMeasMitigator.mitigation_overhead([…])

Return the mitigation overhead for expectation value estimation.

CTMPExpvalMeasMitigator.noise_strength([qubits])

Return the noise strength \(gamma\) on the specified qubits

CTMPExpvalMeasMitigator.plot_assignment_matrix([…])

Matrix plot of the readout error assignment matrix.

CTMPExpvalMeasMitigator.plot_mitigation_matrix([…])

Matrix plot of the readout error mitigation matrix.

CTMPExpvalMeasMitigator.required_shots(delta)

Return the number of shots required for expectation value estimation.

CTMPExpvalMeasMitigator.seed([value])

Set the seed for the quantum state RNG.

CTMPExpvalMeasMitigator.stddev_upper_bound([…])

Return an upper bound on standard deviation of expval estimator.