Solution (source code)

= Solution

For the binary <POVM> $\{E,I-E\}$ and equal priors,
$$
p_{\rm succ}
=\frac12\operatorname{Tr}(E\rho_1)
+\frac12\operatorname{Tr}[(I-E)\rho_2]
=\frac12\left[1+\operatorname{Tr}E(\rho_1-\rho_2)\right].
$$
Maximizing with the <variational characterization of trace distance> gives the equal-prior <Holevo–Helstrom theorem>
$$
\boxed{p_{\rm succ}^{\max}
=\frac12[1+D(\rho_1,\rho_2)]}.
$$