PHYSICS · Multi-part · Fermi University Physics · Quantum Information & Technology · The quantum circuit model and quantum algorithms · The quantum circuit model and quantum algorithms
Quantum Information and Technology, Ch The quantum circuit model
Problem
Design a reversible full adder on four wires a, b, cin and cout, using only CNOT and Toffoli gates, with cout initialised to ∣0⟩, such that at the end a and cin are unchanged, b holds the sum bit s=a⊕b⊕cin, and cout holds the carry-out ab⊕bcin⊕acin, with no garbage anywhere.
((a)) Give a four-gate circuit (two Toffolis and two CNOTs) meeting this specification, stating the control(s) and target of each gate.
((b)) Verify it on the input (a,b,cin)=(1,0,1), tracking all four wires through each gate.
((c)) State the total gate count and the number of garbage bits.