Unstructured quantum search algorithm for unknown solutions
This code was tested on IBM’s 5-Qubit processor as an implementation of Grover’s search algorithm, but for an unknown number of solutions. This code is based on Arthur Pittenger’s book, “An Introduction to Quantum Computing Algorithms” and the mathematical structure was posted as a proof-verification question here. h q[0]; h q[1]; x q[2]; s q[0]; … Read more