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 legacy accesses of CircuitInstruction #2179

Merged
merged 2 commits into from
Jul 5, 2024

Conversation

jakelishman
Copy link
Member

Summary

Using Terra's CircuitInstruction like a tuple is a legacy access pattern. The pattern of using named access attributes was introduced about two years ago, and the legacy format is about to be deprecated. This fixes up the last couple of uses.

Details and comments

Terra 1.2 will likely deprecate this.

Using Terra's `CircuitInstruction` like a tuple is a legacy access
pattern.  The pattern of using named access attributes was introduced
about two years ago, and the legacy format is about to be deprecated.
This fixes up the last couple of uses.
@1ucian0 1ucian0 added this to the Aer 0.15.0 milestone Jul 4, 2024
Copy link
Collaborator

@hhorii hhorii left a comment

Choose a reason for hiding this comment

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

LGTM.

@hhorii hhorii merged commit f8d2021 into Qiskit:main Jul 5, 2024
38 checks passed
@jakelishman jakelishman deleted the fix-legacy-iterable branch July 5, 2024 12:50
garrison added a commit to garrison/qiskit-aer that referenced this pull request Jul 10, 2024
This is a follow-up to Qiskit#2179, with similar fixes in two tests.
doichanj pushed a commit that referenced this pull request Jul 12, 2024
This is a follow-up to #2179, with similar fixes in two tests.
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.

4 participants