English

An Algorithm for Reversible Logic Circuit Synthesis Based on Tensor Decomposition

Logic in Computer Science 2024-07-24 v4 Emerging Technologies Quantum Physics

Abstract

An algorithm for reversible logic synthesis is proposed. The task is, for a given nn-bit substitution map Pn:{0,1}n{0,1}nP_n: \{0,1\}^n \rightarrow \{0,1\}^n, to find a sequence of reversible logic gates that implements the map. The gate library adopted in this work consists of multiple-controlled Toffoli gates denoted by Cm ⁣XC^m\!X, where mm is the number of control bits that ranges from 0 to n1n-1. Controlled gates with large m(>2)m \,\,(>2) are then further decomposed into C0 ⁣XC^0\!X, C1 ⁣XC^1\!X, and C2 ⁣XC^2\!X gates. A primary concern in designing the algorithm is to reduce the use of C2 ⁣XC^2\!X gate (also known as Toffoli gate) which is known to be universal. The main idea is to view an nn-bit substitution map as a rank-2n2n tensor and to transform it such that the resulting map can be written as a tensor product of a rank-(2n22n-2) tensor and the 2×22\times 2 identity matrix. Let Pn\mathcal{P}_n be a set of all nn-bit substitution maps. What we try to find is a size reduction map Ared:Pn{Pn:Pn=Pn1I2}\mathcal{A}_{\rm red}: \mathcal{P}_n \rightarrow \{P_n: P_n = P_{n-1} \otimes I_2\}. %, where ImI_m is the m×mm\times m identity matrix. One can see that the output Pn1I2P_{n-1} \otimes I_2 acts nontrivially on n1n-1 bits only, meaning that the map to be synthesized becomes Pn1P_{n-1}. The size reduction process is iteratively applied until it reaches tensor product of only 2×22 \times 2 matrices.

Keywords

Cite

@article{arxiv.2107.04298,
  title  = {An Algorithm for Reversible Logic Circuit Synthesis Based on Tensor Decomposition},
  author = {Hochang Lee and Kyung Chul Jeong and Daewan Han and Panjin Kim},
  journal= {arXiv preprint arXiv:2107.04298},
  year   = {2024}
}
R2 v1 2026-06-24T04:02:03.230Z