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

Circuit.q_registers and Circuit.c_registers are broken for circuits whose units are not organized as registers #1160

Closed
cqc-alec opened this issue Dec 4, 2023 · 0 comments · Fixed by #1185
Labels
bug Something isn't working

Comments

@cqc-alec
Copy link
Collaborator

cqc-alec commented Dec 4, 2023

For example, if a circuit contains a single qubit Qubit("q", 3) then q_registers will return [QubitRegister("q", 1)]; but QubitRegister("q", 1) contains Qubit("q", 0) which is not in the circuit.

I suppose it should return an empty list in this case, or else raise an exception.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant