Level 1, Curious

Shot

The eight cells are eight shots, and each cell holds a bit. This drawing has five 1s, which sits near a chance of 0.64 and is still a short pile.

A shot is one run of a circuit that ends in a measurement, and the run returns bits rather than the amplitudes that set the chances. Experiments repeat the shot because one bit is a weak estimate of a chance, and the pile of bits is what gets compared with the squares.

A handful of shots still wobbles around the true chances. The pile settles as it grows, which is the picture worth showing, and a single dramatic click is a poor stand-in for it.

An example

Take a circuit that leaves 0.6 for 0 and 0.8 for 1, so the chance of a 1 is 0.64. Each shot starts from a fresh qubit, runs the gates and prints one bit.

Run 8 shots and you might see five 1s. For the usual wobble in the count, multiply the shots by the chance of a 1 and by the chance of a 0, then take the square root. For 8 shots that is the square root of 8 × 0.64 × 0.36, about 1.4. Four, five or six 1s are all ordinary, and together they turn up in about 73 batches out of 100.

Run 100 shots. Expect about 64 ones, with a wobble of the square root of 23.04, which is 4.8. About three batches in four land between 59 and 69, and about 97 in 100 land between 54 and 74.

Run 10,000 shots. The wobble is 48, so the count sits near 6,400, give or take about 50. As a share that is 0.64, give or take about 0.005.

From 100 shots to 10,000 the count grows a hundred times but its wobble only ten, so the share gets ten times tighter. To halve the wobble in a share, take four times the shots.

What it is not

A shot is not a reading of the amplitudes. It prints one bit per wire, and the 0.6 and 0.8 show up only through their squares, as a share across many shots.

The wobble is not a fault in the machine, either. A perfect machine wobbles by the same amount, because each shot is a fresh toss. Hardware noise is a separate problem, and more shots only pin down the wrong share more precisely.

And you cannot get a second shot by reading the same qubit again. The first click replaced the amplitudes, so a repeat prints the same bit.

Each shot ends in a measurement, and the shares estimate probabilities. The run itself is a circuit, and the reason a repeat prints the same bit is collapse. The note Measurement replaces the amplitudes follows one shot through, and Which Outcome asks you to predict the pile.

Used in

All the words