create 'diagonalize_q_matrix' function for variational bayesian LDS learning.