Quantum and CircuitsReading edition

The invariant handles duplicates, NOT, and CNOT

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 invariant handles duplicates, NOT, and CNOT

Suppose a gate toggles target \(u\) by a product of \(c\) controls. In a product list \(L\) that contains \(u\), remove all occurrences of \(u\) to obtain \(R\). Boolean idempotence leaves one updated target factor, and

\[ \prod_{i\in L}s_i'= s_u\prod_{i\in R}s_i+ \left(\prod_{j\in\mathrm{controls}}s_j\right)\prod_{i\in R}s_i. \]

The old invariant bounds these terms by \(t+1+|R|\) and \(t+c+|R|\). Since \(|R|+1\le |L|\), the budget rises by at most \(\max\{c-1,0\}\).

Degree budget for primitive gates
Gate\(c\)toggle expressionextra budget
NOT010
CNOT1one control0
Toffoli2two controls1

If the target is absent from \(L\), the product is unchanged. An empty list is the constant-one product. Repeated target indices are removed using idempotence; repeated other indices can only reduce multilinear degree. Controls already appearing in \(R\) also cause no difficulty.

For general XOR–AND computations, the written proof introduces a Boolean variable for each AND output. Every wire is affine in inputs and preceding gate variables. Substitute those variables in reverse topological order. A squarefree monomial contains each substituted variable at most once, so replacing it by a quadratic raises degree by at most one. After \(t\) substitutions, the affine output has degree at most \(t+1\).

These are two precise proof routes. The general syntax argument is written; the maintained NCT register argument is in Lean. The formalization does not assert a separate arbitrary XOR–AND compiler or a canonical ANF algorithm.

Source and conversion record

Source SHA-256: 488075fae27e7db2e4bcee68c08f93b659a12536c807e5e419d6e8e166317763

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