Superposition Across Two Qubits
With a single qubit the Hadamard gate creates two equal possibilities; with two qubits we can reach four at once. This lesson shows how independent Hadamard gates expand a two-qubit register into a uniform superposition of all four basis states.
Starting from
A two-qubit register initialised to has state vector in the ordering (qubit 0 is the most significant bit). Applying to qubit 0 alone gives the product state
Now apply to qubit 1:
Expanding the tensor product gives
Each of the four basis states carries amplitude , so the Born-rule probability for each outcome is .
Why use two independent Hadamards?
Because the two qubits do not interact — there is no entanglement here — the operation decomposes as . In circuit notation this is simply a Hadamard on qubit 0 followed (or preceded, since they commute) by a Hadamard on qubit 1. The order does not matter because single-qubit gates on different qubits always commute — this is a consequence of the tensor-product structure of the operators, independent of the entanglement of the state.
Try it
Apply a Hadamard gate to each qubit so the register ends in the uniform superposition . The grader checks the full statevector, so every amplitude must be correct.
After running, inspect the amplitudes tab: all four entries should read , and the probabilities tab should show four equal bars at each.
Sign in on the full site to ask questions and join the discussion.