7
$\begingroup$

What is a "shot" in relation to quantum computing? I heard it is repeating time, but I don't understand it. Additionally, why is the default number of shots 1,024 in the IBM Q Experience?

One more question - I saw the sentence for each value of the shots, the experiment repeated 100 times. What is this mean? Is there difference between shots and repeated experiments? Are shot and experiment repetition same thing?

$\endgroup$
1
  • 2
    $\begingroup$ "why default shot is 1,024." where did you get this figure from? $\endgroup$
    – glS
    Commented Feb 13, 2020 at 23:10

3 Answers 3

7
$\begingroup$

Number of shots: Number of shots means how many times an algorithm is run to get a probability distribution of results.

Experiment is repeated: This means how many times an experiment is repeated with particular number of shots. Imagine, you repeated an experiment 100 times and you have 1,024 shots. In each experiement repetition some metrics is calculated based on probability distribution obtained from 1,024 shots (i.e. an algorithm repetitions). The metrics can be, for example expected value or any other metrics based on the results. Hence you have 100 values of the metric and you can do some statistics on them.

Overall, number of shots and experiment repetitions mean different things.

Default number of shots: IBM Q allows you to set different number of shots. Default value 1,024 is an arbitrary decision. There is no physical/technical reason for that value.

$\endgroup$
8
  • $\begingroup$ I don't understand this answer. When you say "some measure is calculated," do you mean "some measurement is performed"? I.e. ideally you end up with probability distributions for 100 different observable quantities, all corresponding to the same quantum state (in principle, neglecting noise)? I don't understand exactly what is changing between experiments. Also, "deliberate" means "carefully chosen for a good reason." Do you instead mean to say "arbitrary", which is the opposite ("chosen for no good reason")? $\endgroup$
    – tparker
    Commented Feb 11, 2020 at 12:53
  • $\begingroup$ I corrected my answer, hope now it is more understandable. Measure - this means some metric or value, for example expected value, you can calculate based on the results. Nothing is changing between experiments, sometimes you have to repeat the experiment many times to get enough values for calculating some statistics. Deliberate - yes, you are right, I meant "arbitrary". $\endgroup$ Commented Feb 11, 2020 at 14:12
  • 4
    $\begingroup$ If nothing is changing between experiments, then it sounds to me like you're just performing $100 \times 1024 = 102400$ identical experimental runs, and then arbitrarily choosing to bucket those runs into 100 different identical "experiments." Couldn't you take the exact same data set of 102400 different measured values and decide (after the fact) that that actually represents 400 different experiments of 256 shots each? $\endgroup$
    – tparker
    Commented Feb 11, 2020 at 15:33
  • 1
    $\begingroup$ Of course I understand the importance of running the algorithm many times in order to get statistics on the distribution. But respectfully, I believe you are missing the point of this question. If each "experiment" is identical and consists of 1024 (procedurally) identical "shots", then how is this any different from one "experiment" that consists of 102400 "shots"? In either case, you're performing the exact same experimental procedure 102400 times, and yet end up with 102400 different data points to perform statistics on. You've just chosen to bin them in an arbitrary way. $\endgroup$
    – tparker
    Commented Feb 11, 2020 at 16:30
  • 1
    $\begingroup$ Yes, you are right. But currently the problem is that IBM Q (I do not know how other quantum computers) allows to use at maximum 8,192 shots. So you have to repeat an experiment many times to get enough data. $\endgroup$ Commented Feb 14, 2020 at 5:30
5
$\begingroup$

"A shot is a single execution of a quantum algorithm on a QPU. For example, a shot is a single pass through each stage of a complete quantum circuit on a gate-based QPU"

From https://aws.amazon.com/braket/pricing/

It seems that the definition of a shot becomes very important when money is involved. :)

$\endgroup$
2
$\begingroup$

Shots are implementations of identical experiments that have same algorithm and same parameters (initial states). However, we can repeat experiments with different parameters while we keep number of shots the same for each experiment.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.