Skip to main content

12.9b Grover labs

Source: Lab ideas from Computational Physics (Landau, Páez, Bordeianu), §12.9. Pure Python. Continues 12.9.

Explorer​

Formula refresh​

Warm up: pick the matching equation among lookalikes (same walk as the theory lesson).

Activity: Qubit count

For N=16N=16 items, print n=log⁡2Nn=\log_2 N.

No input.

Write-ups​

0/3 solved
12.9b.W1

Using “oracle”, “phase”, and “mark”, explain:

What does Grover’s oracle do to the marked basis state?

Minimum 3 words. Your answer must include: “oracle”, “phase”, “mark”.

0 words/ 3 min

Meet the writing requirements, then you can open the model answer.

Next: 12.10 Shor factoring.