def multiply(self, other):
if not isinstance(other, Number):<EOL><INDENT>raise QiskitError("<STR_LIT>")<EOL><DEDENT>if isinstance(other, complex) or other < <NUM_LIT:1>:<EOL><INDENT>return Stinespring(Choi(self).multiply(other))<EOL><DEDENT>num = np.sqrt(other)<EOL>stine_l, stine_r = self._data<EOL>stine_l = num * self._data[<NUM_LIT:0>]<EOL>stine_r = None<EOL>if self._data[<NUM_LIT:1>] is not None:<EOL><INDENT>stine_r = num * self._data[<NUM_LIT:1>]<EOL><DEDENT>return Stinespring((stine_l, stine_r), self.input_dims(),<EOL>self.output_dims())<EOL>
Return the QuantumChannel self + other.

        Args:
            other (complex): a complex number.

        Returns:
            Stinespring: the scalar multiplication other * self as a
            Stinespring object.

        Raises:
            QiskitError: if other is not a valid scalar.