cirq.freeze_op_tree

Replaces all iterables in the OP_TREE with tuples.

root The operation or tree of operations to freeze.

An OP_TREE with the same operations and branching structure, but where all internal nodes are tuples instead of arbitrary iterables.