0
$\begingroup$

I read about Hadamard gate H and found it's matrix representation as follows:

$$H_1=\frac{1}{\sqrt 2}\begin{pmatrix}1 & 1 \\1 & -1\end{pmatrix}$$

I wanted to know what will be the matrix representation of H in computational basis.

$\endgroup$
1
  • $\begingroup$ Welcome on the QC SE! We have quite good Latex support here, but we don't really like screenshots. I don't know if your passes well this site, but if it is a border case, your chances are hugely increased by if you use Latex formulas. $\endgroup$
    – peterh
    Sep 17, 2020 at 15:11

1 Answer 1

4
$\begingroup$

This is the matrix representation of $H$ in the computational basis. The first column is the image of $|0\rangle$ and the second column is the image of $|1\rangle$.

The reason that $H$ looks the same in both the computational and the "plus/minus" basis is that $H$ is a self-adjoint (or hermitian) unitary, this makes it very special as it means that its self-inverse since we have that $$H^{−1}=H^\dagger=H\,.$$

$\endgroup$
2
  • $\begingroup$ So, if this is the matrix representation of H in the computational basis, then what is the matrix representation of H in the hadamard basis? Thanks $\endgroup$
    – kontam
    Sep 17, 2020 at 15:24
  • $\begingroup$ It's just the matrix whose columns are the image of $H|+\rangle$ and $H|-\rangle$ $\endgroup$
    – Condo
    Sep 17, 2020 at 15:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.