cirq.ops.flatten_to_ops

Performs an in-order iteration of the operations (leaves) in an OP_TREE.

root The operation or tree of operations to iterate.

Operations or moments from the tree.

TypeError root isn't a valid OP_TREE.