![]() |
A recursive type describing trees of operations, and utility methods for it.
Classes
class OpTree
: The recursive type consumed by circuit builder methods.
Functions
flatten_op_tree(...)
: Performs an in-order iteration of the operations (leaves) in an OP_TREE.
flatten_to_ops(...)
: Performs an in-order iteration of the operations (leaves) in an OP_TREE.
flatten_to_ops_or_moments(...)
: Performs an in-order iteration OP_TREE, yielding ops and moments.
freeze_op_tree(...)
: Replaces all iterables in the OP_TREE with tuples.
transform_op_tree(...)
: Maps transformation functions onto the nodes of an OP_TREE.