The Hadamard Gate on Zero and One

Follow how the Hadamard gate sends the two computational basis states to their normalized sum and difference.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Trace a basis input
  2. Keep linearity in the trace

The action is \(H\lvert0\rangle=(\lvert0\rangle+\lvert1\rangle)/\sqrt2\) and \(H\lvert1\rangle=(\lvert0\rangle-\lvert1\rangle)/\sqrt2\).

Trace a basis input

Starting from \(\lvert1\rangle\), the output probabilities in the computational basis are both one half, even though the amplitudes have opposite signs. See squared magnitudes.

Keep linearity in the trace

To apply the gate to a sum of states, use its action on both basis terms and then add the weighted results. Matrix–vector products implement that calculation.[1][2]

References

  1. John Watrous, The Theory of Quantum Information ↩
  2. John Watrous, IBM Quantum Learning: Basics of Quantum Information ↩