qiskit/circuit/instruction.py
def copy(self, name=None):
        """
        shallow copy of the instruction.

        Args:
          name (str): name to be given to the copied circuit,
            if None then the name stays the same

        Returns:
          Instruction: a shallow copy of the current instruction, with the name
            updated if it was provided
        """
        cpy = copy.copy(self)
        if name:
            cpy.name = name
        return cpy
def copy(self, name=None):
        cpy = copy.copy(self)
        if name:
            cpy.name = name
        return cpy
def copy ( self , name = None ) : cpy = copy . copy ( self ) if name : cpy . name = name return cpy
shallow copy of the instruction.

        Args:
          name (str): name to be given to the copied circuit,
            if None then the name stays the same

        Returns:
          Instruction: a shallow copy of the current instruction, with the name
            updated if it was provided
shallow copy of the instruction .