Skip to main content

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: 1/21/\sqrt{2}

Print both amplitudes of H∣0⟩H|0\rangle space-separated with 10 decimals.

No input.

Classical NOR check (NodeLab)​

Y=A+B‾Y=\overline{A+B} warm-up before quantum adders.

Write-ups​

0/3 solved
12.5b.W1

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/ 3 min

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

Next: 12.6 IBM Quantum.