Department of Computer Science & Engineering University of Washington

Slides:



Advertisements
Similar presentations
Department of Computer Science & Engineering University of Washington
Advertisements

Quantum Lower Bounds You probably Havent Seen Before (which doesnt imply that you dont know OF them) Scott Aaronson, UC Berkeley 9/24/2002.
The Future (and Past) of Quantum Lower Bounds by Polynomials Scott Aaronson UC Berkeley.
Pretty-Good Tomography Scott Aaronson MIT. Theres a problem… To do tomography on an entangled state of n qubits, we need exp(n) measurements Does this.
How to Solve Longstanding Open Problems In Quantum Computing Using Only Fourier Analysis Scott Aaronson (MIT) For those who hate quantum: The open problems.
Quantum Computation and Quantum Information – Lecture 3
University of Queensland
Puzzle Twin primes are two prime numbers whose difference is two.
Foundations of Cryptography Lecture 10 Lecturer: Moni Naor.
Quantum Computing MAS 725 Hartmut Klauck NTU
Quantum Packet Switching A. Yavuz Oruç Department of Electrical and Computer Engineering University of Maryland, College Park.
1 Quantum Computing: What’s It Good For? Scott Aaronson Computer Science Department, UC Berkeley January 10,  John.
Grover. Part 2. Components of Grover Loop The Oracle -- O The Hadamard Transforms -- H The Zero State Phase Shift -- Z O is an Oracle H is Hadamards H.
Oded Regev Tel-Aviv University On Lattices, Learning with Errors, Learning with Errors, Random Linear Codes, Random Linear Codes, and Cryptography and.
Review of basic quantum and Deutsch-Jozsa. Can we generalize Deutsch-Jozsa algorithm? Marek Perkowski, Department of Electrical Engineering, Portland State.
CSEP 590tv: Quantum Computing
Quantum Computing Joseph Stelmach.
Anuj Dawar.
1 Recap (I) n -qubit quantum state: 2 n -dimensional unit vector Unitary op: 2 n  2 n linear operation U such that U † U = I (where U † denotes the conjugate.
Shor’s Algorithm Osama Awwad Department of Computer Science Western Michigan University July 12, 2015.
CSEP 590tv: Quantum Computing Dave Bacon Aug 3, 2005 Today’s Menu Public Key Cryptography Shor’s Algorithm Grover’s Algorithm Administrivia Quantum Mysteries:
New Approach to Quantum Calculation of Spectral Coefficients Marek Perkowski Department of Electrical Engineering, 2005.
ROM-based computations: quantum versus classical B.C. Travaglione, M.A.Nielsen, H.M. Wiseman, and A. Ambainis.
Quantum Error Correction Jian-Wei Pan Lecture Note 9.
One Complexity Theorist’s View of Quantum Computing Lance Fortnow NEC Research Institute.
1 Introduction to Quantum Information Processing QIC 710 / CS 678 / PH 767 / CO 681 / AM 871 Richard Cleve DC 2117 / QNC 3129 Lectures.
Quantum Computation for Dummies Dan Simon Microsoft Research UW students.
October 1 & 3, Introduction to Quantum Computing Lecture 2 of 2 Richard Cleve David R. Cheriton School of Computer Science Institute for Quantum.
Quantum Computing MAS 725 Hartmut Klauck NTU TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: A A A A.
1 Introduction to Quantum Information Processing CS 467 / CS 667 Phys 467 / Phys 767 C&O 481 / C&O 681 Richard Cleve DC 653 Course.
Lecture note 8: Quantum Algorithms
Algorithms Artur Ekert. Our golden sequence H H Circuit complexity n QUBITS B A A B B B B A # of gates (n) = size of the circuit (n) # of parallel units.
October 1 & 3, Introduction to Quantum Computing Lecture 1 of 2 Introduction to Quantum Computing Lecture 1 of 2
CMPS 1371 Introduction to Computing for Engineers MATRICES.
Quantum Computing MAS 725 Hartmut Klauck NTU
Short course on quantum computing Andris Ambainis University of Latvia.
Quantum Factoring Michele Mosca The Fifth Canadian Summer School on Quantum Information August 3, 2005.
Quantum Computing MAS 725 Hartmut Klauck NTU
You Did Not Just Read This or did you?. Quantum Computing Dave Bacon Department of Computer Science & Engineering University of Washington Lecture 3:
1 Introduction to Quantum Information Processing CS 667 / PH 767 / CO 681 / AM 871 Richard Cleve DC 2117 Lecture 20 (2009)
Nothing Here. or How we learned to put our pants on two legs at a time. Fast Quantum Algorithms Dave Bacon Institute for Quantum Information California.
CSEP 590tv: Quantum Computing Dave Bacon July 20, 2005 Today’s Menu n Qubit registers Begin Quantum Algorithms Administrivia Superdense Coding Finish Teleportation.
1 Introduction to Quantum Information Processing CS 467 / CS 667 Phys 467 / Phys 767 C&O 481 / C&O 681 Richard Cleve DC 3524 Course.
1 Introduction to Quantum Information Processing CS 467 / CS 667 Phys 667 / Phys 767 C&O 481 / C&O 681 Richard Cleve DC 653 Lecture.
Lattice-based cryptography and quantum Oded Regev Tel-Aviv University.
Quantum Computing MAS 725 Hartmut Klauck NTU
Forrelation: A Problem that Optimally Separates Quantum from Classical Computing.
Quantum Computation Stephen Jordan. Church-Turing Thesis ● Weak Form: Anything we would regard as “computable” can be computed by a Turing machine. ●
Richard Cleve DC 2117 Introduction to Quantum Information Processing QIC 710 / CS 667 / PH 767 / CO 681 / AM 871 Lecture (2011)
Quantum Counterfeit Coin Problems Kazuo Iwama (Kyoto Univ.) Harumichi Nishimura (Osaka Pref. Univ.) Rudy Raymond (IBM Research - Tokyo) Junichi Teruyama.
Quantum Circuits and Algorithms l Modular Arithmetic, XOR l Reversible Computation revisited l Quantum Gates revisited l A taste of quantum algorithms:
Introduction to Quantum Algorithms Winter School on Quantum Security, Darmstadt Michele Mosca 25 January 2016.
Intro to Quantum Algorithms SUNY Polytechnic Institute Chen-Fu Chiang Fall 2015.
Attendance Syllabus Textbook (hardcopy or electronics) Groups s First-time meeting.
Quantum Algorithms Oracles
Richard Cleve DC 2117 Introduction to Quantum Information Processing CS 467 / CS 667 Phys 667 / Phys 767 C&O 481 / C&O 681 Lecture.
Introduction to Quantum Computing Lecture 1 of 2
A low cost quantum factoring algorithm
Quantum Circuits and Algorithms
Background: Lattices and the Learning-with-Errors problem
For computer scientists
Quantum Computing: What’s It Good For?
Quantum Computing Dorca Lee.
A Ridiculously Brief Overview
Quantum Computation and Information Chap 1 Intro and Overview: p 28-58
Quantum Computing Joseph Stelmach.
Introduction to Quantum Information Processing CS 467 / CS 667 Phys 467 / Phys 767 C&O 481 / C&O 681 Lecture 4 (2005) Richard Cleve DC 653
Presentation transcript:

Department of Computer Science & Engineering University of Washington Quantum Computing Lecture 4: Quantum Algorithms Dave Bacon Department of Computer Science & Engineering University of Washington

Summary of Last Lecture

Classical Promise Problem Query Complexity Given: A black box which computes some function k bit input k bit output black box Promise: the function belongs to a set which is a subset of all possible functions. Properties: the set can be divided into disjoint subsets Problem: What is the minimal number of times we have to use (query) the black box in order to determine which subset the function belongs to?

Quantum Promise Query Complexity Given: A quantum gate which, when used as a classical device computes a reversible function k qubit input k qubit output black box Promise: the function belongs to a set which is a subset of all possible functions. Properties: the set can be divided into disjoint subsets Problem: What is the minimal number of times we have to use (query) the quantum gate in order to determine which subset the function belongs to?

Functions We can write the unitary k qubit input k qubit output black box in outer product form as so that

Functions Note that the transform is unitary When precisely when f(x) is one to one!

Functions One to one Example: Not one to one:

An Aside on Functions Generically we can compute a non-reversible function using the following trick: n qubits function from n bits to k bits: k qubits is a bitwise exclusive or Such that, with proper input we can calculate f: ancilla

An Aside on Functions function from n bits n qubits to k bits: k qubits is a bitwise exclusive or

From This Perspective controlled-NOT + NOT 2nd bit “identity” constant functions balanced functions Deutsch’s problem is to distinguish constant from balanced

Query Complexities black box probability of failure Exact classical query complexity Bounded error algorithms are allowed to fail with a bounded probability of failure. Bounded error classical query complexity Exact quantum query complexity Bounded error quantum query complexity

Quantum Algorithms 1992: Deutsch-Jozsa Algorithm Exact classical q. complexity: David Deutsch Richard Jozsa Bounded error classical q. complexity: Exact quantum q. complexity: 1993: Bernstein-Vazirani Algorithm (non-recursive) Exact classical q. complexity: Umesh Vazirani Ethan Bernstein Bounded error classical q. complexity: Exact quantum q. complexity:

Quantum Algorithms 1993: Bernstein-Vazirani Algorithm (recursive) Bounded error classical q. complexity: Umesh Vazirani Ethan Bernstein Exact quantum q. complexity: (first super-polynomial separation) 1994: Simon’s Algorithm Bounded error classical q. complexity: Dan Simon Bounded error quantum q. complexity: (first exponential separation) Generalizing Simon’s algorithm, in 1994, Peter Shor was able to derive an algorithm for efficiently factoring and discrete log!

The Factoring Firestorm 18819881292060796383869723946165043 98071635633794173827007633564229888 59715234665485319060606504743045317 38801130339671619969232120573403187 9550656996221305168759307650257059 Peter Shor 1994 3980750864240649373971 2550055038649119906436 2342526708406385189575 946388957261768583317 4727721461074353025362 2307197304822463291469 5302097116459852171130 520711256363590397527 Best classical algorithm takes time Shor’s quantum algorithm takes time An efficient algorithm for factoring breaks the RSA public key cryptosystem

Deutsch-Jozsa Problem Given: A function with n bit strings as input and one bit as output (this will be a non-reversible function) Promise: The function is either constant or balance. constant function: balanced function: constant balanced Problem: determine whether the function is constant or balanced.

Classical Deutsch-Jozsa constant balanced Problem: determine whether the function is constant or balanced. No failure allowed: we need to query in the worst case values of to distinguish between constant and balanced Exact classical q. complexity:

Classical Deutsch-Jozsa constant balanced Problem: determine whether the function is constant or balanced. Bounded error: Query two different random values of the function. If they are equal, guess constant. Otherwise, guess balanced. Bounded error classical q. complexity:

Quantum Deutsch-Jozsa Given: A quantum gate on n+1 qubits strings which calculates the promised f n qubit 1qubit

Trick 1: Phase Kickback Input a superposition over second register: Function is computed into phase:

Trick 2: Hadamarding Qubits Note: and

Tricks 1 and 2 Together n qubits

Tricks 1 and 2 Together n qubits

Function in the Phase constant balanced

Function in the Phase When the function is constant: When the function is balanced: amplitude in zero state

Quantum Deutsch-Jozsa qubits If function is constant, r is always 0. If function is balanced, r is never 0. Distinguish constant from balanced using one quantum query

Deutsch-Jozsa 1992: Deutsch-Jozsa Algorithm Exact classical q. complexity: David Deutsch Richard Jozsa Bounded error classical q. complexity: Exact quantum q. complexity:

Bernstein-Vazirani Problem Given: A function with n bit strings as input and one bit as output Promise: The function is of the form Problem: Find the n bit string

Classical Bernstein-Vazirani Given: A function with n bit strings as input and one bit as output Promise: The function is of the form Problem: Find the n bit string Notice that the querying yields a single bit of information. But we need n bits of information to describe . Bounded error classical q. complexity:

Quantum Bernstein-Vazirani n qubits

Hadamard It!

Quantum Bernstein-Vazirani qubits We can determine using only a single quantum query!

Bernstein-Vazirani 1993: Bernstein-Vazirani Algorithm (non-recursive) Exact classical q. complexity: Umesh Vazirani Ethan Bernstein Bounded error classical q. complexity: Exact quantum q. complexity:

Bernstein-Vazirani 1993: Bernstein-Vazirani Algorithm (recursive) Bounded error classical q. complexity: Umesh Vazirani Ethan Bernstein Exact quantum q. complexity: (first super-polynomial separation) RFS (recursive Fourier sampling) NP P

Simon’s Problem (is that nobody does what Simon says) Given: A function with n bit strings as input and one bit as output Promise: The function is guaranteed to satisfy Problem: Find the n bit string

Classical Simon’s Problem Promise: The function is guaranteed to satisfy Suppose we start querying the function and build up a list of the pairs If we find such that then we solve the problem: But suppose we start querying the function m times…. Probability of getting a matching pair Bounded error query complexity:

Quantum Simon’s Problem black box Unlike previous problems, we can’t use the phase kickback trick because there is no structure in the function. Charge ahead:

Quantum Simon’s Problem n qubits n qubits

Quantum Simon’s Problem Measure the second register Using the promise on the function This implies that after we measure, we have the state For random uniformly distributed uniformly distributed = all strings equally probable Measuring this state at this time does us no good….

Quantum Simon’s Problem Measuring this state in the computational basis at this time does us no good…. For random uniformly distributed Measurement yields either or But we don’t know x, so we can’t use this to find s.

Quantum Simon’s Problem n qubits n qubits

Quantum Simon’s Problem Measuring this state, we obtain uniformly distributed random values of such that If we have eliminated the possible values of by half

Quantum Simon’s Problem On values of which are 0, this doesn’t restrict On values of which are 1, the corresponding must XOR to 0. This restricts the set of possible ‘s by half. Example: possible ‘s:

(Z2)n Vectors If single run eliminates half, multiple runs….how to solve? Think about the bit strings as vectors in vectors in We can add these vectors: Where all additions are done module 2

(Z2)n Vectors Example: We can multiply these vectors by a scalar in

(Z2)n Vectors dot product of vectors in Example:

(Z2)n Vectors vectors in one possible basis:

(Z2)n Vectors vectors in But we can expand in about a different set of vectors Example:

(Z2)n Vectors vectors in But we can expand in about a different set of vectors When these n vectors are linearly independent linearly independent linearly dependent

Quantum Simon’s Problem Think about the bit strings as vectors in Multiple runs of the quantum algorithm yield equations random uniform If we obtain linearly independent equations of this form, we win (Gaussian elimination)

(Z2)n Vectors Notice that if y is one of vectors with only one 1: th bit then this implies Notice that if y is one of vectors with only one two 1’s: then this implies or

(Z2)n Gaussian Elimination is equivalent to (remember, we know the y’s)

(Z2)n Gaussian Elimination We can add rows together to get new equations We can always relabel the and correspondingly

(Z2)n Gaussian Elimination Using these two techniques it is always possible to change the equations to the form: Where the prime indicates that the may have been permuted. Depending on the v’s this allows us to find the

(Z2)n Gaussian Elimination Example: already in correct form add all three equations already in correct form solutions:

Quantum Simon’s Problem Think about the bit strings as vectors in Multiple runs of the quantum algorithm yield equations random uniform If we obtain linearly independent equations of this form, we win (Gaussian elimination) Suppose we have linearly independent ‘s. What is the probability that is linearly independent of previous ‘s?

Quantum Simon’s Problem What is the probability that our equations are linearly independent? With constant probability we obtain linearly independence and hence solve Simon’s problem.

Simon’s Problem 1994: Simon’s Algorithm Bounded error classical q. complexity: Dan Simon Bounded error quantum q. complexity: (first exponential separation!)

Pooh-Pooh? People like to pooh-pooh these early problems because they do not solve problems which are “natural” This is silly. These results show that treating a device as classical or as quantum show amazing differences.

Killer Application? In 1994, after Simon’s algorithm, quantum computers were interesting, but were still a novelty. Next Lecture we will see how this all changed, when Peter Shor discovered how to factor efficiently using a quantum algorithm. Peter Shor