/ quantum course Back to lab
PATHWAY PROGRESS0/27 passed

05 / Algorithms · LESSON 10 / 27 · 15 MIN

Measuring in other bases.

Predict X-basis results and separate forecast from collapse.

Pick a basis

A computational-basis measurement projects onto |0⟩ or |1⟩, while an X-basis one projects onto |+⟩ or |−⟩. Putting H before a Z measurement gives an X-basis readout, since H maps |+⟩ to |0⟩ and |−⟩ to |1⟩.

Renormalizing after the outcome

Once an outcome is seen, drop the amplitudes that conflict with it and divide the remaining vector by the square root of that outcome's probability. This projection is not a reversible unitary gate.

Estimating from many shots

Preparing and measuring over and over estimates the Born distribution, with sampling uncertainty shrinking roughly as 1/√N. To halve the error you generally need around four times as many shots. Remeasuring a state that has already collapsed is not the same as preparing it again.

LIVE EXPERIMENT / 1 OF 4

q0|0⟩HHM

Initialize the register

Every qubit starts in zero.

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. What does an X-basis measurement of |+⟩ return?
2. How can you roughly halve the sampling error?

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.