Recently, I came across density matrix. Given a qubit $|\psi \rangle = \alpha |0\rangle + \beta |1\rangle$, we can find its density matrix by computing $\rho \equiv |\psi \rangle \langle \psi |$.
My question is how can one revert this process? That is given $\rho$, how can we find its initial quantum states that resulted in such $\rho$ (regardless of whether $\rho$ is pure or mixed)?
As an example, consider
$$\rho = \begin{bmatrix} \frac{1}{2} & 0 \\ 0 & \frac{1}{2} \end{bmatrix} $$
how can we deduce $\rho = 0.5 |0\rangle \langle0| + 0.5 |1\rangle \langle 1|?$
This might be a rather straightforward example, but I am curious to know the process for a random density matrix. Does it produce unique results?