06Stage 2Beginner8 min

Gate order matters

Apply H and Z in opposite orders and reveal the difference in the X basis.

Back to learning pathPhase, bases, and gate order
1 Qubit3 · Circuit story

Why this experiment matters

What you will do

See that quantum gates are operations whose order can change the final state.

  1. 01

    Prepare the qubit in |0⟩.

  2. 02

    Choose H → Z or Z → H.

  3. 03

    Measure in the X basis and compare + and −.

Predict before you measure

Choose one answer to unlock the measurement.

Gate sequence0Measurements500×
Which result will be most likely at the current setting?Prediction options

INTERACTIVE

Interactive model

Move the control, then run a measurement. This is a teaching simulation—not hardware output.

Simulated locally
Circuit story
HZZ/X checks
Predict before you measure

Choose one answer to unlock the measurement.

Predict before you measure

Measurement results

Make a prediction, then run the measurement to reveal the expected and sampled results.

06 · CHECK

Check what you learned

Measurement results

Make a prediction, then run the measurement to reveal the expected and sampled results.