12.4b Logic gates labs
Source: Lab ideas from Computational Physics (Landau, Páez, Bordeianu), §12.4. Classical
NodeLabtruth-table checks + pure-Python unitary locks. Continues 12.4.
Explorer
Classical wiring (NodeLab)
Half-adder sum again (AND + OR + NAND path optional)
Build with XOR from the deck (or the AND/OR/NAND recipe from digital logic). Toggle inputs live; Check exhausts the truth table.
NOR as “neither”
— drag NOR, wire both inputs.
Wire Bell again (schema-style)
Field-to-field: |00⟩ → H → CNOT → |β₀₀⟩. Same wiring checker as schema design.
Quantum unitaries (CodeExercise)
Pure Python. No Cirq / Qiskit in the sandbox.
Formula refresh
Warm up: pick the matching equation among lookalikes (same walk as the theory lesson).
Print the top-left entry of the Hadamard matrix with 10 decimals.
No input.
Write-ups
Using “half”, “adder”, “xor”, and “and”, explain:
Which classical gates implement a half-adder’s sum and carry?
Minimum 3 words. Your answer must include: “half”, “adder”, “xor”, “and”.
Meet the writing requirements, then you can open the model answer.
Next: 12.5 Cirq / QC programming.