Professional Documents
Culture Documents
0932-0784 / 02 / 0800-0701 $ 06.00 © Verlag der Zeitschrift für Naturforschung, Tübingen · www.znaturforsch.com
702 Z. Diao et al. · A Quantum Circuit Design for Grover’s Algorithm
Both Iw0 and Is are unitary operators, and where “L” denotes the Boolean operator AND.
The matrix representation for Lm (U) is
G ≡ –Is Iw0 (1.11)
1
is Grover’s unitary operator to be used in the iterative O
0
search for |w0 Ò. Using |sÒ as the initial state, and apply-
Λ m (U) =
O
ing the operator G, k times, i.e., (2.1)
1
G k | s 〉,k ≈ p N, (1.12) 0
u00 u01
4 u10 u11 m +1 m +1
2 ×2
we will obtain |w0 Ò with a high probability (close to 1).
In the following sections we describe our procedures and the network notation is given in Fig. 1. We use X to
for the quantum optical circuit design. The idea centers denote the NOT-gate sx in (1.8). Then L1 (X) and L2 (X)
on first constructing, and then using a key n-bit unitary are, respectively, the well known Controlled-NOT and
transformation the Toffoli gates.
Fig. 7. The network simulating the Toffoli gate using the basic
gates Uq, f and Qh .
Fig. 8. Construction of the n-bit transformation Ln–1 (X) using 2 n – 7 Toffoli gates and n –3 scratch bits (s)1, (s)2, …, (s)n –3.
0 – i
Up/2,0 = = – is x ,
– i 0
0 i
Up/2, p = = – i s x = Up*/2,0 . (4.7)
i 0
Therefore, by (1.6) and (1.7),
| w0 〉 = (iUp( i/12,0
)
) (iUp( i/22,0
)
) L (iUp( i/k2,0
)
) |11L 1〉
= i k Up( i/12,0
)
Up( i/22,0
)
L Up( i/k2,0
)
|11L 1〉
and, thus,
Fig. 10. Quantum circuitry for the Grover iteration operator. I w0 = I – 2 | w0 〉 〈 w0 |
= I – 2(i k ) Up( i/12,0
)
) Up( i/22,0
)
L Up( i/k2,0
)
|11L 1〉
( ik ) ( i2 ) ( i1)
⋅ 〈11L 1| Up/2, p L Up/2, p Up/2, p (– i ) k
I: the block for the unitary operator “inversion about
the average”, i.e., = I – 2 Up( i/12,0
) )
Up( i/22,0 L Up( i/k2,0
)
|11L 1〉
⋅ 〈11L 1| Up/2, p L Up/2, p Up( i/12,) p
( ik ) ( i2 )
Is = I – 2 |sÒ ·s|; cf. (1.10) (4.3)
= Up( i/12,0
)
Up( i/22,0
)
L Up( i/k2,0
)
( I – 2 |11L 1〉 ⋅ 〈11L 1| )
In the following, we provide the mathematical proofs ( ik ) ( i2 ) ( i1)
justifying that the circuitry blocks in Fig. 10 indeed sat- ⋅ Up/2, p L Up/2, p Up/2, p , (4.8)
isfy the properties (4.1) – (4.3) as intended. which is exactly (4.6). Note that in the derivation of
The operation (4.1) in the W block of Fig. 10 is inter- (4.8), we have utilized the property
preted in the following.
Up( i/12,0
)
Up( i/22,0
)
L Up( i/k2,0
)
I Up( i/k2,) p Up( i/k2,–1p) L Up( i/12,) p = I .
Theorem 7.
Up(1/)4, p/2 | 0 〉 ⊗ Up(2/)4, p/2 | 0 〉 ⊗ L ⊗ Up(n/)4, p/2 | 0 〉 Remark 3. The currently well-known standard approach
implementing the unitary operator Iw0 is via the unitary
= n1/2 [| 00 L 00 〉 + | 00 L 01〉 + | 00 L 10 〉 transformation Uf : |xÒ |yÒ → |xÒ |y ⊕ f (x)Ò, with the
2 + L + |11 L 10 〉 + |11 L 11〉 ] auxiliary qubit |yÒ set to — 1—
2 (|0Ò – |1Ò). Furthermore, the
= | s〉 . implementation of f has to be done via another unitary
(4.4) transformation |xÒ |0Ò → |xÒ | f (x)Ò, with one more aux-
iliary qubit, since f is in general not reversible. Taking
Proof. This is a well-known fact. We have this fact into account, Fig. 11 renders us a complete pic-
ture of the construction. However, this approach calls
Up/4, p/2 | 0 〉 = 1 [| 0 〉 + |1〉 ] . (4.5)
2 for a concrete realization of f, and it is not within the
scope of task of this article. We would rather concen-
Therefore the tensor product in (4.4) gives |sÒ as in trate on the operators directly related to Grover’s algo-
(4.1). rithm. We adopt a different approach in that, for given
Next, we interpret the oracle block O in Fig. 10 |w0 Ò satisfying (1.5) – (1.7) (known only to the oracle),
through the following. (i1) (i1) (i2) (i2)
the 1-bit unitary gates Up /2,0 , Up /2, p , Up /2,0 , Up /2,p , …,
(ik) (ik)
Up /2,0 , Up /2,p , are selected and activated by an oracle
Theorem 8. Let |w0 Ò be given by (1.6) satisfying (1.7).
Then
Up( i/12), p Up( i/22), p L Up( i/k2), p K n Up( i/k2,0
)
L Up( i/22,0
)
Up( i/12,0
)
=I w0 . (4.6)
subroutine and transmitted to the oracle block O in order to perform one iteration G|sÒ, we need as many as
Fig. 10, yielding the unitary operator Iw0. This “hard
wiring” approach is easy to implement. 2 (22 n – 75) + 5n + 1 = 49n – 149
Finally, the following theorem interprets the I block elementary quantum gates. To perform Gk |sÒ, we need
in Figure 10. no more than
Up(1, 0) U –(1p)/4, p/2 U –(2p) /4, p/2 L U –(np) /4, p/2 K n elementary quantum optical operations. The total num-
ber of qubits required is actually n + (n – 3) = 2 n – 3,
⋅ Up(n/)4, – p/2 Up(n/4,
–1)
– p /2 L Up /4, – p /2 = – I s .
(1 )
(4.9) where we recall that n – 3 is the number of scratch bits
used in Theorem 5.
Proof. First note that
1 1 0
Up/4, – p/2 |1〉 = 1 = 1 [| 0 〉 + |1〉 ] .
2 –1 1 1 2 Summary
Thus, similarly to (4.4) and (4.5), we have In this paper, we have presented a circuit design for
the implementation of Grover’s algorithm for an arbi-
(Up(1/)4, – p/2 |1〉) ⊗ (Up(2/)4, – p/2 |1〉) ⊗ L ⊗ (Up(n/)4, – p/2 |1〉)
(4.10) trary number of objects in the search database. The cir-
= Up(1/)4, – p/2 Up(2/)4, p/2 L Up(n/)4, – p/2 |11L 〉 cuit consists of only two types of quantum gates, name-
1 [| 00 L 00 〉 + L + |11L 11〉 ] = | s 〉 . H en- ly the 1-bit unitary gate and the 2-bit phase gate. A phys-
= fc(4.10)
r oe m, ical realization still remains a formidable task, as the
2n–2 at hn de
ft ha ca tt number of phase gates increase significantly, though
U *p / 4 , – p / 2 = U p / 4 , p / 2 ,
polynomially with increasing values of log N. Even
we have
though we have used 1-bit gates based on resonant
I s = I – 2 | s〉 〈 s| coupling of atoms with classical fields and 2-bit gates
= I – 2 Up(1/)4, – p/2 Up(2/)4, p/2 L Up(n/)4, – p/2 |11L 1〉 based on dispersive coupling of atoms with cavity
⋅ 〈11L 1| Up(n/)4, p/2 L Up(1/)4, p/2 fields, there is good evidence that devices made of ion
traps or quantum dots are modelled similarly or even
= Up(1/)4, – p/2 Up(2/)4, – p/2 L Up(n/)4, – p/2 [I – 2 |11L 1〉 ⋅ 〈11L 1|] identically by the same 1-bit and 2-bit gates and, thus,
⋅ Up(n/)4, p/2 L Up(1/)4, p/2 . the circuit design should remain little changed. Also, the
“hard wiring” oracle call needs to be addressed more
The rightmost gate in the I Block in Fig 10, Up(1), 0 , just
carefully.
represents –I. Hence (4.9) follows.
Acknowledgements
Remark 4. Using Remark 2 and Fig. 10, we see that in
[1] P. Shor, Algorithms for quantum computation: Discrete [7] M. O. Scully and M. S. Zubairy, Quantum Optical Imple-
Logarithms and Factoring, in Proceedings of the 35th mentation of Grover’s Algorithm, Proc. Natl. Acad. Sci.
IEEE Symposium on the Foundations of Computer Sci- USA 98, 9490 (2001).
ence, IEEE Press, Piscataway, NJ 1994, pp. 124–134. [8] J. Ahn, T. C. Weinacht, and P. H. Bucksbaum, Informa-
[2] L. Grover, Quantum Mechanics helps in Searching for a tion Storage and Retrieval through Quantum Phase, Sci-
Needle in a Haystack, Phys. Rev. Lett. 78, 325 (1997). ence 287, 463 (2000).
[3] E. Farhi and S. Gutmann, Analog Analogue of a Digital [9] A. Rauschenbeutel, G. Nogues, S. Osnaghi, P. Bertet, M.
Quantum Computation, Phys. Rev. A57, 2403 (1998). Brune, J. M. Raimond, and S. Haroche, Coherent Oper-
[4] S. Lloyd, Quantum Search without Entanglement, Phys. ation of a Tunable Quantum Phase Gate in Cavity QED,
Rev. A61, 010301(R) (2000). Phys. Rev. Lett. 83, 5166 (1999). See also, Q. A. Turch-
[5] I. L. Chuang, N. Gershenfeld, and M. Kubinec, Experi- ette, C. J. Hood, W. Lange, H. Mabuchi, and H. J. Kim-
mental Implementation of fast quantum searching, Phys ble, Measurement of Conditional Phase Shifts for Quan-
Rev. Lett. 80, 3408 (1998). tum Logic, Phys. Rev. Lett. 75, 4710 (1995).
[6] P. G. Kwiat, J. R. Mitchell, P. D. D. Schwindt, and A. G. [10] M. O. Scully and M. S. Zubairy, Quantum Optics, Cam-
White, Grover’s Search Algorithm: An Optical Ap- bridge Univ. Press, Cambridge, U.K. 1997.
proach, J. Mod. Optics 47, 257 (1999).
708 Z. Diao et al. · A Quantum Circuit Design for Grover’s Algorithm
[11] A. Barenco, C. H. Bennett, R. Cleve, D. DiVincenzo, N. [12] G. Chen, S. A. Fulling, and J. Chen, Generalization of
Mangolus, P. Shor, T. Sleator, J. Smolin, and H. Wein- Grover’s Algorithm to Multi-object Search in Quantum
furter, Elementary Gates for Quantum Computation, Computing, Part I: Continuous Time and Discrete Time,
Phys. Rev. A52, 3457 (1995). quant-ph/0007123. Also, in Chapt. 6 of “Mathematics of
Quantum Computation”, edited by R. K. Brylinski and
G. Chen, CRC Press, Boca Raton, Florida, 2002,
pp. 135–160.