qiskit/pulse/channels/qubit.py
def drive(self) -> DriveChannel:
        """Return the primary drive channel of this qubit."""
        if self._drives:
            return self._drives[0]
        else:
            raise PulseError("No drive channels in q[%d]" % self._index)
def drive(self) -> DriveChannel:
        """Return the primary drive channel of this qubit."""
        if self._drives:
            return self._drives[0]
        else:
            raise PulseError("No drive channels in q[%d]" % self._index)
def drive ( self ) -> DriveChannel : if self . _drives : return self . _drives [ 0 ] else : raise PulseError ( "No drive channels in q[%d]" % self . _index )
Return the primary drive channel of this qubit.
Return the primary drive channel of this qubit .