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
Describe the bug
When mid-circuit measurements are included in a quantum circuit, the ir function fails to recognize these measurements correctly. The function erroneously adds measurements to all qubits in the circuit.
To reproduce
Create a quantum circuit that includes mid-circuit measurements on specific qubits.
Generate the intermediate representation (IR) of the circuit using the ir function.
Inspect the output of the IR to check the measurements.
Observe that measurements have been added to all qubits instead of only the specified ones.
Expected behavior
I expected the ir function to accurately reflect the mid-circuit measurements as defined in the original quantum circuit.
Midcircuit measurements should not be moved to the end of the circuit.
Screenshots or logs
System information
Julia version: 1.10
Braket.jl version: Main Branch
Note
Instead of using the Reset Instruction, I am currently using Z.
The idea, is that after a measurement, the qubit is reset and reused for a different computation
The text was updated successfully, but these errors were encountered:
Describe the bug
When mid-circuit measurements are included in a quantum circuit, the
ir
function fails to recognize these measurements correctly. The function erroneously adds measurements to all qubits in the circuit.To reproduce
ir
function.Expected behavior
I expected the
ir
function to accurately reflect the mid-circuit measurements as defined in the original quantum circuit.Midcircuit measurements should not be moved to the end of the circuit.
Screenshots or logs
System information
Note
Instead of using the Reset Instruction, I am currently using Z.
The idea, is that after a measurement, the qubit is reset and reused for a different computation
The text was updated successfully, but these errors were encountered: