Is the chain of implications below correct or does it break down somewhere along the way?
Let $A$ be a square matrix, $D$ a diagonal matrix and $P$ an eigenvector matrix. Consider $A = P^{-1}DP$ which implies $A = PDP^{-1}$ and so $A = P^{-1}DP = PDP^{-1}.$ Then $A = Q^{-1}DQ = QDQ^{-1}$ which implies $A = Q^TDQ = QDQ^T$ since $Q^T = Q^{-1}.$