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
Not sure if this is an actual bug since appending a mutable object to itself ( `circuit.append(circuit) ) it's probably a bad idea and one should probably avoid it in the first place.
Still, I am reporting this fact here since that code used to work before upgrading.
I see, looks like passing the circuit into itself would cause the iterator to infinite loop there. Wrapping in a list should fix it: for moment_or_op in list(ops.flatten_to_ops_or_moments(moment_or_operation_tree)):. Feel free to make the change; my time for cirq is limited these days.
After upgrading to cirq v0.1.0 the following code doesn't work (runs forever):
It used to work with cirq v0.15.0 .
Not sure if this is an actual bug since appending a mutable object to itself ( `circuit.append(circuit) ) it's probably a bad idea and one should probably avoid it in the first place.
Still, I am reporting this fact here since that code used to work before upgrading.
FYI: the following code works as expected:
The text was updated successfully, but these errors were encountered: