Alphabeta Math
LemmaStatement: AI-adaptedProof: AI-generatedPipeline-generatedprecheck pass
How statement and proof provenance work

The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.

  • Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
  • AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
  • AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.

These labels describe origin, not correctness: citations and verification chips remain separate evidence.

Boolean circuits compile exactly into the QC14 gate alphabet

Statement

Let a finite Boolean DAG in the basis of Boolean circuits: basis, fan-in, size, and depth have n ordered input bits, m ordered output ports, S non-input nodes and E input-port uses counted with multiplicity. There is a deterministic compiler which, from its explicit topological list, emits a valid QC14 circuit over exactly H,T,T†,CNOT with the first n wires as data, m zero-initialized target wires, at most S+E clean value wires and one additional clean scratch wire. For every x∈{0,1}n and y∈{0,1}m, its unitary satisfies

∣x,y,0S+E+1⟩⟼∣x,y⊕f(x),0S+E+1⟩,

where f(x) is the ordered Boolean output. It uses at most 27(6S+4E+m) QC14 gate occurrences, and the full self-delimiting circuit list is produced in time polynomial in the Boolean-DAG description length. The same action holds on superpositions by linearity.

Facts & Assumptions

Given: The explicit Boolean DAG, the reversible embedding procedure, and the exact QC14 gate matrices. Construct the full gate list and verify its action, clean workspace, and polynomial generation cost.

[F1]

Reversible embedding of a Boolean circuit: evaluate every Boolean node into a fresh zero value bit, copy the ordered output ports into the target, and reverse the node-evaluation list.

[F2]

Gate, workspace, and serial-depth costs of reversible embedding: the reversible embedding implements the displayed XOR action using at most 6S+4E+m occurrences of X, CNOT, and Toffoli, with at most S+E clean work bits.

[F3]

Clifford+T gate library and exact matrices: T=diag⁡(1,ω), ω=eiπ/4, T4=Z, H=2−1/2(111−1), and CNOT maps ∣a,b⟩ to ∣a,b⊕a⟩ with the first wire as control; the QC14 circuit alphabet contains no implicit Toffoli or extra controlled-T gate.

[F4]

Finite circuit syntax and ordered wire labels and Denotational semantics of a finite layered circuit: a circuit is a finite chronological list of layers, each containing gates with pairwise disjoint wire supports. Any chronological gate list defines such a circuit by placing each gate in its own singleton layer; its matrix is the chronological product with later gates on the left.

[F5]

Full-list uniform quantum circuit family: a full-list QC14 description has unary input and total-wire counts, a self-delimiting gate count, exact gate labels and wire indices, and an ordered output tuple.

Proof

1.1givenF3algebra

For a,b,c∈{0,1} set d=a+b+c−(a⊕b)−(a⊕c)−(b⊕c)+(a⊕b⊕c), with ordinary integer addition and subtraction. If exactly k of a,b,c equal 1, then d=0 for k=0,1,2 and d=4 for k=3. Thus d=4abc.

2.1givenF3step 1.1constructalgebra

Use one clean scratch bit r. Apply T to each of the three data bits. For each of the three pair parities, compute that XOR into r with two CNOTs, apply T† to r, and undo the same two CNOTs. Compute a⊕b⊕c into r with three CNOTs, apply T, and undo those three CNOTs. Each parity routine restores r to zero and leaves the data bits unchanged. The total phase on ∣a,b,c⟩ is ωd=(−1)abc, so this circuit is CCZ; it uses seven T or T† gates and eighteen CNOTs.

3.1F3step 2.1algebra

Conjugate this CCZ circuit by H on the third data wire. If ab=0, CCZ is the identity on that wire; if ab=1, it applies Z=T4, and direct multiplication of the displayed matrices gives HZH=X. The result is therefore ∣a,b,c⟩↦∣a,b,c⊕ab⟩, the Toffoli action. The scratch wire is still zero, and the replacement uses 2+7+18=27 QC14 gates.

4.1F2F3step 3.1algebra

Replace each X in the reversible embedding by HT4H, which equals X because T4=Z and HZH=X; this uses six QC14 gates. Leave each CNOT unchanged and replace each Toffoli by step 3.1.

5.1F2F3step 4.1algebra

By [F2], the original macro list has at most 6S+4E+m occurrences. Each macro replacement has the same action on its data wires, returns the added scratch to zero, and uses at most 27 gates, so the compiled list has at most 27(6S+4E+m) gates and at most S+E+1 clean work wires. The exact matrix identity on every computational-basis input extends by linearity to superpositions.

6.1F1F4F5step 5.1construct∎

Traverse the explicit topological DAG once to produce the finite macro list of [F1], then replace each macro by its fixed gate sequence and fixed scratch-wire indices. Put each emitted gate in its own singleton layer, which satisfies the disjoint-support condition in [F4] and preserves the chronological product. Serialize this gate sequence using [F5], with the target wires as the ordered output tuple. The traversal and each replacement emit a constant number of records per node, port use, or output; every encoded wire index has O(log⁡(n+S+E+m+2)) bits. The unary wire header and all self-delimiting records consequently have polynomial total length and can be written in polynomial time. All gate-wire tuples have distinct entries, the input, target and work blocks are disjoint, and the output indices are distinct. Thus the singleton-layer circuit and its full-list code satisfy [F4]–[F5], with the action established in step 5.1.

Depends on

Used by

Dependency tree · two levels

34 results within two dependency steps of this one, each drawn at its shortest distance from it. An arrow runs from a result to what uses it, so the chart reads left to right and ends at this result, which carries a heavier outline. Every node is a link to that result. Click elsewhere on the chart to enlarge it.

Sources