dqcnac.mapping.local_mapping module

Local mapper with qiskit module.

class dqcnac.mapping.local_mapping.External(mapper: str, coupling_map: list)[source]

Bases: object

Class to use external libraries for local mapping

__init__(mapper: str, coupling_map: list)[source]

Initialize the External mapper class

Parameters:
  • mapper – the mapper to be used

  • coupling_map – the coupling map as a list of tuple, each tuple represents an edge between two integer vertices

run(dag: qiskit.dagcircuit.DAGCircuit) → qiskit.transpiler.Layout[source]

Run the External mapper

Parameters:

dag – the dag circuit to map

Returns:

a layout for the dag over a coupling map