12.5b Cirq and adder labs
Source: Lab ideas from Computational Physics (Landau, Páez, Bordeianu), §12.5–12.5.1. Pure-Python locks (no Cirq in the sandbox). Continues 12.5.
Explorer
Simulate what Cirq would print: amplitudes and bit flips.
Gate math (CodeExercise)
Formula refresh
Warm up: pick the matching equation among lookalikes (same walk as the theory lesson).
Activity:
Print both amplitudes of space-separated with 10 decimals.
No input.
Classical NOR check (NodeLab)
warm-up before quantum adders.
Write-ups
Using “hadamard”, “identity”, and “twice”, explain:
Why do two successive Hadamard gates act as the identity on a computational-basis state?
Minimum 3 words. Your answer must include: “hadamard”, “identity”, “twice”.
0 words
Meet the writing requirements, then you can open the model answer.
Next: 12.6 IBM Quantum.