Presentation is loading. Please wait.

Presentation is loading. Please wait.

A Ridiculously Brief Overview

Similar presentations


Presentation on theme: "A Ridiculously Brief Overview"— Presentation transcript:

1 A Ridiculously Brief Overview
Quantum Computing: A Ridiculously Brief Overview Frederic Green CS270 Clark University Spring 2018

2 Some Background Computation as we know it obeys classical laws; but Nature is quantum mechanical! Feynman (ca. 1981) noted that “quantum mechanical computers” can probably simulate physical systems more efficiently than classical ones. Deutsch (1985) introduced quantum Turing machines, and found evidence that they can solve some problems more efficiently than classical Turing machines. Shor (1994) found an efficient quantum algorithm to factor a number. No known classical algorithm can do this. Grover (1996) found a quantum algorithm to search an unsorted database of n items in time O(√n). This is not possible classically.

3 Two Important Questions:
Can we build a quantum computer? If we could build one, would it be useful? In these lectures: Mostly ignore first question above. Start with a quick explanation of what quantum computing is… then see a little of what we can do with it.

4 Let’s see what quantum computation is mathematically.
First let’s look at classical probabilistic computation. Example: Miller-Rabin primality test. Very roughly (!) stated: To determine if n is prime: Randomly generate a bunch of numbers m < n. Check that mk = 1 (mod n), or -1, for certain (carefully chosen!) k. If so, return TRUE, else FALSE. As we generate more and more bits of m, the number of possible “configurations of memory” increases exponentially. But the right answer is obtained with very high probability.

5 A picture of this process:
time “possible configuration of memory” (only one when we start out)

6 t=0

7 t=1

8 t=2

9 t=3

10 2|n| |n|

11 Desired configurations
m |n|

12 Interpretation: At any step of the computation, memory can be in any one of a large number of configurations. Each configuration occurs with a certain probability; represent this set of probabilities as a vector (2n components for n bits). The vector of probabilities evolves over time according to a certain set of rules determined by the algorithm.

13 “Vector of probabilities”

14 “Vector of probabilities”

15 “Vector of probabilities”

16 “Vector of probabilities”

17 “Vector of probabilities”

18 The “tree” representation is a little misleading:
many configurations t=3

19 The “tree” representation is a little misleading:
can lead to one t=4

20 ...but this clarifies what’s happening:
j = prob that j leads to i Let Then i.e., matrix multiplication! .....to sum up:

21 Evolution of probabilities (classical formulation):
Let v(t) = vector of probabilities at time t. vi(t) = probability that we are in configuration i at time t. We have seen that v(t) evolves linearly. I.e., there is a matrix M such that, v(t+1) = Mv(t) Mi j is simply the probability that configuration j yields configuration i. So (of course!) Mi j is a real number in [0,1]. M must leave Sivi(t) invariant (prob’s sum to 1).

22 Evolution of probabilities (quantum formulation):
Let v(t) = vector of probability amplitudes at time t. vi(t) is a complex number whose square norm |vi(t)|2 = probability that we are in configuration i at time t. As in the classical case, v(t) evolves linearly. I.e., there is a matrix U such that, v(t+1) = Uv(t) Ui j is a complex number whose norm squared is the probability that configuration j yields configuration i. So (of course!) Ui j is not necessarily a real number in [0,1]. U must leave Si |vi(t)|2 invariant (prob’s sum to 1). Hence U is unitary: UU† = 1.

23 Once again:

24 Evolution of probabilities (classical formulation):
Let v(t) = vector of probabilities at time t. vi(t) = probability that we are in configuration i at time t. We have seen that v(t) evolves linearly. I.e., there is a matrix M such that, v(t+1) = Mv(t) Mi j is simply the probability that configuration j yields configuration i. So (of course!) Mi j is a real number in [0,1]. M must leave Sivi(t) invariant (prob’s sum to 1).

25 Evolution of probabilities (quantum formulation):
Let v(t) = vector of probability amplitudes at time t. vi(t) is a complex number whose square norm |vi(t)|2 = probability that we are in configuration i at time t. As in the classical case, v(t) evolves linearly. I.e., there is a matrix U such that, v(t+1) = Uv(t) Ui j is a complex number whose norm squared is the probability that configuration j yields configuration i. So (of course!) Ui j is not necessarily a real number in [0,1]. U must leave Si |vi(t)|2 invariant (prob’s sum to 1). Hence U is unitary: UU† = 1.

26 Measurement After the computation has evolved, we may measure the configuration. The matrix U, applied to the initial configuration, determines the probability that we end up in any given configuration. Once the bits of the configuration have been measured, they will retain their measured value until acted on again (“collapse of the wavefunction”).

27 WHY? Don’t ask!

28 Because of unitarity, quantum computation
Consequences Configurations can actually cancel! Because of unitarity, quantum computation is reversible!

29 t=0

30 t=1

31 Cancel t=2

32 Cancel t=3

33 t=4

34 Left with exactly what we want! (we hope!) t=4

35 Quantum Computing Just as classical computing transforms classical information, quantum computing (in its standard formulation) transforms quantum information. Quantum information is transformed via unitary transformations (true of any quantum state) Just as we build up classical computers out of elementary logic gates (AND, OR, NOT), so we build up quantum circuits out of elementary unitary transformations. Before looking at these, look at what we are transforming....

36 Building Blocks of Quantum Information
Bits: Computational basis state: (Column vector with one non-zero entry corresponding to a single (classical) configuration of memory.)

37 Computational Basis States

38 Building Blocks of Quantum Information
Bits: Computational basis state: (Column vector with one non-zero entry corresponding to a single (classical) configuration of memory.) More generally, by quantum state we mean a linear combination, or “superposition” of computational basis states. Qubit:

39 Overall Setup 1. Begin computation with a computational basis state:
Or a superposition: 2. Apply a unitary operator to 3. Measure certain output bits; these give the output of the computation (with probabilities determined by and the initial ).

40 Building Blocks of Quantum Computation
Construct our unitary transformations by combining elements of a set of quantum gates. The following are universal: sufficient for realizing any unitary transformation!

41 Building Blocks of Quantum Computation
Construct our unitary transformations by combining elements of a set of quantum gates. The following are universal: sufficient for realizing any unitary transformation! Controlled-Not (“CNOT”)

42 Building Blocks of Quantum Computation
Construct our unitary transformations by combining elements of a set of quantum gates. The following are universal: sufficient for realizing any unitary transformation! Controlled-Not (“CNOT”) Toffoli

43 Building Blocks of Quantum Computation
Construct our unitary transformations by combining elements of a set of quantum gates. The following are universal: sufficient for realizing any unitary transformation! Controlled-Not (“CNOT”) Toffoli Hadamard = H

44 Building Blocks of Quantum Computation
Construct our unitary transformations by combining elements of a set of quantum gates. The following are universal: sufficient for realizing any unitary transformation! Controlled-Not (“CNOT”) Toffoli Hadamard Phase = = H S

45 What Quantum Circuits Can Do:
Entanglement H

46 What Quantum Circuits Can Do:
Entanglement H Measure one bit, and know that the other has the same value instantaneously, even if it is at the other end of the universe! Einstein called this “spooky action at a distance” and believed that it could prove the absurdity of quantum mechanics. But it has been observed in the laboratory, and appears to be useful for quantum computation (and quantum crypto!).

47 Generalization: “Cat State”:

48 “Schrödinger’s Cat”:

49

50 Seen on a T-shirt:

51 What Quantum Circuits Can Do: Deutsch Algorithm
Suppose f is a boolean function f : {0,1} {0,1}. Classically, to evaluate the exclusive-or of f(0) and f(1) requires two evaluations. With quantum circuits, we can compute it with only one evaluation!

52 What Quantum Circuits Can Do: Deutsch Algorithm
Suppose f is a boolean function f : {0,1} {0,1}. Classically, to evaluate the exclusive-or of f(0) and f(1) requires two evaluations. With quantum circuits, we can compute it with only one evaluation! Uf Classical circuit to evaluate f Note it’s just evaluated once

53 What Quantum Circuits Can Do: Deutsch Algorithm
Suppose f is a boolean function f : {0,1} {0,1}. Classically, to evaluate the exclusive-or of f(0) and f(1) requires two evaluations. With quantum circuits, we can compute it with only one evaluation! H H Uf H H

54 What Quantum Circuits Can Do: Deutsch Algorithm
Suppose f is a boolean function f : {0,1} {0,1}. Classically, to evaluate the exclusive-or of f(0) and f(1) requires two evaluations. With quantum circuits, we can compute it with only one evaluation! H H Uf H H

55 What Quantum Circuits Can Do: Deutsch Algorithm
Suppose f is a boolean function f : {0,1} {0,1}. Classically, to evaluate the exclusive-or of f(0) and f(1) requires two evaluations. With quantum circuits, we can compute it with only one evaluation! H H Uf H H Destructive interference and entanglement (of x with f(x)) are crucial in this algorithm.

56 What Quantum Circuits Can Do: Factor Numbers (Shor’s Algorithm)
Factoring reduces to period finding: Start by “guessing” an m < n with gcd(m, n) = 1. If we find gcd(m, n) > 1, we have a factor! Otherwise, it is useful to find the minimum r such that mr = 1 (mod n), the period of m mod n. This is the hard part. All other steps (including the guessing of m) are classical, based on elementary number theory. Crucial tool for finding the period: Quantum Fourier Transform This is the only quantum part of Shor’s algorithm!

57 The Quantum Fourier Transform (QFT)
Let (2k-th root of unity)

58 The Quantum Fourier Transform (QFT)
Let (2k-th root of unity) The QFT acts on an k-bit quantum register:

59 The Quantum Fourier Transform (QFT)
Let (2k-th root of unity) The QFT acts on an k-bit quantum register: QFT k bits Apply QFT (twice) to obtain a superposition with states whose probability amplitudes depend on sums of powers of .

60 The powers of are arranged so that….
For those states in which b doesn’t help us determine the period, they (mostly) cancel. (In fact, when r is a power of 2, the “bad” states cancel exactly.)

61 The powers of are arranged so that….
For those states in which b doesn’t help us determine the period, they (mostly) cancel. For those states in which b does help us determine the period, they add. (In fact, when r is a power of 2, the “bad” states cancel exactly.)

62 Let’s look at some of this stuff in more detail.....


Download ppt "A Ridiculously Brief Overview"

Similar presentations


Ads by Google