Hands-on thought experiments and code patterns to visualize quantum strangeness.
A classical coin is either Heads or Tails. A quantum coin (Qubit) spinning in the air is both.
State: (|H⟩ + |T⟩) / √2
While spinning, it is in Superposition. It only "chooses" a state when it lands (Measurement).
Creating a Bell State demonstrates Entanglement. We will entangle two qubits so that measuring one immediately determines the state of the other.
Run this python code to create entanglement yourself:
from qiskit import QuantumCircuit
# 1. Create a Quantum Circuit with 2 Qubits
qc = QuantumCircuit(2)
# 2. Put Qubit 0 into Superposition (H-gate)
qc.h(0)
# 3. Entangle Qubit 0 and Qubit 1 (CNOT-gate)
# This says: "If Qubit 0 acts, do the same to Qubit 1"
qc.cx(0, 1)
# Result: The qubits are now inseparable.
# |00⟩ + |11⟩