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 the reversible modular multiplier
Statement
For , , and a unit with supplied inverse , the circuit of Reversible modular multiplication by a unit is unitary. On a computational-basis state it fixes the control bit, sends to if and , and fixes if or . All Boolean value, target, and scratch registers return to zero. Its action therefore extends coherently to superpositions.
Facts & Assumptions
Given: , a unit and inverse , a one-bit control and an -bit data register, and the construction in Reversible modular multiplication by a unit.
The circuit computes the total function into a clean target by an XOR oracle, swaps that target with , then computes on the new data to clear the old-data target (Reversible modular multiplication by a unit). Its gate list acts in the declared chronological order on the stated wires (Denotational semantics of a finite layered circuit).
Reversible embedding maps to for every basis input and target, restores clean work, and extends to superpositions; a clean register begins in its all-zero basis vector (Gate, workspace, and serial-depth costs of reversible embedding, Clean and dirty ancillas).
A coherent XOR oracle acts as and is a unitary involution for every total Boolean on the ordered computational-basis register (Coherent XOR function oracle, A total Boolean XOR oracle is unitary and involutive, Finite registers and their ordered computational bases).
A residue class is a unit exactly when its representative is coprime to ; multiplication by a unit has its stated inverse in (For , is a unit if and only if , For every natural , is an abelian group, multiplication is a commutative monoid operation, and both distributive laws hold).
Proof
The DAG's XOR formula is , which is modulo for each of the four input pairs. In its adder, : if both input bits are the carry is , if exactly one is the carry is , and if both are the carry is ; the displayed sum bit has the corresponding parity. Multiplying by and summing proves . Subtraction therefore represents ; its carry is exactly when , and its low bits are modulo . The selector's disjoint branches give for and for .
After the first product rows, the accumulator is . This holds initially and is preserved by step 1.1; no overflow occurs because every partial sum is at most . Thus the final product bits represent even for invalid input encodings. In the remainder loop, the invariant is that is the remainder modulo of the already scanned product prefix and . Appending bit gives . Subtraction and selection from step 1.1 give if and otherwise, so the next value lies in and is the new prefix remainder. It fits bits, making the discarded high bit zero, even when . Induction proves the final . The final no-borrow comparison gives exactly when , and selection by therefore computes precisely . The same argument applies to .
Fix . If or , the defining function and its inverse-function counterpart both return . If and , the first function returns and the inverse function returns , by [F4]. Thus in every case .
By [F2] and [F3], the first computation adds into a clean target and restores all value-computation work. A bitwise swap made from CNOTs acts as , so after the three CNOTs per bit the data register contains and the target contains the old .
Apply the clean XOR computation for to the new data and the target holding old . Step 3.1 says its output is exactly that old , so XOR changes the target to and restores its computation work by [F2]. Hence all temporary registers are clean and the data/control action is the claimed one.
On valid residue encodings, multiplication by is a bijection of the residue register because is its inverse; on invalid encodings and at control the map is the identity. It is therefore a permutation of the full finite computational basis. A basis permutation is unitary, and [F2] supplies the same action on arbitrary superpositions with clean work. This proves the statement.
Depends on
- Reversible modular multiplication by a unit
- Gate, workspace, and serial-depth costs of reversible embedding
- A total Boolean XOR oracle is unitary and involutive
- Coherent XOR function oracle
- For $n\ge1$, $[a]_n$ is a unit if and only if $\gcd(a,n)=1$
- For every natural $n$, $(\mathbb{Z}/n,+)$ is an abelian group, multiplication is a commutative monoid operation, and both distributive laws hold
- Denotational semantics of a finite layered circuit
- Finite registers and their ordered computational bases
- Clean and dirty ancillas
Used by
Dependency tree · two levels
50 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
- John Preskill, Quantum Computation, Chapter 5: Classical and Quantum Circuits (standard reference, not scraped)
- Ronald de Wolf, Quantum Computing: Lecture Notes, arXiv:1907.09415v6 (standard reference, not scraped)