I'm confused between two representations of the density operator in quantum statistical mechanics.
In the first case, we have :
$$\hat{\rho}=\sum_i P_i|\psi_i\rangle\langle \psi_i|$$
In the second case, we have :
$$\hat{\rho}=\sum_i \sum_kP_{ik}|\phi_i\rangle\langle \phi_k|$$
Are these two cases equivalent ?
For example, in case of a mixed state, I know the density operator would not contain any superposition terms. For example, in case of a pure state $2$ level system, $\hat{\rho}=|\psi\rangle\langle\psi|=a|0\rangle\langle 0|+b|1\rangle\langle 0|+c|0\rangle\langle 1|+d|1\rangle\langle 1|$
In the mixed state however, $\hat{\rho}=a|0\rangle\langle 0|+b|1\rangle\langle 1|$
According to this, the first representation seems to be the correct one. However, we can always expand the kets in some basis set, and doing that, we would obtain cross terms, as we did for the pure state. Perhaps if we decompose the states $|0\rangle$ and $|1\rangle$ into some other basis, maybe we would obtain cross terms, even in case of the mixed state
So, does it mean that both the representations are equivalent, and you can derive the second one, by just plugging $|\psi_i\rangle=\sum_k a_k |\phi_k\rangle$ in the first method ? Moreover, I think we can combine $a_k$ terms with the $P_i$ terms to get $P_{ik}$ terms.
So we can get the second representation from the first.
However, this creates a small problem. For example, I know that a pure state has only a single term in the density matrix. However, that would be true only in case of the first representation.
In this representation, the pure state would have a single term, while mixed states would have multiple terms. In case of the mixed ensemble, there would be no superposition terms $|a\rangle\langle b|$ since the index goes over only $i$.
Hence we can easily distinguish between pure and mixed states.
In the second representation, we have expanded our $|\psi\rangle$ in terms of $|\phi_k\rangle$'s. Hence in both the pure state and the mixed state expressions, we would have multiple terms. Moreover, the mixed state would also have superposition terms since the index goes over both $i$ and $k$.
How then, can we differentiate between pure and mixed states ? How can we then say, that the density matrix of the pure state, has only one single terms in it, and that $P_i=1$.
So,the only way we can differentiate between the density operators for pure and mixed states is by converting into the first expression ? Or can we differentiate even if both are represented through the second representation ?