A quantum state preparation machine emits a state $\rho_0$ with probability $2/3$ and emits the state $\rho_1$ with probability $1/3$. We aim to make the best guess which one is it using a set of two POVM operators $\{E_0,E_1\}$. The probability of success is simply:
\begin{equation} p_{\text{succ}}=\frac{2}{3}\text{tr}(E_0\rho_0)+\frac{1}{3}\text{tr}(E_1\rho_1). \end{equation} How to find the POVMs such that $p_{\text{succ}}$ is maximized? Note that the states need not be necessarily qubits, they can be general qudits.
My guess is that we can take $E_0=\rho_0$ and $E_1=I-\rho_0$, in which case, if the density matrices have a corresponding pure orthonormal states, we have $p_{\text{succ}}=1$, which should be the case. But how to check if that is optimal?