tree_flatten_op: Flatten op tree

Description Usage Arguments Value Raises See Also

View source: R/Circuits.R

Description

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

Usage

1
tree_flatten_op(root, preserve_moments = FALSE)

Arguments

root

The operation or tree of operations to iterate.

preserve_moments

Whether to yield Moments intact instead of flattening them.

Value

Operations from the tree.

Raises

TypeError: root isn't a valid OP_TREE.

See Also

Other Circuits: circuit_dag(), circuit(), gate_operation_(), gate_parallel_operation(), insert_strategy(), moment(), qubit_order_or_list(), qubit_order(), tree_op()


henry090/Cirq documentation built on June 13, 2020, 1:28 a.m.