You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example, if there are $n=7$ bits (so $N=2^7 = 128$) and there are $s = 19$ marked items, then the two expressions give a number of iterations that differ by one, and the second number of iterations (which is optimal) succeeds with a probability slightly larger than the first: about 85.9% versus 84.3%.
Suggested solutions
Use the second formula.
The text was updated successfully, but these errors were encountered:
In the tutorial Grover's algorithm using the Sampler primitive the number of iterations claimed to be optimal for Grover's algorithm is this number:
where$N = 2^n$ and $s$ is the number of marked items.
This number is usually optimal but not always — the number should be this:
For example, if there are$n=7$ bits (so $N=2^7 = 128$ ) and there are $s = 19$ marked items, then the two expressions give a number of iterations that differ by one, and the second number of iterations (which is optimal) succeeds with a probability slightly larger than the first: about 85.9% versus 84.3%.
Suggested solutions
Use the second formula.
The text was updated successfully, but these errors were encountered: