-
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
Track swap mapping permutations in Stochastic mapper #6827
Track swap mapping permutations in Stochastic mapper #6827
Conversation
Back into WIP as there is edge cases |
All the routing passes (including StochasticSwap) now seem to set the final permutation as a Layout object to |
So there are a couple of advantages here: 1) This computes without the need for a fake run. 2) This includes the initial layout in the permutation so that this tells you the full permutation details whereas the method you bring up does not. Importantly, this will allow you to put measurements and single qubit gates on a circuit AFTER compilation in the correct order. |
Summary
Being able to determine the final qubit permutation after swap mapping has been a much needed routine for a couple of years now. It is trivial to implement and I have done so here for the Stochastic swap mapper.
Left to do before removing WIP:
Details and comments