Assumptions
I count signed-control gates as primitives. The predicate outputs and workspace start at zero.
Result
For four mod-four residue predicates I compare signed-control gates. The sequential circuit takes four gates and four layers. Six clean ancillas enable parallel computation, but copying and cleanup bring the total to sixteen gates and five layers. I verify every input with zero initial workspace and outputs.
Prior work
Cuccaro et al., A new quantum ripple-carry addition circuit · Bennett, Logical Reversibility of Computation
Next question
Measure placement and negative controls in a specified gate library.
Read the argument and prior work · View supporting evidence