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

Update get_c_register to throw an error for invalid registers #1436

Open
cqc-melf opened this issue Jun 4, 2024 · 0 comments
Open

Update get_c_register to throw an error for invalid registers #1436

cqc-melf opened this issue Jun 4, 2024 · 0 comments
Assignees
Labels
classical-logic issues related to classical logical expressions

Comments

@cqc-melf
Copy link
Contributor

cqc-melf commented Jun 4, 2024

get_c_register will return the bits 0 to n for n bits with the same name in the circuit.

If the circuit has the classical bits z[30] and z[31] we would get z[0] and z[1] from get_c_register

We should add a check to get_c_register to make sure only valid registers are returned

@cqc-melf cqc-melf changed the title get_c_register return bits not in circuit for unvalid registers Update get_c_register to throw an error for invalid registers Jun 19, 2024
@CalMacCQ CalMacCQ added the classical-logic issues related to classical logical expressions label Sep 16, 2024
@cqc-melf cqc-melf self-assigned this Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
classical-logic issues related to classical logical expressions
Projects
None yet
Development

No branches or pull requests

2 participants