A Synthesis Algorithm for 4-Bit Reversible Logic Circuits with Minimum Quantum Cost

作者:Li, Zhiqiang*; Chen, Hanwu; Song, Xiaoyu; Perkowski, Marek
来源:ACM Journal on Emerging Technologies in Computing Systems, 2014, 11(3): 29.
DOI:10.1145/2629542

摘要

This article presents an algorithm which can quickly find the exact minimum solution to almost all of 4-bit reversible functions. We assume minimization of quantum cost (MQC). This algorithm is designed in the most memory-efficient way, or it will quickly run out of memory. Therefore, we construct the shortest coding of permutations, the topological compression and flexible data structures for the memory savings. First, hash tables are used for all 8-gate 4-bit circuits with the minimization of gate count (MGC) by using the GT library (with NOT, CNOT, Toffoli and Toffoli-4 gates). Second, we merge and split the hash tables, thus generating a single longer hash table for high-performance. Third, we synthesize these circuits with MQC by using the GTP library (with GT, Peres, and Inverted Peres gates) based on the hash table. Finally, according to the comparison of the QC of circuits, the algorithm can quickly converge for any 4-bit reversible circuit with MQC. By synthesizing all benchmark functions, in comparison with Szyprowski and Kerntopf [ 2011], the running time and QC are reduced up to 99.95% and 18.2%, respectively.