Qiskit, Quantum Computing, Grovers Algorithm, Quantum Algorithms, Algorithms.
used an X Gate before each ‘0’ in the hidden bit string. We also added an X Gate after the MCX Gate, to make sure we return the qubit back to its original state afterwards. While we could ‘cheat’ by not returning the qubit back to its original state and using that information, a real Oracle might