Given $10 \times 10$ matrices $A$ and $B$, I would like to find $10 \times 10$ matrix $X$ such that
$$A = X B X^T \tag{1}$$
$$B = X A X^T \tag{2}$$
How can I solve the issue? if there is a way to solve only equation (1) or (2) that is ok also.
If anyone can already solve this and show me the way it's fine too.
Matrix $A$:
[[0.125+0.03125i,0,0,0,0,-0.0625,-0.0625,-0.03125,0,0],
[0,0.0625,0,0,0,0,-0.0625,0,0,0],
[0,0,0.0625,0,0,0,0,-0.0625,0,0],
[0,0,0,0.15625,0,0,-0.03125i,0,-0.0625,-0.0625],
[0,0,0,0,0.0625,0,0,0,0,-0.0625],
[-0.0625,0,0,0,0,0.0625,0,0,0,0],
[-0.0625,-0.0625,0,-0.03125i,0,0,0.125+0.03125i,0,0,0],
[-0.03125,0,-0.0625,0,0,0,0,0.15625,0,0],
[0,0,0,-0.0625,0,0,0,0,0.0625,0],
[0,0,0,-0.0625,-0.0625,0,0,0,0,0.125]]
Matrix $B$:
[[0.15625,0,0,0,0,-0.0625,-0.0625,-0.03125i,0,0],
[0,0.0625,0,0,0,0,-0.0625,0,0,0],
[0,0,0.0625,0,0,0,0,-0.0625,0,0],
[0,0,0,0.125+0.03125i,0,0,-0.03125,0,-0.0625,-0.0625],
[0,0,0,0,0.0625,0,0,0,0,-0.0625],
[-0.0625,0,0,0,0,0.0625,0,0,0,0],
[-0.0625,-0.0625,0,-0.03125,0,0,0.125+0.03125i,0,0,0],
[-0.03125i,0,-0.0625,0,0,0,0,0.09375,0,0],
[0,0,0,-0.0625,0,0,0,0,0.0625,0],
[0,0,0,-0.0625,-0.0625,0,0,0,0,0.125]]
Thanks!