qiskit/transpiler/layout.py
def copy(self):
        """Returns a copy of a Layout instance."""
        layout_copy = type(self)()

        layout_copy._p2v = self._p2v.copy()
        layout_copy._v2p = self._v2p.copy()

        return layout_copy
def copy(self):
        layout_copy = type(self)()

        layout_copy._p2v = self._p2v.copy()
        layout_copy._v2p = self._v2p.copy()

        return layout_copy
def copy ( self ) : layout_copy = type ( self ) ( ) layout_copy . _p2v = self . _p2v . copy ( ) layout_copy . _v2p = self . _v2p . copy ( ) return layout_copy
Returns a copy of a Layout instance.
Returns a copy of a Layout instance .