Home / Quantum from Scratch / Ep 12
Quantum circuit
What Is a Quantum Circuit? How to Read One
Go deeper
What I say in the video
This is what actually runs on a quantum computer — not code, not an app, this: a diagram made of lines and boxes.
Each line is a qubit, each box is an instruction — flip it, mix it, tangle it up with another qubit — and read left to right, you're watching a qubit's state get built one move at a time, like sheet music except the notes are physics.
This is called a quantum circuit, and here's the part that matters: every algorithm you already know from this series — Grover's, the ones running on Google's and IBM's machines right now — is just a longer version of this exact diagram.
So when a headline says "a quantum computer ran an algorithm," this picture is literally what got run.
Learn to read one of these, and you stop watching quantum computing from the outside.
In plain words
What actually runs on a quantum computer? Not an app, and not the code itself: a quantum circuit.
How to read a quantum circuit in this Short:
- Each horizontal line is a qubit.
- Each box is a gate, an instruction: flip it (X gate), mix it into superposition (Hadamard gate), or entangle it with another qubit (CNOT gate).
- Read left to right, like sheet music. You're watching the qubit's state get built one step at a time.
- Algorithms like Grover's search are written as longer versions of the same diagram, then compiled to the machine's native gates and run on gate-based hardware from IBM and Google.
Note: this is the gate-based model. Quantum annealers (D-Wave) solve optimisation problems without circuits.
What I simplified
Quick precision: this is gate-based quantum computing (IBM, Google). Quantum annealers like D-Wave don't run circuits; they solve optimisation problems a different way. That was Ep 9. Source for "read it like sheet music": IBM Quantum Learning, "Running quantum circuits".
Sources (6)
- IBM Quantum Learning, "Running quantum circuits"quantum.cloud.ibm.com
- IBM Quantum, Basics of Quantum Information, "Circuits"quantum.cloud.ibm.com
- Google Quantum AI, Cirq conceptsquantumai.google
- quantum.cloud.ibm.com
- quantum.cloud.ibm.com
- dwavequantum.com
One new quantum idea, every week
The next episode in your inbox, with its sources. Free, and one click to unsubscribe.