Suppose we have Hamiltonian on $\mathbb{C}^2$ $$H=\hbar(W+\sqrt2(A^{\dagger}+A)).$$ We also know $AA^{\dagger}=A^{\dagger}A-1$ and $A^2=0$, letting $W=A^{\dagger}A$.
How can we express $H$ as $H=\hbar \Big(\begin{matrix} 0 & \sqrt2 \\ \sqrt2 & 1 \end{matrix} \Big)?$
So far I've shown that if we consider the eigenvalues of $W$, $$W|\psi \rangle=w|\psi \rangle$$ It implies that $A|\psi \rangle$ and $A^{\dagger}|\psi \rangle$ are also eigenvectors of $W$ with eigenvalue $1-w$. Using $A^2=0$ we find that $w=0$ or $1$
I'm not entirely sure how you go about expressing operators as matrices, as the majority of my course has been using wave function notation, I'd really appreciate if someone could explain the next steps here just so I can have a more rigorous understanding of it.