I want to create a loop that calculates the product of the following matrices:
First matrix is Q= 2 x 2 Matrix, which are the diagonal matrix of sta