Skip to content
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

Fix broken codes #1465

Merged
merged 7 commits into from
Aug 13, 2024
Merged

Conversation

nkanazawa1989
Copy link
Collaborator

@nkanazawa1989 nkanazawa1989 commented Jun 19, 2024

Summary

There were several changes in dependent packages that broke unit test of this package. This PR fixes broken code.

Details and comments

188eb5c, 83fecce

After Qiskit >= 1.2, a protected member _parameter_table of the QuantumCircuit is managed in the Rust domain as a part of CircuitData and we cannot directly touch this object from Python, though we should continue to support <= 1.1. These commits add attribute check before copying the table.
(edit)

f372eb3
qiskit-ibm-runtime 0.24 was released and deprecation for V1 backends were added. We should switch to V2 backends. Also some property value has been changed in one of our reference backends.

ba2bdce

Again, due to the data model update of QuantumCircuit in Qiskit core, a custom circuit equality function used in a unit test was broken. This commit changes approach of the test so that it doesn't need to rely on the custom function.

@nkanazawa1989 nkanazawa1989 added the Changelog: Bugfix Include in the "Fixed" section of the changelog label Jun 19, 2024
@@ -169,7 +169,7 @@ by a variant of the Hahn-echo pulse sequence [5]_.
"formatter.label_offset.pulse_name": 0.1,
"formatter.text_size.annotate": 14,
}
ram_x_schedule.draw(time_range=(0, 1600), style=IQXSimple(**opt), backend=backend)
ram_x_schedule.draw(time_range=(0, 1600), style=IQXSimple(**opt))
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this backend (switched to V2) is removed because of Qiskit/qiskit#12608

@coruscating coruscating added this pull request to the merge queue Aug 13, 2024
Merged via the queue into qiskit-community:main with commit 48ffd3b Aug 13, 2024
11 checks passed
coruscating pushed a commit to coruscating/qiskit-experiments that referenced this pull request Aug 13, 2024
### Summary

There were several changes in dependent packages that broke unit test of
this package. This PR fixes broken code.



### Details and comments

188eb5c,
83fecce

After Qiskit >= 1.2, a protected member `_parameter_table` of the
QuantumCircuit is managed in the Rust domain as a part of `CircuitData`
and we cannot directly touch this object from Python, though we should
continue to support <= 1.1. These commits add attribute check before
copying the table.
(edit)

f372eb3
qiskit-ibm-runtime 0.24 was released and deprecation for V1 backends
were added. We should switch to V2 backends. Also some property value
has been changed in one of our reference backends.

ba2bdce

Again, due to the data model update of QuantumCircuit in Qiskit core, a
custom circuit equality function used in a unit test was broken. This
commit changes approach of the test so that it doesn't need to rely on
the custom function.
coruscating added a commit that referenced this pull request Aug 13, 2024
Co-authored-by: Naoki Kanazawa <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: Bugfix Include in the "Fixed" section of the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants