Skip to content

Fix compatibility shim for Qiskit 1.0 in QuantinuumQirBackend#729

Open
swernli wants to merge 1 commit intomainfrom
swernli/quantinuum-options-fix
Open

Fix compatibility shim for Qiskit 1.0 in QuantinuumQirBackend#729
swernli wants to merge 1 commit intomainfrom
swernli/quantinuum-options-fix

Conversation

@swernli
Copy link
Contributor

@swernli swernli commented Mar 7, 2026

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 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.

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.
@swernli swernli requested a review from a team as a code owner March 7, 2026 07:39
@swernli swernli requested a review from ScottCarda-MS March 7, 2026 07:41
@swernli
Copy link
Contributor Author

swernli commented Mar 7, 2026

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant