Qiskit, Quantum Computing, Grovers Algorithm, Quantum Algorithms, Algorithms.
It’s a more complicated command — the first argument is a list of all the bits in the Query, generated using Python’s list(range()) command, which simply gives us a list [0,1,2..,n-2,n-1]. Conveniently, it doesn’t include the nth qubit, our Auxiliary. Instead, we’ll set the Auxiliary to be our