Qiskit, Quantum Computing, Grovers Algorithm, Quantum Algorithms, Algorithms.
that Qiskit reads its qubits from bottom-to-top, so you’ll have to flip the result! simulator = qiskit.Aer.get_backend('qasm_simulator') #fetch sim job = qiskit.execute(circuit,simulator,shots=1024) #run circuit 1024 #times, to get probability distribution results = job.result() measurements =