Download presentation
Presentation is loading. Please wait.
Published byErnest Gallagher Modified over 9 years ago
1
Small-Depth Quantum Circuits Frederic Green Department of Math/CS Clark University Worcester, MA
2
Some Background Computers (as we know them) obey the laws of classical physics. 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 hard 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.
3
In This Talk: What is quantum computation? (Answer: Quantum circuits.) How do we measure its efficiency? (Answer: Computational complexity theory.) Start with an intro to quantum computing… Two Important Questions: Can we build a quantum computer? If we could build one, would it be useful? Ignore first question above; concentrate on second.
4
What is quantum computation? Approach from the point of view of 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 m k = 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
|n| 2 |n|
11
|n| 2 |n| Desired configurations m
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 (2 n 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” t=0
14
t=1
15
t=2
16
t=3
17
t=4
18
Evolution of probabilities (classical formulation): Let v(t) = vector of probabilities at time t. v i (t) = probability that we are in configuration i at time t. I.e., there is a matrix M such that, v(t+1) = Mv(t) M i j is simply the probability that configuration j yields configuration i. It’s not hard to see that v(t) evolves linearly. So (of course!) M i j is a real number in [0,1]. M must leave i v i (t) invariant (probabilities sum to 1).
19
Evolution of probabilities (quantum formulation): Let v(t) = vector of probability amplitudes at time t. v i (t) is a complex number whose norm squared |v i (t)| 2 = probability that we are in configuration i at time t. I.e., there is a matrix U such that, v(t+1) = Uv(t) U i j is a complex number whose norm squared is the probability that configuration j yields configuration i. As in the classical case, v(t) evolves linearly. So (of course!) U i j is not necessarily a real number in [0,1]. U must leave i |v i (t)| 2 invariant (probabilities sum to 1). Hence U is unitary: UU † = 1.
20
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”).
21
WHY? Don’t ask!
22
Consequences Configurations can actually cancel! Because of unitarity, quantum computation is reversible!
23
t=0
24
t=1
25
t=2 Cancel
26
t=3 Cancel
27
t=4
28
Left with exactly what we want! (we hope!)
29
Building Blocks of Quantum Information Bits: Qubit: Computational basis state: (Column vector with one non-zero entry corresponding to a single (classical) configuration of memory.) More generally, a quantum state is a linear combination, or “superposition” of computational basis states.
30
Building Blocks of Quantum Computation Construct our unitary transformations from one of a set of quantum gates. The following are universal: sufficient for realizing any unitary transformation!
31
Controlled-Not (“CNOT”) Building Blocks of Quantum Computation Construct our unitary transformations from one of a set of quantum gates. The following are universal: sufficient for realizing any unitary transformation!
32
Controlled-Not (“CNOT”)Toffoli Building Blocks of Quantum Computation Construct our unitary transformations from one of a set of quantum gates. The following are universal: sufficient for realizing any unitary transformation!
33
Controlled-Not (“CNOT”) Hadamard H = Toffoli Building Blocks of Quantum Computation Construct our unitary transformations from one of a set of quantum gates. The following are universal: sufficient for realizing any unitary transformation!
34
Controlled-Not (“CNOT”) Hadamard H = Toffoli Phase S = Building Blocks of Quantum Computation Construct our unitary transformations from one of a set of quantum gates. The following are universal: sufficient for realizing any unitary transformation!
35
What Quantum Circuits Can Do: Entanglement H
36
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.
37
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!
38
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! UfUf Classical circuit to evaluate f Note it’s just evaluated once
39
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! UfUf H HH H
40
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! UfUf H HH H
41
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! UfUf H HH H Destructive interference and entanglement (of x with f(x)) are crucial in this algorithm.
42
What Quantum Circuits Can Do: Factor Numbers (Shor’s Algorithm) Factoring reduces to period finding: Otherwise, it is useful to find the minimum r such that m r = 1 (mod n), the period of m mod n. Start by “guessing” an m < n with gcd(m, n) = 1. If we find gcd(m, n) > 1, we have a factor! 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: Fourier Transform This is the only quantum part of Shor’s algorithm!
43
The Quantum Fourier Transform (QFT) Let (2 k -th root of unity)
44
The Quantum Fourier Transform (QFT) Let (2 k -th root of unity) The QFT acts on an k-bit quantum register:
45
The Quantum Fourier Transform (QFT) Let (2 k -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.
46
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.)
47
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.)
48
Shor’s algorithm is exponentially faster than any known classical algorithm for factoring. But this does not prove that quantum computers would be exponentially faster. It is possible we have just not been clever enough to think up a polynomial-time classical algorithm for factoring. Grover’s database search algorithm (1996) does give a provable quadratic speed-up over classical algorithms, but not exponential. There is one realm in which quantum circuits give a provable exponential improvement over classical circuits, and that is for constant-depth circuits. Some Remarks on Complexity
49
Classical Circuits Building blocks: ORNOT x1x1 xnxn AND x1x1 xnxn i=1 n xixi n xixi xx A typical question in computational complexity: How many of these gates are needed to compute an explicit Boolean function of n inputs, as n increases? Generally very difficult to answer such questions, especially when you introduce more powerful circuit elements.
50
Some Classical Circuit Complexity Suppose we would like to compute parity: Plus our circuits can only have constant depth. Answer (Razborov/Smolensky, 1987): No. Exponential size! More generally, Smolensky proved that if q, p are distinct primes, computing the MOD q function requires exponential size constant-depth circuits with AND, OR, and MOD p gates. …but we only have AND, OR, and NOT gates, and, as an added bonus, MOD3 gates, that determine if the number of 1’s in the input is divisible by 3. Can it be done with a polynomial number of gates? (i.e., is the number of ones odd?)
51
Analogous Quantum Circuits [Green, Homer, Moore & Pollett 2002] Imagine (someday) we could have unbounded fan-in Toffoli gates, and gates that could reversibly fan out bits (classical only; qubits cannot be copied by the no-cloning theorem).
52
Analogous Quantum Circuits [Green, Homer, Moore & Pollett 2002] Imagine (someday) we could have unbounded fan-in Toffoli gates, and gates that could reversibly fan out bits (classical only; qubits cannot be copied by the no-cloning theorem). x1x1 x2x2 xnxn x1x1 x2x2 xnxn b i=1 n b xixi Generalized Toffoli
53
Analogous Quantum Circuits [Green, Homer, Moore & Pollett 2002] Imagine (someday) we could have unbounded fan-in Toffoli gates, and gates that could reversibly fan out bits (classical only; qubits cannot be copied by the no-cloning theorem). x1x1 x2x2 xnxn x1x1 x2x2 xnxn b i=1 n b xixi Generalized Toffoli x1x1 x2x2 xnxn b b Fanout bx1x1 bx2x2 bxnxn = Constant depth circuits built out of these gates alone are equivalent to those built out of AND, OR and NOT (in constant depth). What happens if we also allow the single-qubit gates (e.g., Hadamard and phase)?
54
Fanout Gates are Powerful!
55
H H H H H H H H
56
H H H H H H H H Fanout Gates are Powerful! H H H H H H H H =
57
H H H H H H H H Fanout Gates are Powerful! H H H H H H H H = =
58
H H H H H H H H Fanout Gates are Powerful! H H H H H H H H = = This is a parity gate!
59
H H H H H H H H Fanout Gates are Powerful! H H H H H H H H = = This is a parity gate! 2
60
H H H H H H H H Fanout Gates are Powerful H H H H H H H H = = This is a parity gate! 2 In the quantum circuit world, the mere presence of fanout allows us to compute parity…
61
Fanout Gates Allow Parallelization Suppose we have a controlled unitary operator M that we would like to apply n times:
62
Fanout Gates Allow Parallelization Suppose we have a controlled unitary operator M that we would like to apply n times: MMMM n layers
63
Fanout Gates Allow Parallelization Suppose we have a controlled unitary operator M that we would like to apply n times. With fanout, we can do it in constant depth: First diagonalize M, writing M = T † DT. Thus M n = T † D n T. The following does this in 5 layers:
64
Fanout Gates Allow Parallelization Suppose we have a controlled unitary operator M that we would like to apply n times. With fanout, we can do it in constant depth: First diagonalize M, writing M = T † DT. Thus M n = T † D n T. The following does this in 5 layers: T†T† D D D T
65
Fanout Gates Allow Parallelization Suppose we have a controlled unitary operator M that we would like to apply n times. With fanout, we can do it in constant depth: First diagonalize M, writing M = T † DT. Thus M n = T † D n T. The following does this in 5 layers: T†T† D D D T layer 1
66
Fanout Gates Allow Parallelization Suppose we have a controlled unitary operator M that we would like to apply n times. With fanout, we can do it in constant depth: First diagonalize M, writing M = T † DT. Thus M n = T † D n T. The following does this in 5 layers: T†T† D D D T layer 2
67
Fanout Gates Allow Parallelization Suppose we have a controlled unitary operator M that we would like to apply n times. With fanout, we can do it in constant depth: First diagonalize M, writing M = T † DT. Thus M n = T † D n T. The following does this in 5 layers: T†T† D D D T layer 3
68
Fanout Gates Allow Parallelization Suppose we have a controlled unitary operator M that we would like to apply n times. With fanout, we can do it in constant depth: First diagonalize M, writing M = T † DT. Thus M n = T † D n T. The following does this in 5 layers: T†T† D D D T layer 4
69
Fanout Gates Allow Parallelization Suppose we have a controlled unitary operator M that we would like to apply n times. With fanout, we can do it in constant depth: First diagonalize M, writing M = T † DT. Thus M n = T † D n T. The following does this in 5 layers: T†T† D D D T layer 5
70
Consequence: Fanout Gates are REALLY Powerful! For quantum circuits, MOD q is as good as MOD p, for any q, p (prime or otherwise), up to polynomial size and constant depth. Computing MOD q reduces to fanout and vice versa, for any q, in poly. size/constant depth. (Contrast with the classical results of Razborov/Smolensky, where Mod q requires exponential size circuits with Mod p!) (But wait, there’s more….)
71
Consequence: Fanout Gates are REALLY REALLY Powerful! Høyer and Spalek (2003) use a clever adaptation of our parallelization method to show that threshold gates reduce to fanout. The Quantum Fourier Transform can be done in constant depth, poly. size with just single-qubit and fanout gates. For constant depth quantum circuits, “EVERYTHING” reduces to fanout! Hence, IF we could implement fanout gates, we could do the quantum part of Shor’s algorithm in constant time. (But that’s a big “if”!)
72
Open Problems, Current Work For physicists: Can we implement fanout? (One candidate technology: Ion trap) For complexity theorists: Can we implement fanout using single qubits and Toffoli gates? (Ongoing work of Fang, Fenner, Green, Homer, Zhang strongly suggests “no”) For everyone: Can we come up with new quantum algorithms?
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.