PricingOpen Lab
Chapter 10 of 12 · ~35 min

When Fewer Gates Is Not the Whole Story

Total gate count is a single number that hides gate type, parallelism, duration, and error rates, so the candidate with the fewest gates can lose on estimated fidelity or runtime. Choosing between compiled circuits requires an explicit objective function — and different reasonable objectives rank the same candidates differently.

Why isn't gate count enough?

Gate count compresses a whole circuit into one number, and the compression throws away what matters. Gates are not interchangeable: on typical superconducting hardware a two-qubit gate takes roughly ten times longer than a one-qubit gate and fails roughly ten times more often. A count that adds a 30-nanosecond, 0.05%-error gate and a 300-nanosecond, 1%-error gate as "1 + 1" is measuring with a broken ruler.

An objective function is the explicit formula a compiler uses to score candidates — for example "minimize two-qubit gate count", or "maximize the product of per-gate success probabilities". Writing the objective down is not bureaucracy: as this lesson shows with arithmetic, changing the objective changes which candidate wins.

Continue this chapter

You’ve read the opening of chapter 106 more sections follow, with worked examples and circuits you can run on the page. A free account unlocks every chapter of every course (paid plans aren’t live yet — early readers get everything free).

Create a free accountAll chaptersStart with the free chapters
When Fewer Gates Is Not the Whole Story · QPU137