Let $A,B\in M_n(\mathbb{R})$ be real (or complex) square matrices. Generally speaking,
$${\rm trace}(AB)\neq {\rm trace}(A){\rm trace}(B)$$
There are a lot of 'easy' examples where this doesn't hold. What is not obvious to me is whether there is any chance of it working for something other than $A=B=0$, the zero matrix. Even if you work out the details for $n=2$ the algebraic condition is not very insightful.
Question: What are sufficient or necessary conditions on $A$ and $B$ under which the trace is multiplicative, i.e., ${\rm trace}(AB)= {\rm trace}(A){\rm trace}(B)$?
Edit: This post from 2014 asked whether the trace is multiplicative or not. I am well aware that it is not, but a distinct question is whether there are conditions on $A$ and $B$ under which the trace becomes multiplicative.