The group $Q\subset GL_2(\mathbb{C})$ is generated by $\langle A,B\rangle$
$$ A= \left( \begin{array}{ccc}0 & 1 \\ -1 & 0\end{array} \right) B= \left( \begin{array}{ccc}0 & i \\ i & 0\end{array} \right)$$
I'm asked to prove that Q is a non-abelian group of order 8, and Q is not isomorphic to D4.
Q is not abelian because matrix product is non commutative.
$A$ and $B$ are two elements of $Q$. $A^2= \left( \begin{array}{ccc}-1 & 0 \\ 0 & -1\end{array} \right), A^3= \left( \begin{array}{ccc}0 & -1 \\ 1 & 0\end{array} \right), A^4= Id, B^2= \left( \begin{array}{ccc}-1 & 0 \\ 0 & -1\end{array} \right)=A^2, B^3= \left( \begin{array}{ccc}0 & -i \\ -i & 0\end{array} \right), B^3= Id. AB= \left( \begin{array}{ccc}i & 0 \\ 0 & -i\end{array} \right), BA= \left( \begin{array}{ccc}-i & 0 \\ 0 & i\end{array} \right) .$
Now it looks like $Q$ is at least order 8 since $Q=\{Id, A, A^2, A^3, B, B^3, AB, BA\}$. But how can I prove that there are no more elements in $Q$?
$D_4$ is generated by two elements $a,b$ such that $a^4=e, b^2=e, ba=a^3b$. Then both $a^2$ and $b$ have order two, but there is only one element of order two in $Q$ which is $A^2$. Then $Q$ is not isomorphic to $D_4$