CheckMap¶
- class CheckMap(*args, **kwargs)[source]¶
Check if a DAG circuit is already mapped to a coupling map.
Check if a DAGCircuit is mapped to coupling_map by checking that all 2-qubit interactions are laid out to be physically close, setting the property
is_swap_mapped
toTrue
orFalse
accordingly.CheckMap initializer.
- Parameters
coupling_map (CouplingMap) – Directed graph representing a coupling map.
Attributes
Check if the pass is an analysis pass.
Check if the pass is a transformation pass.
Methods
Return the name of the pass.
CheckMap.run
(dag)Run the CheckMap pass on dag.