def __init__(self,<EOL>coupling_map,<EOL>initial_layout=None):
super().__init__()<EOL>self.coupling_map = coupling_map<EOL>self.initial_layout = initial_layout<EOL>self.requires.append(BarrierBeforeFinalMeasurements())<EOL>
Maps a DAGCircuit onto a `coupling_map` using swap gates.
Args:
    coupling_map (CouplingMap): Directed graph represented a coupling map.
    initial_layout (Layout): initial layout of qubits in mapping