The Quantum Stack: Four Layers
The quantum computing stack is a four-layer abstraction — algorithm → circuit → pulse → hardware — in which each layer translates the commands of the layer above into its own language.
What it means
Quantum computing is organized as a stack of four abstraction layers.At the algorithm layer, a qubit is treated as a perfect two-level mathematical object and the hardware is fully abstracted away.The circuit layer expresses the algorithm as a time-ordered sequence of gates (standard language: OpenQASM), where every gate is an ideal, error-free unitary matrix such as CZ = diag(1, 1, 1, −1).The pulse layer implements each gate as a nanosecond-scale analog control waveform — a fast entangling gate lasts roughly 40 ns, so about 2.5 million gates fit into a single 0.1-second blink of an eye.The hardware layer is the superconducting transmon chip itself, cooled to about 0.015 K, roughly 180 times colder than the 2.7 K cosmic microwave background.The arrows between layers mean 'is translated into': each layer converts the commands of the layer above into its own language.Layers therefore complement rather than compete — like sheet music and a performance, or fingers and piano keys.A gate looks digital from the circuit layer but is fully analog at the pulse layer; this apparent paradox is a difference in level of description, not a contradiction.Everyday analogy
Common misconceptions
- Claims that skip layers are the root of quantum hype — a headline like '1,000 qubits breaks RSA' ignores circuit, pulse, and hardware realities. Always ask which of the four layers a claim actually lives in.
- A circuit-layer gate is a perfect, error-free matrix only by abstraction contract — the pulse layer must keep that promise with an analog waveform, and how well it does so is what fidelity measures.
Key takeaways
- The stack has 4 layers — algorithm → circuit → pulse → hardware — and each arrow means 'is translated into'.
- A fast entangling gate lasts about 40 ns: roughly 2.5 million gates fit into one 0.1-second blink of an eye.
- The chip lives at about 0.015 K, roughly 180 times colder than the 2.7 K cosmic microwave background.
- Layers complement rather than compete: a gate is digital at the circuit layer and fully analog at the pulse layer.
Check your understanding
A startup claims: '1,000 qubits will break RSA encryption.' According to the four-layer stack view, what is the most important question to ask first?
- A.How many shots did they run?
- B.Which of the four layers does the claim address, and does it account for the others?
- C.What programming language did they use?
- D.How many employees does the startup have?
Show the answer
Answer: B. Which of the four layers does the claim address, and does it account for the others?
Why: Layer-skipping claims are the root of quantum hype: a qubit count is a hardware-layer number, and it says nothing about circuit depth, pulse fidelity, or error rates. Always locate a claim within the stack.
In the curry analogy, what does the 'wrist room' correspond to, and why does the shape of its motion matter?
- A.The algorithm layer — it decides what problem to solve
- B.The circuit layer — it fixes the order of the steps
- C.The pulse layer — the analog waveform's shape determines how faithfully the ideal gate is realized
- D.The hardware layer — it keeps the chip cold
Show the answer
Answer: C. The pulse layer — the analog waveform's shape determines how faithfully the ideal gate is realized
Why: The wrist room is the pulse layer: the same recipe line ('stir-fry') can succeed or fail depending on the wrist motion, just as the same CZ gate can reach high or low fidelity depending on the pulse waveform's shape.
Builds on
Primary source: Krantz et al., A Quantum Engineer's Guide to Superconducting Qubits, Appl. Phys. Rev. 6, 021318 (2019), doi:10.1063/1.5089550
Algorithm/circuit/pulse/hardware abstraction layering per Krantz review; numbers (40 ns gates, ~15 mK) standard.
Learn it hands-on
This concept is part of a 46-level curriculum with an interactive simulator and Lumen, a tutor whose answers are verified before you see them. Levels 1–5 are free.
