Alphabeta Math
LemmaStatement: Literature-sourcedProof: AI-adaptedPipeline-generated
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.

Linear Multicontrolled X with One Borrowed Wire

Statement

For every integer r≥1, an r-controlled X on r control wires and one target has an exact circuit of O(r) arbitrary one-qubit gates and CNOTs when one additional borrowed wire is available. The circuit equals Cr(X)⊗I on the entire register: the borrowed wire is returned unchanged for every state, including states entangled with the controls, target, or an external register. No wire is initialized or measured.

Facts & Assumptions

Given: Distinct wires, arbitrary one-qubit gates, exact CNOTs, and an additional wire with arbitrary initial state. Boolean addition is XOR, written ⊕, and multiplication is AND.

[F1]

Exact Controlled One-Qubit Unitary with Two CNOTs supplies an exact controlled one-qubit unitary with two CNOTs and four arbitrary one-qubit gates: its proof uses target gates A,B,C and one control phase gate.

[F2]

CNOT and Control-Target Order specifies (a,t)↦(a,t⊕a).

[F3]

Clean and dirty ancillas requires exact return of a borrowed wire.

[F4]

Denotational semantics of a finite layered circuit composes chronological gates in reverse matrix order.

[F5]

Finite circuit resource accounting counts gate occurrences.

[F6]

The computational basis is orthonormal gives a basis of all bit words; equality on it implies equality of linear maps.

Proof

1.1givenF1F2F4algebra

An exact Toffoli has constant cost. Let V=12((1+i)I+(1−i)X). The orthogonal projectors (I+X)/2,(I−X)/2 show V is unitary and V2=X. With controls a,b, apply chronologically Cb(V) to the target, CNOTa→b, Cb(V∗), CNOTa→b, and Ca(V). The bit b returns, and the target exponent is b−(b⊕a)+a=2ab, so its action is Xab. By [F1] the three controlled gates and two CNOTs cost at most eight CNOTs and twelve one-qubit gates. No relative phase is discarded.

2.1givenstep 1.1F2F4construct

First construct an s-controlled X with s−2 borrowed wires, for s≥3. Call the controls c1,…,cs, the borrowed bits a1,…,as−2, and the target t. Let T1 toggle a1 under c1,c2; for 2≤j≤s−2, let Tj toggle aj under cj+1,aj−1. Let Q toggle t under cs,as−2. Apply the list T1,…,Ts−2,Q,Ts−2,…,T1, followed by T2,…,Ts−2,Q,Ts−2,…,T2; for s=3 the second list is just Q. Each list restores every borrowed bit, since Q changes only t and the compute list is reversed afterward.

3.1step 2.1step 1.1F5algebrainduction

Let uj,vj be the values of aj immediately before Q in the first and second lists. Both lists begin with the same borrowed values. We have u1=a1⊕c1c2, v1=a1 and, for j≥2, uj=aj⊕cj+1uj−1, vj=aj⊕cj+1vj−1. Thus uj⊕vj=∏h=1j+1ch by induction. The two target toggles add to cs(us−2⊕vs−2)=∏h=1sch. Controls and borrowed bits are unchanged. The two lists contain (2s−3)+(2s−5)=4s−8 exact Toffolis. For s=2 use one Toffoli; for s=1 use one CNOT. This auxiliary construction therefore costs O(s) and uses at most max⁡{s−2,0} borrowed wires.

4.1givenstep 3.1constructalgebra

For r≥3, partition the controls into A,B of sizes p=⌈r/2⌉, q=⌊r/2⌋, and call the extra wire z. Put a=∏j∈Acj, b=∏j∈Bcj. Apply an A-controlled X into z, a (B∪{z})-controlled X into t, and repeat these two calls in that order. The first kind can borrow from B∪{t} because q+1≥p−2; the second can borrow from A because p≥q−1. Step 3.1 restores these temporary borrowed wires after each call, for their actual arbitrary values at that call. No wire beyond the original r+2 is used.

5.1step 4.1step 3.1step 1.1F2F3F5F6algebra∎

The four ideal calls send z to z⊕a and back, while toggling t by b(z⊕a)⊕bz=ab. Thus their action is precisely Cr(X) with z and every control returned. The two calls of each kind cost O(p)+O(q+1)=O(r). For r=1,2, use [F2] or step 1.1 and leave z untouched. Equality on every basis word extends by [F6] to Cr(X)⊗Iz; tensoring with an external identity also proves the entangled-input claim and the return condition [F3].

Depends on

Used by

Dependency tree · two levels

20 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