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