Calculates the optimal number of iterations for Grover's algorithm.
This is a convenience wrapper around QAA's theoretical optimal calculation. For more accurate results with custom state preparations, use findOptimalIterations directly.
findOptimalIterations
Total number of states (2^numQubits)
Number of marked states
Optimal number of iterations
Calculates the optimal number of iterations for Grover's algorithm.
This is a convenience wrapper around QAA's theoretical optimal calculation. For more accurate results with custom state preparations, use
findOptimalIterations
directly.