Let $$A=\begin{pmatrix}i & 0\\ 0 & -i\end{pmatrix}$$ and
$$B=\begin{pmatrix}0 & 1\\ -1 & 0\end{pmatrix}.$$
Let $Q=\langle A,B\rangle.$
Prove that $|Q|=8$
The question is given with three hints.
Work out the powers of $A$ and $B$.
I have done this, they both have power $4$.
Find an expression for $B^{-1}AB=A^j$ for a suitable $j$.
I have done this, $j=3$.
Use this to show that any element of $Q$ can be written as $A^iB^j$, but not all of these are distinct.
I am not sure how to go any further.
I have found that $A^2=B^2$ and $A^4=B^4=e$ and the $8$ elements of $Q$ are $$\{e, A,A^2,A^3,B, B^3, AB, A^3B\}$$
which could be written as
$$Q=\{A^1B^4, A^1B^2, A^2B^4, A^4B^4, A^4B^1, A^2B^4,A^2B^1, A^1B^1, A^3B^1\},$$ but I don't think that is what the question wants me to do.
Thank you
Also have another extension to this question. Prove that Q has an automorphism of order 3