/ quantum course Back to lab
PATHWAY PROGRESS0/27 passed

01 / Foundations · LESSON 2 / 27 · 10 MIN

The sign you cannot see.

Tell phase apart from probability and watch interference at work.

Identical bars, different states

|+⟩ = (|0⟩ + |1⟩)/√2 and |−⟩ = (|0⟩ − |1⟩)/√2 each give 50/50 when measured in the computational basis; only the relative sign differs. Z turns |+⟩ into |−⟩ while leaving those immediate probabilities untouched.

Interference exposes the phase

H maps |+⟩ to |0⟩ and |−⟩ to |1⟩. In an H-H sequence the routes into 1 cancel, while in H-Z-H the routes into 0 cancel. A gate first adds amplitudes together; squaring to get probabilities comes only later.

Global phase versus relative phase

Multiplying all amplitudes by one common phase has no observable effect. Altering the phase of just one amplitude, however, can change what subsequent gates reveal.

LIVE EXPERIMENT / 1 OF 4

q0|0⟩HZH

Start in zero

Every qubit begins in |0⟩.

BasisAmplitudeProbability
|0⟩1.000100.0%

TEST YOURSELF

Lesson quiz

Get all 2 questions right to pass. Retry as often as you like.

0/2 answered

1. Apply Z to |+⟩. How do the immediate P(0) and P(1) change?
2. Starting from |0⟩, what is the result of H, then Z, then H?

Sign in with email or a wallet to check your answers and keep your lesson progress in sync.

Your account

Sign in to pick up your progress on any device.

or

Wallet sign-in uses a free signature (EIP-4361) on whatever EVM network your wallet is on. No gas, no transaction.