
Uncomputation is a technique, used in
reversible circuits, for cleaning up temporary effects on
ancilla bits so that they can be re-used.
Uncomputation is a fundamental step in
quantum computing
Quantum computing is a type of computation whose operations can harness the phenomena of quantum mechanics, such as superposition, interference, and entanglement. Devices that perform quantum computations are known as quantum computers. Thou ...
algorithms. Whether or not intermediate effects have been uncomputed affects how states interfere with each other when measuring results.
The process is primarily motivated by the principle of implicit measurement.
[Nielsen, Michael; Chuang, Isaac. "Quantum Computation and Quantum Information"], which states that discarding a register during computation is physically equivalent to measuring it. Failure to uncompute garbage registers can have unintentional consequences. For example, if we take the state
where
and
are garbage registers. Then, if we do not apply any further operations to those registers, according to the principle of implicit measurement, the entangled state has been measured, resulting in a collapse to either
or
with probability
. What makes this undesirable is that wave-function collapse occurs before the program terminates, and thus may not yield the expected result.
References
{{Quantum-stub
Quantum information science