-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Undoing swappers with LayoutTransformation #5280
Conversation
I'll close this PR as stale now. The idea of a transpilation mode that preserves virtual -> hardware qubit mapping between the start and end of the circuit is still something we occasionally kick around (I'm not 100% convinced that it's entirely sensible within our current structures when there's coupling restrictions present), but I think this PR would need to be restarted if we did go that route. Feel free to re-open if I'm wrong. |
Fixes #4911
Fixes #4608
At the moment, only the combination
BasicSwap
andoptimization_level=1
is supported.Let's take this example:
Because contains no measurement:
The unitary is preserved: