Indirectly inspired by this post we ask the following question:
Let $A$ be a $C^*$ algebra which is equiped with a faithful positive normal trace. Assume that $e_1,e_2,f_1,f_2$ are idempotents in $A$. Assume that $e_1 \simeq_h f_1$ and $e_2\simeq_h f_2$ where $\simeq_h$ is the homotopy equivalent of idempotents. Does this imply that $\operatorname{trace}(e_1e_2)=\operatorname{trace}(f_1f_2)$?