You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
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]
andz[31]
we would getz[0]
andz[1]
fromget_c_register
We should add a check to
get_c_register
to make sure only valid registers are returnedThe text was updated successfully, but these errors were encountered: