Given an
To make a guess at
Thus, if
Let's start by completing the function below, which implements Grover search for a given secret combination and number of Grover steps. The oracle, Hadamard transform and diffusion operator are provided as oracle(combo)
, hadamard_transform(my_wires)
, and diffusion(n_bits)
.
Note. The inner circuit is required since we are going to be changing the number of qubits, which is implicitly specified by the length of the secret combination.
To interact with codercises, please switch to a larger screen size.
Learning Objectives: