Reversible XOR with a Retained Input

An XOR update can be reversible when one input is retained and the target is changed by its XOR with that input.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Trace a pair
  2. Choose the correct interface

Trace a pair

With control one and target zero, the update gives control one and target one. Applying the same update again takes the target back to zero. See bitwise XOR toggles.

Choose the correct interface

Ordinary XOR returning one output bit loses which of several input pairs supplied it. Retaining the control makes the two-bit transformation invertible. See controlled NOT.[1][2]

References

  1. John Watrous, The Theory of Quantum Information ↩
  2. John Watrous, IBM Quantum Learning: Basics of Quantum Information ↩