liveBook · Manning

Addition modulo two

As explained in Quantum Programming in Depth

Addition modulo two is binary addition in which results are reduced to their remainder modulo two.

Addition modulo two reduces binary addition to its remainder modulo two. Written as ⊕, it maps the Boolean negation 1 − x to 1 ⊕ x and provides a common operation for reversible computing. section 6.2.1

Applied to a quantum basis state, the operation connects classical Boolean functions with quantum gates: the function 1 − x becomes an X-gate transformation, while preserving an input bit enables reversible extensions such as (x, y ⊕ x). section 6.2.1

Negation and reversible extension

For x = 0 or 1, compute 1 − x as 1 ⊕ x; the corresponding quantum operation is X. To preserve recoverability, extend a function with an auxiliary bit: F(x, y) = (x, y ⊕ x). section 6.2.1

How Quantum Programming in Depth covers it

How deep it goes
Defines ⊕, connects it to the X gate and reversible extensions, but stops short of broader arithmetic.
Examples
Uses 1 − x = 1 ⊕ x and the two-bit mapping (x, y ⊕ x), with explicit truth-table entries.
What it assumes
Assumes one-bit functions and quantum-state notation while relating the operation to Boolean variables and reversibility.
What you can do after
Evaluate/understand how modulo-two addition implements negation and supports reversible quantum-function construction.
How it connects
Connects Boolean negation, X gates, reversible computing, quantum gates, and reversible function extensions.

This explainer was generated by Manning's knowledge graph from the text of Quantum Programming in Depth. The section links point to the parts of the book it draws on.