Qiskit, Quantum Computing, Grovers Algorithm, Quantum Algorithms, Algorithms.
not function the same way — so going that way won’t help you. Let’s add all this to our Oracle function, then. First, we’ll loop through the hidden bit string, checking if it’s a ‘0’. If it is, then we’ll add an X to the corresponding Query qubit. After we’ve finished, we’ll slot in our MCX Gate.