Level 2
Quantum Circuits
A quantum circuit is a time-ordered recipe of qubit declarations, gates, and measurements.
Visualize
Each wire is a qubit; each gate is an operation along the timeline.
Level 2
A quantum circuit is a time-ordered recipe of qubit declarations, gates, and measurements.
Each wire is a qubit; each gate is an operation along the timeline.
The DSL mirrors the circuit: declare qubits, apply gates, measure.
Circuit diagrams make abstract state changes debuggable and shareable.
A longer circuit is not automatically better; it can add complexity without insight.
Start with Bell, then remove CX to see correlation disappear.
# Bell qubits 2 H 0 CX 0 1 MEASURE 0 MEASURE 1
What does MEASURE 0 do?