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

AASRouting doesn't work for circuits with non-default register names. #1534

Open
IlanIwumbwe opened this issue Aug 15, 2024 · 2 comments
Open

Comments

@IlanIwumbwe
Copy link

Benny and I found this by running a randomly generated circuit through the compiler

Related to this and this.

subcirc_4 = Circuit(2, 2, "subcirc_4")
subcirc_4.add_q_register("qreg", 1)
subcirc_4.measure_all()
AASRouting(RingArch(subcirc_4.n_qubits)).apply(subcirc_4)

Results in:

----> 7 AASRouting(RingArch(subcirc_4.n_qubits)).apply(subcirc_4)
      9 draw(subcirc_4)

RuntimeError: Circuit does not contain unit with id: q[2]
@cqc-alec
Copy link
Collaborator

Looks like this is a direct result of #1418 , because the AASRouting pass performs ComposePhasePolyBoxes as its first step.

@IlanIwumbwe
Copy link
Author

Right, thanks

@CalMacCQ CalMacCQ changed the title AASRouting doesn't work for circuits with non-defualt register names. AASRouting doesn't work for circuits with non-default register names. Sep 16, 2024
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

No branches or pull requests

2 participants