code: def aschannel(self) -> Channel:
          
          qubits = self.qubits
          N = len(qubits)
          ident = Gate(np.eye(2**N), qubits=qubits).aschannel()
  
          channels = [op.aschannel() @ ident for op in self.operators]
          if self.weights is not None:
              channels = [c*w for c, w in zip(channels, self.weights)]
          channel = reduce(add, channels)
          return channel
docs: Returns: Action of Kraus operators as a superoperator Channel