cirq.ops.flatten_to_ops_or_moments

Performs an in-order iteration OP_TREE, yielding ops and moments.

root The operation or tree of operations to iterate.

Operations or moments from the tree.

TypeError root isn't a valid OP_TREE.