Quantum Computing ~ Algorithms. HIO) 0 HIO) 010) = ~(l000) ) ) ))

Similar documents
Quantum Computation 650 Spring 2009 Lectures The World of Quantum Information. Quantum Information: fundamental principles

Quantum Computing. -RE-S-O-N-A-N-C-E--I-s-e-Pt-e-m-b-er ~ Building Blocks of a Quantum Computer

Quantum Computers. Todd A. Brun Communication Sciences Institute USC

1.0 Introduction to Quantum Systems for Information Technology 1.1 Motivation

phys4.20 Page 1 - the ac Josephson effect relates the voltage V across a Junction to the temporal change of the phase difference

quantum mechanics is a hugely successful theory... QSIT08.V01 Page 1

Experimental Realization of Shor s Quantum Factoring Algorithm

Secrets of Quantum Information Science

Quantum Computing. 6. Quantum Computer Architecture 7. Quantum Computers and Complexity

QUANTUM CRYPTOGRAPHY QUANTUM COMPUTING. Philippe Grangier, Institut d'optique, Orsay. from basic principles to practical realizations.

Shor s Prime Factorization Algorithm

Lecture note 8: Quantum Algorithms

QUANTUM COMPUTING. Part II. Jean V. Bellissard. Georgia Institute of Technology & Institut Universitaire de France

Experimental Quantum Computing: A technology overview

2.0 Basic Elements of a Quantum Information Processor. 2.1 Classical information processing The carrier of information

Introduction to Quantum Computing

Quantum Computation with Neutral Atoms Lectures 14-15

Magnetic semiconductors. (Dilute) Magnetic semiconductors

Quantum Computers. Peter Shor MIT

*WILEY- Quantum Computing. Joachim Stolze and Dieter Suter. A Short Course from Theory to Experiment. WILEY-VCH Verlag GmbH & Co.

Quantum Information Science (QIS)

Quantum computation and quantum information

Qubit Recycling. Ran Chu. May 4, 2016

Figure 1: Circuit for Simon s Algorithm. The above circuit corresponds to the following sequence of transformations.

Quantum Computing. Joachim Stolze and Dieter Suter. A Short Course from Theory to Experiment. WILEY-VCH Verlag GmbH & Co. KGaA

Introduction into Quantum Computations Alexei Ashikhmin Bell Labs

Quantum Computation with Neutral Atoms

The Deutsch-Josza Algorithm in NMR

Quantum Computation and Communication

Quantum algorithms (CO 781, Winter 2008) Prof. Andrew Childs, University of Waterloo LECTURE 1: Quantum circuits and the abelian QFT

Quantum Phase Estimation using Multivalued Logic

Superconducting Qubits Lecture 4

Semiconductors: Applications in spintronics and quantum computation. Tatiana G. Rappoport Advanced Summer School Cinvestav 2005

Introduction to Quantum Computing

arxiv: v2 [quant-ph] 1 Aug 2017

Reversible and Quantum computing. Fisica dell Energia - a.a. 2015/2016

Logic gates. Quantum logic gates. α β 0 1 X = 1 0. Quantum NOT gate (X gate) Classical NOT gate NOT A. Matrix form representation


Parallelization of the QC-lib Quantum Computer Simulator Library

arxiv:quant-ph/ v1 31 Mar 2000

Shor Factorization Algorithm

Some Introductory Notes on Quantum Computing

Quantum Circuits and Algorithms

IBM quantum experience: Experimental implementations, scope, and limitations

Quantum Computing with NMR: Deutsch-Josza and Grover Algorithms

Extended Superposed Quantum State Initialization Using Disjoint Prime Implicants

C/CS/Phys C191 Grover s Quantum Search Algorithm 11/06/07 Fall 2007 Lecture 21

Intern. J. Fuzzy Mathematical Archive Neutrosophic Quantum Computer Florentin Smarandache Abstract. Keywords:

Quantum Information Processing with Liquid-State NMR

Lecture 10: Eigenvalue Estimation

Introduction to Quantum Computing for Folks

QUANTUM TECHNOLOGIES: THE SECOND QUANTUM REVOLUTION* Jonathan P. Dowling

Shor s Algorithm. Polynomial-time Prime Factorization with Quantum Computing. Sourabh Kulkarni October 13th, 2017

Chapter 2. Basic Principles of Quantum mechanics

Measuring Spin-Lattice Relaxation Time

Lecture 6: Quantum error correction and quantum capacity

D.5 Quantum error correction

Quantum Computing. Thorsten Altenkirch

Introduction to Quantum Algorithms Part I: Quantum Gates and Simon s Algorithm

Factoring on a Quantum Computer

An introduction to Quantum Computing using Trapped cold Ions

arxiv:quant-ph/ v3 18 Jan 2004

How quantum computation gates can be realized in terms of scattering theory approach to quantum tunneling of charge transport

Promise of Quantum Computation

Factoring 15 with NMR spectroscopy. Josefine Enkner, Felix Helmrich

Simple scheme for efficient linear optics quantum gates

Introduction to Cavity QED: fundamental tests and application to quantum information Serge Haroche July 2004

How behavior of systems with sparse spectrum can be predicted on a quantum computer

Phase estimation. p. 1/24

Introduction to Superconductivity. Superconductivity was discovered in 1911 by Kamerlingh Onnes. Zero electrical resistance

Requirements for scaleable QIP

Lecture 22: Quantum computational complexity

Introduction to Quantum Computing

Quantum computing for beginners

Quantum Computing. Separating the 'hope' from the 'hype' Suzanne Gildert (D-Wave Systems, Inc) 4th September :00am PST, Teleplace

IBM Systems for Cognitive Solutions

A Glimpse of Quantum Computation

Short introduction to Quantum Computing

Implementing the quantum random walk

Ph 219b/CS 219b. Exercises Due: Wednesday 4 December 2013

INTRIQ. Coherent Manipulation of single nuclear spin

INTRODUCTION TO NMR and NMR QIP

Parallelization of the QC-lib Quantum Computer Simulator Library

QLang: Qubit Language

A scheme for protecting one-qubit information against erasure. error. Abstract

Quantum Optics and Quantum Informatics 7.5hp (FKA173) Introductory Lecture

simulations of the Polarization dependence of the light Potential equation in quantum ComPUting

Imitating quantum mechanics: Qubit-based model for simulation

Quantum Computing Lecture 6. Quantum Search

Quantum Error Correction Codes - From Qubit to Qudit

Advanced Cryptography Quantum Algorithms Christophe Petit

arxiv:quant-ph/ v5 6 Apr 2005

Short Course in Quantum Information Lecture 8 Physical Implementations

Magnetic Resonance in Quantum Information

Supercondcting Qubits

A central problem in cryptography: the key distribution problem.

Quantum theory has opened to us the microscopic world of particles, atoms and photons..and has given us the keys of modern technologies

Compute the Fourier transform on the first register to get x {0,1} n x 0.

Quantum Searching. Robert-Jan Slager and Thomas Beuman. 24 november 2009

Complexity of the quantum adiabatic algorithm

Transcription:

Quantum Computing 2. Algorithms C S Vijay and Vishal Gupta Introduction C S Vijay is in the final year of a dual degree program in microelectronics at the Department of Electrical Engineering at lit Mumbai. His primary interest is in developing algorithms for performance driven optimization ofvlsi circuits. Vishal Gupta was an undergraduate student at the Department of Electrical Engineering, lit Mumbai. His interests include quantum computing, physics, telephony, and information theory. He is currently involved with a start-up company at lit Mumbai. Part 1. Building Blocks of Quantum Computers, Resonance, Vol.S, No.9, pp.69-81, 2000. In the first part of this article, we had looked at how quantum physics can be harnessed to make the building blocks of a quantum computer. In this concluding part, we look at algorithms which can exploit the power of this computational device, and some practical difficulties in building such a device. Quantum Algorithms We had commented earlier that the state space of quantum systems grows exponentially with a linear increase in physical size, i.e., an n qubit system generates a 2 n dimensional space. Quantum algorithms exploit this fact by making a function act on an n qubit superposition. We first take an n qubit pre-set system (usually a collection of n 10)s) and apply the Walsh-Hadamard transformation to each of them. Starting with n 10) s, we obtain HIO) HIO)... HIO) HIO) = 1 2 n 100... 000) + 100... 01) +... = v'2n ~ Ix), which represents all the numbers from 1 to 2n. Any function f, when applied to this superposition, along with the customary additional 10) qubit (this field is the output location), would generate an equally weighted superposition of the values the function takes with each input separately. For example: HIO) 0 HIO) 010) = ~(l000) + 1010) + 1100) + 1110)) T(1000)+1010)+1100)+1110)) = 1000)+1010)+1100)+1111; --------~-------- 66 RESONANCE I October 2000

In effect we get all the entries of the truth table of the function at one stroke. A measurement of the final superposition gives us one of those entries. Thus, making a measurement at this point is thoroughly useless, as you only get a random measurement. Quantum algorithms apply transformations on this superposition that increase the probability of a desired result when a measurement is finally made. These transformations usually hope to achieve one of the following two objectives. They could, as in the case of Shor's factoring algorithm, try to extract some common features of the elements of the superposition, such as the periodicity of a function on them. The other possibility is of amplifying the coefficients of certain values of interest, e.g. those values which satisfy a certain search condition. Shor's Factoring Algorithm Consider the remainders left when non-negative integer powers of 2 are divided by 15. They form the periodic sequence 1, 2, 4, 8 repeated over and over again. This kind of a periodic sequence is obtained for any function of the form f(x) = axmodn, where a and N are relatively prime. Let r be the period of the function. We notice that f(o) = 1. Hence f(r) = 1, which implies that N divides at -1. For even numbers r, if the condition a T / 2 modn =1= ±1 is satisfied then a factor of N.can be obtained as the GCD of a T / 2 ± 1, and 'N. (since at - 1 = (a T / 2-1)(a T / 2 + 1)). PeterShor To start the quantum algorithm we prepare a superposition of numbers from 0 to M - 1 using the Walsh Hadamard transformation on a set of 10) qubits. A good value for Jvl is a power of two between N 2 and 2N 2. Then' we apply the unitary transform corresponding to the function f: 1 M-l 1 M-l v'm( ~lx) )10) ~ v'm ~ Ix)lf(x )). (1) -RE-S-O-N-A-N-C-E-I-O-c-to-b-e-r-2-0-0-0----------~----------------------------6-7

To extract the period, the tool we use is the quantum analogue of the Fast Fourier Transform (called the Quantum Discrete Fourier Transform), which acts on the amplitudes associated with the components of the input state. Hence, we create a state in which the amplitudes have the same period as f. This we do by measuring the second register which contains a superposition of values of f. Let the measured value be f(l) where l is the smallest x for which f(x) = f(l), i.e. f(l) = fur + l) for j = 0,1,2,... (2) Hence the post measurement state is: 1 A l<pin) = JA+1 L IJr + l)lf(l)). (3) A + 1 j=o In the above state the first register contains a uniform superposition of labeled states, the labels having a period r; all the information about the periodicity of f is now in the first register. The Quantum Discrete Fourier Transform acts as: 1 M-l 211" LX Ix) -t - L e(~)ly), (4) Vii y=o where x and y represent the integer equivalent of Ix) and Iy) in their binary representation. The fact that makes this algorithm efficient is that there exists an efficient quantum algorithm for the quantum DFT, and that f(x) can be computed efficiently. Let us first consider the simple case where r divides M exactly. Thus A = (r; - 1) and hence the first register in (3) can be written as: M-l ~ l<pin = L (!...-Ox,jr+l Ix) for j = 0,1,... A. x=o m We notice that the amplitude function of this state is a periodic function of x. Performing DFT on this superposition, we get: -68-------~~----- RESONANCE I October 2000

M-l r= A '"' V r '"' (211"1.IY(ir))] (211"1.IY»)I ) l<pout) = ~ (-[~e M e My. (5) y=o M j=o The term in the square brackets evaluates to Z or 0 depending on whether or not y is a multiple of -:;:-. Therefore the result of the DFT on l<pin) is: 1 r-l M '"' (211"1.111) l<pout) = r= ~ e M Ij-), yr j=o r (6) which is a state whose amplitudes have period ~. Notice that we have inverted the periodicity using the quantum DFT. We now make a measurement on the quantum register containing the superposition of 1J ~). If the result of this measurement be y, we can write: y A -=- M r' (7) where A is one of the values of j. We further make the assumption that A and r do not have any common factors. Then r is the denominator of the reduced fraction ~. We may have to repeat the algorithm if 1. r does not divide M exactly, in which case the measured y would not be a multiple of ~ but could be somewhat away from it. 2. The period r is odd. 3. A and r have a common factor, in which case we obtain a factor of r only. 4. We get N as N's factor. Repeating the algorithm log (N) number of times guarantees that the probability of success is greater than 0.5. The success probability can thus be made arbitrarily close to 1, using O(log(N)) resources. -RE-S-O-N-A-N-C-E-I-O-c-to-b-er--2-00-0-----------~-----------------------------'9

Grover's algorithm, which has been proved optimal for a quantum computer, runs in time proportional to the square root of the size of the search space. Grover's Search Algorithm In this section we provide a brief overview of a search algorithm developed by Lov Grover of Bell Labs. Unstructured search is a linear time algorithm on a classical computer. Grover's algorithm, which has been proved optimal for a quantum computer, runs in time proportional to the square root of the size of the search space. Other more efficient algorithms have been found for the cases where the search space has some structure. The algorithm begins, as in the case of Shor's algorithm, by preparing a register containing all the possible values between 0 and 2 n - 1, where n is a number such that 2 n is greater than N (the size of the search space). We label the elements of the search space with numbers 1 to N Let f be the function whose value is 1 for the arguments which satisfy the search condition and 0 otherwise. We apply this function to the superposition obtained earlier. Now we have a superposition where all the amplitudes are equal. Grover's algorithm increases the amplitudes of the states satisfying the search condition by repeatedly applying two operations: selective inversion (changing the amplitude of states which satisfy the search condition to a negative value of the same magnitude) and inversion about average (if any amplitude is a certain amount above the average of all amplitudes, then change it to the same amount below the average, and vice versa). Since, after selective inversion, the amplitude of the required states will be much below the average, and the amplitudes of the other states will be just above the average, inversion about average raises the amplitude of the required states. Thus, making a measurement now yields the right answer with a higher degree of success. For large N, the failure rate is less than 0 ( k ), after i VN steps. The inversion about the average operation is simply the operation - H IoH, where H is the Hadamard operation, --------~~------ RESONANCE I October 2000

and lois represented by the matrix: for N = 4. The selective inversion operation is a combination of U f' the gate which implements j, and the GNO T gate. The input is passed through' U f and the result acts as the controlling qubit of a GNOT gate whose other input is the constant ~(lo) - 11)). The interaction of a quantum system with the environment obstructs the unitary evolution of the system and causes dissipation of information, reducing coherence of information. In the case of classical computation it is intuitively clear why the lower bound on an unstructured search should be a linear time algorithm. However, though Grover's algorithm has been proven optimal for quantum computation, the fundamental reason behind it is not obvious. This shows that there is a long way to go before we fully appreciate the essence of quantum computation. Practical Issues The fundamental obstacle to building a quantum computer is that of decoherence. The interaction of a quantum system with the environment obstructs the unitary evolution of the system and causes dissipation of information, reducing coherence of information. In simpler words, the interaction with the environment is like making a measurement before the computation has been completed. It has been shown that decoherence can't be efficiently removed by simply repeating the computation many times. Technologists are working to reduce the effects of decoherence by employing techniques that allow more computation steps before the time when the effects of decoherence become significant. On the algorithmic side, more success has been achieved, with attempts to come up with error correction techniques by modeling the errors caused by decoherence. -RE-S-O-N-A-N-C-E-I--O-ct-ob-e-r-2-o-0-0-----------~~---------------------------n

Suggested Reading [1] S Lloyd, Scientific American, October 1995. [2] N Gershenfeld and I L Chuang, Scientific American, June 1998. [3] D P Divincenzo, Science, VoL 270, Oct 13, 1995. [4] Online resources at http:// www.qubit.org,l [5] Online resources at http:// xxx.lanl.gov/archivel quant-phi Attempts at physical realization of a quantum computer have used many different quantum systems. Some of these technologies of realizing qubits are: 1. Atomic ions trapped in cryogenic ion traps with lasers manipulating the ion's state (spin and oscillation). 2. Optical cavity with a trapped atom. 3. Nuclear magnetic resonance spectroscopy with liquid samples, where radio frequency beams manipulate the states of coupled nuclear spins in a molecule. 4. Using the tip of a scanning tunneling microscope to set the spin, inside nano-dots (magnetic dots of metals). 5. Ramsey atomic interferometry. U pto five qubit quantum computers have been constructed using NMR spectroscopy. Grover's search algorithm has been demonstrated on these systems. Conclusion Address for Correspondence C S Vijay Hostel 9, lit, Powai Mumbai 400 076, India. Email:csvijay@ee.litb.ernet.ln Vis hal Gupta Herald Logic Inc IT Business Incubator Department of Physics lit Powai, Mumbai 400 076, India. Email: gupta_vish@yahoo.com The physical realization of a full fledged quantum computer looks to many a distant dream, but some of the more optimistic researchers claim that it is a matter of a few more years. An important issue is what uses such a computer can be put to. Currently, apart from a very few algorithms, not much is known about the programming of such computers. A lot of work needs to be done not only on the physical side, but also on the algorithmic side, if we are to make the promises of this technology come true. We would like to stress that quantum systems provide an incredibly strong way of computation - however, to exploit this power, we will have to develop algorithms which are inherently 'quantum' in nature; doing so requires a paradigm shift in our theories of computation. 72 --------~~----- RESONANCE I October 2000