Assumptions
I specify the register domain and circuit cost model.
Result
I retain the sheet ⌊x/p⌋ for x in [0,2p). The pair ((x+c) mod p, sheet) is invertible for fixed c. Two preimages per residue require one extra bit. I check p = 3,5,7,11. For a separate fixed modular kernel I verify 2,048 inputs against its HX8K netlist and all 16,384 cases of its XOR lift. My compute-copy-uncompute construction uses two compute passes and three bit copies in this model.
Prior work
Cuccaro et al., A new quantum ripple-carry addition circuit · Bennett, Logical Reversibility of Computation
Next question
Decompose computation and uncomputation in the same gate library to measure depth and workspace.
Read the argument and prior work · View supporting evidence