Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Precise statements and complete argument

Objects and allowed circuits

Let with XOR as addition. Index computational basis states by . Write for the all-one vector and . The dot product is computed in . Write for the number of ones.

For a real function , set . Reflection symmetry means . A circuit is a finite sequence on exactly wires, using CNOTs with distinct target and control, and rotations

Connectivity is unrestricted; ancillary qubits, other gates, measurements and approximation are excluded. Count only CNOTs. Realization means for . Since and are unitary, this equality automatically forces , in particular .

Two levels of the lower-bound statement

Theorem 2.1 (Existential lower bound for reflection symmetry)LEAN ✓

For every integer , there exists a real function with such that, for every allowed circuit and every , if , then its CNOT count is at least .

This is the full quantifier structure of the public Lean conclusion. The next statement names the target in the source’s Theorem 1. It implies the existential conclusion and is the witness actually used inside the Lean proof, but that public conclusion does not name the witness.

Theorem 2.2 (An explicit hard target)WRITTEN PROOF

For every integer , put and define

Then . For every allowed circuit and every complex , if , then its CNOT count is at least

Multiplicative cancellation without phase branches

For a nowhere-zero , define

The exponents are integers or ; negative powers mean reciprocals. Finite multiplication gives .

Lemma 2.3 (Multiplicative character cancellation)WRITTEN PROOF

For every integer and nonzero , each constant satisfies . If also and , then every nowhere-zero satisfies

Proof

Source: Lemma 1, Section 2. Since , choose with . Pair with . This is a fixed-point-free involution reversing the exponent, so constant factors cancel.

For the second clause, distinct nonzero are linearly independent over . Thus maps onto : the two independent linear functionals have rank two. Choose with and . The same pairing preserves and reverses its exponent, so each pair contributes one. Nonvanishing makes reciprocals well-defined. At there is no nonzero ; at there is no pair of distinct nonzero . These boundaries agree with the hypotheses.

Proof for the hard target

Proof

We expand the proof of Theorem 1 in source Sections 2–3. Complementation exchanges and and preserves the remaining inputs, so is reflection-symmetric.

First force restoration. Label a wire by when its bit is . Initially the labels are . A CNOT replaces by ; rotations leave labels unchanged. Each update is an invertible row operation, so the label matrix remains invertible and its rows remain nonzero. Induction over the gates gives the form

where each is the nowhere-zero two-valued factor from one rotation. If , the nonzero output for input can occur only at index . Hence for every , so . The final labels are again, and .

Force every even label. Put

For any nonzero , both nontrivial phases have exponent , giving . If every rotation label differs from , Lemma 2.3 and multiplicativity give . But , and the same lemma gives , a contradiction. Every nonzero therefore occurs on a rotated wire.

Count even outputs. Total parity is a nonzero linear functional. Its kernel has dimension and size . Equivalently, freely choose the first coordinates and determine the last by parity. Initial labels are odd, so each required nonzero even label first appears as a CNOT target output. One CNOT produces one target label, forcing at least even-output gates.

Count additional returns. Call an odd-target, odd-control update a birth, and let be their number. Inductively, every even label ever produced lies in the span of the birth outputs produced so far. Initially no label is even. An odd-plus-odd update adds its output as a generator; an even-plus-even update adds two vectors already in the span; mixed updates produce odd labels; unchanged rows preserve the invariant. A label remains in this cumulative span even after disappearing from current wires. Since every nonzero vector of must appear, the birth outputs span . Thus .

Let count even labels currently on wires. The four update types are

Target, controlOutputChange in
odd, oddeven
even, oddodd
even, eveneven
odd, evenodd

Let count updates of the second type. Initial and final labels are , so starts and ends at zero. Consequently . Returns have odd outputs, disjoint from the even-output gates already counted. Therefore

Births have not been added a second time: they already belong to the even-output count. The additional term counts returns. For , , one required even label and at least one return give two gates. There is no limiting passage or omitted endpoint.

Exact optimality using the literature construction

Corollary 2.4 (Exact worst-case CNOT count)WRITTEN PROOF

For every integer , in the exact ancilla-free CNOT/ model above, the maximum over all reflection-symmetric diagonal targets on wires of their minimum CNOT counts is .

Proof

Source: Corollary 1. Algorithm 1 of Huang, Kosugi, Nishi and Matsushita (Section 4 and Appendix C) implements every target satisfying their Eq. (1), up to global phase. It has blocks each containing one CNOT, together with standalone CNOTs, totaling . Their Eq. (1) is precisely invariance under complementing all bits. Thus every target has a minimum count, bounded above by . The target in Theorem 2.2 needs at least , so its minimum equals that number. The maximum is attained and equals . The upper bound comes from the cited construction; it does not follow from the existential lower bound alone.

A synthesis identity and the finite checks

Put . Source Section 4 gives

If , every summand is one, giving . Otherwise choose with and pair indices ; their summands cancel. This proves the identity for all inputs.

A rotation with angle at each nonzero even label contributes . The product is , since the omitted zero label contributes the constant character one. The network must still return to identity.

The source reports exact shortest identity-return networks of lengths for , and checks of phases and character products for . These are the source’s finite checks. The general proof is the cancellation and birth–return argument above; the finite checks do not establish optimality in a broader model.