Toy models in Qiskit: Grover's algorithm with unknown number of solutions and arbitrary number of qubits
This python program finds one solution (among an unknown number of solutions
It's a toy model, so the oracle is simple and marks only the state
e.g. if n = 10 (i.e.
found some solution: 0000000000
in 52 loops
on average, should be O(32.0)
In the program, each measure is done 1 time (i.e. shots=1)