Quantum Lab

Hands-on thought experiments and code patterns to visualize quantum strangeness.

01

Experiment 1: The Quantum Coin (Superposition)

A classical coin is either Heads or Tails. A quantum coin (Qubit) spinning in the air is both.

Visualization

?

State: (|H⟩ + |T⟩) / √2

While spinning, it is in Superposition. It only "chooses" a state when it lands (Measurement).

02

Experiment 2: The "Hello World" of Quantum (Bell State)

Creating a Bell State demonstrates Entanglement. We will entangle two qubits so that measuring one immediately determines the state of the other.

Qiskit Code Pattern

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⟩
                        
← Back to Quantum Hub Review Terms →