Japanese
言語
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.transpiler.passes.CXDirection.run

CXDirection.run(dag)

Run the GateDirection pass on dag.

Flips the cx nodes to match the directed coupling map. Modifies the input dag.

パラメータ

dag (DAGCircuit) – DAG to map.

戻り値

The rearranged dag for the coupling map

戻り値の型

DAGCircuit

例外

TranspilerError – If the circuit cannot be mapped just by flipping the cx nodes.