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

Rewrite CircuitInstruction as iterable to avoid deprecation warning of Qiskit 1.2 #2198

Merged
merged 2 commits into from
Aug 9, 2024

Conversation

t-imamichi
Copy link
Member

Summary

Rewrite some codes to avoid the following deprecation warning of Qiskit 1.2

DeprecationWarning: Treating CircuitInstruction as an iterable is deprecated legacy behavior since Qiskit 1.2, and will be removed in Qiskit 2.0. Instead, use the operation, qubits and clbits named attributes.

Details and comments

Copy link
Member

@jakelishman jakelishman left a comment

Choose a reason for hiding this comment

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

Thanks for this - I thought we'd caught all of them proactively in #2179 and #2191, but I guess a couple still slipped through.

@doichanj doichanj merged commit ad7b86f into Qiskit:main Aug 9, 2024
38 checks passed
@t-imamichi t-imamichi deleted the circuit-inst branch August 9, 2024 13:46
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.

3 participants