1
$\begingroup$

In qiskit,i use get_statevector method to get the statevector from my circuit. What i want to know is how many times the circuit need to run. Does is it only one? Thanks!!!

$\endgroup$

1 Answer 1

0
$\begingroup$

It depends on whether you are simulating an ideal circuit or a noisy circuit. For ideal circuits, the number of shots shouldn't have any effect on the result.

On the other hand, the number of shots affects the result of simulating noisy circuits. According to the official documentation:

For noisy simulations each shot samples a randomly sampled noisy circuit from the noise model.

$\endgroup$
1
  • $\begingroup$ So, for noisy circuits, does the computation run in the back for $\big($ shots $\times 2^n \big)$ times? $\endgroup$
    – FDGod
    Oct 29 at 22:22

Your Answer

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

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