-
Notifications
You must be signed in to change notification settings - Fork 163
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
QPY Qiskit 1.0 updates #1365
Closed
Closed
QPY Qiskit 1.0 updates #1365
Changes from 6 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
6bd25f7
QPY Qiskit 1.0 updates
kt474 331f8b4
fix lint
kt474 8af6427
Update qiskit_ibm_runtime/qpy/exceptions.py
kt474 41a18ef
Copy updates Qiskit/11647
kt474 f3c8083
Merge branch 'qpy-1.0' of https://github.com/kt474/qiskit-ibm-runtime…
kt474 e05beb2
Copy updates Qiskit/11644
kt474 1f6ea5c
Copy updates Qiskit/11646
kt474 eb9097f
Update qiskit_ibm_runtime/qpy/exceptions.py
kt474 00cd78e
Copy updates Qiskit/11505
kt474 abd947b
Merge branch 'qpy-1.0' of https://github.com/kt474/qiskit-ibm-runtime…
kt474 433a7d6
Merge branch 'main' into qpy-1.0
kt474 02e8d8f
fix black/lint
kt474 515cbf8
Add symengine as requirment
kt474 9adb51a
Merge branch 'main' into qpy-1.0
kt474 185b8fe
use qpy_version 10
kt474 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,7 @@ | |
from . import formats | ||
|
||
QPY_VERSION = 10 | ||
QPY_COMPATIBILITY_VERSION = 10 | ||
ENCODE = "utf8" | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@mtreinish to be compatible with
0.45
, this is causing an errorAttributeError: 'ParameterVectorElement' object has no attribute 'uuid'
Because uuid is added as an attribute to Parameter here, only in 1.0
How should this be handled here?
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.
Fully porting the qpy changes from qiskit 1.0.0rc1 will inherently be unsound for use with qiskit 0.45.0 or 0.46.0. The internals of the qpy module are updated in lock-step with the
QuantumCircuit
class. This is basically the same underlying issue we hit that needed: Qiskit/qiskit-ibm-provider#757This will also start emitting qpy version 11 which will cause a version mismatch with what the server side can parse until it is upgraded to qiskit 1.0.0. I pushed up: #1377 as an alternative to this which will let you do the upgrade in a manner which is compatible with both versions so you can publish a release that is both 0.45.x/0.46.x and 1.0.0 compatible. It also removes the vendored fork completely as it is not needed anymore (and luckily has never been released either, so there is no backwards compatibility issue).
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.
Got it, thank you so much for taking care of this!
I'll close this PR
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.
I'll create a PR to do the same in
qiskit-ibm-provider
(but we can't remove the fork completely yet)