-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CompleteMeasFitter incorrectly imported in measurement_error_mitigation.py #6980
Comments
May I work on this @omarshehab ? |
I think that the following PR should handle this issue: #6867 |
Okayy 👍 |
PR #6867 is part of the next release 0.19: https://github.com/Qiskit/qiskit-terra/milestone/18 |
Can you check with the latest version of qiskit - 0.18.1 (you say you have 0.18.0). The issue you describe was fixed See https://qiskit.org/documentation/release_notes.html#bug-fixes
|
@woodsp-ibm , I received the same error with Qiskit Terra 0.18.1. |
It sounds like you're passing an instance, but the code wants the actual class (i.e. pass (by the way, for reproducibility, it can be a little easier for us if you're able to provide a minimal complete block of code to read and copy/paste, rather than trying to interpret text) |
@jakelishman , I have attached the MWE code here. |
That's not exactly a MWE, but I can see you are setting |
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 |
@woodsp-ibm , I modified the statement to create QuantumInstance as follows.
Currently, I am getting the following error.
|
@omarshehab - you cannot have a noise model with ibmq backend, only with Aer simulator: |
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. |
Information
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 parametermeasurement_error_mitigation_cls
in the constructor ofQuantumInstance
and use theQuantumInstance
object withQuantumKernel.evaluate()
.Steps to reproduce the problem
complete_meas_cal()
.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
.What is the expected behavior?
It should not throw any runtime error.
Suggested solutions
CompleteMeasFitter
incorrectly imported inmeasurement_error_mitigation.py
. At line # 141 of measurement_error_mitigation.py,CompleteMeasFitter
should be imported fromqiskit.ignis.mitigation.measurement.fitters
instead ofqiskit.ignis.mitigation.measurement
.The text was updated successfully, but these errors were encountered: