Quantum and CircuitsReading edition

The exact computational atlas

Reading tools
Reading libraryFind statementsInspect Lean
Switch work

Saved reading

Read side by side

Start reading

Resources & source

Original TeX with line links · Download TeX

The wording and mathematics follow the retained manuscript. This reading format does not add a proof review or extend Lean coverage.

Skip contents and start reading

The computational atlas and open directions

12.1 The exact computational atlas

12.1.1 Purpose and design

The accompanying code is an audit-oriented finite mathematics package rather than a production compiler. Its goals are:

  1. exact state representations with no floating-point ambiguity;

  2. complete finite search where the state space is tractable;

  3. explicit witnesses and reconstructible paths;

  4. small, dependency-free core algorithms;

  5. frozen JSON results and regression tests;

  6. separation between proved, computed, and proposed claims.

The package is named catalytic_gate_atlas. Binary matrices are tuples of integer row bitmasks, and reversible Boolean maps are exact permutations of basis-state indices.

The finite certificate pipeline used throughout the computational atlas.
Figure 12.1. The finite certificate pipeline used throughout the computational atlas.

View full-size figure (new tab)

12.1.2 State models

12.1.2.1 Binary matrices

An \(m\times m\) matrix over \({\mathbb F}_2\) is stored as

\[ (r_0,\ldots,r_{m-1}), \]

where bit \(j\) of \(r_i\) is the \((i,j)\) entry. Matrix multiplication is exact XOR accumulation.

12.1.2.2 Symplectic Clifford states

An \(n\)-qubit Clifford modulo global phase and Pauli translation is represented by its action on Pauli exponent vectors

\[ (x\mid z)\in{\mathbb F}_2^{2n}. \]

The state space is \({\operatorname{Sp}}(2n,2)\). The restricted parabolic group is generated by \(S\), CZ, and CNOT; the ambient group additionally permits \(H\).

12.1.2.3 Classical reversible states

A reversible map on \(n\) bits is stored as a permutation of \(\{0,\ldots,2^n-1\}\). Composition is exact. The affine subgroup is generated by \(X\) and CNOT, and the ambient three-bit group adds Toffoli.

12.1.3 Shortest-path engines

The package implements:

  • breadth-first search for unit costs;

  • \(0\)–\(1\) breadth-first search when gates are free or unit cost;

  • Dijkstra search for general nonnegative integer weights;

  • parent maps for witness reconstruction;

  • defect distributions on a restricted target set.

Algorithm 12.1: Breadth-first defect census

Given restricted generators \(S_R\), ambient generators \(S_A\), and identity \(e\):

  1. compute \(d_R\) on \(\langle S_R\rangle\);

  2. compute \(d_A\) on \(\langle S_A\rangle\);

  3. for every restricted state \(x\), compare \(d_R(x)\) and \(d_A(x)\);

  4. record the pair \((d_R(x),d_A(x))\) and reconstruct witnesses for strict inequalities.

For a finite group this is complete because every vertex reachable from the identity is visited exactly once at its minimum distance.

12.1.4 Zero-cost gates

When local Clifford gates are free and entangling gates cost one, ordinary BFS is invalid. The package uses a deque-based \(0\)–\(1\) BFS. A zero-cost edge is pushed to the front and a unit-cost edge to the back. The resulting labels are exact shortest entangling costs.

A common error is to quotient by free gates without proving that the quotient preserves the target subset and all left/right actions. The atlas avoids this issue by running \(0\)–\(1\) BFS directly on the finite group for the reported small cases.

12.1.5 The optimized Clifford verifier

The three-qubit symplectic group has

\[ |{\operatorname{Sp}}(6,2)|=1{,}451{,}520 \]

states. A compact C++ implementation enumerates the full group and the parabolic subgroup exactly. It supports:

  • total primitive count;

  • total count with unit-cost SWAP;

  • entangling count with \(H\) and \(S\) free;

  • exact distance distributions and JSON output.

The C++ program and the independent Python implementation use the same gate matrices but different traversal code. Witness reconstruction is supplied by the Python implementation, not by the C++ census executable.

12.1.6 Computed Clifford census

Computed Clifford census by metric and SWAP convention
\(n\)MetricSWAP\(|P_n|\)\(|{\operatorname{Sp}}(2n,2)|\)DefectsMax defect
1totalno2600
1entanglingno2600
2totalno4872000
2entanglingno4872041
3totalno10,7521,451,520241
3totalyes10,7521,451,52000
3entanglingno10,7521,451,5201,6242

The detailed defect distributions are:

\[ \begin{array}{c|l} \text{model}&\text{restricted}\to\text{ambient pairs}\\ \hline n=2\text{ entangling}&3\to2:4\\ n=3\text{ total}&7\to6:6,\quad8\to7:18\\ n=3\text{ entangling}&3\to2:24,\ 4\to3:432,\ 5\to4:1056,\ 6\to4:48,\ 6\to5:64. \end{array} \]

Exact finite computation

Every entry in the table is a complete finite enumeration in the declared binary symplectic model. Phases and Pauli translations are not part of the state space. These are exact results for that quotient model, not full hardware Clifford optimizations.

12.1.7 Computed affine-versus-Toffoli census

For three bits:

\[ |\operatorname{AGL}(3,2)|=1344, \qquad |S_8|=40320. \]

The complete census finds no affine target with a strict defect under total primitive count or under entangling count with NOT free.

Computed affine-versus-Toffoli census
MetricRestricted sizeAmbient sizeRestricted diameterDefects
Total1,34440,32070
Entangling1,34440,32060

12.1.8 Linear symbolic checks

The Python module verifies that the displayed six-row ambient and restricted words produce the same canonical target modulo

\[ 2,3,5,8. \]

The lower bounds and ring universality are proved in the core chapter; these modular checks are regression tests rather than the logical basis of the theorem.

12.1.9 Witness format

A witness record contains:

  • the target matrix or permutation;

  • restricted and ambient costs;

  • a named restricted gate path;

  • a named ambient gate path;

  • the metric and gate alphabet;

  • the state-model convention.

For example, the two-qubit entangling Clifford witness has restricted path

\[ {\operatorname{CX}}_{0\to1},\ S_1,\ {\operatorname{CX}}_{1\to0},\ {\operatorname{CX}}_{0\to1} \]

and ambient path

\[ H_1,\ {\operatorname{CX}}_{1\to0},\ {\operatorname{CX}}_{0\to1},\ H_0,\ S_1,\ S_0. \]

Only two gates in the ambient path are charged by the entangling metric.

12.1.10 Certificates beyond full enumeration

For larger systems, the following certificate styles are supported in principle.

  1. Meet in the middle. Store forward and backward balls whose radii sum to the candidate length.

  2. SAT/SMT. Encode gate choices and endpoint equations; use an UNSAT certificate below the claimed optimum.

  3. Integer programming. Useful when a fixed gate skeleton leaves discrete routing choices.

  4. Algebraic elimination. Eliminate continuous gate parameters from bounded-length word equations.

  5. Dual potentials. Exhibit a one-Lipschitz potential attaining the claimed lower bound.

  6. Quotient search. Search cosets only after proving that the quotient is compatible with the cost and target class.

12.1.11 Multiobjective search

Let each gate have a vector cost in \({\mathbb N}^r\). At each state, retain only nondominated labels. The algorithm terminates for finite state spaces with a bounded search region, but the frontier can grow exponentially.

A practical exact strategy is to scalarize with several positive weight vectors, use the resulting optima to identify candidate Pareto points, and then certify each candidate by constrained search.

12.1.12 Reproducibility commands

From the code directory:

Python atlas commands.

python -m pip install -e . --no-build-isolation
python scripts/run_atlas.py --output ../results/atlas_small.json
python -m pytest tests

The optimized three-qubit verifier can be compiled by

C++ Clifford verifier.
g++ -O3 -std=c++20 scripts/clifford_census.cpp -o scripts/clifford_census
./scripts/clifford_census --n 3 --metric total --output ../results/clifford_n3_total.json
./scripts/clifford_census --n 3 --metric entangling --output ../results/clifford_n3_entangling.json

12.1.13 Validation policy

The release uses four layers of validation.

  1. Unit tests for matrix, permutation, and path primitives.

  2. Cross-checks of group sizes against known finite formulas.

  3. Independent Python and C++ computations for selected Clifford cases.

  4. Frozen JSON outputs and SHA-256 manifests in the release archive.

12.1.14 Scaling limits

Full group enumeration grows rapidly:

\[ |{\operatorname{Sp}}(2n,2)| =2^{n^2}\prod_{j=1}^n(4^j-1). \]

The four-qubit symplectic group is far beyond direct Python BFS. Future work should exploit:

  • double-coset normal forms,

  • Bruhat or parabolic decompositions,

  • admissible heuristics for A* search,

  • SAT encodings,

  • orbit reduction,

  • tensor-network representations,

  • distributed meet in the middle.

12.1.15 What the atlas does not prove

A finite census establishes only the declared finite model. It does not prove:

  • an asymptotic theorem without a separate proof,

  • a hardware advantage under a different cost,

  • robustness to approximation,

  • equivalence after adding ancillas,

  • a result for global phases or Pauli translations if they were quotiented out.

The status metadata in every result file is intended to make these boundaries machine readable.

Source and conversion record

Source SHA-256: 22629d44826f9a8ddfbcf801409aaf7974ed9dc899ff39ee67da0ed7fc4e6f60

Unsupported prose commands stop the build. The mathematical expression sequence is checked against the source, with manuscript macros expanded for display.

Conversion records

Notation in Quantum and Circuits

Look up a symbol without leaving this chapter. Select text before opening help to search for it.

Search this work’s notation.

    Symbols can have different meanings in different passages. Read each result in its own context.

    Open the full notation index