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.
Correctness of Gray-Path Two-Level Synthesis
Statement
The algorithm of Gray-Path Synthesis of a Two-Level Gate realizes the exact two-level unitary on the ordered selected pair and fixes every other computational-basis vector. Write for their Hamming distance and . Before expansion there are pattern-controlled swaps and one pattern-controlled target block.
Here are exact post-expansion counts for its literal circuits. A cost pair counts CNOTs and arbitrary one-qubit gates, respectively; pairs are added componentwise and identity gate occurrences are retained. Define For a positive -controlled one-qubit call the no-workspace cost is and the selected one-clean-bit cost is for (use with no work bit). For each forward swap , choose , and for the middle block choose . If and are the numbers of zero-valued controls in their patterns, the exact total pair is Its sum of coordinates is the exact elementary gate count. All-no-workspace selection uses wires and gates; all-clean selection uses at most wires and gates. For mixed selections one clean bit suffices and is reused sequentially, returned to zero after each call. When , the circuit is one arbitrary one-qubit gate with cost and no work bit.
Facts & Assumptions
Given: Distinct labels , block , and the path and literal expansion choices of Gray-Path Synthesis of a Two-Level Gate.
Two-Level Unitary: the desired two-level operator applies on the ordered pair and is identity on its orthogonal complement.
Big-endian encoding of ordered bit strings: a computational basis word is identified with its ordered bitstring, so individual wire values and bit flips determine the corresponding basis label.
CNOT and Control-Target Order: a CNOT flips its target bit exactly when its named control bit is .
Denotational semantics of a finite layered circuit: chronological circuit layers denote .
Finite circuit resource accounting: costs count declared gate occurrences under the explicit operation model.
The computational basis is orthonormal: the ordered computational basis of the register is orthonormal.
Multicontrolled Unitaries with and without a Clean Work Bit gives exact no-workspace and one-clean-bit elementary constructions; each clean call returns its work bit to zero.
Linear Multicontrolled X with One Borrowed Wire supplies an exact elementary implementation of with one borrowed wire, whose full operator is even on correlated inputs.
Exact Controlled One-Qubit Unitary with Two CNOTs supplies an exact two-CNOT realization of each controlled one-qubit matrix with arbitrary one-qubit gates, retaining its scalar phase.
Gray-Path Synthesis of a Two-Level Gate specifies the forward path swaps, the final controlled block with the ordered-block reversal when needed, their reversed adjoints, and the chosen literal expansions.
One-Qubit Euler Decomposition gives the exact decomposition and the displayed matrices for and .
Complex spectral theorem: a normal endomorphism of a finite-dimensional complex inner product space has an orthonormal eigenbasis, and conversely diagonalizes a unitary in an orthonormal eigenbasis; Every nonzero complex number has a unique polar form with and supplies polar angles for its unit eigenvalues, and The addition formulas for sine and cosine gives the double-angle identities.
Proof
By [F2] and [F3], each path swap is an controlled on the other bits' fixed values, so it exchanges exactly the two indicated basis labels and fixes every other basis vector. Each swap is a permutation of the orthonormal computational basis [F6], hence a unitary. Their chronological product sends to and fixes , because the last path edge is deliberately omitted.
For the algorithm's single-control list , direct multiplication of the rotation matrices in [F11] gives and . Its two control branches therefore have target blocks and ; the final phase gate makes them exactly, as required by [F9]. The list in [F10] contains exactly two CNOTs and four one-qubit occurrences, even when one is the identity. For the fixed matrix , the orthogonal projectors and give and unitarity. The list restores and applies target exponent of , hence is exactly Toffoli. Its cost is .
For the ladder of [F10] with , each of its two compute/target/uncompute lists restores all spares, since the central changes only the target. Let be the values of just before in the first and second lists. The common initial spare values give , and , for . Induction yields , so the two target toggles sum to . Thus is the exact controlled and restores its arbitrary spares. Its lists contain and Toffolis, giving ; the CNOT and Toffoli base cases give .
At the level of ideal data gates, let be the middle operation and the forward swap permutation. The middle gate acts only on ; using when the target bit of is makes its ordered action exactly . By [F4], the data product is . Since sends to and no other basis vector into this active pair, the conjugate acts by on and fixes every other data basis vector. Thus the ideal data circuit is the exact two-level unitary, including its scalar phase.
For the balanced list in [F10], put and . The ideal actions of send to and back and toggle by . Step 2.1 restores the temporary spares after each ladder, so this is valid even when the spares include the other call's controls or target. The inequalities and ensure enough spares. Two calls of each size have pair ; the one- and two-control cases have pairs . Equality on every basis word extends by [F6] to the full operator , including entangled inputs, so these literal lists meet the borrowed-wire contract of [F8]. All spares are existing wires in each invocation of .
For the no-workspace list , [F12] gives the unitary square root prescribed in [F10]: each eigenvalue has modulus one, its half-angle scalar squares to it by the double-angle identities, and that scalar has modulus one. For at least two controls, put . The two calls restore their borrowed data target exactly by step 3.1. Thus on a basis control branch the target exponent of in the five-call list is . Induction on the number of controls, with the one-control case of step 1.2 and the zero-control gate as bases, proves its exact action. No new wire is used. Its literal cost is , with and ; the recursion decreases the number of controls and terminates.
In the clean branch, computes the controls' AND into , restoring the borrowed data target by step 3.1. The list applies precisely on that branch, and the reversed adjoint list restores for every data input. Linearity extends this basis calculation to superposed or entangled data. This gives the exact clean-input data operation and pair for ; with no controls the sole gate has pair . No claim about the other initial workspace sector is required.
There are swaps, their inverses, and one controlled- call. Each zero-valued pattern control is implemented by an before and after the positive-control call, adding exactly two one-qubit occurrences under [F5]. Steps 4.1–4.2 prove that these selected expansions implement the ideal data gates exactly and each clean-bit call returns its work bit to zero, in the model of [F7]. Sequential composition therefore permits reuse of that bit.
If , the swap lists are empty and the single controlled target block acts on directly. If , there are no controls and the construction is one gate on the sole wire: its matrix is when , and when , so its action on the selected ordered pair is in both cases. For the other cases, steps 4.1–4.2 supply the elementary expansions used in step 5.1 with the stated work-bit return, consistently with [F7]. Thus every case is an exact elementary implementation.
A zero control adds two one-qubit gates, independently of the selected positive-control circuit. The reversed adjoint list has the same pair as its forward list. Adding all forward, reverse, and middle lists therefore gives the claimed total pair. Since , the recurrence sums to , whereas . There are calls, and at most negative controls per call, giving the two claimed total bounds for . Sequential exact clean return permits reuse of one bit even on superposed data. The empty swap lists when and the direct ordered one-qubit block when give the stated boundary cases.
Depends on
- Gray-Path Synthesis of a Two-Level Gate
- Two-Level Unitary
- Big-endian encoding of ordered bit strings
- CNOT and Control-Target Order
- Denotational semantics of a finite layered circuit
- Finite circuit resource accounting
- The computational basis is orthonormal
- Multicontrolled Unitaries with and without a Clean Work Bit
- Linear Multicontrolled X with One Borrowed Wire
- Exact Controlled One-Qubit Unitary with Two CNOTs
- One-Qubit Euler Decomposition
- Complex spectral theorem: a normal endomorphism of a finite-dimensional complex inner product space has an orthonormal eigenbasis, and conversely
- Every nonzero complex number has a unique polar form $r(\cos\theta+i\sin\theta)$ with $r>0$ and $-\pi<\theta\le\pi$
- The addition formulas for sine and cosine
Used by
Nothing in the library uses this result yet.
Dependency tree · two levels
48 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
- Adriano Barenco et al., Elementary gates for quantum computation, arXiv:quant-ph/9503016v1 (standard reference, not scraped)