Tamil
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.transpiler.passes.GateDirection.run

GateDirection.run(dag)[source]

Run the GateDirection pass on dag.

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

Parameters

dag (DAGCircuit) -- DAG to map.

Returns

The rearranged dag for the coupling map

Return type

DAGCircuit

Raises

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