Hadamard Gate
Track: Quantum Gates & Circuits · Difficulty: Beginner · Est: 14 min
Hadamard Gate
Overview
The Hadamard gate (H) is one of the most important single-qubit gates. It is the cleanest way to:
- create superposition from a basis state,
- undo that superposition, and
- switch between measurement bases (Z-basis ↔ X-basis).
Even when we avoid circuits, H is central because it teaches the core idea behind quantum behavior:
- probabilities come from amplitudes, and amplitudes can interfere.
Intuition
On the Bloch sphere:
- the Z-basis states and are the north and south poles (+ and −).
- the X-basis states are These lie on the equator at + and −.
The Hadamard gate maps poles to equator points:
So H is a geometric “tilt” that changes which basis looks like “up/down.”
One more crucial intuition:
- Applying H twice gets you back to where you started.
So H is its own inverse. That “do it again to undo it” property makes H a natural tool for creating and then later removing superposition.
Formal Description
Action on basis states
The defining behavior is
This already tells you what H does to any superposition by linearity.
Matrix form (with meaning)
In the computational basis, H is represented by
Let’s interpret the entries rather than “dumping a matrix”:
- The factor keeps the output normalized.
- The first column describes what happens to .
- The second column describes what happens to .
You can check this by multiplying:
- gives the first column:
- gives the second column:
A key identity (stated conceptually) is:
Meaning: applying H twice returns the original state.
Worked Example
Start with .
- Apply H:
Geometrically: north pole (+) moves to + on the equator.
- Apply H again:
So H both creates and undoes superposition.
Interpretation:
- H is a basis change between the Z and X viewpoints.
- “Superposition” is not mystical; it is often just “a basis state in a different basis.”
Turtle Tip
If you ever feel lost, translate H into one sentence: H converts ‘definitely 0/1 in Z’ into ‘definitely +/− in X’, and vice versa.
Common Pitfalls
- Don’t say “H makes a random bit.” H makes a deterministic state with two amplitudes; randomness appears only after measurement.
- Don’t forget that and are as “definite” as and —just in a different basis.
Quick Check
- What are and ?
- What does mean in plain language?
What’s Next
H makes superposition and changes basis. Next we study gates that mainly change phase rather than probabilities: the phase gates S and T, which rotate around the axis by smaller angles than Z.
