-
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
Backend converter bugfix (edge case) #11609
Backend converter bugfix (edge case) #11609
Conversation
One or more of the the following people are requested to review this:
|
Pull Request Test Coverage Report for Build 7592109423
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an interesting edge case I had not thought about before. I think it's good to have it documented in the test comment and release note. LGTM. Only one question @nkanazawa1989, is this something we would like to backport? thinking especially of the qiskit-experiments
dependencies, if we don't backport, this fix will only be available from qiskit 1.0 onwards.
It would not hurt anything to backport the part adding the extra gates to the With this change, the qiskit-experiments tests pass. I was a little worried that they wouldn't because in qiskit-experiments we do a little bit of hacking to make up for the missing property information already and I thought that might conflict with filling in the information here. |
https://github.com/Mergifyio backport stable/0.46 |
✅ Backports have been created
|
* Bug fix backend converter * Add upgrade note (cherry picked from commit 9d43757) # Conflicts: # qiskit/providers/backend_compat.py
…#11609) (#11788) (cherry picked from commit 9d43757 with the backend_compat changes removed) Co-authored-by: Naoki Kanazawa <[email protected]>
Summary
Backend V2 converter raises unexpected error. This is an example code to reproduce the bug.
Details and comments
Qiskit Experiments relies on
FakeOpenPulse2Q
to build own test backend. This backend is defective as it contains calibration for u1, u2, u3, and cx but properties are defined only for u1, u3, cx. This configuration unintentionally reproduces the same situation as written above. The target converter is upgraded to handle this edge case. Missing information inFakeOpenPulse2Q
is also added.