Qiskit, Quantum Computing, Grovers Algorithm, Quantum Algorithms, Algorithms.
After all that complicated stuff, dealing with the output is a relief. The Query has a high chance of being measured in the hidden bit string — we don’t need to do any more calculations with it. Let’s just add a measurement to each Query qubit. for i in range(n): circuit.measure(i,i) #measure all