arXiv is now an independent nonprofit! Learn more
License: arXiv.org perpetual non-exclusive license
arXiv:1210.8055v1 [cs.OH] 26 Oct 2012

A Synthesis Method for
Quaternary Quantum Logic Circuits

Sudhindu Bikash Mandal     Amlan Chakrabarti1     Susmita Sur-Kolay Affiliation: A. K. Choudhury School of Information Technology, University of Calcutta, India Affiliation: Advanced Computing and Microelectronics Unit, Indian Statistical Institute, India
Abstract

Synthesis of quaternary quantum circuits involves basic quaternary gates and logic operations in the quaternary quantum domain. In this paper, we propose new projection operations and quaternary logic gates for synthesizing quaternary logic functions. We also demonstrate the realization of the proposed gates using basic quantum quaternary operations. We then employ our synthesis method to design of quaternary adder and some benchmark circuits. Our results in terms of circuit cost, are better than the existing works.

Keywords: 
Quaternary algebra, Quaternary quantum logic gates, Quaternary logic synthesis, Quaternary adder

1 Introduction

Quaternary quantum computing is gaining importance in the field of quantum information theory and quantum cryptography as it can represent a Galois Field(4) quantum system by the basis states |0|0\rangle, |1|1\rangle, |2|2\rangle and |3|3\rangle. The unit of information is called a qudit which is characterized by a wave function |ψ|\psi\rangle [1, 2] expressed as a linear superposition of basis states. Multi-valued quantum algebra comprises the rules for a set of basic logic operations that can be performed on qudits. While in [3] the structure of a multi-valued logic gate is proposed which is experimentally feasible with a linear ion trap scheme for quantum computing; this approach can produce large dimensional circuits. A universal architecture for multi-valued reversible logic is given in [4], but quantum realization of the circuits thus obtained is not apparent. The universality of nn-qudit gates is presented in [5], but no algorithms for synthesis were given. Al-Rabedi et al. proposed in [6] the minimization technique for multi-valued quantum Galois field sum of products (QGFSOP). Quaternary logic is one of the promising multi-valued quantum logic systems. The binary logic functions can be expressed by grouping 22-bits together into equivalent quaternary value [7]. This theoretically reduces the total volume of the physical devices needed to approximately 1/log241/log_{2}^{4}, i.e. 1/21/2 the volume needed for binary system [7].

The realization of a given quaternary quantum function as a quantum circuit requires a set of gates for the quaternary logic operations. In [8], the realization of quaternary Feynman and Toffoli gates using 11-qudit and 22-qudit quaternary Muthukrishnan-Stroud gates (M-S Gate)[3] are illustrated. The QGFSOP expressions can be realized by using these Feynman and Toffoli gates [8]. The method of synthesizing incompletely specified multi-output quaternary function using quaternary 11-qudit gates and multi-qudit controlled gates has been proposed in [9]. But this synthesis method is not applicable for any arbitrary quaternary functions. In [10], a heuristic alogorithm is proposed for minimization of a QGFSOP expression for multi-output quaternary logic functions using a Quaternary Galois Field Decission Diagram (QGFDD). But no quantum gate level implementation was provided. In this paper, our specific contributions are as follows:

  • \bullet

    new projection operation for synthesizing quaternary logic functions;

  • \bullet

    new quaternary logic gates, namely Generalized Quaternary Gate (GQGGQG), permutative quaternary Controlled Cyclic Shift gate (C2CSC^{2}CS) and Modulo44 addition gate;

  • \bullet

    new simplification rules for reduction in gate count and circuit levels for multivalued quantum circuits.

The rest of the paper is organized as follows. We provide the preliminary concepts of multivalued quantum computing in section 1. We propose the qua- ternary algebra with a new projection operation in section 2. In section 3, we introduce some new quaternary logic gates. The proposed synthesis methodology along with its simplification rules are presented in section 4. The synthesis results for some example circuits and their comparison with related work are given in section 5. Concluding remarks appear in section 6.

2 Quaternary Algebra

A brief summary of the quaternary addition, multiplication and NOT operations as well as the quaternary projection operations LL, JJ and (the new one) PP are presented next. .

2.1 GF(4) arithmetic

Quaternary Galois field GF(4) is an algebraic structure consisting the set of elements Q={0, 1, 2, 3}. The addition (++) and multiplication (.) operations over GF(4) are shown in the Table 1.

Table 1: GF(4) Addition and Multiplication
++ 00 11 22 33 . 00 11 22 33
0 0 1 2 3 0 0 0 0 0
1 1 0 3 2 1 0 1 2 3
2 2 3 0 1 2 0 2 3 1
3 3 2 1 0 3 0 3 1 2

2.2 Quaternary Logical NOT

The logical NOT in quaternary quantum system is defined as NOT(a)=a+1NOT(a)=a+1, where +{}^{\prime}+^{\prime} denotes the modulo 4 addition, and aa ={0, 1, 2, 3}.

2.3 Quaternary Projection Operations LL, JJ and PP

We present nine projection operations, grouped into three types LiL_{i}, JiJ_{i}, and PiP_{i}, where ii = {00, 11, 22, 33}. While LiL_{i} and JiJ_{i} types were defined earlier [11, 12] as
Li(a)L_{i}(a) = 11 if aa = ii and 00 otherwise, and
Ji(a)J_{i}(a) = 22 if aa = ii and 00 otherwise.
We introduce the new PiP_{i} type operations, which are defined as
Pi(a)P_{i}(a) = 3 if a = ii and a = 00 otherwise.
Table 2 presents the truth tables for LiL_{i}, JiJ_{i}, and PiP_{i} types of operators as well as for the derived operators LiL^{\prime}_{i}, JiJ^{\prime}_{i} and PiP^{\prime}_{i}. The LiL_{i}, JiJ_{i} and PiP_{i} operations are commutative, associative and distributive over AND and OR logic.

Table 2: Truth table of projection operations LiL_{i}, LiL^{\prime}_{i}, JiJ_{i}, JiJ^{\prime}_{i}, PiP_{i}, PiP^{\prime}_{i}
aa 0 1 2 3 aa 0 1 2 3 aa 0 1 2 3 aa 0 1 2 3
L0(a)L_{0}(a) 1 0 0 0 J2(a)J_{2}(a) 0 0 2 0 L0(a)L^{\prime}_{0}(a) 0 1 1 1 J2(a)J^{\prime}_{2}(a) 2 2 0 2
L1(a)L_{1}(a) 0 1 0 0 J3(a)J_{3}(a) 0 0 0 2 L1(a)L^{\prime}_{1}(a) 1 0 1 1 J3(a)J^{\prime}_{3}(a) 2 2 2 0
L2(a)L_{2}(a) 0 0 1 0 P0(a)P_{0}(a) 3 0 0 0 L2(a)L^{\prime}_{2}(a) 1 1 0 1 P0(a)P^{\prime}_{0}(a) 0 3 3 3
L3(a)L_{3}(a) 0 0 0 1 P1(a)P_{1}(a) 0 3 0 0 L3(a)L^{\prime}_{3}(a) 1 1 1 0 P1(a)P^{\prime}_{1}(a) 3 0 3 3
J0(a)J_{0}(a) 2 0 0 0 P2(a)P_{2}(a) 0 0 3 0 J0(a)J^{\prime}_{0}(a) 0 2 2 2 P2(a)P^{\prime}_{2}(a) 3 3 0 3
J1(a)J_{1}(a) 0 2 0 0 P3(a)P_{3}(a) 0 0 0 3 J1(a)J^{\prime}_{1}(a) 2 0 2 2 P3(a)P^{\prime}_{3}(a) 3 3 3 0

3 Quaternary Logic Gates

The definitions of the existing quaternary logic gates as well as a few newly introduced quaternary logic gates are provided below. We also show the implementation of the newly proposed gates using basic quantum ternary operations.

3.1 Quaternary Feynman, Quaternary Toffoli, MAX and MIN gates

The 22-qudit Quaternary Feynman gate [8] is defined as:
Feynman(AA, BB) = AA + BB, where ’+’ operator is addition over GF(4)(Figure 1.a).
The quaternary 33-qudit Toffoli gate [8], shown in Figure 1.b is defined as:
Toffoli(A,B,C)=A.B+C(A,B,C)=A.B+C, where AA and BB are the control inputs and CC the target input, ’+’ and ’.’ operators are addition and multiplication over GF(4). We use the quaternary MAXMAX and MINMIN gates [13] respectively to replace the OR and the AND gates. These two gates are defined as
MAX(A1,A2,..,AnA_{1},A_{2},..,A_{n}, BB)={Aiif Ai  Ajij and Ai  B;Bif i,BAi;\left\{\begin{array}[]{ll}\mbox{$A_{i}$}&\mbox{if $A_{i}$ $\geq$ $A_{j}$, $i\neq j$ and $A_{i}$ $\geq$ $B$};\\ \mbox{$B$}&\mbox{if $\forall i,B\geq A_{i}$};\end{array}\right.
MIN(A1,A2,AnA_{1},A_{2},...A_{n}, BB) ={Ai if Ai  Ajij and AiB;Bif i,BAi;\left\{\begin{array}[]{ll}\mbox{$A_{i}$}&\mbox{ if $A_{i}$ $\leq$ $A_{j}$, $i\neq j$ and $A_{i}\leq B$};\\ \mbox{$B$}&\mbox{if $\forall i,B\leq A_{i}$};\end{array}\right.
where ii = {1,2,3n}\{1,2,3...n\} (Figures 2.a, 2.b). The quaternary Feynman and Toffoli gates can be realized using quaternary M-S gates [7, 8], defined as (Figure 2.c)
M-S(AA, BB) = ZZ operation on BB if AA = 33, otherwise BB, where ZZ is one of the 2424 shift operations [10] shown in Table 3.

Table 3: Shift Operations over GF(4) [10]
Symbol Operation Symbol Operation Symbol Operation Symbol Operation
x+0x^{+0} xx = xx x021x^{021} xx = 2x+22x+2 x23x^{23} xx = x2x^{2} x0231x^{0231} xx = 2x2+22x^{2}+2
x+1x^{+1} xx = x+1x+1 x032x^{032} xx = 2x+32x+3 x01x^{01} xx = x2+1x^{2}+1 x03x^{03} xx = 2x2+32x^{2}+3
x+2x^{+2} xx = x+2x+2 x132x^{132} xx = 3x3x x0213x^{0213} xx = x2+2x^{2}+2 x13x^{13} xx = 3x23x^{2}
x+3x^{+3} xx = x+3x+3 x012x^{012} xx = 3x+13x+1 x0312x^{0312} xx = x2+3x^{2}+3 x0123x^{0123} xx = 3x2+13x^{2}+1
x123x^{123} xx = 2x2x x023x^{023} xx = 3x+23x+2 x12x^{12} xx = 2x22x^{2} x02x^{02} xx = 3x2+23x^{2}+2
x013x^{013} xx = 2x+12x+1 x031x^{031} xx = 3x+33x+3 x0132x^{0132} xx = 2x2+12x^{2}+1 x0321x^{0321} xx = 3x2+33x^{2}+3
Refer to caption
Figure 1: (a) 22-qudit Quaternary Feynman gate (b) 3-qudit quaternary Toffoli gate
Refer to caption
Figure 2: (a) Quaternary MAX gate, (b) Quaternary MIN gate, (c) Quaternary M-S gate

3.2 Generalized Quaternary Gate

A new generalized quaternary gate (GQG) is required to realize the 24 shift operations [10] given in the Table 3. It is a multi-qudit gate shown in Figure 3.a. The controlling input of GQG can be used to select the 11-qudit shift operation on the target input. The GQG is formally defined as
GQG(A1,A2,..,An,B)GQG(A_{1},A_{2},..,A_{n},B)={B shift Xif A1,A2,..,An=0;B shift Yif A1,A2,..,An=1;B shift Zif A1,A2,..,An=2;B shift Wif A1,A2,..,An=3;B otherwise;\left\{\begin{array}[]{llll}\mbox{$B$ shift $X$}&\mbox{if $A_{1},A_{2},..,A_{n}=0$};\\ \mbox{$B$ shift $Y$}&\mbox{if $A_{1},A_{2},..,A_{n}=1$};\\ \mbox{$B$ shift $Z$}&\mbox{if $A_{1},A_{2},..,A_{n}=2$};\\ \mbox{$B$ shift $W$}&\mbox{if $A_{1},A_{2},..,A_{n}=3$};\\ \mbox{$B$ }&\mbox{otherwise};\end{array}\right.
The realization of a GQG gate using quaternary M-S gates, is shown in Figure 3.b.

Refer to caption
Figure 3: (a) A multi-qudit generalized quaternary gate (GQG), and (b) its realization using M-S gates

Implementation of LiL_{i}, JiJ_{i} and PiP_{i} operations using GQG

We can implement the LiL_{i}, JiJ_{i} and PiP_{i} operations by using a GQG, as shown in Figures 4.a, 4.b and 4.c respectively. For LiL_{i}, JiJ_{i} and PiP_{i} type operations, we set GQG(a,1), GQG(a,2) and GQG(a,3) respectively.

Refer to caption
Figure 4: GQG based realization of quaternary projection operations: (a)LiL_{i}, (b)JiJ_{i} and (c)PiP_{i}

3.3 Quaternary Controlled Cyclic Shift C2CSC^{2}CS gate

We propose a new 33-qudit C2CSC^{2}CS gate, used for realizing the simplification rules for quaternary minterms, as
C2CS(A,B,C)={C0123if AB;Cotherwise;C^{2}CS(A,B,C)=\left\{\begin{array}[]{ll}\mbox{$C^{0123}$}&\mbox{if $A\neq B$};\\ \mbox{$C$}&\mbox{otherwise};\\ \end{array}\right. where the values of the inputs are from the set {1, 2, 3} and C0123C^{0123} is the cyclic shift operation x0123x^{0123} defined in Table 3. The symbolic representation of C2CSC^{2}CS is shown in Figure 5.a and an instance of this gate is shown in Figure 5.b, where x0123x^{0123} shift operation is applied on CC if A=1A=1, B=3B=3 or A=3A=3, B=1B=1. The realization of the C2CSC^{2}CS gate using M-S gates is shown in Figure 6.

Refer to caption
Figure 5: (a) Quaternary 33-qudit C2CSC^{2}CS gate, and (b) an instance of it.
Refer to caption
Figure 6: Realization of quaternary 3-qudit C2CSC^{2}CS gate with M-S gates

3.4 A new Modulo44 Addition Gate

We introduce the new 22-qudit quaternary Modulo44 Addition gate as: ADD(A, B)= AA \bigoplus BB, where \bigoplus represent the modulo 44 addition. This gate can be used as a template for simplification of adder circuits. The symbolic representation of ADD gate is shown in Figure 7.a and the realization using quaternary M-S gate is shown in Figure 7.b

Refer to caption
Figure 7: (a) 22-qudit Modulo44 Addition Gate, and (b) its realization with M-S gates

4 Proposed Synthesis Methodology

4.1 Overview

Consider an mm-variable quaternary quantum logic function
f(a1,a2,,am)f(a_{1},a_{2},\ldots,a_{m}) = i=0n\sum^{n}_{i=0}(minterms for one )i + j=0p\sum^{p}_{j=0}(minterms for two)j + k=0s\sum^{s}_{k=0}(minterms for three)k,
where \sum implies logical quaternary OR, n, p and s are respectively the number of input vectors for which ff is 11, 22 and 33. Thus, ff is 0 for (4mnps)(4^{m}-n-p-s) of the input vectors. We express the minterms for one, two and three using the LiL_{i}, JiJ_{i} and PiP_{i} operations respectively. From Table II, we can state that
i=1mL0(ai)\prod^{m}_{i=1}L_{0}(a_{i}) = {1if i ai = 0;0if  i ai = 1, 2 or 3;\left\{\begin{array}[]{ll}\mbox{1}&\mbox{if $\forall i$ $a_{i}$ = 0};\\ \mbox{0}&\mbox{if $\exists$ i $a_{i}$ = 1, 2 or 3};\end{array}\right. i=1mL1(ai)\prod^{m}_{i=1}L_{1}(a_{i}) = {1if i ai = 1;0if  i ai = 0, 2 or 3;\left\{\begin{array}[]{ll}\mbox{1}&\mbox{if $\forall i$ $a_{i}$ = 1};\\ \mbox{0}&\mbox{if $\exists$ i $a_{i}$ = 0, 2 or 3};\end{array}\right.
i=1mL2(ai)\prod^{m}_{i=1}L_{2}(a_{i}) ={1if i ai = 2;0if  i ai = 0, 1 or 3;\left\{\begin{array}[]{ll}\mbox{1}&\mbox{if $\forall i$ $a_{i}$ = 2};\\ \mbox{0}&\mbox{if $\exists$ i $a_{i}$ = 0, 1 or 3};\end{array}\right. i=1mL3(ai)\prod^{m}_{i=1}L_{3}(a_{i}) ={1if i ai = 3;0if  i ai = 0, 1 or 2;\left\{\begin{array}[]{ll}\mbox{1}&\mbox{if $\forall i$ $a_{i}$ = 3};\\ \mbox{0}&\mbox{if $\exists$ i $a_{i}$ = 0, 1 or 2};\end{array}\right.
i,p,k,s=1mL0(ai).L1(ap).L2(ak).L3(as)\prod^{m}_{i,p,k,s=1}L_{0}(a_{i}).L_{1}(a_{p}).L_{2}(a_{k}).L_{3}(a_{s}) ={1if i,p,k,s ai = 0, ap = 1, ak = 2, as = 3;0if  i, p, k, s ai = 1, 2 or 3, ap = 0, 2 or 3,; ak = 0, 1 or 2, as = 0, 1 or 2;\left\{\begin{array}[]{lll}\mbox{1}&\mbox{if $\forall i,p,k,s$ $a_{i}$ = 0, $a_{p}$ = 1, $a_{k}$ = 2, $a_{s}$ = 3};\\ \mbox{0}&\mbox{if $\exists$ i, p, k, s $a_{i}$ = 1, 2 or 3, $a_{p}$ = 0, 2 or 3,};\\ \mbox{ }&\mbox{$a_{k}$ = 0, 1 or 2, $a_{s}$ = 0, 1 or 2};\end{array}\right.
where i+p+k+s=mi+p+k+s=m.

Hence, the minterms for which f=1f=1 are
1. i=1mL0(ai=0)\prod^{m}_{i=1}L_{0}(a_{i}=0), 2. i=1mL1(ai=1)\prod^{m}_{i=1}L_{1}(a_{i}=1), 3. i=1mL2(ai=2)\prod^{m}_{i=1}L_{2}(a_{i}=2),
4. i=1mL3(ai=3)\prod^{m}_{i=1}L_{3}(a_{i}=3), 5. i,p,k,s=1mL0(ai=0).L1(ap=1).L2(ak=2).L3(as=3).\prod^{m}_{i,p,k,s=1}L_{0}(a_{i}=0).L_{1}(a_{p}=1).L_{2}(a_{k}=2).L_{3}(a_{s}=3).

Similarly from Table 2, the minterms for which f=2f=2 are
1. i=1mJ0(ai=0)\prod^{m}_{i=1}J_{0}(a_{i}=0), 2. i=1mJ1(ai=1)\prod^{m}_{i=1}J_{1}(a_{i}=1), 3. i=1mJ2(ai=2)\prod^{m}_{i=1}J_{2}(a_{i}=2),
4. i=1mJ3(ai=3)\prod^{m}_{i=1}J_{3}(a_{i}=3), 5. i,p,k,s=1mJ0(ai=0).J1(ap=1).J2(ak=2).J3(as=3).\prod^{m}_{i,p,k,s=1}J_{0}(a_{i}=0).J_{1}(a_{p}=1).J_{2}(a_{k}=2).J_{3}(a_{s}=3).

The minterms for which f=3f=3 are
1. i=1mP0(ai=0)\prod^{m}_{i=1}P_{0}(a_{i}=0), 2. i=1mP1(ai=1)\prod^{m}_{i=1}P_{1}(a_{i}=1), 3. i=1mP2(ai=2)\prod^{m}_{i=1}P_{2}(a_{i}=2),
4. i=1mP3(ai=3)\prod^{m}_{i=1}P_{3}(a_{i}=3), 5. i,p,k,s=1mP0(ai=0).P1(ap=1).P2(ak=2).P3(as=3)\prod^{m}_{i,p,k,s=1}P_{0}(a_{i}=0).P_{1}(a_{p}=1).P_{2}(a_{k}=2).P_{3}(a_{s}=3).

4.2 Simplification Rules

Next, we define six simplification rules derived from Table 2
1. Li(a).0=0L_{i}(a).0=0, Ji(a).0=0J_{i}(a).0=0 and Pi(a).0=0P_{i}(a).0=0
2. Li(a).1=Li(a)L_{i}(a).1=L_{i}(a), Ji(a).2=Ji(a)J_{i}(a).2=J_{i}(a) and Pi(a).3=Pi(a)P_{i}(a).3=P_{i}(a)
3. Li(a)+0=Li(a)L_{i}(a)+0=L_{i}(a), Ji(a)+0=Ji(a)J_{i}(a)+0=J_{i}(a) and Pi(a)+0=Pi(a)P_{i}(a)+0=P_{i}(a)
4. Li(a)+1=1L_{i}(a)+1=1, Ji(a)+2=2J_{i}(a)+2=2 and Pi(a)+3=3P_{i}(a)+3=3
5. Li(a).Li(a)=0L_{i}(a).L^{\prime}_{i}(a)=0, Ji(a).Ji(a)=0J_{i}(a).J^{\prime}_{i}(a)=0 and Pi(a).Pi(a)=0P_{i}(a).P^{\prime}_{i}(a)=0
6. Li(a)+Li(a)=1L_{i}(a)+L^{\prime}_{i}(a)=1, Ji(a)+Ji(a)=2J_{i}(a)+J^{\prime}_{i}(a)=2 and Pi(a)+Pi(a)=3P_{i}(a)+P^{\prime}_{i}(a)=3

Simplification Rules for reducing ancilla qudits

For gate level realization of LiL_{i}, JiJ_{i}, and PiP_{i} we need an ancilla qudit for each of them. Further, to synthesize an mm-variable quaternary function with nn minterms specified in our proposed methodology, we have maximum of nmn*m ancilla qudits. However, we can reduce the number of ancilla qudits by the following three simplification rules based on the new quaternary C2CSC^{2}CS gate and Table 2:

7. Li(a)Lj(b)+Lj(a)Li(b)=C2CS(aij,bij,0)L_{i}(a)L_{j}(b)+L_{j}(a)L_{i}(b)=C^{2}CS(a_{ij},b_{ij},0), Ji(a)Jj(b)+Jj(a)Ji(b)=C2CSJ_{i}(a)J_{j}(b)+J_{j}(a)J_{i}(b)=C^{2}CS
(aij,bij,1)(a_{ij},b_{ij},1) and Pi(a)Pj(b)+Pj(a)Pi(b)=C2CS(aij,bij,2)P_{i}(a)P_{j}(b)+P_{j}(a)P_{i}(b)=C^{2}CS(a_{ij},b_{ij},2) Where ii, jj={1, 2, 3}

8. Li(a).Li(a)=Li(a)L_{i}(a).L_{i}(a)=L_{i}(a), Ji(a).Ji(a)=Ji(a)J_{i}(a).J_{i}(a)=J_{i}(a) and Pi(a).Pi(a)=Pi(a)P_{i}(a).P_{i}(a)=P_{i}(a)

9. Li(a1)Li(a2)..Li(an)=Li(a1,a2,..,an)L_{i}(a_{1})L_{i}(a_{2})..L_{i}(a_{n})=L_{i}(a_{1},a_{2},..,a_{n}), Ji(a1)Ji(a2)..Ji(an)=Ji(a1,a2,..,an)J_{i}(a_{1})J_{i}(a_{2})..J_{i}(a_{n})=J_{i}(a_{1},a_{2},..,a_{n}), and Pi(a1)Pi(a2)..Pi(an)=Pi(a1,a2,..,an)P_{i}(a_{1})P_{i}(a_{2})..P_{i}(a_{n})=P_{i}(a_{1},a_{2},..,a_{n}), i={0,1,2,3}i=\{0,1,2,3\}.

5 Synthesis of Quaternary Functions

5.1 22-qudit Quaternary Arbitrary Function

The truth table for the 22-qudit arbitrary function f(a,b)f(a,b) is given in Table 4.

Table 4: Truth table of 22-qudit f(a,bCLOSEf(a,b)
a , b 00 01 02 03 10 11 12 13 20 21 22 23 30 31 32 33
f(a,b)f(a,b) 0 3 1 2 3 3 2 0 1 2 1 3 2 1 3 2

We re-write the function f(a,b)f(a,b) using our proposed methodology as
f(a,b)f(a,b) = L0(a)L2(b)+L2(a)L0(b)+L2(a)L2(b)+L3(a)L1(b)+J0(a)J3(b)+J1(a)J2(b)+J2(a)J1(b)+J3(a)J0(b)++J3(a)J3(b)P0(a)P1(b)+P1(a)P0(b)+P1(a)P1(b)+P2(a)P3(b)L_{0}(a)L_{2}(b)+L_{2}(a)L_{0}(b)+L_{2}(a)L_{2}(b)+L_{3}(a)L_{1}(b)+J_{0}(a)J_{3}(b)+J_{1}(a)J_{2}(b)+J_{2}(a)J_{1}(b)+J_{3}(a)J_{0}(b)++J_{3}(a)J_{3}(b)P_{0}(a)P_{1}(b)+P_{1}(a)P_{0}(b)+P_{1}(a)P_{1}(b)+P_{2}(a)P_{3}(b)+P3(a)P2(b)P_{3}(a)P_{2}(b)
By using simplification rules 77 and 99, we get
f(a,b)f(a,b)=C2CS(a02,b02,0)+L2(a,b)+L3(a)L1(b)+C2CS(a03,b03,1)+C2CS(a12,b12,1)+J3(a,b)+C2CS(a10,b10,2)+C2CS(a23,b23,0)+P1(a,b)C^{2}CS(a_{02},b_{02},0)+L_{2}(a,b)+L_{3}(a)L_{1}(b)+C^{2}CS(a_{03},b_{03},1)+C^{2}CS(a_{12},b_{12},1)+J_{3}(a,b)+C^{2}CS(a_{10},b_{10},2)+C^{2}CS(a_{23},b_{23},0)+P_{1}(a,b)

Refer to caption
Figure 8: Quaternary 22-qudit Half Adder by our synthesis method

5.2 Quaternary Adder

We synthesize the 22-qudit half and full adder circuits using our proposed methodology and these circuits are simplified with the use of Modulo4 Addition gate. But the details are not provided due to limitation of space. The gate level implementation of 22-qudit half and full adder are shown in Figure 88 and 99 respectively.

Refer to caption
Figure 9: Quaternary 22-qudit Full Adder by our synthesis method

5.3 Comparison of Results

The quantum cost of the half and the full adder circuits, as shown in Figures 10 and 11, and of the benchmark circuits such as sum2sum2, rd53rd53, rd73rd73, xor5xor5 are evaluated in terms of the number of M-S gates used. The number of M-S gates required to realize a 22-qudit Feynman gate, a 33-qudit Toffoli, MAXMAX and MINMIN gates are 5, 17, 6, 6 respectively [7, 13]. To realize the new GQG, C2CSC^{2}CS, ADD gates we need 8 M-S gates for each of them. The M-S gate count cost comparison of our circuits with that in [14] are given in Table 6. While the second column of the table indicates the maximum number of ancilla qudits required to synthesize the above mentioned circuits, the third column shows the number of ancilla qudits required after using our simplification rules in Section 4.2. The columns 4, 5 and 6 establish that although our design has a small increase in cost for the circuits rd53rd53, rd73rd73, xor5xor5, the results for the 22-qudit quaternary half and full adder shows that there is more than 50%50\% reduction in the M-S gate count cost compared to [14].

Table 5: Comparison of Quantum cost by our method vs. [14]
# Levels Total Cost
Circuit maximum ancilla qudits Reduced ancilla qudits Ours [14] Ours [14]
Half Adder 36 6 6 23 46 114
Full Adder 120 17 17 40 128 304
Sum2 24 0 4 - 8 -
mul2 16 5 5 - 40 -
ham3 135 95 25 - 135 -
rd53 275 245 15 - 120 -
rd73 475 435 35 - 280 -
xor5 150 120 7 - 56 -

6 Conclusion

In this paper, we have proposed a methodology for logic synthesis of quaternary quantum circuits. We have defined a minterm based approach of expressing a quaternary logic function using LiL_{i}, JiJ_{i} and PiP_{i} operations. We have also stated the simplification rules for the method. Quaternary half adder, full adder and some benchmark circuits synthesized by our method, use fewer ternary quantum gates and hence reduce quantum realization cost compared to earlier method in [14]. While the number of levels is fewer in our synthesis, the number of ancilla bits is higher. A synthesis methodology for reduction of the number of ancilla qudits is being investigated.

References

  • [1] M. A. Nielsen and I. L. Chuang, Quantum Computation and Quantum Information, Cambridge University Press , 2002.
  • [2] A. Ekert and A. Zeilinger, The physics of quantum information, Springer Verlag, Berlin, 2002, pp. 1-14.
  • [3] A. Muthukrishnan and C. R. Stroud Jr., Multi-Valued Logic Gates for Quantum Computation, Phys. Rev. A62, 2000, pp. 0523091-8.
  • [4] P. Picton, A Universal Architecture for Multiple-Valued Reversible Logic, Multiple-Valued Logic - An International Journal, Vol. 5, 2000, pp. 27-37
  • [5] J. L. Brylinski and R. Brylinski, Universal Quantum Gates, (to appear in Mathematics of Quantum Computation, CRC Press, 2002) LANL e-print quant-ph/010862.
  • [6] M. Perkowski, A. Al-Rabadi, P. Kerntopf, A. Mishchenko, and M. Chrzanowska-Jeske, Three-Dimensional Realization of Multivalued Functions Using Reversible Logic, Booklet of 10th Int. Workshop on Post-Binary Ultra-Large-Scale Integration Systems (ULSI), Warsaw, Poland, May 2001, pp.47- 53
  • [7] M.M.M Khan, A. K. Biswas, S. Chowdhury, M.Tanzid, K.M.Mohsin, M. Hasan, A. I. Khan , Quantum realization of some quaternary circuits, TENCON 2008 - 2008 IEEE Region 10 Conference , vol., no., pp.1-5, 19-21 Nov. 2008
  • [8] M. H. Khan, Quantum Realization of Quaternary Feynman and Toffoli Gates Electrical and Computer Engineering, 2006. ICECE ’06. International Conference on , vol., no., pp.157-160, 19-21 Dec. 2006
  • [9] M. H. Khan, Synthesis of incompletely specified multi-output quaternary function using quaternary quantum gates, Computer and information technology, 2007. iccit 2007. 10th international conference on , vol., no., pp.1-6, 27-29 Dec. 2007
  • [10] M.H.A. Khan, N.K. Siddika, M.A. Perkowski, Minimization of Quaternary Galois Field Sum of Products Expression for Multi-Output Quaternary Logic Function Using Quaternary Galois Field Decision Diagram, Multiple Valued Logic, 2008. ISMVL 2008. 38th International Symposium on , vol., no., pp.125-130, 22-24 May 2008
  • [11] S.B.Mandal, A. Chakrabarti, and S. Sur-Kolay, Synthesis Technique for Ternary Quantum Logic, 41 th International Symposium on Multiple-Valued Logic, Tuusula, 2011, pp. 218-223.
  • [12] R. L. Herrmann, Selection and implementation of a ternary switching algebra, Spring Joint Computer Conference, Atlantic City, 1968, pp. 283-290 .
  • [13] N. Giesecke, D. H. Kim, S. Hossain and M. Perkowski, Search for Universal Ternary Quantum Gate Sets with Exact Minimum Costs, Proceedings of RM Symposium, Oslo, May 16, 2007.
  • [14] M. H. A. Khan, A recursive method for synthesizing quantum/reversible quaternary parallel adder/subtractor with look-ahead carry Journal of Systems Architecture 54 (2008) 1113–1121 .