Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Reversible logic
BA YX B Y
BA YX
00 00 00 00
01 11 01 01
10 10 11 A X
11 10 11 10
Fig. 1 The truth table of an irreversible Fig. 2 The truth table of the Feynman Fig. 3 The quantum XOR gate, where A
(2, 2) gate. Both inputs (0 1) and (1 and B are two qubits with B being
gate. The arrows show the per-
0) are mapped to the same output the control qubits.
mutation of the set of in
(Y X) = (1 1). put vectors.
(Y, X), where X=A , B, and Y = A + B tor (C, B, A) and an output vector (Z, Y, useful as it allows us to build sequential
(“+” denotes the OR operation). The X). Similar to the case of (2, 2) gates, circuits with zero internal power dissi-
logic function of this gate is shown in any (3, 3) reversible gate should gener- pation. Examples of gates that are both
Fig. 1. Clearly, this is not a reversible ate a set of output vectors that is a per- conservative and reversible include the
gate, since there exists a 2-to-1 map- mutation of the set of input vectors, Margolus gate and the Fredkin gate.
ping from the input to the output. (000, 001, 010, 011, 100, 101, 110, 111). The Fredkin gate. This gate has been
In order for a (2, 2) gate to be Thus, there exist 8! = 40,320 possible (3, employed by many reversible logic cir-
reversible, the mapping of its logic 3) reversible logic gates. We now will cuits (see Fig. 8 for an example).
function should be such that the set of examine two important (3, 3) reversible Consider a (3, 3) Fredkin, which real-
output vectors is a permutation of the gates. izes Z = C, Y = BC + AC , and X = BC +
set of input vectors, (00, 01, 10, 11). It The Toffoli gate. This gate has the AC, where (C, B, A) is the input vector,
then follows that there exist 4! = 24 input-output relations: Z = C, Y = B, and (Z, Y, X) is the output vector. The
possible reversible (2, 2) logic gates. and X = A ( (CB) (note that CB stands Fredkin gate is also self-reversible (with
Feynman gate is one of the most well for C AND B). The Toffoli gate is a 2- a proof similar to that given for the
known reversible (2, 2) logic gates. CNOT gate since it passes the two Toffoli gate). As depicted in Fig. 6, the
inputs (B and C) unchanged and it Fredkin gate uses C as its control input:
FEBRUARY/MARCH 2005 39
If C = 0, then the outputs are simply circuits in that the circuit creates some has more outputs than its conventional
duplicates of the inputs; otherwise if C redundant outputs. These outputs irreversible counterpart for the same
= 1, then the two input lines (A and B) appear to be “useless” in terms of real- number of inputs. We need them so
are interchanged (the lower half of the izing the desired logic functions (e.g., that we can retrieve the inputs to the
table). Obviously, the Fredkin gate is sum and carry out in the case of the reversible gate from its outputs. These
conservative. adder). Nevertheless, we must not dis- redundant outputs that are added to
In fact, the Fredkin gate is a univer- card these redundant outputs. make a logic function reversible are
sal gate in that it can be “programmed” Otherwise, information will be erased. called “garbage bits.”
(The circuit is no longer reversible with
unequal numbers of input and output CBA ZYX
CBA ZYX
000 000 000 000
001 001 Z 001 001
C R 010 010
010 010
Y
011 011 B
T X T Q 011 011
100 100 A P 100 100
101 101 101 110
110 111 Fig. 5 Two identical Toffoli gates are 110 101
cascaded. The outputs of the
111 110 second gate are the same as the 111 111
inputs to the first gate: R = C, Q =
Fig. 4 The truth table of the Toffoli gate. B, and P = A. Fig. 6 The truth table of the Fredkin
The arrows show the permutation gate, where C is the control input.
of the set of input vectors.
as different basic building blocks of vir- lines.)
tually any reversible logic circuits. For Moreover, if we want to feed any Challenges and promises
example, we can construct the follow- intermediate output signal to more than Our discussion has focused on logi-
ing logic gates by pre-setting some inputs two succeeding gates, we need at least cal reversibility – the inputs and outputs
of the Fredkin gate of reversible logic
as follows (see also gates that can be
Fig. 7): C C C C C C
uniquely retrievable
• AND gates from each other.
If input B = 0, 0 AC B B+C 0 C However, we have
then Z = C, Y + AC,
and X + AC. A
F AC 1
F B+C 1
F C
not touched upon the
other aspect of
• OR gates (a) (b) (c) reversible logic—
If input A = 1, physical reversibility,
then Z = C, Y = BC + C Fig. 7 Fredkin gate implementation of (a) AND; (b) OR; and (c) which is related to the key issue
= B + C, and X = BC + C FAN-OUT / NOT. as to whether we can build physi-
=B+C. cal gates and circuits that can
• FAN-OUT / NOT gate one fan-out gate to duplicate the signal. actually operate backwards and con-
If A = 1 and B = 0, then Z = C, Y = C, By contrast, in conventional irreversible sume (almost) zero power.
and X = C . logic circuits duplication is much sim- As such, we are still confronted with
Fig. 8 illustrates a full adder that is pler to achieve—multiple fan-outs of many challenges before actually turning
built with Fredkin gates, where A and B any output are allowed. reversible logic into a practical competi-
are single-bit inputs, and Cin denotes In general, any reversible logic gate tive technology. For example, we need
the single-bit “carry efficient synthesiz-
input.” The single- ing methods to
bit output for the Cin minimize garbage
sum is: Sum = 0 Sum bits, and we are
(Cin(A B )) +
(C in (A B)), and 1
F F F short of simula-
tion, synthesis,
the single-bit out- testing and verify-
put for the “carry ing tools for
A
output” is: C out = d e s i g n i n g
Cin (A + B) + (AB). B reversible logic.
In this adder 0 Cout
But researchers
example, the reader
may have noticed 1
F F F around the world
have been doing
that the reversible some exciting
logic circuit is quite research and mak-
different from conven- Fig. 8 Fredkin gate implementation of a single-bit full adder. Note that those ing progress in this
tional irreversible logic outputs (with dashed lines) other than the desired outputs (Sum and Cout) direction. The MIT
have to be retained in order for the adder to be reversible.
40 IEEE POTENTIALS
“Pendulum” project has been one such on VLSI, April 2002, pp. 83-88. Computing Group at the University of
pioneering effort, which yielded an • A. De Vos, B. Raa and L. Storme, Florida.
architecturally reversible, proof-of-con- “Generating the group of reversible
cept processor implemented by using logic gates,” Institute of Physics About the authors
split-level charge recovery logic. Publishing: Journal of Physics A: W. David Pan is an Assistant
There is little doubt that reversible Mathematical and General 35(33) Professor of Electrical and Computer
logic (and reversible computing in a (2002), pp. 7063-7078. Engineering at the University of
broader sense) will become increasing- • V. V. Shende, A. K. Prasad, I. L. Alabama in Huntsville. He received his
ly “hot” in the near future. The energy Markov, and J. P. Hayes, “Reversible Ph.D. degree in Electrical Engineering
dissipated per irreversible logic opera- logic circuit synthesis,” IEEE from the University of Southern
tion is gradually approaching the funda- Transactions on Computer-Aided California, Los Angeles, in 2002, and his
mental limit of KT ln2. Coupled with Design of Integrated Circuits and M.S. degree in Computer Engineering
the exponential growth of the speed Systems, June 2003, pp. 710-722. from the University of Louisiana at
and the complexity of the computing • D. Maslov and G. W. Dueck, Lafayette in 1998.
systems, we may be forced to rely on “Reversible Cascades with Minimal Dr. Pan has held summer research
this “cool” technology to achieve ultra Garbage,” IEEE Transactions on positions at the Advanced System Lab,
low-power computing. Computer-Aided Design of Integrated SGS-Thomson (ST) Microelectronics,
Circuits and Systems, Nov. 2004, pp. San Diego, CA, and at AT&T Labs –
Read more about it 1497-1509. Research, Middletown, NJ. His research
• C. H. Bennett, “Logical reversibility interests include multimedia signal pro-
of computation,” IBM Journal of Websites: cessing and communications, as well as
Research and Development, 17 (1973), •http://www.research.ibm.com/peo- the emerging quantum computing.
pp. 525-532. ple/b/bennetc/chbbib.htm: Mahesh Nalasani is a graduate stu-
• C. H. Bennett, “Notes on the histo- Bibliography of Charles H. Bennett dent in the Department of Electrical and
ry of reversible computation,” IBM •http://www.ai.mit.edu/~cvieri/reve Computer Engineering at the University
Journal of Research and Development, rsible.html: MIT AI Lab Reversible of Alabama in Huntsville. He received
32 (1988), pp.16-23. Computing Home Page his B. Tech degree in Electronics and
• P. Kerntopf, “Synthesis of multi- •http://www.ece.pdx.edu/~mperko Communications Engineering from
purpose reversible logic gates,” ws/PQLG/: Portland Logic Group at Jawaharlal Nehru Technological
Euromicro Symposium on Digital Portland State University University (JNTU), Hyderabad, India in
System Design, Sep. 2002. •http://www.elis.rug.ac.be/ELISgrou 2001.
• J. W. Bruce, M. A. Thornton, L. ps/solar/projects/computer.html: Nalasani worked as a lecturer in the
Shivakumaraiah, P. S. Kokate, and X. Li, Reversible Computers at the Ghent Department of Electronics at JNTU from
“Efficient adder circuits based on a con- University 2001 to 2002. His research interests are
servative reversible logic gate,” IEEE •http://www.cise.ufl.edu/research/r in image/video coding and power-effi-
Computer Society Annual Symposium evcomp/: Reversible and Quantum cient VLSI design.
The more things change, the more they remain the same
College graduates with good communication skills have a hiring advantage according to a study published by the National
Association of Colleges and Employers (NACE). "Since 1999, communication skills—both written and verbal—have topped employ-
ers’ lists," says Marilyn Mackes, NACE executive director. Moreover, candidates have "two key opportunities to demonstrate”
them—”on their resume and in the interview." Says Mackes, "Ironically, when we asked employers what skill was most lacking in col-
lege job candidates, good communication skills also topped the list." However,
employers have a pretty extensive wish list of other skills and qualities they are look- Employers rate candidate qualities/skills
ing for as well including a strong work ethic. (5-point scale, 1=not important
And that's assuming the candidate meets the employer’s basic criteria for job and 5=extremely important)
candidates, such as the requisite degree, experience or GPA. "For example,” Mackes
states, “nearly 70 percent of employers reported that they screen college job candi- Communication skills (written and verbal) 4.7
Honesty/integrity 4.7
dates based on GPA, and the largest group said they use a 3.0 as their 'cutoff.’
Interpersonal skills (relates well to others) 4.5
Candidates who fail to meet that cutoff aren't considered for job opportunities."
Strong work ethic 4.5
A candidate's work experience is also important to employers. Even unrelated
Teamwork skills (works well with others) 4.5
work experience can help a candidate stand out. “Employers are looking for evi- Analytical skills 4.4
dence that a candidate has the skills, qualities and abilities they believe are impor- Motivation/initiative 4.4
tant to workplace success and work experience—even if it's not directly related to Flexibility/adaptability 4.3
the job at hand—can provide that evidence," explains Mackes. The ability to pro- Computer skills 4.2
vide that evidence relates back to good communication skills. Because, according Detail-oriented 4.1
to Mackes, "Successful candidates know how to showcase their work experience on Leadership skills 4.0
their resume and during the interview demonstrate to employers that they have a Organizational skills 4.0
FEBRUARY/MARCH 2005 41