QUANTUM COMPUTING / INTERACTIVE LAB

Explore a quantum circuit.

Read the explanation, make a prediction, then run the experiment.

Ideal browser simulation · no quantum hardware

Before you run the circuit

A classical bit has a value of 0 or 1. A qubit can be prepared so that measuring it in the standard basis gives either value with a calculable probability. The Hadamard gate takes a qubit prepared in 0 to a state that gives each result half the time over many runs. Two Hadamard gates in sequence return it to 0, because the amplitudes combine before measurement.

Build your first circuit
Editorial credits

Prepared by Half Echo Learn using official IBM Quantum Learning material. The exercise was developed for Half Echo.

Build your first circuit

Start at 0. Choose how many Hadamard gates to apply, then predict the result before you run it. Every shot starts with a fresh qubit.

With one gate, counts should usually be near 50 each. With zero or two gates, the ideal simulator always gives 0.

COMPUTING FOUNDATIONS · STEP 13 OF 13

Check what you learned

Answer both questions correctly to complete this step. You can revise your answers and retry.

1. For the ideal circuit starting in 0, what should two Hadamard gates produce when measured?
2. With one gate, must 100 shots always produce exactly 50 zeros and 50 ones?

Progress stays in this browser. It is not synced to an account or sent as analytics. Passing these introductory checks is not certification.

Return to Half Echo Learn