Atelier des rouesLab FR

Reversible circuit synthesis

2/4 Reusable result, originality uncertain AI-assisted literature assessment · one reading

I treat the small truth-table checks and synthesis reports as a bounded, reusable artifact: they compare reversible implementations and expose tradeoffs among gate count, ancillas, depth, and FPGA LUTs. Cuccaro et al. give a specialized low-ancilla adder, while exact four-bit synthesis work shows how much stronger a true optimality claim requires. The local checks support the stated instances, not general optimality or physical cost; broader targets and hardware validation remain open.

A New Quantum Ripple-Carry Addition Circuit — Steven A. Cuccaro, Thomas G. Draper, Samuel A. Kutin, and David Petrie Moulton · A Study of Optimal 4-bit Reversible Toffoli Circuits and Their Synthesis — Dmitri Maslov, Gerhard W. Dueck, and D. Michael Miller

How I rate results

APP047 · Synthetic pilot (XI)

Prior work and my contribution

I compile the same predicate by transpositions and by arithmetic. The latter trades additional bits for fewer gates.

Limit and next check

Compare with specialised adders, including depth, connectivity and ancillas.

Prior work

Bennett (1973), Logical reversibility of computation · Cuccaro et al., A new quantum ripple-carry addition circuit

Related results

I replay 2,116 valid inputs of the XII.D09 in-place step. In APP060 I also specify unused codes so synthesis compares identical truth tables. APP060

I link this field to the following results. Clearing the correction bit after a modular step

I connect this field to Clearing the quotient of a block Horner step · Trading auxiliary bits for Toffoli gates.

At 67 I quantify the Toffoli price that offsets the Cuccaro variant’s overhead. The small FPGA pilot now has its own post-synthesis LUT counts.

When do saved Toffolis compensate for the other gates?

Yosys 0.71 and ABC9 map words 101101 and 00 and the direct table to the same two LUTs at depth one. I evaluate every input in RTL and in each mapped netlist. Two distinct output columns each require a new function, so two single-output LUTs are minimal in this model. Two LUTs suffice for all three modulo-five descriptions

The reduction flag depends on its domain

For 0≤x,c<p I recover the reduction flag from y<c, where y=(x+c) mod p. I check 3,354 cases. At p=3 and c=1, x=0 and x=3 both produce y=1 with different flags. The supplied complete gate count at 67 remains above bitwise Horner.

My next test is to cost the extra information required to widen the domain. AT.D1 · Cuccaro et al., A new quantum ripple-carry addition circuit

One bit to recover the original representative

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.

I plan to decompose computation and uncomputation in the same gate library to measure depth and workspace. AT.D2 · Cuccaro et al., A new quantum ripple-carry addition circuit

Charging for negative controls

I take X, CNOT and positive-control Toffoli gates, with two inputs, four arbitrary targets and clean ancillas. The serial circuit visits the four polarities with four flips, minimal for this schedule, plus four Toffolis. The parallel version uses 24 gates on twelve wires in seven layers against eight gates on six wires in eight layers. I check 64 inputs per version and uncomputation.

I will compare under a coupling topology with explicit swap costs. AT.D4 · Cuccaro et al., A new quantum ripple-carry addition circuit

Restoring data on a line of gates

I fix a reversible two-input, four-output decoder and restore placement after every gate. On the line, serial and copy-based descriptions require 12 and 92 swaps for 8 and 24 logical gates. I check all 64 inputs, including initial output values and ancilla cleanup. I also apply the median gathering method of XX.D02.

Allow placement to persist between gates and check cost across the whole circuit. AT.D5 · Cuccaro et al., A new quantum ripple-carry addition circuit

Historical results — D06 · Reversibility, D07 · Elementary gates, D08 · Specialised reversible arithmetic, D09 · Clearing the correction bit after a modular step, D10 · Clearing the quotient of a block Horner step, D11 · Trading auxiliary bits for Toffoli gates, D12 · When do saved Toffolis compensate for the other gates?, XV-D01 · Clearing a block quotient, XVI-D01 · In-place cleanup, XVII-D01 · Accumulating modular weights, XVIII-D01 · Parallel lanes and control copies, XIX-D01 · Streaming control copies, XX-O03 · Minimum memory for a known history, XX-D01 · Sharing control copies in blocks, XX-D02 · Restoring placement on a line

Download bilingual dossier ↓

Comments

Comments from both language editions appear here.

The discussion is open for reading. I’ll enable submissions once spam protection is configured.