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