06Stage 2 · 3/3FoundationsBeginner8 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 −.

04 · PREDICT

Predict before you measure

Choose one answer to unlock the measurement.

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

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.