Pricing…Open Lab
Chapter 11 of 12 · ~35 min

Reading a Compilation Report

A compilation report is a record that lets anyone repeat the compile. It lists a fingerprint of the input, the compiler and target versions, the seed, the qubit mapping, and the numbers before and after. You can trust it when you can trace every added gate to a specific step and the arithmetic adds up. You can't check it when the mapping or the source details are missing.

What is a compilation report?

Why care? A compiler's output is only as trustworthy as the record that comes with it. If you can read that record, you can catch mistakes before they cost you a run.

A compilation report is the record a compiler writes next to the output circuit. Its job is to make the work repeatable. Another engineer with the report should be able to run the compile again and get the exact same output, bit for bit. They should also be able to check every claim in it.

An everyday example: a lab notebook in science class. You write down what you used, how much, and in what order, so a classmate can do the same experiment. Here the example breaks. A classmate's result will be a bit different each time. A compiler given the same inputs and seed should give exactly the same circuit every time.

The key fields are:

  • Input hash: a fingerprint, or checksum, of the exact logical circuit that was compiled. If the input changes by even one gate, the hash changes.
  • Compiler version and target version: which software was used, and which snapshot of the chip's wiring, native gates and calibration (measured error rates). Both change over time.
  • Seed: the starting value for any step that uses random choices. It makes those choices repeatable.
  • Initial and final mapping: which physical wire held each logical qubit at the start, and where each one ended up after routing.
  • Metrics: gate counts by type, depth (the number of time steps), two-qubit depth, and how many SWAPs were added, before and after.
  • Assumptions: the scoring formula, called the objective function, and any calibration values the choices relied on, with time stamps.

Numbers without these source details are just numbers. You can't tell whether "depth 6" is good, bad, or even real.

What the rest of this chapter covers
  1. Worked example: reconciling the gate counts
  2. What does the logical circuit give?INTERACTIVE
  3. What does the compiled line version give?INTERACTIVE
  4. What if you delete the SWAP block?INTERACTIVE
  5. Worked example: auditing depth and duration
  6. What can't you audit without the mapping?
Keep learning with Pro

You’ve read the opening of chapter 11. Pro unlocks the other 6 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
Reading a Compilation Report · QPU137