def transpose(self):
kraus_l, kraus_r = self._data<EOL>kraus_l = [k.T for k in kraus_l]<EOL>if kraus_r is not None:<EOL><INDENT>kraus_r = [k.T for k in kraus_r]<EOL><DEDENT>return Kraus((kraus_l, kraus_r),<EOL>input_dims=self.output_dims(),<EOL>output_dims=self.input_dims())<EOL>
Return the transpose of the QuantumChannel.