qiskit/qobj/converters/pulse_instruction.py
def convert_drive(self, shift, instruction):
        """Return converted `PulseInstruction`.

        Args:
            shift(int): Offset time.
            instruction (PulseInstruction): drive instruction.
        Returns:
            dict: Dictionary of required parameters.
        """
        command_dict = {
            'name': instruction.command.name,
            't0': shift+instruction.start_time,
            'ch': instruction.channels[0].name
        }
        return self._qobj_model(**command_dict)
def convert_drive(self, shift, instruction):
        command_dict = {
            'name': instruction.command.name,
            't0': shift+instruction.start_time,
            'ch': instruction.channels[0].name
        }
        return self._qobj_model(**command_dict)
def convert_drive ( self , shift , instruction ) : command_dict = { 'name' : instruction . command . name , 't0' : shift + instruction . start_time , 'ch' : instruction . channels [ 0 ] . name } return self . _qobj_model ( * * command_dict )
Return converted `PulseInstruction`.

        Args:
            shift(int): Offset time.
            instruction (PulseInstruction): drive instruction.
        Returns:
            dict: Dictionary of required parameters.
Return converted PulseInstruction .