Reversible Logic Synthesis of k‐Input, m‐Output Lookup Tables
Alireza Shafaei, Mehdi Saeedi, Massoud Pedram University of Southern California Department of Electrical Engineering
Supported by the IARPA Quantum Computer Science
Reversible Logic Synthesis of k Input, m Output Lookup Tables - - PowerPoint PPT Presentation
Reversible Logic Synthesis of k Input, m Output Lookup Tables Alireza Shafaei, Mehdi Saeedi, Massoud Pedram University of Southern California Department of Electrical Engineering Supported by the IARPA Quantum Computer Science Outline
Supported by the IARPA Quantum Computer Science
17‐Mar‐13 1 Alireza Shafaei, Mehdi Saeedi, Massoud Pedram Department of Electrical Engineering, University of Southern California
17‐Mar‐13 2 Alireza Shafaei, Mehdi Saeedi, Massoud Pedram Department of Electrical Engineering, University of Southern California
x y z w x y z wo w’ if (x=0 & y=1 & z=1) w otherwise Control lines remain unchanged Target line
17‐Mar‐13 3 Alireza Shafaei, Mehdi Saeedi, Massoud Pedram Department of Electrical Engineering, University of Southern California
17‐Mar‐13 4 Alireza Shafaei, Mehdi Saeedi, Massoud Pedram Department of Electrical Engineering, University of Southern California
Node a Node b Color c
a b 7 16 8 17 9 15 11 19 12 22 13 18 14 20
For black edges
[1] A. M. Childs et al., “Exponential algorithmic speedup by a quantum walk,” in Proc. of the 35th Annual ACM Symposium
17‐Mar‐13 5 Alireza Shafaei, Mehdi Saeedi, Massoud Pedram Department of Electrical Engineering, University of Southern California
16 = (10000)2 7 = (00111)2 x0 x4 y0 y4
x y 16 7 x4x3x2x1x0 y4y3y2y1y0 10000 00111
x0 x4 y0 y4
17‐Mar‐13 6 Alireza Shafaei, Mehdi Saeedi, Massoud Pedram Department of Electrical Engineering, University of Southern California
7 16 16 7
a y 7 16 8 17 9 15 11 19 12 22 13 18 14 20
a minterm of
17‐Mar‐13 7 Alireza Shafaei, Mehdi Saeedi, Massoud Pedram Department of Electrical Engineering, University of Southern California
[2] K. Fazel, M. Thornton, and J. Rice, “ESOP‐based Toffoli gate cascade generation,” in PACRIM, pp. 206 –209, Aug. 2007. [3] M. Saeedi and I. L. Markov, “Synthesis and optimization of reversible circuits ‐ a survey,” ACM Computing Surveys, arXiv:1110.2574, 2013.
17‐Mar‐13 8 Alireza Shafaei, Mehdi Saeedi, Massoud Pedram Department of Electrical Engineering, University of Southern California
[4] N. M. Nayeem and J. E. Rice, “A shared‐cube approach to ESOP‐based synthesis of reversible logic,” in Facta universitatis ‐ series: Electronics and Energetics, vol. 24, no. 3, pp. 385–402, Dec. 2011.
17‐Mar‐13 9 Alireza Shafaei, Mehdi Saeedi, Massoud Pedram Department of Electrical Engineering, University of Southern California
y0 = c1+abc y1 = abc y0 = c1+abc y1 = c2+abc
No cube sharing Zero‐initialized ancilla available
c1+c2 c2+abc c1+c2+c2+abc =c1+abc
+: modulo 2 addition
17‐Mar‐13 10 Alireza Shafaei, Mehdi Saeedi, Massoud Pedram Department of Electrical Engineering, University of Southern California
ab is the shared cofactor, which is also a cube for y0
17‐Mar‐13 11 Alireza Shafaei, Mehdi Saeedi, Massoud Pedram Department of Electrical Engineering, University of Southern California
ab is the shared cofactor, but does not appear on neither of the outputs Zero‐initialized ancilla available Un‐computation of ab
17‐Mar‐13 12 Alireza Shafaei, Mehdi Saeedi, Massoud Pedram Department of Electrical Engineering, University of Southern California
17‐Mar‐13 13 Alireza Shafaei, Mehdi Saeedi, Massoud Pedram Department of Electrical Engineering, University of Southern California
input to the synthesis algorithm
constructed by pair‐wise comparison of cubes
17‐Mar‐13 14 Alireza Shafaei, Mehdi Saeedi, Massoud Pedram Department of Electrical Engineering, University of Southern California
S1 S2 S3 C1 C2 C3 C4 C5 C6 S2 S3 C4 C5 C6 If we choose S1, then C1, C2, and C3 will be created After removing S1, C1, C2, and C3, S2 is no more a shared cofactor Si: shared cofactors, Ci: cubes
17‐Mar‐13 15 Alireza Shafaei, Mehdi Saeedi, Massoud Pedram Department of Electrical Engineering, University of Southern California
Level‐0 shared cofactors Remaining shared cofactors at Level‐i look‐ahead depth
17‐Mar‐13 16 Alireza Shafaei, Mehdi Saeedi, Massoud Pedram Department of Electrical Engineering, University of Southern California
look‐ahead search synthesis
17‐Mar‐13 17 Alireza Shafaei, Mehdi Saeedi, Massoud Pedram Department of Electrical Engineering, University of Southern California
[5] A. Mishchenko and M. Perkowski, “Fast heuristic minimization of exclusive sum‐of‐products,” in Reed‐Muller Workshop, 2001.
17‐Mar‐13 18 Alireza Shafaei, Mehdi Saeedi, Massoud Pedram Department of Electrical Engineering, University of Southern California
[13] N. M. Nayeem and J. E. Rice, “A shared‐cube approach to ESOP‐based synthesis of reversible logic,” in Facta universitatis ‐ series: Electronics and Energetics, vol. 24, no. 3, pp. 385–402, Dec. 2011.
17‐Mar‐13 19 Alireza Shafaei, Mehdi Saeedi, Massoud Pedram Department of Electrical Engineering, University of Southern California
[7] I. L. Markov and M. Saeedi, “Constant‐optimized quantum circuits for modular multiplication and exponentiation,” QIC., vol. 12, no. 5‐6, pp. 361– 394, May 2012.
17‐Mar‐13 20 Alireza Shafaei, Mehdi Saeedi, Massoud Pedram Department of Electrical Engineering, University of Southern California
[7] I. L. Markov and M. Saeedi, “Constant‐optimized quantum circuits for modular multiplication and exponentiation,” QIC., vol. 12, no. 5‐6, pp. 361– 394, May 2012.
17‐Mar‐13 21 Alireza Shafaei, Mehdi Saeedi, Massoud Pedram Department of Electrical Engineering, University of Southern California
Can be removed by a post‐synthesis
17‐Mar‐13 22 Alireza Shafaei, Mehdi Saeedi, Massoud Pedram Department of Electrical Engineering, University of Southern California
17‐Mar‐13 23 Alireza Shafaei, Mehdi Saeedi, Massoud Pedram Department of Electrical Engineering, University of Southern California