Description Usage Arguments Value Raises See Also
Performs an in-order iteration of the operations (leaves) in an OP_TREE.
1 | tree_flatten_op(root, preserve_moments = FALSE)
|
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.
Other Circuits:
circuit_dag()
,
circuit()
,
gate_operation_()
,
gate_parallel_operation()
,
insert_strategy()
,
moment()
,
qubit_order_or_list()
,
qubit_order()
,
tree_op()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.