cirq.ops.flatten_op_tree

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

root The operation or tree of operations to iterate.
preserve_moments Whether to yield Moments intact instead of flattening them

Operations from the tree.

TypeError root isn't a valid OP_TREE.