Pricing…Open Lab
Chapter 13 of 13 · ~30 min

Circuit Capstone

The capstone runs the whole course loop on one five-qubit circuit. Build it. Work out its width, gate counts and depth by hand. Write down a prediction with numbers. Run it with a fixed seed. Then break exactly one step and find the first wrong state. A circuit is finished when someone else can repeat that full record, not when the histogram just looks right.

What does the capstone ask you to do?

Everything in this course fits into one loop. You run it on one five-qubit circuit you can share:

  • Build a five-qubit GHZ circuit (from Building GHZ States).
  • Analyse it before running: width, gate count, two-qubit count, depth, and two-qubit depth (from Circuit Depth).
  • Predict the measurement result with numbers, in writing, before you run it.
  • Run it with a fixed seed and a fixed shot count. A seed is the starting number for the random draws, so the same seed gives the same samples every time. Then compare with your prediction.
  • Break one thing on purpose. Then find the first wrong state, like a debugger would (from Debugging Quantum Circuits).
  • Report the whole record so someone else can repeat it.

The order is on purpose. A prediction written after you see the results can never prove your thinking wrong. A prediction written before can. And being proved wrong is where the learning happens.

It is like a science fair project. You write your guess before the experiment, not after. Unlike most science fair projects, this one gives an exact answer to check against, because the simulator has no noise.

What the rest of this chapter covers
  1. Worked example: how do I compute the metrics by hand?
  2. Worked example: what is the prediction, with numbers?
  3. Run it: the capstone circuitINTERACTIVE
  4. Compare: what does the broken version do?INTERACTIVE
  5. How do I find the first wrong state?
  6. Try this: can a different gate repair the chain?INTERACTIVE
  7. What goes in the shareable report?
Keep learning with Pro

You’ve read the opening of chapter 13. Pro unlocks the other 7 sections — plus every chapter of every course, with circuits you can run right on the page. That’s $11.99 a month, about the price of a coffee, or $99.99 a year (save 30%). The first chapter of every course, and the whole math course, stay free.

Start learning with ProSee plansRead chapter 1 free
Circuit Capstone · QPU137