Let $A$ be a finite dimensional $\mathrm{C}^*$-algebra.
We have the usual absolute value:
$$|a|:=\sqrt{a^*a},$$
and the cone of positive elements:
$$A^+:=\{a\in A:\exists \,b\in A, a=b^*b\}.$$
An operator $T\in B(A)$ is said to be positive if $T(A^+)\subset A^+$.
Does it hold that $|Tf|=T|f|$ for positive $T$?.
Context:
I don't have any reason to believe this but I have a $T$-invariant finite trace $h\in A^{'}$ ($h\circ T=h$) and if I have the above I have
$$\|Tf\|_{\mathcal{L}^1}=h(|Tf|)=h(T|f|)=h(|f|)=\|f\|_{\mathcal{L}^1},$$ which would be useful to me.
In general, we do not have $|Tf | = T |f|$.
To see this, consider the $2 \times 2$-matrices over $\mathbb{C}$ and let $T$ be taking the transpose of a matrix.
Then $T$ is a positive operator, but for $f = \left( \begin{matrix} 1 & 0 \\ 1 & 0\end{matrix} \right)$ we have \begin{align*} |Tf| =\frac{1}{\sqrt{2}}\left( \begin{matrix} 1 & 1 \\ 1 & 1\end{matrix} \right) \neq \left( \begin{matrix} \sqrt{2} & 0 \\ 0 & 0\end{matrix} \right) = T|f|. \end{align*}