05 / Algorithms · LESSON 10 / 27 · 15 MIN
Measuring in other bases.
Predict X-basis results and separate forecast from collapse.
X-basis readout: |ψ⟩ ─ H ─ M(Z)
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
Initialize the register
Every qubit starts in zero.
TEST YOURSELF
Lesson quiz
Get all 2 questions right to pass. Retry as often as you like.
0/2 answered
Sign in with email or a wallet to check your answers and keep your lesson progress in sync.