CompleteMeasFitter incorrectly imported in measurement_error_mitigation.py
See original GitHub issueInformation
- Qiskit Terra version: 0.18.0
- Python version: 3.9.5 (default, May 18 2021, 12:31:01) [Clang 10.0.0 ]
- Operating system: Darwin
What is the current behavior?
I am currently seeing
QiskitError: 'Unknown fitter <qiskit.ignis.mitigation.measurement.fitters.CompleteMeasFitter object at 0x7fcbcace6c40>'
error, when I pass an qiskit.ignis.mitigation.measurement.fitters.CompleteMeasFitter
object as a value to the parameter measurement_error_mitigation_cls
in the constructor of QuantumInstance
and use the QuantumInstance
object with QuantumKernel.evaluate()
.
Steps to reproduce the problem
- Generate the calibration circuits using
complete_meas_cal()
. - Execute the calibration circuits on target hardware (for this week ibm_toronto).
- Calculate the calibration matrix using CompleteMeasFitter().
- Pass the calibration matrix calculated in step # 3 as a value for the parameter
measurement_error_mitigation_cls
while creating an instance of QuantumInstance . For simplicity, I am not overriding the default values forcals_matrix_refresh_period
andmeasurement_error_mitigation_shots
. - Use the QuantumInstance object in the standard QSVM pipeline.
What is the expected behavior?
It should not throw any runtime error.
Suggested solutions
CompleteMeasFitter
incorrectly imported in measurement_error_mitigation.py
. At line # 141 of measurement_error_mitigation.py, CompleteMeasFitter
should be imported from qiskit.ignis.mitigation.measurement.fitters
instead of qiskit.ignis.mitigation.measurement
.
Issue Analytics
- State:
- Created 2 years ago
- Comments:13 (10 by maintainers)
Top Results From Across the Web
Measurement Error Mitigation - Qiskit
With the results we can construct the calibration matrix, which we have been calling M M . meas_fitter = CompleteMeasFitter(cal_results, ...
Read more >Why Measurement Error Mitigation does not seem to improve ...
... I from qiskit import Aer, IBMQ from qiskit.ignis.mitigation.measurement import CompleteMeasFitter from qiskit.providers.aer.noise import ...
Read more >Experiencing Quantum Computers - Uni Siegen
(10) Implement the python code in Section 2.3 [If you failed to install qiskit, ... 3 from qiskit.providers.aer import QasmSimulator.
Read more >Quantum simulation of quantum field theories as ... - arXiv
Thus, other than considering a quantum many-body problem with local interac- ... (measurement error mitigation cls=CompleteMeasFitter,.
Read more >Quantum Simulation of Quantum Field Theory in the Front Form
IBM Vigo machine, with and without measurement error mitigation. ... of the problem [Man80, Fey82], so its exact simulation on a classical ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If an example would be helpful for how to use it see this tutorial https://qiskit.org/documentation/tutorials/algorithms/03_vqe_simulation_with_noise.html#Performance-with-noise-and-measurement-error-mitigation
I’m closing this now, because I think that if there was a bug, it was fixed, and the other issues were due to problems with the usage. Please feel free to re-open this or another issue if that’s not the case.