Each quantum algorithm that is executed is repeated a number of times (the number of shots).
Measurement in quantum mechanics are non-deterministic. If the system consists of a single qubit in the state > then a measurement in the -basis results in a value 0 with probability and a value 1 with probability . It is therefore not possible to gain full information about a quantum system with a single measurement. Also physical systems have noise so our measurement result might be corrupted.
For example if we have the following quantum algorithm
and the algorithm is executed perfectly, the state of the system after the Hadamard gate would be
The outcome of a single measurement is either 0 or 1. When we perform the quantum algorithm with 20 shots, then a typical measurement outcome would be:
data=0,1,1,0,1,1,0,1,0,1,0,0,1,0,0,1,1,0,1,1