See also: Hadamard matrix
Denoting by
In general, the Hadamard gate takes a superposition
The matrix representation of the
Just like the X Gate, the inverse of the Hadamard Gate is itself, which means the two Hadamard Gate cancel each other:
This can be counterintuitive since one Hadamard Gate “spread out” in basis states to states like