Table of Contents
Fetching ...

A complete set of transformation rules for reversible circuits

Shiguang Feng, Lvzhou Li

TL;DR

This work presents the first complete transformation-rule set $\mathcal{RC}$ for reversible circuits, coupling five fundamental rules with a canonical form derived from a Hamiltonian path on the $n$-dimensional hypercube. It proves that every $n$-bit reversible function has a unique canonical circuit and that any circuit can be transformed into this canonical form, thereby ensuring completeness: any two equivalent circuits can be connected through the canonical form. The canonical form is constructed via a universal gate set $\Delta_{\mathbb{H}}$ associated with a Hamiltonian path $\mathbb{H}$, with a constructive algorithm running in $O(n\cdot 4^n)$ time. While offering a strong theoretical guarantee for rule-based optimization, the paper also notes potential exponential blow-up in canonical form size and discusses scope limitations to ancilla-free circuits and directions for practical heuristic enhancements. These results provide a rigorous foundation for completeness in reversible circuit optimization within quantum EDA contexts.

Abstract

Reversible logic synthesis is a crucial component in quantum electronic design automation. While rule-based methodologies have gained prominence in reversible circuit optimization, the completeness of the transformation rule systems is a longstanding problem in this domain. In this work, we propose the first complete set of transformation rules for reversible circuits, comprising five fundamental rules: any two equivalent reversible circuits can be transformed into each other using the rules. To prove the completeness, a canonical circuit representation for reversible functions is introduced, and we show that every reversible function is computed by a unique reversible circuit in the canonical form, and any reversible circuit can be transformed into its canonical form by applying the rules.

A complete set of transformation rules for reversible circuits

TL;DR

This work presents the first complete transformation-rule set for reversible circuits, coupling five fundamental rules with a canonical form derived from a Hamiltonian path on the -dimensional hypercube. It proves that every -bit reversible function has a unique canonical circuit and that any circuit can be transformed into this canonical form, thereby ensuring completeness: any two equivalent circuits can be connected through the canonical form. The canonical form is constructed via a universal gate set associated with a Hamiltonian path , with a constructive algorithm running in time. While offering a strong theoretical guarantee for rule-based optimization, the paper also notes potential exponential blow-up in canonical form size and discusses scope limitations to ancilla-free circuits and directions for practical heuristic enhancements. These results provide a rigorous foundation for completeness in reversible circuit optimization within quantum EDA contexts.

Abstract

Reversible logic synthesis is a crucial component in quantum electronic design automation. While rule-based methodologies have gained prominence in reversible circuit optimization, the completeness of the transformation rule systems is a longstanding problem in this domain. In this work, we propose the first complete set of transformation rules for reversible circuits, comprising five fundamental rules: any two equivalent reversible circuits can be transformed into each other using the rules. To prove the completeness, a canonical circuit representation for reversible functions is introduced, and we show that every reversible function is computed by a unique reversible circuit in the canonical form, and any reversible circuit can be transformed into its canonical form by applying the rules.

Paper Structure

This paper contains 9 sections, 11 theorems, 102 equations, 4 figures, 1 table, 1 algorithm.

Key Result

Theorem 1

If $\mathbf{A} \Leftrightarrow \mathbf{B}$, then $\mathbf{A} \equiv \mathbf{B}$.

Figures (4)

  • Figure 1: Sketch of the completeness proof.
  • Figure 2: The X gate, CNOT gate, and Toffoli gate.
  • Figure 3: The illustration of (a) an MCT gate, and (b) an MPMCT gate.
  • Figure 4: The gates in the set $\Delta_\mathbb{H}$.

Theorems & Definitions (31)

  • Example 1
  • Example 2
  • Theorem 1: Soundness
  • proof
  • Proposition 1
  • proof
  • Example 3
  • Definition 1: Canonical form
  • Remark 1
  • Proposition 2: Universality
  • ...and 21 more