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

BackendV2 coupling map should be iterable #9466

Closed
nonhermitian opened this issue Jan 26, 2023 · 1 comment
Closed

BackendV2 coupling map should be iterable #9466

nonhermitian opened this issue Jan 26, 2023 · 1 comment
Labels
type: feature request New feature or request

Comments

@nonhermitian
Copy link
Contributor

What should we add?

Iterating over the edges of a coupling map is really one of the primary use cases for dealing with this object outside of the transpilation stack. As it stands now, I need to remember that cmap.get_edges() must be called for V2 but not V1. Printing the coupling map from V2 shows a nested list, so naively I would expect to be able to directly iterate on it.

@nonhermitian nonhermitian added the type: feature request New feature or request label Jan 26, 2023
@jakelishman
Copy link
Member

It will be iterable in 0.23, since we added it (#9051) the last time you opened this issue (#8863).

@jakelishman jakelishman closed this as not planned Won't fix, can't repro, duplicate, stale Jan 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants