QuantumSimulator
Interactive Course
Interactive chapters from intuition to mastery
Structured Lessons
Eight modules with formulas and self-checks
Quantum Brain
Navigate lessons, laws, gates, devices, and tools
Guided Experiments
Hands-on circuits that teach one idea each
Circuit Lab
Build circuits, run them, and see the results
Gate Reference
Quick reference for all quantum gates
Cryostat Studio
3D cryostat design and simulation
Component Catalog
Browse all cryostat components
System Checks
Check your design for errors
Menu
physics
Interactive Course
Interactive chapters from intuition to mastery
Structured Lessons
Eight modules with formulas and self-checks
Quantum Brain
Navigate lessons, laws, gates, devices, and tools
Guided Experiments
Hands-on circuits that teach one idea each
simulator
Circuit Lab
Build circuits, run them, and see the results
Gate Reference
Quick reference for all quantum gates
wiringStudio
Cryostat Studio
3D cryostat design and simulation
Component Catalog
Browse all cryostat components
System Checks
Check your design for errors
Home/Quantum Physics/Lessons/Interference
▶

Interference

Watch a hidden phase change become visible

beginner1 qubit·~1 min
The question

Can a real change in the quantum state be invisible in the measurement probabilities?

Before you start

You will chain three gates on one qubit: H, then Z, then H again. The middle gate (Z) changes something called the relative phase, which is a property of the quantum state that does not show up directly when you measure. The final H gate converts that hidden change into a result you can see.

What you will see

After the first H, the qubit is in an equal superposition, and measuring would give 50/50. The Z gate then flips the sign of the ∣1⟩ branch. If you measured right now, you would still see 50/50 because sign does not affect probability directly. But the second H recombines the two branches, and the flipped sign causes destructive interference on the ∣0⟩ branch and constructive interference on the ∣1⟩ branch. The qubit ends up deterministically in ∣1⟩. A change that was invisible has become completely visible.

The circuit
Circuit
Open in simulator →
q0HZH
▶ Try it in the simulator
Step-by-step walkthrough
1

Apply Hadamard to qubit 0

H puts the qubit into superposition: (∣0⟩+∣1⟩)/2​. The Bloch sphere arrow moves to the equator, and the histogram shows equal weight on 0 and 1. This is the starting point for the interference experiment.

2​∣0⟩+∣1⟩​=∣+⟩
2

Apply Z to qubit 0

Z flips the sign of the ∣1⟩ component, changing the state from (∣0⟩+∣1⟩)/2​ to (∣0⟩−∣1⟩/2​. Look at the histogram: it has not changed. Both outcomes still show 50% probability. But the Bloch sphere arrow has rotated to point along −X. The state has genuinely changed even though probabilities look the same.

2​∣0⟩−∣1⟩​=∣−⟩
3

Apply Hadamard again

The second H converts the hidden phase difference into a visible outcome. The (∣0⟩−∣1⟩/2​ state maps to ∣1⟩ with certainty. The Bloch sphere arrow moves to the south pole. The histogram now shows 100% weight on ∣1⟩ and 0% on ∣0⟩. The invisible change has become completely visible through interference.

∣1⟩
What to notice
  • After the first H, the histogram shows a balanced 50/50 split.
  • After Z, the histogram looks exactly the same, but the Bloch sphere has rotated. The state changed even though probabilities did not.
  • After the second H, the qubit is deterministically in ∣1⟩. The hidden phase difference became a visible bit flip.
  • Compare this to applying H twice without Z in between: H-H returns the qubit to ∣0⟩, not ∣1⟩.
Tempting but wrong

It is tempting to think that if the measurement probabilities do not change, nothing happened. The Z gate is a real physical operation that changes the quantum state. Phase is invisible in one measurement basis but becomes visible when a later gate (the second H) converts it into probability differences.

Expected result

The qubit ends in ∣1⟩ with certainty. Every shot returns 1. This confirms that the Z gate's phase flip, although invisible after step 2, was converted into a deterministic outcome by the final Hadamard.

Connection to the theory

This experiment demonstrates the core idea of the Interference and Visible Phase lesson. That lesson explains how quantum amplitudes add (constructive interference) or cancel (destructive interference) depending on their relative phase. What you see here -- a hidden change becoming visible -- is the mechanism behind every quantum algorithm.

Read the full lesson →
Test your understanding

After H then Z, the measurement probabilities are still 50/50. Does this mean Z did nothing?

▶ Load in simulator↗ Griffiths and Schroeter, Introduction to Quantum Mechanics↗ MIT OCW 8.04: lecture notes
Previous
Superposition
Next
Bell State
← Back to all lessons