Description Usage Arguments Details Value See Also
A representation of a Circuit as a directed acyclic graph.
1 2 3 4 5 | circuit_dag(
can_reorder,
incoming_graph_data = NULL,
device = unconstrained_device()
)
|
can_reorder |
A predicate that determines if two operations may be reordered. Graph edges are created for pairs of operations where this returns False. The default predicate allows reordering only when the operations don’t share common qubits. |
incoming_graph_data |
Data in initialize the graph. This can be any value supported by networkx.DiGraph() e.g. an edge list or another graph. |
device |
Hardware that the circuit should be able to run on. |
Nodes of the graph are instances of Unique containing each operation of a circuit. Edges of the graph are lists of nodes. Each edge specifies a required application order between two operations. The first must be applied before the second. The graph is maximalist (transitive completion).
Initialized Circuit Dag.
Other Circuits:
circuit()
,
gate_operation_()
,
gate_parallel_operation()
,
insert_strategy()
,
moment()
,
qubit_order_or_list()
,
qubit_order()
,
tree_flatten_op()
,
tree_op()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.