Quantum and CircuitsReading edition

Reading the formal model literally

Reading tools
Reading libraryFind statementsInspect Lean
Switch work

Saved reading

Read side by side

Verification statements describe the retained edition and its recorded evidence. This HTML presentation adds no Lean execution or proof review.

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

Reading the formal model literally

QUANTIFIERS AND ENCODING CARRY THE HYPOTHESES The generic cut theory uses a logical-input type \(X\), a wire type \(W\) with decidable equality, and a boundary structure. Its essential fields are an encoding \(\mathrm{encode}:X\to\mathrm{Bool}\to(W\to\mathrm{Bool})\), a target wire, and the proof

\[ \mathrm{encode}(x,b)(\mathrm{target})=b. \]

This target equation separates the two target branches for each fixed input. It excludes an encoding that silently ignores its supplied target bit. The source proves Boundary.target_separated; it does not assume an injective encoding of every logical-input value as an additional hypothesis.

The restoration predicate is

\[ \forall x\,b,\quad \mathrm{run}(c)(\mathrm{encode}(x,b)) =\mathrm{encode}(x,b+f(x)). \]

It is a hypothesis of the conditional theorem. The code does not assert that every gate list realizes a restored oracle. The canonical encoding sets each input wire to its input bit, each ancillary wire to zero, and the target to \(b\). Its wire type is

Sum (Fin n) (Sum (Fin a) Unit)

which has exactly \(n+a+1\) wires.

In the generic C01 theorem, completeness is the existential statement

\[ f(x)=1\quad\Longleftrightarrow\quad\exists i:W,\ H_i(x)=1. \]

No finite disjunction is needed there. Specializing to the canonical finite wires yields the finite complete family used in the main paper. Completeness does not say that the XOR of all packets reconstructs \(f\); detecting packets can cancel under XOR. It states existence of a detecting coordinate at every positive input.

No clean-intermediate condition occurs in these predicates. Legal gates may temporarily alter inputs, dirty scratch and use the target as a control. The source examples exercise those allowances. Its compute/copy/uncompute AND example uses two Toffolis and is a restoration witness, whereas direct AND uses one Toffoli. Neither example is an unrestricted circuit-search result.

Source and conversion record

Source SHA-256: 36eb83548efd74b42264ab400e359c2de20c701b436b132b8b2859312d2dcdba

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