If yy and zz are 2x2 Hermitian matrices, is there a way that I can mark them (with a property?) as Hermitian so that Mathematica can assume that it can factor out and simplify scalar multipliers from a dot product expression? In this example, we have -1 * -1 as the multiplier:
ClearAll[a, yy, zz]
a = -(-yy.zz).zz
FullForm[a]
This gives:
-(-yy.zz).zz
Times[-1,Dot[Times[-1,Dot[yy,zz]],zz]]
Can it be made to simplify to just:
yy.zz.zz