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.