Closed shef4 closed 11 months ago
Check out this pull request on
See visual diffs & provide feedback on Jupyter Notebooks.
Powered by ReviewNB
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
b5b3b74
) 97.84% compared to head (93a06f6
) 97.84%. Report is 1 commits behind head on master.:exclamation: Current head 93a06f6 differs from pull request most recent head 7a03d0c. Consider uploading reports for the commit 7a03d0c to get more accurate results
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
router mishandling mid-circuit measurements #issue6293
Description of the issue
cirq.RouteCQC
commutes gates in undefined ways due to intermediate measurements with 3 or more qubits not being handled correctly.This PR aims to fix this issue by:
Breaking intermediate measurements on 3+ qubits into single qubit measurements if the result isn't stored (i.e. key is None) else a
ValueError
is raised.Next Steps
Check if it's possible to create a ClassicallyControlledOperation controlled by the result of a multiqubit measurement
From looking at the documentation it seems to be possible. Will stop here until there is a need to support this case.