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.
Reversible binary dot product: correctness and exact cost
Statement
For every , the algorithm Reversible binary dot-product query maps every computational-basis input to
It therefore implements the same linear map on superpositions. Its exact cost is Toffoli gates, one CNOT, and one clean work bit; it has no failure branch.
Facts & Assumptions
Given: , binary strings , an arbitrary target bit , a clean work bit , and the stated gate sequence. The operation model's declared finite nonoracle gate alphabet contains and permits Toffoli and CNOT as callable gates, each occurrence is counted once under [F7], and this circuit makes no black-box oracle calls.
Reversible binary dot-product query: the sequence accumulates coordinate products into , copies to , and reverses the Toffoli sequence.
Binary dot product as parity: is the left-to-right XOR fold of the bits , with empty fold .
Toffoli and Fredkin gates: Toffoli preserves its two controls and toggles its target by their product.
CNOT and Control-Target Order: CNOT preserves its control and toggles its target by the control value.
Clean and dirty ancillas: a clean ancilla starts and ends exactly at zero.
The computational basis is orthonormal and The product basis is orthonormal and tensor dimensions multiply: the ordered computational-basis product vectors of the data, target and work registers form a basis of their joint register.
Dirac Notation Conversion: ket notation denotes the corresponding vectors, with the repository's stated inner-product convention.
Finite circuit resource accounting: each occurrence of a declared gate contributes one occurrence to the gate count.
Proof technique: induction on the forward and reverse loop indices.
Proof
Before any Toffoli gate, , which is the empty parity .
If after processing coordinates the work bit is , the next Toffoli leaves the controls unchanged and changes to by [F3]. Thus the forward invariant holds for every .
At the end of the forward loop, by [F2]. This includes , for which step 1.1 is already the final state.
The CNOT now changes to and leaves unchanged by [F4].
In the reverse loop, define to be the accumulator after the gates for coordinates have been applied. Before any reverse gate, . If , the next Toffoli toggles by , so . Descending through therefore ends at . The reverse gates do not change , so the work bit is clean.
The input basis map is the claimed map by steps 3.1 and 4.1. Every gate is linear, and the computational basis spans the finite joint register by [F6], so the same identity holds on every superposition. The forward and reverse loops each have Toffoli occurrences and there is one CNOT, giving the exact stated nonoracle gate-occurrence count; the algorithm has no branch and makes no oracle call.
Depends on
- Reversible binary dot-product query
- Binary dot product as parity
- Clean and dirty ancillas
- Finite registers and their ordered computational bases
- Dirac Notation Conversion
- Toffoli and Fredkin gates
- CNOT and Control-Target Order
- Finite circuit resource accounting
- The computational basis is orthonormal
- The product basis is orthonormal and tensor dimensions multiply
Used by
Dependency tree · two levels
37 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
- Ronald de Wolf, Quantum Computing: Lecture Notes (arXiv:1907.09415v6) (standard reference, not scraped)
- Andrew M. Childs, Lecture Notes on Quantum Algorithms (17 April 2025) (standard reference, not scraped)