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
The logic for SynchronizeTerminalMeasurements goes qubit-by-qubit checking for measurements that are terminal but not at the last moment, and moves such measurements to the last moment. Thus if a two-qubit measurement has a single-qubit gate after it, the logic still moves the measurement to terminal position since one of its qubits is unblocked.
How to reproduce the issue
Add the following test to synchronize_terminal_measurements_test.py. The circuit should be unmodified by the transformer. But the transformer moves the measurement to the end.
…ronizeTerminalMeasurements` (#4911)
- Part of #4722
- Follows the new Transformer API #4483
- Supports no compile tags NoCompile Tag for optimizers #4253
- Fixes#4907
rht
pushed a commit
to rht/Cirq
that referenced
this issue
May 1, 2023
Description of the issue
The logic for SynchronizeTerminalMeasurements goes qubit-by-qubit checking for measurements that are terminal but not at the last moment, and moves such measurements to the last moment. Thus if a two-qubit measurement has a single-qubit gate after it, the logic still moves the measurement to terminal position since one of its qubits is unblocked.
How to reproduce the issue
Add the following test to synchronize_terminal_measurements_test.py. The circuit should be unmodified by the transformer. But the transformer moves the measurement to the end.
Cirq version
0.14.1
The text was updated successfully, but these errors were encountered: