code: def partial_trace(self, qubits: Qubits) -> 'Channel':
          
          vec = self.vec.partial_trace(qubits)
          return Channel(vec.tensor, vec.qubits)
docs: Return the partial trace over the specified qubits