Behind every quantum programming framework sits a transpiler: a compiler pass that rewrites a circuit's convenient high-level gates (Toffoli, SWAP, CZ) into the small native gate set real hardware executes, then optimizes the result. This 2D simulator renders a 4-qubit circuit diagram — wires running left to right, gates as colored boxes and connectors, fully pannable and zoomable — and lets you flip on real decomposition rules (Toffoli → 15 H/T/T†/CNOT gates, SWAP → 3 CNOTs, CZ → H-CNOT-H) and a genuine peephole optimization pass that cancels adjacent gate pairs multiplying to the identity, re-scanning to a fixed point exactly like a real compiler. A live per-layer depth histogram and gate-type composition chart sit beneath the wiring diagram, while readouts track gate count, ASAP-scheduled circuit depth, and T-count — the metric that determines fault-tolerant cost — as you toggle each stage and switch between three preset circuits.