Quantum and CircuitsReading edition

Architecture of a symmetry-collapse compiler

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

Algorithms and open directions

7.1 Architecture of a symmetry-collapse compiler

7.1.1 The five-stage pipeline

A practical compiler must perform more than symbolic block diagonalization.

  1. Detect exact or approximate symmetries.

  2. Construct an invariant basis, orbit quotient, or compact internal representation.

  3. Compile each gate into that representation.

  4. Track leakage, truncation, and numerical error.

  5. Evaluate the requested measurement and emit a complexity certificate.

A symmetry-collapse compiler and its required certificate.
Figure 7.1. A symmetry-collapse compiler and its required certificate.

View full-size figure (new tab)

7.1.2 Symmetry detection

Detection may use declared conserved quantities, commutators, finite-group generators, graph automorphisms, stabilizer relations, occupation conservation, or numerical approximate symmetries. Exact symbolic detection is preferable when available. Numerical detection must specify tolerances and how they propagate.

7.1.3 Basis construction

Examples include:

  • subset indexing for fixed weight,

  • occupation vectors for bosons,

  • Dicke states for full permutation symmetry,

  • Schur coordinates for broader permutation symmetry,

  • orbit states for graph walks,

  • stabilizer tableaux,

  • fermionic or bosonic covariance matrices,

  • matrix-product states for bounded entanglement.

The compiler should avoid materializing an exponentially large change-of-basis matrix. It needs direct indexing and update formulas.

7.1.4 Gate plan caching

For a repeated circuit family, compile a packet plan containing affected index pairs, sparse matrix blocks, phase tables, and quotient couplings. The plan can be reused across parameter values when the sparsity pattern is fixed.

7.1.5 Fallback and adaptive enlargement

If a gate leaks from the current representation, the compiler can reject the reduction, merge packets, add neighboring sectors, or switch internal representations. The choice must preserve a certified error budget.

7.1.6 Output certificate

A useful machine-readable certificate should include:

  • the symmetry or invariant-subspace proof,

  • active dimensions or representation sizes,

  • gate update complexity,

  • leakage or approximation bounds,

  • measurement complexity,

  • benchmark and hardware metadata,

  • the final complexity conclusion and its scope.

Source and conversion record

Source SHA-256: ebaee84823d3aaef001d43588d779e3f10d7336de3194c466e8e8121bfb460f1

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