2011 0019 Y Gate and Reversible Gates in Various Technologies

41
Reversible Gates in various realization technologies

Transcript of 2011 0019 Y Gate and Reversible Gates in Various Technologies

Page 1: 2011 0019 Y Gate and Reversible Gates in Various Technologies

Reversible Gates in various realization

technologies

Page 2: 2011 0019 Y Gate and Reversible Gates in Various Technologies

Double Rail Technologies

Page 3: 2011 0019 Y Gate and Reversible Gates in Various Technologies

2.2. DOUBLE- RAIL LOGIC BASED ON NOT, SWAP AND CONTROLLED SWAP GATES.

• The symbolic notation on the right shows my notation for single-rail (symbolic) notation of double-rail circuits:

• a’ = (a1, a2’) = (1,0),

• a = (a1’, a2) = (0,1).

=

a2

a1 b1

b2a b

Fig. 2.2.1.: Realization of NOT in double-rail technology

Double-rail Inverter

Page 4: 2011 0019 Y Gate and Reversible Gates in Various Technologies

Double-Rail Feynman Gate

• Fig. 2.2.2: Realization of Controlled-Not (Feynman) gate in double-rail logic.

=b

a2

a1

b1

b2

a

b

a b

a

• a’ = (a1, a2’) = (1,0),

• a = (a1’, a2) = (0,1).

Page 5: 2011 0019 Y Gate and Reversible Gates in Various Technologies

Fredkin built from Toffoli and CNOT

• Fig. 2.2.3: • Realization of Fredkin gate using Toffoli and CNOT gates. • By surrounding the Toffoli gate (Fig. 2.2.3a) with CNOT gates (Fig. 2.2.3b) we

obtain the Fredkin gate (Fig. 2.2.3c). • Similarly the Toffoli gate can be obtained by surrounding the Fredkin gate using

two CNOT gates. • This way a Toffoli gate in double-rail logic can be realized, as shown in Fig. 2.2.4.

(a) (b) (c)

Page 6: 2011 0019 Y Gate and Reversible Gates in Various Technologies

Toffoli built from Fredkin and Feynman

• Fig. 2.2.4: Realization of Toffoli gate in double-rail logic using a double-rail Fredkin gate surrounded by two Controlled NOT gates.

0

1

0

1

0

1

control

Page 7: 2011 0019 Y Gate and Reversible Gates in Various Technologies

Double-rail Fredkin gate

• Fig. 2.2.5.: Detailed circuit of double-rail Fredkin gate realized with two standard Fredkin gates with the same control.

b1

b2

Q1

c1

Q2

c2

R1

R2

b1

a2 P2

P1a1

Page 8: 2011 0019 Y Gate and Reversible Gates in Various Technologies

Single-rail schematics for double-rail Fredkin gate

• Fig. 2.2.6: The gate from Figure 2.2.5 in another notation, every signal corresponds now to two wires from Figure 2.2.5.

P

Q

R

a

b

c

2

2

Page 9: 2011 0019 Y Gate and Reversible Gates in Various Technologies

New double-rail gates can be created with single-rail Fredkin gates

• Fig. 2.2.7: Detailed circuit of double-rail “new gate” realized with three standard Fredkin gates.

a1

a2

c1

b1

c2

b2

d1

d2

d2 P2

(c1,c2) = (a1,a2) and (d1,d2) = (not b1, not b2).

Page 10: 2011 0019 Y Gate and Reversible Gates in Various Technologies

Toffoli gate in double-rail technology

• Fig. 2.2.8: Realization of CNOT in double-rail technology. Signal a is represented by a1=0, a2 = 1. Signal a’ (negation of a) is represented by a1=1, a2 =0.

=

a

b

P

Q

P1

P2

a1

a2

b2

b1 Q1

Q2

Page 11: 2011 0019 Y Gate and Reversible Gates in Various Technologies

SWAP in double-rail

• Fig. 2.2.9: Realization of SWAP in double-rail technology.

=

a1

a2

b2

b1

c1

c2

d2

d1

a c

db

Page 12: 2011 0019 Y Gate and Reversible Gates in Various Technologies

Conclusion on Double-Rail.

• Single-rail SWAP = double-rail NOT• Basic gates are single-rail SWAP and

controlled-SWAP• NOT gate can be created.• Toffoli, Feynman and Fredkin gates can be

created.• Complex gates can be created.• Gates are not necessarily conservative.

Page 13: 2011 0019 Y Gate and Reversible Gates in Various Technologies

2.3. DOUBLE-RAIL OPEN/CLOSE SWITCH REVERSIBLE CMOS LOGIC

OF ALEXIS DE VOS

P

Q

R

c

a

b

• Fig. 2.3.1: Realization of Fredkin gate. Notation for De Vos double-rail technology from Figure 2.3.2.

a

a

c

b

c

Q

Q

b

• Figure 2.3.2. Realization of function Q in Fredkin gate using De Vos technology.

Page 14: 2011 0019 Y Gate and Reversible Gates in Various Technologies

Toffoli in De Vos Technology

• Fig. 2.3.3: • Realization of Toffoli gate in double-rail DeVos technology. • As we see, this is a kind of double-rail technology.

a b

a b

c

p

a b

a b

c

p

Page 15: 2011 0019 Y Gate and Reversible Gates in Various Technologies

Toffoli Gate.• The function realized in Figure 2.3.3 for output p is c’ ab in upper

branch controlled by c’ and c (a’ + b’) controlled by c in the right branch.

• Thus the function realized for p is the following: • p = c’ ab + c (a’ + b’) = c’ (ab) + c (ab)’ = ab c • Similarly, the function realized for negation of p, denoted by p’ is c’ (a’

+ b’) (controlled by c’) and (ab) c controlled by c. Thus the function for negated p, denoted by p’ is the following:

• p’ = c’ (a’ + b’) + (ab) c = c’ (ab)’ + (ab) c = [ ab c ]’ = p’ (negation of

signal p).

Page 16: 2011 0019 Y Gate and Reversible Gates in Various Technologies

CNOT gate in De Vos technology

• Figure 2.3.4. Realization of CNOT in De Vos technology.

a

a

c

c

Q

Q

a

a

Page 17: 2011 0019 Y Gate and Reversible Gates in Various Technologies

Regular layout for De Vos technology

• Fig. 2.3.5: DeVos CMOS circuit layout for pass-transistor diagram from Figure 2.3.3.

a

b

a

b

a

b

a

b

PC

C P

Toffoli

Page 18: 2011 0019 Y Gate and Reversible Gates in Various Technologies

Conclusion on De Vos technology.• Based on open/close switches.• This is double-rail technology• Parallel and serial connections of switches• Every output of gate has a form: Variable Function (other variables)• Single-rail SWAP = double-rail NOT• NOT gate can be created.• Toffoli, Feynman and Fredkin gates can be created.• Complex gates can be created.• Gates are not necessarily conservative.• Creating complex gates is simple.• Realized in CMOS, input-output physically reversible, not only logically reversible• Requires special power supplies to reduce power• Combined with the idea of adiabatic gate.

Page 19: 2011 0019 Y Gate and Reversible Gates in Various Technologies

2.4. CONSERVATIVE REVERSIBLE LOGIC BASED

ON 2*3 SWITCHES

bba

ba

a

baba

aa

Page 20: 2011 0019 Y Gate and Reversible Gates in Various Technologies

CONSERVATIVE REVERSIBLE LOGIC BASED ON 2*3 SWITCHES

• Fig. 2.4.1: Realization of CNOT in double-rail switch-based technology

a

bba

ba

a

baa

baba

baba

a aa

b

ab

Page 21: 2011 0019 Y Gate and Reversible Gates in Various Technologies

2*3 Switch technologies

• Fig. 2.4.2: Realization of Fredkin gate in single-rail switch-based technology.

ca

ba

baca

baca

c

a

b

ab

a

ac

Page 22: 2011 0019 Y Gate and Reversible Gates in Various Technologies

New Synthesis method using 2*3 switches

• First Stage:– First we create a sequence of products of literals with more and more literals successively. – We do this in all possible ways. – This is illustrated in the left part of the upper row of gates in Figure 2.4.3 below. – This way, functions a, a’b, ab, a’c and ac are created. – For gates of smaller size the number of such products is quite limited so my method is rather efficient. – We cannot create fan-outs of any signals, including the primary inputs.

• Second Stage:– When we have the set of products available, next we can make sums of all possible pairs of disjoint products. – Disjoint are products that share at least one variable that is in various polarities in them. – This must be however done always in such a way that finally the number of primary outputs of the circuit that

we create will be the same as the number of primary inputs. – We check that each function being a primary output must be balanced.

• Third Stage:– Finally we check that the k*k function created by us is reversible.

• Comments:

– Based on a simple heuristic:– This way we always create a k*k gate– (by k*k gate we understand a reversible function with k inputs and k outputs). – The above algorithm can be implemented as a tree search algorithm.

Page 23: 2011 0019 Y Gate and Reversible Gates in Various Technologies

New gate in 2*3 switch technology

• Fig. 2.4.3: Using Switch gates to build a new reversible conservative gate.

b

aa

a

c

b

bc

b

ca

cc

a'b

ab

c'a

b'c

a'b+ac

c'a+cb

b'c+ba

a

b

c

a

b

c

a’b + ac

b’c + ba

c’a + cbFig. 2.4.4: Schematics of the new gate based on the schematics from Figure 2.4.3. This gate can realize products, inhibitions, sums and implication functions on its three outputs.

Page 24: 2011 0019 Y Gate and Reversible Gates in Various Technologies

Methodology to create new gates using 2*3 switch technology

• Fig. 2.4.5: Fredkin gate with internal swap built from switch gates

a

b

cab

ba

ac

+ ac

a

ab + caca

a

ba

a

Page 25: 2011 0019 Y Gate and Reversible Gates in Various Technologies

Hierarchical design from 2*3 switches

• Figure 2.4.6. Schematic of a new single-rail reversible gate using Fredkin gates built from 2*3 switches.

P

Q

a

b

d

cR

S

Page 26: 2011 0019 Y Gate and Reversible Gates in Various Technologies

New design ideas

• Figure 2.4.7. Another way of drawing the circuit from Figure 2.4.6 to emphasize its similarity to generalized gates introduced in Chapter 3.

• Both muxes are controlled by the Exor. • This circuit, in contrast to circuits in other figures is drawn

from right to left rather than from left to right to emphasize its reversible nature and to help using the analysis from Figure 2.4.8.

a

exorb

PQ

cdR

S

Page 27: 2011 0019 Y Gate and Reversible Gates in Various Technologies

• Fig. 2.4.8: • Another notation for the circuit from two Fredkin gates given in

Figure 2.4.6.• Assume x=c, y=d.

ab

x

y

ybxbU ybxbZ

C

D

New design ideasa u a z a b x b y a b x b y

a b x a b y a b x a b y

a b x a b y

( ) ( )

( ) ( )

• Fig. 2.4.9: Analysis of circuit from Fig.2.4.8.

Page 28: 2011 0019 Y Gate and Reversible Gates in Various Technologies

CNOT gate in De Vos technology

• Figure 2.3.4. Realization of CNOT in De Vos technology.

a

a

c

c

Q

Q

a

a

ca

c

a

c ’

c’ a

a

ac

a

c’a’

ac+ a’ c’

a c’+ a’ c

Page 29: 2011 0019 Y Gate and Reversible Gates in Various Technologies

Conclusion on 2*3 switch technology.

• Based on 2*3 switches. • Realized in optical, fluidic, CMOS and other nano. • This is not double-rail technology, but double-rail gates

can be created on a higher level.• NOT gate cannot be directly created.• Toffoli, Feynman and Fredkin gates can be created.• Complex gates can be created.• Gates are not necessarily conservative.• Creating complex gates is not simple.• Can create Fredkin, thus all gates from previous section

can be created.

Page 30: 2011 0019 Y Gate and Reversible Gates in Various Technologies

Concluding on 2*3 switches (cont)• Every conservative reversible gate can be built from 2*3, 3*2

switches and (hierarchically) from k*k conservative gates built in turn from 2*3 and 3*2 switches.

• Next, by using double-rail technology, every reversible gate can be built from conservative gates.

• Thus, every circuit discussed in chapters 3 - 6 can on the bottom of hierarchy be built from only 2*3 and 3*2 switches.

• The number of such switches is the cost function of the solution which is used to compare various designs one with another.

Page 31: 2011 0019 Y Gate and Reversible Gates in Various Technologies

2.5. MAJORITY GATES IN

QUANTUM CELLULAR AUTOMATA

• Fig. 2.5.1: Fredkin gate from Toffoli and CNOT gates with analysis equations. • The same figure explains also how Toffoli can be created from Fredkin. • Surrounding with two more Feynmans on left and right and next cancelling pairs of

successive Feynmans would restore the original Toffoli gate.

a

b

c

a

abbcacaabcbcaba )()(

cabaccabaccba )(

Page 32: 2011 0019 Y Gate and Reversible Gates in Various Technologies

Miller gate as three majorities is base of reversible design in

quantum dot cellular automata

• Fig. 2.5.2: Miller gate is three majorities with various polarities.

Miller gate

a

b

c maj (a, b, c)

maj (a, )cb ,

maj ( , b, c)a

Page 33: 2011 0019 Y Gate and Reversible Gates in Various Technologies

• Fig 2.5.3: Analysis of Miller’s gate. • Obviously, by surrounding Miller with two Feynmans with EXOR up in

first bit we will obtain Fredkin gate, • and next by surrounding again with Feynmans with EXOR up in

second bit we get Toffoli gate.

m (a, b, c)

ca

cb ),,()()( cbamccbcacabccbca

cbcabacacbcaba )()(

),,()()( cbamcbacabcbbccaba

a

b

c

Page 34: 2011 0019 Y Gate and Reversible Gates in Various Technologies

Miller gate plus inverters

is universal

• Fig. 2.5.4: Universality of Miller gate. Miller with inverters is universal.

Miller

Miller

Miller

Miller

Page 35: 2011 0019 Y Gate and Reversible Gates in Various Technologies

Fig 2.5.5: Realization of EXOR using 3 majorities.

maj

maj

maj

a

b

1

a

b

0

A

B

C

0 ba

Realization of EXOR needs ancilla bits

Page 36: 2011 0019 Y Gate and Reversible Gates in Various Technologies

Adaptation to reversible design

• Fig. 2.5.6: The circuit from Fig.2.5.5 redrawn to a notation that is more similar to Quantum Array notation.

a

0

1

b

maj

maj maj ba

A

B C

Page 37: 2011 0019 Y Gate and Reversible Gates in Various Technologies

New gate from Miller gates with no ancilla bits realizes a new Feynman-like gate

• Figure 2.5.7. This figure demonstrates that by taking two Miller gates we can create new reversible functions which are not the Miller gate with other polarities.

cbcaba

cbacab

bac

)( cbcaba

ca

b

c

c

a

ca

ba

a

b

c

c

a

cba This gate becomes Feynman gate with c=0

Page 38: 2011 0019 Y Gate and Reversible Gates in Various Technologies

Concluding on Quantum Dot Logic• Basic gates are NOT and majority.• SWAP is cheap.• AND and OR gates can be created with ancilla from majority.• Miller gate is three majorities with various polarities.• Other functions can be created using majorities.• Other functions can be created using Miller and NOT gates

• I believe that I will be able to create many useful gates in various families based on:– Majorities only– Majorities and SWAP– Majorities and NOT– Majorities, NOT and SWAP

• Toffoli, Feynman and Fredkin can be created but are not necessarily the best way to create big reversible circuits in quantum dot QCA.

Page 39: 2011 0019 Y Gate and Reversible Gates in Various Technologies

Concluding on technologies• Concluding. This section showed several ways of realizing reversible gates using

quantum dot based QCAs. All methods from next chapters can be thus used to synthesize circuits from quantum dots, but I have doubt how cost efficient these methods will be when compared to the group-theory methods developed by Dr. Guowu Yang and Prof. Perkowski for the Miller gate. On the other hand, the exact method of Yang et al is only for 3*3 circuits and my methods work for larger circuits. The tasks of designing best reversible gates on top of QCA and using such gates in synthesis are relatively separated and I can work only on one of them, as shown in next chapters. There is no method to design reversible circuits directly from majorities. Such method would be very useful for the recent breakthrough technology of quantum dots. The only paper in the literature is from Yang et al which has a theoretical analysis and some designs but no heuristic algorithm for practical design of larger circuits. Another open research topic. I am not committing myself to solve all these problems. I just want to show here that in addition to problems that I already solved and I just need to write better software there are several related tasks for which methods and algorithms should be created. I will work possible on these topics as well, in addition to my main topic of implementing software.

Page 40: 2011 0019 Y Gate and Reversible Gates in Various Technologies

Conclusion on all these technologies.

• Based on some type of switches. • Realized in optical, fluidic, CMOS and other nano.• Similar to quantum gates. • Double-rail technology often used.• Quadruple-rail technology can be created for adiabatic CMOS.

• Universal logic systems.• Some natural some not.• NOT gate can be usually but not always created.• Toffoli, Feynman and Fredkin gates can be always created.• Complex gates can be created.• Gates are not necessarily conservative.• Creating complex gates is simple or not simple, depending on technology.• Very little is published on synthesis of such gates from some type of specification.• Many open research problems, in physics and in synthesis methods.

Page 41: 2011 0019 Y Gate and Reversible Gates in Various Technologies

What to remember?1. Y gate2. Single-rail circuits with Y gates.3. Double-rail circuits with Y gates.4. What are advantages of double-rail circuits.5. Majority gate in Quantum Dot Cellular

Automata.6. How to use Majority to build Three-input EXOR?7. Relation between reversible Miller Gate and

Majority – how it can be used in QCA circuits?