Use a classical target bit and initialized auxiliary bits. The NOT gate maps , the CNOT gate maps , and the Toffoli gate maps . They are bijections and are their own inverses. Explicit circuits with their retained input wires are:
- AND: a Toffoli gate on produces .
- OR: apply NOT to both controls, a Toffoli gate with target initialized to , then restore both controls. The target becomes .
- CLONE: a CNOT gate on gives .
- SWAP: apply , and . The successive pairs are , , then .
These maps also give the truth tables for all input combinations. AND and OR are not themselves reversible maps if the inputs are discarded; the retained inputs are what make their implementations reversible. Classical CLONE copies a known orthogonal computational basis alphabet; the no-cloning theorem forbids interpreting it as a copier of arbitrary quantum superpositions.
A Boolean circuit can express any finite Boolean function using AND, OR and NOT. Replace its operations by the reversible versions, keeping inputs and intermediate bits. Copy the final output into a fresh answer register with CNOT gates, then run the entire computing network backward. Intermediate auxiliary bits return to zero, yieldingThis compute-copy-uncompute construction proves universality in the usual model with initialized auxiliary bits. If is a reversible permutation, compute , use a reversible implementation of to clear , and swap registers, leaving with clean auxiliaries. The ancillary-resource qualification matters; a blanket claim about all permutations on an arbitrary fixed number of unassisted wires has parity restrictions.
Reversible Boolean constructions and a one-query Deutsch algorithm
. Original circuits for AND, OR, copying a classical bit and SWAP, with retained inputs and initialized targets shown explicitly. The lower panels show two classical oracle queries for the truth table and the phase-kickback quantum network that obtains only its parity in one query. Circuit operations run from left to right. Details.In the oracle machine model, a function is accessed through a black box whose internal gate cost is excluded; the resource counted is the number of calls. A reversible classical oracle maps basis inputs as . Its quantum oracle extension applies the same permutation coherently to arbitrary superpositions, without measuring its input. A classical random mixture of inputs is not that coherent extension.
Write the two truth-table entries as , . Then , with the four casesTwo classical query circuits, and , recover the whole function with certainty. One call fixes only one entry, leaving two compatible functions; hence two are necessary classically. Randomization cannot remove this obstruction to certainty.
The minimum for full exact function identification remains two even with coherent quantum queries. To see this, expand the oracle target into its eigenstates: it is identity on , and gives phases on . Any one-query input, including an auxiliary system, has orthogonal sector weights , and summing to one. The output overlap between functions differing only at is , so perfect distinction requires ; differing only at likewise requires . Then , but functions differing at both entries have overlap . They are the same ray rather than distinguishable states. Thus one query cannot identify all four functions. The following one-query task recovers only whether the entries agree.
A constant function has , whereas a balanced one has one zero and one one, so . The four oracles require only the following circuits:Prepare , apply a Hadamard gate to each qubit, apply the oracle once, apply another Hadamard gate to the first qubit, and measure that first wire in the computational basis. Immediately before the oracle the state is . The identity gives phase kickback:The output is certainly zero for constant and one for balanced. In circuit terms the target contributes only a global sign, and a controlled with target acts as on the control; then turns that phase into a measured bit. These identities prove the network for all four explicit oracles. The unused sign contains only as a global phase, consistent with the full-identification lower bound.
Articles by others on the same topic
There are currently no matching articles.
