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 to True or False accordingly.

CheckMap initializer.

Parameters

coupling_map (CouplingMap) – Directed graph representing a coupling map.

Attributes

CheckMap.is_analysis_pass

Check if the pass is an analysis pass.

CheckMap.is_transformation_pass

Check if the pass is a transformation pass.

Methods

CheckMap.name()

Return the name of the pass.

CheckMap.run(dag)

Run the CheckMap pass on dag.