circuit.insert_at_frontier crashes when inserting GlobalPhaseOperation #4225
Labels
area/circuits
complexity/low
introduces/modifies 1-2 concepts, should take 1-2 days max for an advanced contributor
good first issue
This issue can be resolved by someone who is not familiar with the codebase. A good starting issue.
kind/bug-report
Something doesn't seem to work.
triage/accepted
A consensus emerged that this bug report, feature request, or other action should be worked on
Description of the issue
circuit.insert_at_frontier
fails when trying to insertGlobalPhaseOperation
because the operation does not have any qubits. As a result,PointOptimizer
also fails when thenew_operations
contain aGlobalPhaseOperation
.How to reproduce the issue
Cirq version
0.12.0.dev
The text was updated successfully, but these errors were encountered: