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