I am reading a review about the variational quantum algorithm. And there is a definition of the cost function:
$C(\theta)=\sum_k f_k (Tr[O_k U(\theta)\rho_kU^\dagger(\theta)])$
Where $U(\theta)$ is a parametrized unitary with $\theta$ as the parameters. $\rho_k$ are density matrices, and ${O_k}$ are a set of observables, $f_k$ are functions which encode the task at hand.
I am confused about these two things: (1) Is there any general physical meaning of $Tr[O_k U(\theta)\rho_kU^\dagger(\theta)]$? It feels like I have seen it sometime before but I can't really find it now. (2) Why the cost function is defined this way?
Thank you for your help!