Fix compatibility shim for Qiskit 1.0 in QuantinuumQirBackend#729
Open
Fix compatibility shim for Qiskit 1.0 in QuantinuumQirBackend#729
QuantinuumQirBackend#729Conversation
The patch for Qiskit 1.0 compatibility introduced in #725 broke serialization of `JobDetails` with an infinite recursion due to the way the `Options` class overrides the default `__setattr__` behavior (see [this scary comment](https://github.com/Qiskit/qiskit/blob/ea19cb827b05f352579ec3f7e9ed6ee2c767744f/qiskit/providers/options.py#L64-L99) for details). This applies the patch at the class level instead of at the instance level to avoid the hacky override of attributes and keep the `Options` objects both compatible and serializable.
Contributor
Author
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The patch for Qiskit 1.0 compatibility introduced in #725 broke serialization of
JobDetailswith an infinite recursion due to the way theOptionsclass overrides the default__setattr__behavior (see this scary comment for details). This applies the patch at the class level instead of at the instance level to avoid the hacky override of attributes and keep theOptionsobjects both compatible and serializable.