Let $A$ and $B$ be positive-definite matrices of the same size. For any $t \ge 0$, define $$ u(t) := \mbox{trace}(A^{-1/2}e^{-tB} (AB+BA) e^{-tB}A^{-1/2}). $$
Question. What are necessary and sufficient conditions on $A$ and $B$, such that $u(t) \ge 0$ for all $t \ge 0$ ?
Note. A sufficient condition is that $A$ and $B$ commute, or more generally, that $AB+BA$ is positive-semidefinite.