qiskit/circuit/compositegate.py
def instruction_list(self):
        """Return a list of instructions for this CompositeGate.

        If the CompositeGate itself contains composites, call
        this method recursively.
        """
        instruction_list = []
        for instruction in self.data:
            if isinstance(instruction, CompositeGate):
                instruction_list.extend(instruction.instruction_list())
            else:
                instruction_list.append(instruction)
        return instruction_list
def instruction_list(self):
        instruction_list = []
        for instruction in self.data:
            if isinstance(instruction, CompositeGate):
                instruction_list.extend(instruction.instruction_list())
            else:
                instruction_list.append(instruction)
        return instruction_list
def instruction_list ( self ) : instruction_list = [ ] for instruction in self . data : if isinstance ( instruction , CompositeGate ) : instruction_list . extend ( instruction . instruction_list ( ) ) else : instruction_list . append ( instruction ) return instruction_list
Return a list of instructions for this CompositeGate.

        If the CompositeGate itself contains composites, call
        this method recursively.
Return a list of instructions for this CompositeGate .