1 00:00:05,300 --> 00:00:11,080 I have some equipment to give away up here, so feel free to ask a question. 2 00:00:11,240 --> 00:00:16,600 And if it's really good or really dumb, then you can probably get a piece of equipment here. 3 00:00:17,320 --> 00:00:18,940 Can you hear me in back all right? 4 00:00:19,840 --> 00:00:20,320 Okay. 5 00:00:22,720 --> 00:00:24,280 Use the middle mic. All right. 6 00:00:35,040 --> 00:00:36,860 All right. Is this better? 7 00:00:37,580 --> 00:00:40,580 Okay. Let's start over. 8 00:00:42,420 --> 00:00:45,780 This is Quantum Computing 101, How to Crack RSA. 9 00:00:46,340 --> 00:00:52,100 This is a change from the printed schedule, substituting for the talk that didn't show up. 10 00:00:53,100 --> 00:00:54,640 My name is Walter Dougherty. 11 00:00:54,680 --> 00:00:58,780 I teach computer science at Texas A&M University. 12 00:00:58,780 --> 00:01:02,840 I'm from Texas A&M University in College Station, Texas, which is the home of the Aggies. 13 00:01:03,640 --> 00:01:05,500 I heard a few Aggies here. 14 00:01:05,700 --> 00:01:12,080 So for those of you who don't know, the translation for greets and shouts is howdy and gig'em. 15 00:01:13,060 --> 00:01:18,940 So howdy and gig'em to Dark Tangent for putting on such cool Black Hat and DEF CON conferences. 16 00:01:20,160 --> 00:01:22,520 I'm not John Erickson or Super Dave. 17 00:01:22,540 --> 00:01:26,700 If you've been to previous DEF CONs, you already know something about quantum computing. 18 00:01:31,320 --> 00:01:33,800 You can read about me on the slides. 19 00:01:45,920 --> 00:01:47,400 Here's what we're going to talk about. 20 00:01:47,680 --> 00:01:49,760 First of all, what is quantum computing? 21 00:01:50,520 --> 00:01:51,860 Next, how does it work? 22 00:01:52,480 --> 00:01:56,160 Why is it exponentially faster than classical computing? 23 00:01:56,320 --> 00:01:58,760 And by classical, I mean the kind of computing we're all familiar with. 24 00:01:58,760 --> 00:02:01,440 I don't mean using vacuum tubes. 25 00:02:02,020 --> 00:02:04,640 And how can a quantum computer crack RSA? 26 00:02:09,100 --> 00:02:11,580 First, we need to define what a quantum is. 27 00:02:11,900 --> 00:02:19,160 If you look in just a dictionary or the ordinary English usage, a quantum is a significant step. 28 00:02:19,900 --> 00:02:25,900 So, for example, if you're going to mail a letter, you have to put one stamp on it for the first ounce. 29 00:02:26,160 --> 00:02:28,740 And then if it's .0001, you have to put .0002. 30 00:02:28,760 --> 00:02:32,720 If it's .0001 ounces over one ounce, you have to put a second stamp on it. 31 00:02:32,940 --> 00:02:35,340 So the quantum is a significant step. 32 00:02:35,540 --> 00:02:39,820 We have the phrase in English, to make a quantum leap, means to make a significant step. 33 00:02:40,280 --> 00:02:45,820 In science, it refers to something which is a unit or a step. 34 00:02:46,500 --> 00:02:55,180 So, for example, I can charge up a capacitor with 7 billion electrons on one plate or 7 billion and 1 electrons on that plate. 35 00:02:55,240 --> 00:02:58,740 I can't put 7 billion .34 electrons on that plate. 36 00:02:58,740 --> 00:03:02,520 You can't put .34 of an electron on something. 37 00:03:02,800 --> 00:03:07,120 So the number of electrons would be the quanta involved there. 38 00:03:07,920 --> 00:03:11,100 Quantum mechanics has been around for about 75 years. 39 00:03:11,540 --> 00:03:17,980 Everybody from Einstein to Feynman has agreed that this stuff is really weird. 40 00:03:18,500 --> 00:03:21,220 And so lots of people didn't believe it. 41 00:03:21,300 --> 00:03:27,260 Lots of people have spent a lot of time constructing experiments to prove that quantum mechanics is wrong. 42 00:03:27,760 --> 00:03:29,520 All the experiments have failed. 43 00:03:30,160 --> 00:03:37,180 So for the last 75 years, quantum mechanics has stood up to all the tests that people can make against it. 44 00:03:37,220 --> 00:03:41,840 Just let me give you one example of how weird quantum mechanics is, and you can do this yourself, 45 00:03:42,080 --> 00:03:45,140 with a laser pointer and three Polaroid sunglasses. 46 00:03:47,100 --> 00:03:49,760 I wish I had a lapel mic. I need both hands. Oh well. 47 00:03:50,780 --> 00:03:55,140 Take your laser pointer, shine it through one lens of Polaroid sunglasses. 48 00:03:55,140 --> 00:03:57,900 You all know what Polaroid sunglasses do. 49 00:03:58,060 --> 00:04:01,080 They basically make the light waves go through in one orientation. 50 00:04:02,240 --> 00:04:09,880 So if the beam from the laser is aligned with the polarization, you'll get 100% of the light through. 51 00:04:10,220 --> 00:04:15,040 If you rotate it 90 degrees, you'll get 0% of the light through. 52 00:04:15,840 --> 00:04:21,600 Now, what about a random beam that is not polarized? 53 00:04:21,660 --> 00:04:23,700 The beam coming out of your laser pointer. 54 00:04:23,700 --> 00:04:25,980 Now the waves are in all different directions. 55 00:04:26,280 --> 00:04:34,820 What will happen when it hits the polarizing filter is that half of them will go through, vertically polarized, matching the filter, 56 00:04:35,000 --> 00:04:38,800 and half of them will be blocked, either be absorbed or be reflected. 57 00:04:39,780 --> 00:04:48,920 So the output from putting in all polarizations is one of two choices, either vertical or horizontal, and gets rejected. 58 00:04:49,300 --> 00:04:52,180 So half the light goes through this first pair of sunglasses. 59 00:04:53,860 --> 00:04:57,180 Now you put a second polarizing filter behind that. 60 00:04:57,740 --> 00:05:02,840 If it's lined up, then you still get the half light through. 61 00:05:03,260 --> 00:05:10,240 Half was blocked by the first, half of what was not close enough to being oriented to go through, 62 00:05:10,480 --> 00:05:14,680 and you get another half diminution there, so you get a quarter out. 63 00:05:14,840 --> 00:05:18,220 If you rotate the second filter 90 degrees, what happens? 64 00:05:19,280 --> 00:05:20,560 No light gets through. 65 00:05:21,200 --> 00:05:24,480 So all the light that comes through the first filter is vertically polarized. 66 00:05:25,140 --> 00:05:29,380 When it hits the second polarizing filter, all of the light is rejected or absorbed. 67 00:05:29,720 --> 00:05:31,000 Zero light comes through. 68 00:05:31,240 --> 00:05:37,140 So we've got a light source, two filters oriented at 90 degrees, zero light coming out. 69 00:05:37,500 --> 00:05:40,960 Now what do you think would happen if we put a third filter in the middle? 70 00:05:41,280 --> 00:05:43,880 We say, hey, we've got zero light coming out. 71 00:05:44,200 --> 00:05:48,160 The best that a third filter in the middle could do would be reduce the amount of light. 72 00:05:48,240 --> 00:05:49,560 We're already down to 0%. 73 00:05:49,560 --> 00:05:51,420 So it's not going to have any effect at all. 74 00:05:52,040 --> 00:05:52,560 Wrong. 75 00:05:52,980 --> 00:05:59,340 If a middle filter is oriented at 45 degrees, you will now get light out the third one. 76 00:06:00,080 --> 00:06:04,460 Because what happens is the vertically polarized beam out of the first filter 77 00:06:04,460 --> 00:06:07,440 hits the second filter that's rotated 45 degrees. 78 00:06:07,860 --> 00:06:13,520 Now it passes half the light and rejects half the light, but the half that it passes has been rotated. 79 00:06:14,280 --> 00:06:19,540 So the half that it passes is now at 45 degrees to your 90 degree filter. 80 00:06:19,560 --> 00:06:24,360 And so now half passes and half is reflected and now you get an eighth of the light out. 81 00:06:24,500 --> 00:06:26,840 So you have two filters that block all the light. 82 00:06:26,860 --> 00:06:28,520 You add a third filter and you get light out. 83 00:06:28,980 --> 00:06:29,680 That's weird. 84 00:06:31,720 --> 00:06:32,680 It gets worse. 85 00:06:33,240 --> 00:06:34,260 But we'll come to that. 86 00:06:38,680 --> 00:06:43,380 This is, whoops, it's not the slide I wanted. 87 00:06:53,740 --> 00:06:56,380 This is the ultimate interdisciplinary area. 88 00:06:56,660 --> 00:07:00,960 So quantum computing involves quantum physics, obviously, which I've talked about. 89 00:07:01,180 --> 00:07:05,260 It involves computer science, which is my field. 90 00:07:05,380 --> 00:07:06,220 It's mathematics. 91 00:07:06,560 --> 00:07:07,600 It's chemistry. 92 00:07:08,260 --> 00:07:10,240 It's RF electronics. 93 00:07:10,560 --> 00:07:14,720 So if you're interested in interdisciplinary areas, this is a great one to get into. 94 00:07:16,380 --> 00:07:19,280 We've already talked about what a quantum is scientifically. 95 00:07:19,560 --> 00:07:20,620 It would be in some state. 96 00:07:20,740 --> 00:07:27,260 For example, in the case of our polarizing filter, it would be a photon that was polarized vertically or polarized horizontally. 97 00:07:27,560 --> 00:07:28,860 It would be a quantum state. 98 00:07:30,720 --> 00:07:33,380 Mathematically, this can be described as a vector in a Hilbert space. 99 00:07:34,280 --> 00:07:38,380 So for your choice of the prizes on the table, who can tell us what a Hilbert space is? 100 00:07:38,900 --> 00:07:39,500 Right there. 101 00:07:45,040 --> 00:07:47,240 Okay, a complex linear vector space. 102 00:07:47,240 --> 00:07:49,820 Come up after the speech and take your pick. 103 00:07:50,820 --> 00:07:55,780 So if you're a mathematician, just think of a complex linear vector space. 104 00:07:56,640 --> 00:08:00,940 That means that there are eigenstates which can generate the space. 105 00:08:01,220 --> 00:08:06,560 They are conventionally called zero and one with these funny little brackets around it. 106 00:08:06,740 --> 00:08:12,840 And the brackets are the vertical stroke and the greater than sign or less than sign, depending on whether it's a row or a column vector. 107 00:08:13,220 --> 00:08:17,180 So this little symbol here, that's stroke zero. 108 00:08:17,180 --> 00:08:18,020 Zero, greater than. 109 00:08:18,480 --> 00:08:22,900 All it means is a column vector in one direction of your axes. 110 00:08:23,680 --> 00:08:29,460 So you can think of it as being a unit vector in the x direction and a unit vector in the y direction on your coordinates. 111 00:08:30,080 --> 00:08:31,160 That's what these represent. 112 00:08:31,400 --> 00:08:32,720 Don't think it means zero. 113 00:08:32,800 --> 00:08:33,480 It means nothing. 114 00:08:33,620 --> 00:08:35,120 That just means one of the states. 115 00:08:35,580 --> 00:08:38,380 Just like a bit in your computer can be a zero or a one. 116 00:08:38,620 --> 00:08:44,480 Well, if it's a CMOS gate, then if you say this is at zero, you don't mean there's no charge on it. 117 00:08:44,520 --> 00:08:46,060 You mean there's charge on the zero gate. 118 00:08:46,060 --> 00:08:47,340 And not on the one gate. 119 00:08:47,540 --> 00:08:49,440 So these are two distinguishable states. 120 00:08:49,940 --> 00:08:51,860 Now, how could we actually implement that? 121 00:08:52,180 --> 00:08:56,400 Well, we could take the spin up and spin down of a spin one half particle. 122 00:08:56,800 --> 00:08:57,680 Another question. 123 00:08:57,820 --> 00:08:59,720 Who knows what a spin one half particle is? 124 00:08:59,800 --> 00:09:01,480 Give me an example of a spin one half particle. 125 00:09:02,580 --> 00:09:03,300 Behind you. 126 00:09:04,620 --> 00:09:05,060 Yeah. 127 00:09:12,900 --> 00:09:13,340 Okay. 128 00:09:15,120 --> 00:09:17,380 He's giving me an example of a binary state. 129 00:09:17,460 --> 00:09:18,200 I wanted a particle. 130 00:09:19,060 --> 00:09:19,800 Back over there. 131 00:09:24,620 --> 00:09:27,000 You spin at 180 degrees, it's exactly the same. 132 00:09:27,180 --> 00:09:27,600 Well, no. 133 00:09:28,100 --> 00:09:29,780 Because you can still distinguish it. 134 00:09:30,060 --> 00:09:32,280 You distinguish whether it's spin up or spin down. 135 00:09:33,760 --> 00:09:34,640 Name a particle. 136 00:09:36,120 --> 00:09:36,640 Electron. 137 00:09:36,820 --> 00:09:37,120 Okay. 138 00:09:37,260 --> 00:09:37,540 Good. 139 00:09:38,100 --> 00:09:40,220 You can pick up a prize afterward. 140 00:09:40,860 --> 00:09:54,080 Some good spin one half particles are, let's see, electrons, electron neutrinos, muons, muon neutrinos, talons, talons neutrinos, protons, neutrons, and there are lots of other things. 141 00:09:54,260 --> 00:09:56,460 We don't have to stick to spin one half particles. 142 00:09:56,480 --> 00:09:58,800 For example, a photon is not a spin one half particle. 143 00:09:59,300 --> 00:10:03,860 But it does have two distinguishable states of vertical and horizontal polarization. 144 00:10:04,940 --> 00:10:08,360 Second principle of quantum computing is called superposition. 145 00:10:08,980 --> 00:10:19,260 Now what this means is that we can define a state which is, in effect, the vector sum of the eigenstates. 146 00:10:19,680 --> 00:10:24,220 Now where this really gets tricky is that the coefficients are complex numbers. 147 00:10:24,660 --> 00:10:30,560 So if you think about an airplane that's going at a bearing of about 70 degrees. 148 00:10:30,700 --> 00:10:32,380 So it's a little north of east. 149 00:10:33,240 --> 00:10:45,500 And you can pretend that what this airplane is doing is it's going two miles east and one mile north and two miles east and one mile north and two miles east and one mile north. 150 00:10:45,580 --> 00:10:55,400 So that if you take the track of the airplane after an hour and project it onto the axis, then you say, okay, it went 100 miles north and 200 miles east. 151 00:10:56,560 --> 00:11:01,260 In the case of a quantum particle, it behaves. 152 00:11:01,260 --> 00:11:05,720 It behaves when you measure it as though it were actually doing this stair-step pattern. 153 00:11:05,960 --> 00:11:09,900 Because when you measure it, you can never catch it in the in-between state. 154 00:11:10,680 --> 00:11:16,120 The measurement will always tell you it was either going this way or it was going this way. 155 00:11:16,480 --> 00:11:20,020 Even though technically the particle is really doing this. 156 00:11:21,020 --> 00:11:25,180 So the amplitude is called conventionally omega. 157 00:11:25,300 --> 00:11:28,480 So omega zero and omega one are simply the coefficients. 158 00:11:28,480 --> 00:11:37,320 If you were to project a particular quantum state onto the axes, then you'd have omega zero on one axis and omega one on the other axis. 159 00:11:37,440 --> 00:11:39,780 Say I went 200 miles east and 100 miles north. 160 00:11:39,960 --> 00:11:45,700 So those are the two vectors which I could sum to get the vector that was the track of the plane. 161 00:11:46,560 --> 00:11:55,260 The extra wrinkle, because these are complex numbers, is there can be a phase angle that still has the same size. 162 00:11:55,860 --> 00:12:03,960 So if you have a complex number like one plus i, then one minus i is another complex number that has exactly the same magnitude. 163 00:12:05,120 --> 00:12:08,700 But one plus i and one minus i are 180 degrees out of phase. 164 00:12:09,080 --> 00:12:11,140 So you have a phase angle in there as well. 165 00:12:11,620 --> 00:12:17,160 Also, if you take the product omega star, which is the complex conjugate. 166 00:12:17,380 --> 00:12:21,160 So if omega is a plus bi, then omega star is a minus bi. 167 00:12:21,480 --> 00:12:25,240 If you multiply those two things together, then you get a squared plus b. 168 00:12:25,240 --> 00:12:27,020 Which is a real number. 169 00:12:27,200 --> 00:12:28,900 And that turns out to be the probability. 170 00:12:30,040 --> 00:12:38,380 So if we wanted to know what the probability of locating this airplane was, then what we would do is simply project the values on the axis. 171 00:12:38,580 --> 00:12:42,140 And say, okay, for every 200 miles east, it goes 100 miles north. 172 00:12:42,400 --> 00:12:46,860 In the case of a quantum particle, when we project and get those numbers, those are amplitudes. 173 00:12:46,900 --> 00:12:49,820 And you have to, in effect, square them to get the probabilities. 174 00:12:50,860 --> 00:12:53,140 Now the probabilities all add up to one. 175 00:12:53,620 --> 00:12:55,220 Which is like, it should be one. 176 00:12:55,240 --> 00:12:55,320 It should be. 177 00:12:55,560 --> 00:12:58,040 The probabilities can also be negative. 178 00:12:58,900 --> 00:13:00,980 Remember I told you quantum is weird? 179 00:13:01,600 --> 00:13:04,340 Suppose the projection of one of these is i. 180 00:13:05,260 --> 00:13:06,560 Then what's the probability? 181 00:13:07,040 --> 00:13:08,940 The probability is i squared. 182 00:13:09,040 --> 00:13:10,620 The probability is minus one. 183 00:13:11,600 --> 00:13:13,800 So this is one of the paradoxes. 184 00:13:13,800 --> 00:13:17,740 It's called the Einstein-Podolsky-Rosen or EPR paradox. 185 00:13:17,980 --> 00:13:23,400 To say that it is possible to come up with negative probabilities to make the mathematics work out. 186 00:13:25,360 --> 00:13:28,380 What else could you use for a quantum particle? 187 00:13:29,380 --> 00:13:33,300 Well, somebody said that you could use an electron for a spin one half particle. 188 00:13:33,480 --> 00:13:37,520 That is, it's a charged particle which is rotating and so it generates a north pole. 189 00:13:37,820 --> 00:13:42,500 And if we put a really strong magnetic field on it, then it will flip over and the north pole will be down. 190 00:13:42,780 --> 00:13:45,020 And so we can distinguish these two states. 191 00:13:45,620 --> 00:13:47,180 We can also use a proton. 192 00:13:47,480 --> 00:13:48,400 But what's a proton? 193 00:13:48,660 --> 00:13:50,400 A proton is just a hydrogen nucleus. 194 00:13:50,940 --> 00:13:53,360 So you could take a molecule like chloroform, 195 00:13:53,360 --> 00:13:57,520 which is, let's see, CHCl3, I guess. 196 00:13:58,020 --> 00:14:00,440 Then the H is a hydrogen. 197 00:14:00,660 --> 00:14:03,900 And so the nucleus of the hydrogen is simply a proton. 198 00:14:04,020 --> 00:14:07,280 And you can use that proton as a quantum bit. 199 00:14:08,240 --> 00:14:10,900 But you can also use the carbon as a quantum bit. 200 00:14:11,120 --> 00:14:16,000 So here in one molecule, it's very convenient to make a two-bit quantum register. 201 00:14:16,700 --> 00:14:20,760 Because the carbon and the hydrogen are different sizes, 202 00:14:21,360 --> 00:14:23,320 they resonate at different RFs. 203 00:14:23,360 --> 00:14:23,820 They have different frequencies. 204 00:14:24,020 --> 00:14:27,360 So using nuclear magnetic resonance techniques or NMR, 205 00:14:27,660 --> 00:14:29,540 you can put a short pulse of radio, 206 00:14:30,220 --> 00:14:32,300 a short radio pulse, 207 00:14:32,640 --> 00:14:34,520 and if it's the right frequency, 208 00:14:34,600 --> 00:14:37,660 then it will flip the carbon over or flip the hydrogen over. 209 00:14:37,880 --> 00:14:43,500 And you can selectively turn them into 00, 01, 10, 11, 210 00:14:43,680 --> 00:14:45,540 by the pulse that you put on them. 211 00:14:45,980 --> 00:14:48,920 Quantum computers have also been built using an ammonia molecule. 212 00:14:50,040 --> 00:14:53,340 IBM, in a paper that I will come back to, 213 00:14:54,520 --> 00:15:00,540 custom-built a molecule that had seven atoms in it 214 00:15:00,540 --> 00:15:02,620 with different resonant frequencies. 215 00:15:03,260 --> 00:15:06,660 So they built one molecule that was a seven-bit register. 216 00:15:06,920 --> 00:15:10,880 And by putting a pulse of a certain frequency and a certain duration on it, 217 00:15:10,960 --> 00:15:13,860 they could flip each one of these atoms in the molecule individually. 218 00:15:14,460 --> 00:15:16,620 Now, my favorite one is caffeine. 219 00:15:16,960 --> 00:15:21,520 Because caffeine has about ten atoms in it that can be individually addressed. 220 00:15:21,920 --> 00:15:23,340 So maybe one of these, 221 00:15:23,360 --> 00:15:27,020 these days you'll have your quantum computer in your Pepsi can or your coffee cup, 222 00:15:27,280 --> 00:15:30,780 that every molecule is going to be a ten-bit quantum register. 223 00:15:30,920 --> 00:15:31,060 Yes? 224 00:15:34,160 --> 00:15:36,420 Oh goodness, it's the J frequency. 225 00:15:36,720 --> 00:15:41,900 It's like several hundred megahertz, like 200 megahertz. 226 00:15:42,040 --> 00:15:43,440 It's standard NMR stuff. 227 00:15:43,920 --> 00:15:48,460 So talk to your friendly neighborhood chemistry physicist 228 00:15:48,460 --> 00:15:51,100 who does nuclear magnetic resonance, 229 00:15:51,100 --> 00:15:53,800 and you can get that stuff. 230 00:15:54,620 --> 00:15:58,620 There's also work being done on embedding quantum dots in a silicon substrate. 231 00:15:58,900 --> 00:16:01,580 Because we know an awful lot about building stuff in silicon. 232 00:16:01,880 --> 00:16:03,700 So if you could take a slab of silicon 233 00:16:03,700 --> 00:16:08,160 and put some quantum bits in this slab of silicon, 234 00:16:08,440 --> 00:16:10,800 and then put some gates on top of it 235 00:16:10,800 --> 00:16:13,300 that would do things like make a shift register out of it, 236 00:16:13,480 --> 00:16:15,280 read things in, read things out. 237 00:16:15,440 --> 00:16:18,300 There's a group in Australia and one in Maryland who are working on doing that. 238 00:16:18,300 --> 00:16:21,760 The problem they're having right now is in keeping the bits from migrating. 239 00:16:22,020 --> 00:16:25,120 So when you get down so small and deposit it someplace, 240 00:16:25,320 --> 00:16:27,860 then it's basically an impurity in the silicon, 241 00:16:27,960 --> 00:16:29,720 and it can migrate through the lattice. 242 00:16:31,640 --> 00:16:35,500 Okay, now third principle of quantum computing is interference. 243 00:16:36,260 --> 00:16:37,860 You're all familiar with interference. 244 00:16:38,880 --> 00:16:41,180 If you take a bath in a bathtub, 245 00:16:41,360 --> 00:16:44,440 and you have a uniform illumination from the light, 246 00:16:44,560 --> 00:16:47,980 you'll notice that there's a certain intensity of light on the bottom of the bathtub. 247 00:16:47,980 --> 00:16:49,280 Sitting very still, that is. 248 00:16:49,680 --> 00:16:52,520 Now you take a handful of water and start dripping it, 249 00:16:52,600 --> 00:16:53,560 it'll make ripples. 250 00:16:53,860 --> 00:16:57,600 As it makes ripples, the pattern of light on the bottom of the bathtub 251 00:16:57,600 --> 00:16:59,960 will change into a ripple pattern. 252 00:17:00,780 --> 00:17:02,780 Some of the ripples will be dark. 253 00:17:04,240 --> 00:17:06,740 And some of the ripples will be brighter 254 00:17:06,740 --> 00:17:09,140 than the light that was illuminating it. 255 00:17:09,440 --> 00:17:10,320 What's happening? 256 00:17:10,620 --> 00:17:13,480 What's happening is that the surface of the water 257 00:17:13,480 --> 00:17:15,740 as a wave is forming lenses. 258 00:17:15,740 --> 00:17:19,120 If the light hits two parts of the ripple 259 00:17:19,740 --> 00:17:23,500 and is refracted to land at the same spot on the bottom of the tub, 260 00:17:24,260 --> 00:17:27,820 in phase, it reinforces and makes a spot of light 261 00:17:27,820 --> 00:17:30,060 which is brighter than the illumination. 262 00:17:30,700 --> 00:17:33,380 If they are out of phase, then it makes a dark spot. 263 00:17:35,040 --> 00:17:37,240 So there's an example of interference. 264 00:17:37,800 --> 00:17:41,220 The classic experiment in physics is called Young's double slit experiment. 265 00:17:41,520 --> 00:17:43,120 So if you want to look that up, 266 00:17:44,020 --> 00:17:45,720 that is a more technical one. 267 00:17:45,740 --> 00:17:46,960 A technical demonstration of it. 268 00:17:48,460 --> 00:17:50,520 If it's constructive, it reinforces. 269 00:17:50,620 --> 00:17:53,560 If it's destructive, then it reduces the intensity. 270 00:17:57,600 --> 00:17:59,680 Now here's an example of superposition. 271 00:17:59,960 --> 00:18:02,300 This is from IEEE Spectrum article. 272 00:18:03,940 --> 00:18:06,660 The bottom bit is pictured as a top 273 00:18:07,660 --> 00:18:10,160 spinning on the tip of the person's finger. 274 00:18:10,380 --> 00:18:14,060 And you'll notice that the top has a purple side and a red side. 275 00:18:14,060 --> 00:18:18,780 So the purple side up, let's say, is our state zero. 276 00:18:19,000 --> 00:18:19,800 Spin up. 277 00:18:20,060 --> 00:18:23,660 And when the RF pulse hits it that it's resonant to, 278 00:18:23,820 --> 00:18:25,920 it will flip over and it will continue spinning, 279 00:18:25,980 --> 00:18:28,340 but it's now spinning upside down with the purple down. 280 00:18:28,600 --> 00:18:33,000 So we've changed the zero to a one by applying an RF pulse to it. 281 00:18:33,160 --> 00:18:35,480 What happens if we apply a shorter pulse? 282 00:18:35,920 --> 00:18:38,600 If we apply a shorter pulse in the bottom picture, 283 00:18:38,800 --> 00:18:43,020 what will happen is that this bit doesn't get turned all the way over. 284 00:18:43,020 --> 00:18:47,300 And if we time it just right, we can turn it halfway over. 285 00:18:47,620 --> 00:18:50,600 So now the bit is still rotating on its axis, 286 00:18:50,720 --> 00:18:53,200 but it is precessing and doing this. 287 00:18:53,960 --> 00:18:56,780 And so as it's going around and precessing, 288 00:18:56,780 --> 00:18:59,500 it's halfway between the zero and the one states. 289 00:19:00,360 --> 00:19:03,020 Again, like the airplane going at an angle, 290 00:19:03,160 --> 00:19:06,840 it is a convenient fiction to treat this intermediate state 291 00:19:06,840 --> 00:19:09,220 as a superposition of both zero and one. 292 00:19:09,340 --> 00:19:11,560 And that's what the middle part of the bottom picture shows, 293 00:19:11,560 --> 00:19:14,060 is that you can pretend that this state 294 00:19:14,060 --> 00:19:17,960 is actually simultaneously a zero and a one. 295 00:19:23,420 --> 00:19:27,820 Another important principle of quantum computing is called entanglement. 296 00:19:28,420 --> 00:19:30,300 Basically what entanglement is, 297 00:19:30,400 --> 00:19:33,440 is two mutually dependent qubits which have a joint state. 298 00:19:33,700 --> 00:19:37,760 That is, you have two qubits and you can tell what the state of it is. 299 00:19:37,800 --> 00:19:41,060 They are 00 or they are 10 or whatever. 300 00:19:41,060 --> 00:19:42,820 You can tell what the joint state is. 301 00:19:44,120 --> 00:19:46,800 However, if you observe one of the bits, 302 00:19:47,000 --> 00:19:50,040 the other bit is forced to be in a particular state. 303 00:19:50,680 --> 00:19:53,300 So think about a teeter-totter out in the playground. 304 00:19:53,720 --> 00:19:56,960 You say, if I see this end up, I know this end is down. 305 00:19:57,280 --> 00:19:59,940 If I see this end down, I know this end is up. 306 00:20:00,520 --> 00:20:04,480 Even if the other end is hidden behind a tree. 307 00:20:05,380 --> 00:20:07,720 So if I see this end of the teeter-totter up, 308 00:20:07,840 --> 00:20:09,200 I say the other end is down. 309 00:20:09,200 --> 00:20:12,540 If I see this end down, then the other end is up. 310 00:20:13,280 --> 00:20:16,680 Another famous example that quantum physicists like to give, 311 00:20:16,780 --> 00:20:18,660 there was some grad student named Bertelsmann 312 00:20:18,660 --> 00:20:21,840 who was either colorblind or not very fashion conscious or both. 313 00:20:22,180 --> 00:20:24,320 And he never wore matched socks. 314 00:20:25,180 --> 00:20:27,280 So he had a drawer full of socks 315 00:20:27,280 --> 00:20:30,260 and every morning he would pick two out and put them on. 316 00:20:30,500 --> 00:20:34,660 But you always knew that the socks would not be the same color. 317 00:20:35,240 --> 00:20:36,860 So now you're sitting in a class, 318 00:20:36,940 --> 00:20:38,880 you got there a little before Bertelsmann did, 319 00:20:39,200 --> 00:20:40,920 and when he comes into the class 320 00:20:40,920 --> 00:20:43,080 and sticks his first foot in the door, 321 00:20:43,180 --> 00:20:45,920 you see he's wearing a pink sock on his right foot. 322 00:20:46,660 --> 00:20:49,900 You already know that the other sock is not pink. 323 00:20:50,420 --> 00:20:51,820 So that's an entangled state. 324 00:20:54,440 --> 00:20:56,640 Here's an example, a two-qubit system. 325 00:20:57,280 --> 00:21:00,200 0, 1, which means one bit is a 0 and the other bit is a 1. 326 00:21:02,400 --> 00:21:03,800 Superimposed with the state 1, 0. 327 00:21:04,160 --> 00:21:07,920 Dividing by square root of 2 is to make the probabilities still come out to 1. 328 00:21:07,920 --> 00:21:09,240 It's just a normalization factor. 329 00:21:10,180 --> 00:21:12,980 You can't factor this in the two individual qubits. 330 00:21:13,060 --> 00:21:15,280 You can't say the first bit is either a 0 or 1 331 00:21:15,280 --> 00:21:17,060 and the second bit is either a 0 or 1 332 00:21:17,620 --> 00:21:19,760 because that would give you all four combinations 333 00:21:20,160 --> 00:21:23,620 and the description of the joint state says only two combinations exist. 334 00:21:24,200 --> 00:21:26,880 So in this case, if we read the first bit was a 0, 335 00:21:27,400 --> 00:21:29,220 we know the second bit has to be a 1. 336 00:21:29,820 --> 00:21:31,440 And if you read the first bit as a 1, 337 00:21:31,520 --> 00:21:33,180 we know the second bit has to be a 0. 338 00:21:34,000 --> 00:21:34,600 You can... 339 00:21:37,920 --> 00:21:40,880 You can create these particles by sending a photon 340 00:21:40,880 --> 00:21:42,940 through something called a birefringent crystal 341 00:21:42,940 --> 00:21:46,500 and then what will come out is two entangled photons 342 00:21:47,120 --> 00:21:49,960 where their polarizations are dependent on each other. 343 00:21:50,060 --> 00:21:51,820 If you observe one, you know what the other is. 344 00:21:52,040 --> 00:21:53,380 You can send the other one, 345 00:21:53,480 --> 00:21:56,580 and this has been done through a fiber optic pipe 30 kilometers long, 346 00:21:57,180 --> 00:22:01,080 and then observe what its orientation is at the other end 347 00:22:01,080 --> 00:22:04,140 and you will know what the orientation of the first photon was. 348 00:22:04,740 --> 00:22:07,080 This is how quantum teleportation 349 00:22:07,080 --> 00:22:08,580 and quantum cryptography work. 350 00:22:11,680 --> 00:22:16,080 Quantum teleportation reproduces a quantum state at another location. 351 00:22:16,340 --> 00:22:17,140 That's the good news. 352 00:22:17,380 --> 00:22:19,560 I can take an arbitrary quantum state, 353 00:22:19,760 --> 00:22:21,620 any combination between 0 and 1, 354 00:22:21,660 --> 00:22:22,520 any phase angle, 355 00:22:22,780 --> 00:22:25,200 and I can reproduce that state at a remote location. 356 00:22:25,560 --> 00:22:28,000 So the good news is I can reproduce the state. 357 00:22:28,160 --> 00:22:31,700 The bad news is the process of reading it destroys the original state. 358 00:22:32,220 --> 00:22:36,080 So this is the great subject of all the 2 a.m. Star Trek movies 359 00:22:36,080 --> 00:22:40,320 of if we teleport someone and something breaks, 360 00:22:40,580 --> 00:22:44,360 then is the person destroyed or not? 361 00:22:44,540 --> 00:22:46,580 Is it murder if you kill your clone? 362 00:22:46,760 --> 00:22:48,280 All of these interesting things. 363 00:22:50,120 --> 00:22:52,000 And here's how teleportation works. 364 00:22:52,080 --> 00:22:53,380 You can look at the slide on the website. 365 00:22:58,520 --> 00:23:02,100 Quantum cryptography relies on Heisenberg's uncertainty principle 366 00:23:02,100 --> 00:23:04,200 which says if you had one coordinate system, 367 00:23:04,300 --> 00:23:05,180 the vertical and horizontal, 368 00:23:05,180 --> 00:23:08,920 and another for 45 degrees and 135 degrees, 369 00:23:09,160 --> 00:23:11,200 you can't do both measurements simultaneously. 370 00:23:12,020 --> 00:23:14,400 The result of that in quantum cryptography 371 00:23:14,400 --> 00:23:16,200 is that you can detect eavesdropping 372 00:23:16,800 --> 00:23:18,640 to an arbitrarily high accuracy. 373 00:23:19,180 --> 00:23:24,120 So by observing one quantum bit of a chosen message, 374 00:23:24,440 --> 00:23:26,260 you can have a three-fourths chance 375 00:23:26,260 --> 00:23:27,380 of detecting eavesdropping. 376 00:23:27,840 --> 00:23:29,280 By observing two bits, 377 00:23:29,460 --> 00:23:32,200 you can have a 15-16th chance and so on. 378 00:23:32,380 --> 00:23:34,460 And so you can make a system 379 00:23:34,460 --> 00:23:35,620 which is provably secure. 380 00:23:35,980 --> 00:23:39,220 That is, eavesdropping is guaranteed to be detected 381 00:23:40,380 --> 00:23:42,100 to arbitrarily high probability. 382 00:23:43,500 --> 00:23:46,100 Quantum operators are analogous to logic gates, 383 00:23:46,200 --> 00:23:46,960 but they're reversible. 384 00:23:47,320 --> 00:23:48,900 If you think about an AND gate 385 00:23:48,900 --> 00:23:52,100 or the AND operator in C++ or Java, 386 00:23:52,360 --> 00:23:57,000 if I say X and Y and I tell you the result is a 1, 387 00:23:57,420 --> 00:23:59,480 then you know X and Y were both 1. 388 00:23:59,920 --> 00:24:01,960 If I tell you the result is a 0, 389 00:24:02,060 --> 00:24:03,860 you don't know what X and Y were. 390 00:24:04,460 --> 00:24:05,440 It might have been 0, 0. 391 00:24:05,480 --> 00:24:06,460 It might have been 0, 1. 392 00:24:06,500 --> 00:24:07,420 It might have been 1, 0. 393 00:24:07,940 --> 00:24:09,580 Quantum gates are always reversible. 394 00:24:10,080 --> 00:24:12,260 So you can take the results of the quantum gate, 395 00:24:12,740 --> 00:24:14,680 apply the inverse of the operator, 396 00:24:14,860 --> 00:24:16,600 and tell what arguments supplied it. 397 00:24:17,220 --> 00:24:19,080 You can build up a quantum computation 398 00:24:19,820 --> 00:24:21,860 from a small set of universal operators. 399 00:24:22,320 --> 00:24:24,200 So just like in a classical computer, 400 00:24:24,380 --> 00:24:26,620 an AND and a NOT or an AND and an OR 401 00:24:26,620 --> 00:24:29,240 are enough to generate all possible logical functions, 402 00:24:29,700 --> 00:24:34,440 you can generate all possible quantum functions 403 00:24:34,460 --> 00:24:36,260 from a small set of operators. 404 00:24:36,620 --> 00:24:39,520 And one of the most common ones is called a controlled NOT. 405 00:24:39,580 --> 00:24:41,160 All it is is an exclusive OR. 406 00:24:42,000 --> 00:24:44,020 So you'll notice there are two columns here. 407 00:24:44,100 --> 00:24:45,900 On the left side of this picture at the top, 408 00:24:45,960 --> 00:24:48,000 we have an input 1 and a control 1. 409 00:24:48,760 --> 00:24:51,200 What this is doing is an exclusive OR 410 00:24:51,200 --> 00:24:53,480 with the result on the left-hand bit. 411 00:24:53,680 --> 00:24:55,020 So if you go down to the bottom, 412 00:24:55,080 --> 00:24:56,340 you'll see the output is a 0 413 00:24:56,340 --> 00:24:58,100 and the control is still a 1. 414 00:24:58,560 --> 00:25:01,280 So one XOR 1 at the top 415 00:25:01,280 --> 00:25:02,940 comes out with a 0 at the bottom. 416 00:25:02,940 --> 00:25:04,580 The control bit didn't change. 417 00:25:05,180 --> 00:25:07,440 However, on the right-hand half of this picture, 418 00:25:07,560 --> 00:25:09,040 if the control bit is a 0 419 00:25:09,040 --> 00:25:10,860 and we have an input of a 1, 420 00:25:11,100 --> 00:25:12,780 then the output still stays a 1. 421 00:25:13,200 --> 00:25:15,560 So 0 XORed with 1, 422 00:25:15,700 --> 00:25:17,220 the output is still a 1, 423 00:25:17,300 --> 00:25:18,180 and it didn't change. 424 00:25:22,680 --> 00:25:25,100 Where does the exponential speedup come from? 425 00:25:25,220 --> 00:25:27,820 The exponential speedup comes from the fact 426 00:25:27,820 --> 00:25:30,480 that n quantum bits can hold 2 to the nth values 427 00:25:30,480 --> 00:25:32,280 in superposition, that is, simultaneously. 428 00:25:33,020 --> 00:25:34,940 So if we're taking about a 2-bit register, 429 00:25:35,200 --> 00:25:37,920 if we put both of them in the intermediate position, 430 00:25:38,660 --> 00:25:40,800 then the first bit is both a 0 and a 1 431 00:25:40,800 --> 00:25:42,800 and the second bit is both a 0 and a 1, 432 00:25:42,800 --> 00:25:44,620 and we can play like this register represents 433 00:25:44,620 --> 00:25:47,980 all four values, 0, 0, 0, 1, 1, 0, 1, 1, 434 00:25:47,980 --> 00:25:50,220 and every additional bit that we add 435 00:25:50,220 --> 00:25:53,140 doubles the number of values that can be superimposed. 436 00:25:53,500 --> 00:25:55,560 The good news is that a single operation, 437 00:25:56,000 --> 00:25:57,980 suppose you wanted to take the square root 438 00:25:57,980 --> 00:25:59,940 or the sign of the number in this register. 439 00:26:00,180 --> 00:26:01,960 Now it takes a certain amount of effort 440 00:26:01,960 --> 00:26:02,920 to do that computation. 441 00:26:03,540 --> 00:26:06,080 A single function evaluation on that register 442 00:26:06,080 --> 00:26:08,420 actually evaluates all 2 to the nth values. 443 00:26:09,020 --> 00:26:11,040 So it calculates the sign of 0, 0, 444 00:26:11,060 --> 00:26:12,820 the sign of 0, 1, the sign of 1, 0, 445 00:26:12,820 --> 00:26:13,680 and the sign of 1, 1 446 00:26:14,660 --> 00:26:16,600 in the amount of effort it would take 447 00:26:16,600 --> 00:26:17,720 to calculate one sign. 448 00:26:17,900 --> 00:26:18,760 So that's the good news, 449 00:26:18,840 --> 00:26:21,020 is that you can calculate 2 to the nth values 450 00:26:21,020 --> 00:26:22,700 in the times it would take you to calculate 1. 451 00:26:22,960 --> 00:26:25,560 The bad news is you can't get all of those answers out. 452 00:26:26,480 --> 00:26:27,940 Because when you do the readout, 453 00:26:28,080 --> 00:26:29,600 when you do the quantum measurement, 454 00:26:29,780 --> 00:26:31,420 it's going to force it to an eigenstate. 455 00:26:31,960 --> 00:26:33,620 So the trick in a quantum algorithm 456 00:26:33,620 --> 00:26:35,660 is to adjust the algorithm 457 00:26:35,660 --> 00:26:37,360 so that the answer you want 458 00:26:37,360 --> 00:26:39,620 out of all of these superimposed answers 459 00:26:40,320 --> 00:26:41,660 gets a higher probability. 460 00:26:42,120 --> 00:26:44,080 That is, by rotating its vector 461 00:26:44,080 --> 00:26:46,080 so that it's closer to an eigenstate. 462 00:26:46,220 --> 00:26:47,560 So that when you read it out, 463 00:26:47,680 --> 00:26:49,480 you're more likely to get the result. 464 00:26:50,780 --> 00:26:52,360 They said I could run over a little 465 00:26:52,360 --> 00:26:54,000 because I spot the Fed. 466 00:26:54,160 --> 00:26:56,080 So I'm going to try to wrap this up 467 00:26:56,080 --> 00:26:58,480 in another 5, 10 minutes. 468 00:26:59,340 --> 00:27:01,160 What's the application to cryptography? 469 00:27:01,960 --> 00:27:05,000 I will not take the time to review this. 470 00:27:05,280 --> 00:27:06,140 Conventional encryption, 471 00:27:06,500 --> 00:27:08,520 that is symmetric key like DES 472 00:27:08,520 --> 00:27:10,340 where you use the same key for both. 473 00:27:10,520 --> 00:27:12,280 There's an encryption function E 474 00:27:12,280 --> 00:27:14,120 that takes a message block M 475 00:27:14,120 --> 00:27:15,100 and your key K 476 00:27:15,100 --> 00:27:16,960 and the result of that computation 477 00:27:16,960 --> 00:27:18,420 is a ciphertext C. 478 00:27:18,640 --> 00:27:20,600 That's what you transmit to the receiver. 479 00:27:20,800 --> 00:27:23,540 The receiver has the complementary function 480 00:27:23,540 --> 00:27:25,440 decrypt, which takes 481 00:27:25,440 --> 00:27:27,160 the block of ciphertext C 482 00:27:27,160 --> 00:27:29,000 and the same secret key K 483 00:27:29,000 --> 00:27:30,800 and returns the message block. 484 00:27:31,960 --> 00:27:33,360 The security of conventional encryption 485 00:27:34,300 --> 00:27:36,040 depends on several things. 486 00:27:36,160 --> 00:27:37,300 One of which is that 487 00:27:38,140 --> 00:27:40,540 even with many plaintext ciphertext pairs, 488 00:27:40,720 --> 00:27:41,900 that is, we have intercepted 489 00:27:41,900 --> 00:27:42,820 the message that was sent 490 00:27:42,820 --> 00:27:43,920 and we've intercepted the message 491 00:27:43,920 --> 00:27:44,700 that was transmitted, 492 00:27:44,760 --> 00:27:47,180 that doesn't help us to decrypt 493 00:27:47,180 --> 00:27:50,880 the next ciphertext that we intercept. 494 00:27:51,660 --> 00:27:53,020 And the sender and receiver 495 00:27:53,020 --> 00:27:55,060 need to obtain copies of the secret key 496 00:27:55,060 --> 00:27:56,380 securely and keep it secure. 497 00:27:56,640 --> 00:27:58,120 So the key is secret even though 498 00:27:58,120 --> 00:27:59,120 the algorithm is not. 499 00:28:01,960 --> 00:28:03,000 The secret key is pretty hard. 500 00:28:03,380 --> 00:28:05,720 The best known algorithms, 501 00:28:06,180 --> 00:28:07,420 if you're just guessing, 502 00:28:07,620 --> 00:28:09,020 then for n values, 503 00:28:09,220 --> 00:28:10,500 the expected number of guesses 504 00:28:10,500 --> 00:28:11,520 would be one half n. 505 00:28:11,820 --> 00:28:13,780 And so that's where these numbers come from. 506 00:28:14,120 --> 00:28:17,640 So if you could check a million keys a second, 507 00:28:17,800 --> 00:28:19,560 a 32-bit key would take you 508 00:28:19,560 --> 00:28:21,160 35 minutes on average. 509 00:28:21,960 --> 00:28:23,820 That is, it would take you 70 minutes 510 00:28:23,820 --> 00:28:25,280 if it was the last key you tried. 511 00:28:25,500 --> 00:28:27,700 It would take you one microsecond 512 00:28:27,700 --> 00:28:28,980 if it was the first key you tried, 513 00:28:29,080 --> 00:28:30,720 but the average would be half of that. 514 00:28:31,960 --> 00:28:33,080 The 56-bit key DES 515 00:28:33,080 --> 00:28:35,480 would take 1142 years. 516 00:28:35,800 --> 00:28:37,920 You say, okay, that's too long, 517 00:28:38,240 --> 00:28:39,040 I'm not going to be around 518 00:28:39,040 --> 00:28:40,160 to make use of this result, 519 00:28:40,400 --> 00:28:42,260 so I'm going to take a million computers 520 00:28:42,260 --> 00:28:44,060 each checking a million keys a second, 521 00:28:44,120 --> 00:28:45,260 and that's the rightmost column. 522 00:28:45,640 --> 00:28:46,680 Now you can try, 523 00:28:47,320 --> 00:28:49,620 you can expect to crack a 56-bit key 524 00:28:49,620 --> 00:28:50,300 in 10 hours. 525 00:28:50,680 --> 00:28:52,040 Okay, we'll make the key longer. 526 00:28:52,200 --> 00:28:55,320 128-bit key, now it takes 10 to the 18th years. 527 00:28:56,260 --> 00:28:57,360 So brute force, 528 00:28:57,360 --> 00:28:59,320 exhaustive search isn't going to work 529 00:28:59,320 --> 00:29:00,500 on guessing the secret key. 530 00:29:01,600 --> 00:29:03,060 You all know why we want to use 531 00:29:03,060 --> 00:29:04,040 public key cryptography. 532 00:29:04,120 --> 00:29:05,820 One of the key reasons that I referred to 533 00:29:05,820 --> 00:29:08,620 is the need to distribute keys securely. 534 00:29:09,360 --> 00:29:10,860 And you can also use it for 535 00:29:10,860 --> 00:29:11,960 message authentication. 536 00:29:12,740 --> 00:29:14,680 The next few slides just go through 537 00:29:14,680 --> 00:29:16,840 the general public key and RSA, 538 00:29:17,080 --> 00:29:19,720 and I need to skip through these rapidly 539 00:29:19,720 --> 00:29:20,960 to get to cracking it 540 00:29:20,960 --> 00:29:22,120 with a quantum computer. 541 00:29:25,400 --> 00:29:27,340 The sending key and the receiving key 542 00:29:27,360 --> 00:29:29,260 are different in public key cryptography. 543 00:29:29,780 --> 00:29:31,240 This is the public history 544 00:29:31,240 --> 00:29:32,140 of public key encryption. 545 00:29:32,700 --> 00:29:34,980 Now that the Official Secrets Act 546 00:29:34,980 --> 00:29:36,980 of 20 years has expired, 547 00:29:37,300 --> 00:29:38,900 the British have admitted that they did this 548 00:29:38,900 --> 00:29:39,860 before 1976. 549 00:29:41,120 --> 00:29:42,300 Just that they couldn't tell anybody. 550 00:29:46,200 --> 00:29:46,760 RSA 551 00:29:47,220 --> 00:29:48,940 Corporation, which was founded by 552 00:29:48,940 --> 00:29:50,100 Rivas Shamir and Edelman, 553 00:29:50,220 --> 00:29:51,760 that's what the RSA stands for, 554 00:29:51,960 --> 00:29:54,860 have posted challenges with longer and longer keys. 555 00:29:55,280 --> 00:29:57,000 And so they posted a challenge 556 00:29:57,360 --> 00:29:59,440 with a 129 decimal digit key 557 00:29:59,440 --> 00:30:00,960 that was cracked in 1994. 558 00:30:01,520 --> 00:30:02,900 A challenge of 140 559 00:30:03,840 --> 00:30:05,420 decimal digits was cracked 560 00:30:05,420 --> 00:30:06,180 in 1999. 561 00:30:07,080 --> 00:30:09,240 A 155 bit key was also 562 00:30:09,240 --> 00:30:10,300 cracked in 1999. 563 00:30:10,560 --> 00:30:13,760 The current challenge is 174 decimal digits. 564 00:30:13,860 --> 00:30:15,380 You can go to RSA.com 565 00:30:15,380 --> 00:30:17,700 if you want to sign up for the current challenge. 566 00:30:18,080 --> 00:30:19,380 It has not been cracked. 567 00:30:19,660 --> 00:30:21,980 So this is a 576 bit key 568 00:30:21,980 --> 00:30:23,440 that RSA 569 00:30:23,440 --> 00:30:25,320 people have not been able to crack. 570 00:30:25,780 --> 00:30:27,200 Consequently, RSA recommends 571 00:30:27,360 --> 00:30:28,800 you use 1024 bit keys 572 00:30:28,800 --> 00:30:30,280 or if you're really paranoid, 573 00:30:30,540 --> 00:30:31,700 2048 bit keys. 574 00:30:33,260 --> 00:30:35,020 I should mention that the way 575 00:30:35,020 --> 00:30:35,900 that it's being cracked 576 00:30:35,900 --> 00:30:38,520 is also going up exponentially in time. 577 00:30:38,700 --> 00:30:40,760 That is, adding one more bit 578 00:30:40,760 --> 00:30:42,380 more than doubles the amount of time 579 00:30:42,380 --> 00:30:43,740 it takes to use the method 580 00:30:43,740 --> 00:30:45,540 because even though you can distribute 581 00:30:45,540 --> 00:30:47,800 sieving a block of the possible keys, 582 00:30:48,140 --> 00:30:50,160 all of the results have to be put together 583 00:30:50,160 --> 00:30:52,640 in this huge matrix that grows super-linearly 584 00:30:52,640 --> 00:30:54,720 to do the final cracking of it. 585 00:30:54,900 --> 00:30:56,860 And so it's going to get harder and harder 586 00:30:57,360 --> 00:30:58,120 than you can see from this history 587 00:30:58,120 --> 00:30:59,120 to crack RSA. 588 00:30:59,740 --> 00:31:02,720 Here are the mathematical details of RSA. 589 00:31:02,980 --> 00:31:04,720 The key one is that 590 00:31:04,720 --> 00:31:07,000 it starts out with two large primes. 591 00:31:07,340 --> 00:31:08,260 So if you say, 592 00:31:08,380 --> 00:31:10,100 hey, I want a 300-digit key, 593 00:31:10,360 --> 00:31:12,560 then you pick two primes 594 00:31:12,560 --> 00:31:14,320 that are roughly 150 digits long. 595 00:31:14,980 --> 00:31:15,900 Multiply them together. 596 00:31:16,200 --> 00:31:16,960 That's your N. 597 00:31:17,220 --> 00:31:18,840 Go through the rest of this process. 598 00:31:19,080 --> 00:31:20,480 The bottom two lines will tell you 599 00:31:20,480 --> 00:31:22,440 what public key and private key you should use. 600 00:31:22,600 --> 00:31:23,880 And you'll notice they both include N. 601 00:31:27,520 --> 00:31:28,660 The private key D is calculated according to this 602 00:31:28,660 --> 00:31:29,580 and the number N. 603 00:31:30,140 --> 00:31:33,160 The private key D is calculated according to this 604 00:31:33,160 --> 00:31:33,920 and the number N. 605 00:31:34,260 --> 00:31:37,040 So the key in cracking RSA is to factor in 606 00:31:37,040 --> 00:31:38,520 and get the primes P and Q back. 607 00:31:38,780 --> 00:31:39,820 If you do that, 608 00:31:40,000 --> 00:31:42,480 then with P, Q, and E, 609 00:31:42,740 --> 00:31:44,820 then you can determine what it is. 610 00:31:45,440 --> 00:31:46,600 Here's a numerical example. 611 00:31:46,780 --> 00:31:47,540 You can go through that. 612 00:32:00,880 --> 00:32:02,260 So here's how we crack it. 613 00:32:02,340 --> 00:32:03,560 Factor in, which is public. 614 00:32:03,660 --> 00:32:04,400 Get P and Q. 615 00:32:05,320 --> 00:32:06,740 Calculate the Euler-Toschen function, 616 00:32:06,960 --> 00:32:07,480 phi of N. 617 00:32:08,120 --> 00:32:09,320 We know what E is, 618 00:32:09,460 --> 00:32:10,460 so we calculate D, 619 00:32:10,620 --> 00:32:11,820 which is the modular inverse, 620 00:32:12,120 --> 00:32:13,160 mod phi of N. 621 00:32:13,300 --> 00:32:14,860 And now we've got the private key. 622 00:32:15,280 --> 00:32:18,000 So the key is in factoring in to get P and Q. 623 00:32:19,260 --> 00:32:21,060 Here's an example corresponding to 624 00:32:21,060 --> 00:32:22,860 the previous numbers that I used 625 00:32:22,860 --> 00:32:26,180 in creating an RSA code. 626 00:32:27,360 --> 00:32:28,360 So how hard is factoring? 627 00:32:28,540 --> 00:32:30,840 The best known factoring algorithms go up 628 00:32:30,840 --> 00:32:32,760 something like E to the 2 thirds 629 00:32:32,760 --> 00:32:33,900 times the number of bits. 630 00:32:34,080 --> 00:32:35,100 So it's exponential. 631 00:32:35,400 --> 00:32:36,980 As you can see from these times. 632 00:32:37,800 --> 00:32:40,500 So factoring a 129 decimal digit number 633 00:32:40,980 --> 00:32:43,000 takes about 5,000 MIP years. 634 00:32:43,200 --> 00:32:45,060 A MIP is a million instructions per second. 635 00:32:45,400 --> 00:32:46,760 So if you've got a computer running 636 00:32:46,760 --> 00:32:48,080 a million instructions per second 637 00:32:48,080 --> 00:32:49,400 and run it for 5,000 years, 638 00:32:49,560 --> 00:32:51,100 then you can expect to be able to factor 639 00:32:51,100 --> 00:32:52,800 a 129 decimal digit number. 640 00:32:53,360 --> 00:32:56,700 If you went to a 2,000 decimal digit number, 641 00:32:57,360 --> 00:32:59,360 it would take you roughly 3 billion years 642 00:32:59,360 --> 00:33:01,260 at a billion a second. 643 00:33:02,040 --> 00:33:03,640 Now, here's the killer app. 644 00:33:04,240 --> 00:33:05,320 Back in the 645 00:33:05,320 --> 00:33:06,460 middle 60s, 646 00:33:07,100 --> 00:33:09,020 Bennett and Deutsch at IBM 647 00:33:09,020 --> 00:33:10,880 came up with the idea of 648 00:33:10,880 --> 00:33:12,640 how you might actually 649 00:33:13,360 --> 00:33:14,900 do some useful computation 650 00:33:14,900 --> 00:33:16,500 with a quantum computer. 651 00:33:16,700 --> 00:33:17,740 Purely theoretical. 652 00:33:18,600 --> 00:33:20,440 Nice mathematical curiosity. 653 00:33:21,160 --> 00:33:23,420 Nobody was really too much 654 00:33:23,420 --> 00:33:25,000 taken with it outside of 655 00:33:25,000 --> 00:33:26,180 a very small community. 656 00:33:27,360 --> 00:33:29,560 Peter Shore at MIT in 1994 657 00:33:30,000 --> 00:33:31,260 came up with an algorithm 658 00:33:31,260 --> 00:33:33,080 that you could use a quantum computer 659 00:33:33,080 --> 00:33:34,880 to factor large numbers 660 00:33:34,880 --> 00:33:37,900 in a much smaller amount of time. 661 00:33:38,220 --> 00:33:39,800 Here's basically the way it works. 662 00:33:40,080 --> 00:33:40,980 You pick a Q 663 00:33:40,980 --> 00:33:42,220 with small prime factors. 664 00:33:42,300 --> 00:33:43,360 This has nothing to do with the Q 665 00:33:43,360 --> 00:33:44,060 that you're looking for. 666 00:33:44,140 --> 00:33:45,540 That's just the letter that he used. 667 00:33:46,340 --> 00:33:47,640 Choose an X at random. 668 00:33:48,160 --> 00:33:50,700 Calculate a table of X to the A mod N. 669 00:33:51,300 --> 00:33:52,440 Now what this does, 670 00:33:52,440 --> 00:33:54,180 the mod N means that the values 671 00:33:54,180 --> 00:33:54,880 are going to repeat. 672 00:33:55,220 --> 00:33:57,000 So if you know something about 673 00:33:57,000 --> 00:33:57,980 random number generators, 674 00:33:58,200 --> 00:34:00,460 you know what you want is 675 00:34:00,460 --> 00:34:02,160 as many random numbers as possible 676 00:34:02,160 --> 00:34:03,780 out of the algorithm before it repeats. 677 00:34:04,060 --> 00:34:05,440 It's eventually going to repeat 678 00:34:05,440 --> 00:34:07,100 because most random number generators 679 00:34:07,100 --> 00:34:08,380 have a mod in them. 680 00:34:08,600 --> 00:34:10,060 So what you want is something 681 00:34:10,060 --> 00:34:10,780 that will not repeat. 682 00:34:10,900 --> 00:34:11,940 Well, when it does repeat, 683 00:34:12,200 --> 00:34:13,180 what that means is 684 00:34:13,180 --> 00:34:15,940 this calculation of this table of X to the A 685 00:34:22,440 --> 00:34:24,920 is 1, 4, 3, 7. 686 00:34:25,140 --> 00:34:26,440 1, 4, 3, 7. 687 00:34:26,440 --> 00:34:27,600 1, 4, 3, 7. 688 00:34:27,620 --> 00:34:28,640 1, 4, 3, 7. 689 00:34:28,880 --> 00:34:31,140 What we really want to know 690 00:34:31,140 --> 00:34:32,660 is how far apart the ones are. 691 00:34:33,440 --> 00:34:34,940 One way of doing that 692 00:34:34,940 --> 00:34:36,100 is to do a Fourier transform. 693 00:34:36,620 --> 00:34:39,400 So by doing a discrete Fourier transform on that, 694 00:34:39,580 --> 00:34:41,160 we can transform 695 00:34:41,160 --> 00:34:43,440 this periodic waveform 696 00:34:43,440 --> 00:34:45,500 into something that has peaks 697 00:34:45,500 --> 00:34:47,160 at multiples of the frequency. 698 00:34:47,520 --> 00:34:49,200 And the frequency is going to be 699 00:34:49,200 --> 00:34:50,120 1 over the period. 700 00:34:52,440 --> 00:34:53,360 Every time we do this, 701 00:34:53,380 --> 00:34:54,940 when we read the quantum bits, 702 00:34:55,120 --> 00:34:56,060 we're going to get something 703 00:34:56,060 --> 00:34:58,140 that is close to the period 704 00:34:58,140 --> 00:34:59,900 because the Fourier transform, 705 00:35:00,240 --> 00:35:01,120 if it were perfect, 706 00:35:01,300 --> 00:35:02,520 it would just be like this. 707 00:35:02,800 --> 00:35:04,660 Period, twice the period, 708 00:35:04,900 --> 00:35:06,040 three times the period. 709 00:35:06,360 --> 00:35:08,460 It's not quite perfect because it's discrete 710 00:35:08,460 --> 00:35:10,460 so what you get is something like this 711 00:35:10,460 --> 00:35:11,080 with peaks. 712 00:35:11,420 --> 00:35:13,160 And now every time you read it 713 00:35:13,160 --> 00:35:14,580 because the probability is, 714 00:35:14,680 --> 00:35:16,800 roughly speaking, the square of this, 715 00:35:22,440 --> 00:35:23,940 order log q times, 716 00:35:24,080 --> 00:35:25,740 where q is this first number you started, 717 00:35:25,900 --> 00:35:28,020 then you can figure out what the period must have been. 718 00:35:28,580 --> 00:35:30,160 So if I tell you I measured 719 00:35:30,160 --> 00:35:32,320 a frequency of 200, 400, and 800, 720 00:35:32,660 --> 00:35:34,660 you don't know what the fundamental is. 721 00:35:34,940 --> 00:35:36,980 You don't know if it's 100 or 200. 722 00:35:37,960 --> 00:35:39,100 But if I tell you 723 00:35:39,100 --> 00:35:40,100 the multiples are 724 00:35:40,100 --> 00:35:42,120 200, 300, and 500, 725 00:35:42,460 --> 00:35:44,640 then you say the fundamental must have been 100 726 00:35:44,640 --> 00:35:46,800 because that's the only result I could have gotten. 727 00:35:47,100 --> 00:35:48,820 So by doing this experiment 728 00:35:48,820 --> 00:35:50,620 a small number of times, 729 00:35:50,700 --> 00:35:52,060 a small number of repetitions, 730 00:35:52,440 --> 00:35:53,680 you can put the results together, 731 00:35:53,940 --> 00:35:55,940 come up with r which is the period. 732 00:35:56,660 --> 00:35:57,720 We're almost there. 733 00:35:58,200 --> 00:36:00,420 Having taken r in the second line, 734 00:36:00,560 --> 00:36:01,700 plug it into this formula, 735 00:36:01,920 --> 00:36:03,860 and take the greatest common divisor 736 00:36:03,860 --> 00:36:06,260 of x to the r over 2 minus 1 and plus 1 737 00:36:06,260 --> 00:36:06,700 with n, 738 00:36:07,240 --> 00:36:09,560 and we are guaranteed by Shor's algorithm 739 00:36:09,560 --> 00:36:10,840 to get two factors of n. 740 00:36:11,840 --> 00:36:12,840 That's the good news. 741 00:36:13,140 --> 00:36:16,020 The bad news is that the factors might be 1 and n. 742 00:36:16,420 --> 00:36:17,900 The algorithm might tell you 743 00:36:18,340 --> 00:36:19,280 here are your factors 744 00:36:19,280 --> 00:36:21,620 and the answer is 1 times n. 745 00:36:22,440 --> 00:36:24,320 And you say, well, that's nice 746 00:36:24,320 --> 00:36:26,440 but I really would like to do it again. 747 00:36:26,600 --> 00:36:27,660 And so you do it again 748 00:36:28,260 --> 00:36:30,580 and in a short number of repetitions 749 00:36:30,580 --> 00:36:31,620 you'll get the P and Q. 750 00:36:33,540 --> 00:36:34,740 Key features are 751 00:36:34,740 --> 00:36:36,160 that the discrete Fourier transform 752 00:36:36,160 --> 00:36:38,760 maps equal amplitudes into unequal amplitudes 753 00:36:38,760 --> 00:36:40,560 so that measuring the quantum state 754 00:36:40,560 --> 00:36:42,000 is more likely to yield a result 755 00:36:42,000 --> 00:36:43,960 close to some multiple of 1 over r 756 00:36:43,960 --> 00:36:46,580 and this period can be quantum computed efficiently 757 00:36:47,040 --> 00:36:48,560 because we can do all of the steps 758 00:36:48,560 --> 00:36:50,000 simultaneously by doing them 759 00:36:50,000 --> 00:36:51,840 on a superimposed register. 760 00:36:52,680 --> 00:36:54,080 Three or four years ago 761 00:36:54,080 --> 00:36:55,340 there was a published prediction 762 00:36:55,340 --> 00:36:57,300 that by 2000 it is expected 763 00:36:57,300 --> 00:36:59,360 that a quantum computer will factor 15 764 00:36:59,360 --> 00:37:01,940 a 4-bit RSA key 765 00:37:01,940 --> 00:37:04,280 into the numbers 3 and 5. 766 00:37:04,620 --> 00:37:05,960 They didn't make it in 2000 767 00:37:05,960 --> 00:37:07,860 they almost didn't make it in 2001 768 00:37:08,440 --> 00:37:10,240 but in November of 2001 769 00:37:10,960 --> 00:37:12,460 IBM with their 770 00:37:12,460 --> 00:37:13,860 7-qubit 771 00:37:14,440 --> 00:37:16,440 custom designer molecule register 772 00:37:16,440 --> 00:37:18,700 successfully factored 15 773 00:37:18,700 --> 00:37:20,280 using a modification 774 00:37:20,280 --> 00:37:21,320 of Shor's algorithm 775 00:37:22,440 --> 00:37:23,640 with the factors of 3 and 5. 776 00:37:24,560 --> 00:37:26,080 Scaling up for larger numbers 777 00:37:26,080 --> 00:37:27,140 is theoretically unlimited 778 00:37:27,660 --> 00:37:29,080 so that if you can build 779 00:37:29,080 --> 00:37:30,520 a big enough quantum computer 780 00:37:30,520 --> 00:37:32,820 and there's a big gap between 781 00:37:32,820 --> 00:37:34,760 the theoretical and the if you can build 782 00:37:34,760 --> 00:37:36,860 because if you're working with an electron 783 00:37:36,860 --> 00:37:38,880 you have to shield it from all 784 00:37:38,880 --> 00:37:40,760 magnetic and electric fields 785 00:37:40,760 --> 00:37:42,040 that might disturb its state 786 00:37:42,040 --> 00:37:43,420 or put in some redundancy 787 00:37:43,420 --> 00:37:44,120 and error correction. 788 00:37:44,420 --> 00:37:44,780 Yes? 789 00:37:46,760 --> 00:37:47,500 Can't hear you. 790 00:37:52,440 --> 00:37:52,780 Use 7. 791 00:37:52,980 --> 00:37:55,480 Use 7 qubits to factor a 4-bit number 792 00:37:57,600 --> 00:37:58,920 in IBM's case. 793 00:37:59,920 --> 00:38:00,440 Alright. 794 00:38:00,540 --> 00:38:01,900 Let me get on my crystal ball. 795 00:38:02,200 --> 00:38:04,760 I predict that in the next 5 to 10 years 796 00:38:04,760 --> 00:38:05,840 we're going to begin to see 797 00:38:05,840 --> 00:38:06,660 quantum effect memory. 798 00:38:07,080 --> 00:38:10,720 So as each RAM chip gets denser and denser 799 00:38:10,720 --> 00:38:11,760 at some point 800 00:38:11,760 --> 00:38:13,420 they're going to have one bit 801 00:38:13,420 --> 00:38:15,340 stored on every electron in the chip 802 00:38:16,120 --> 00:38:18,280 and to store two bits on one electron 803 00:38:18,280 --> 00:38:19,400 they're going to have to start using 804 00:38:19,400 --> 00:38:20,180 a quantum effect. 805 00:38:22,440 --> 00:38:23,180 It's going to be a quantum computer. 806 00:38:23,400 --> 00:38:25,780 What it's going to be is a quantum effect memory 807 00:38:26,280 --> 00:38:28,300 that is far denser than any memory 808 00:38:28,300 --> 00:38:28,980 that we have now. 809 00:38:29,480 --> 00:38:31,860 I predict that there will be special purpose 810 00:38:31,860 --> 00:38:32,980 experimental computers. 811 00:38:34,120 --> 00:38:34,680 Translation. 812 00:38:34,940 --> 00:38:36,640 Three letter government agencies 813 00:38:36,640 --> 00:38:38,260 will implement Shor's algorithm. 814 00:38:39,560 --> 00:38:40,580 Commercial availability. 815 00:38:41,860 --> 00:38:43,680 Everyone knows that Hitachi 816 00:38:43,680 --> 00:38:44,820 has a secret project. 817 00:38:45,140 --> 00:38:47,160 Oh, I wasn't supposed to say that. 818 00:38:47,280 --> 00:38:48,620 I guess it's not secret anymore. 819 00:38:49,300 --> 00:38:50,900 Hitachi has a secret project 820 00:38:52,440 --> 00:38:53,920 they have patented 821 00:38:53,920 --> 00:38:56,100 a quantum optic 822 00:38:56,100 --> 00:38:57,840 a quantum dot 823 00:38:58,440 --> 00:39:00,540 which uses an optical 824 00:39:00,540 --> 00:39:00,920 phenomenon. 825 00:39:01,560 --> 00:39:03,780 And so that's a published patent 826 00:39:03,780 --> 00:39:05,740 that Hitachi has, NTT, 827 00:39:05,920 --> 00:39:07,360 the usual suspects IBM, 828 00:39:08,120 --> 00:39:09,600 Siemens, NTT 829 00:39:09,600 --> 00:39:11,980 are all working on building quantum computers. 830 00:39:14,240 --> 00:39:16,660 And maybe 20 years from now 831 00:39:16,660 --> 00:39:18,040 here's what you'll see 832 00:39:18,040 --> 00:39:18,700 on your computer. 833 00:39:19,680 --> 00:39:21,980 Anybody know what the cats refer to? 834 00:39:24,800 --> 00:39:25,640 Schrödinger's cats. 835 00:39:26,640 --> 00:39:28,360 This is a famous quantum 836 00:39:28,360 --> 00:39:29,740 mechanic thought experiment 837 00:39:29,740 --> 00:39:31,520 for all you animal lovers 838 00:39:31,520 --> 00:39:32,940 he didn't actually kill the cat. 839 00:39:33,220 --> 00:39:34,920 So I have a radioactive particle 840 00:39:34,920 --> 00:39:36,620 that in some unknown time 841 00:39:36,620 --> 00:39:37,540 is going to decay 842 00:39:37,540 --> 00:39:40,220 and emit something that I can detect. 843 00:39:40,560 --> 00:39:41,640 When it decays 844 00:39:41,640 --> 00:39:43,720 and the particle is detected 845 00:39:44,300 --> 00:39:46,880 then a pellet of cyanide 846 00:39:46,880 --> 00:39:48,160 will drop into the acid 847 00:39:48,160 --> 00:39:49,940 produce poison gas 848 00:39:49,940 --> 00:39:50,920 and kill the cat. 849 00:39:52,440 --> 00:39:53,580 And how long this is going to take 850 00:39:53,580 --> 00:39:56,240 so what is the condition 851 00:39:56,240 --> 00:39:57,340 of the cat in the box? 852 00:39:57,480 --> 00:39:58,660 Is the cat dead or alive? 853 00:39:59,140 --> 00:40:01,180 And the quantum mechanical answer is 854 00:40:01,180 --> 00:40:01,740 it's both. 855 00:40:02,080 --> 00:40:04,080 It's a superposition of the dead state 856 00:40:04,080 --> 00:40:04,940 and the live state 857 00:40:04,940 --> 00:40:07,460 until you actually perform the observation. 858 00:40:07,800 --> 00:40:09,840 And once you actually perform the observation 859 00:40:11,880 --> 00:40:13,840 then all of the other possible states 860 00:40:13,840 --> 00:40:15,460 collapse and there's only one state left 861 00:40:15,460 --> 00:40:16,500 and the cat is no longer 862 00:40:16,500 --> 00:40:17,340 both alive and dead. 863 00:40:17,460 --> 00:40:18,900 It's either alive or it's dead 864 00:40:22,440 --> 00:40:23,400 For further information 865 00:40:23,400 --> 00:40:24,980 here are some sites I like 866 00:40:24,980 --> 00:40:27,680 Again you can get these off of my web page 867 00:40:27,680 --> 00:40:30,460 I'll go back to that slide at the end 868 00:40:31,300 --> 00:40:32,960 Lots of work going on 869 00:40:32,960 --> 00:40:34,840 at the usual suspects 870 00:40:34,840 --> 00:40:36,700 Stanford, MIT, Caltech 871 00:40:37,600 --> 00:40:38,240 Berkeley 872 00:40:39,220 --> 00:40:40,540 University of Cambridge 873 00:40:40,540 --> 00:40:41,100 Oxford 874 00:40:43,500 --> 00:40:44,340 Let's see 875 00:40:44,340 --> 00:40:46,280 Los Alamos National Labs 876 00:40:47,060 --> 00:40:49,500 has a very active quantum group 877 00:40:49,500 --> 00:40:51,380 Here are some reference sites 878 00:40:51,380 --> 00:40:52,320 Some of them are still 879 00:40:52,440 --> 00:40:54,420 kind of professional 880 00:40:54,420 --> 00:40:55,700 and some of them are actually 881 00:40:55,700 --> 00:40:56,700 student term papers 882 00:40:57,240 --> 00:40:59,160 So some of these I thought were 883 00:40:59,160 --> 00:41:00,320 good collections of links 884 00:41:00,320 --> 00:41:03,160 So you can use these as kind of metal links 885 00:41:03,160 --> 00:41:04,380 to find out some more stuff 886 00:41:05,140 --> 00:41:08,160 Finally if you want to know more about this 887 00:41:08,160 --> 00:41:09,700 you can come to Texas A&M 888 00:41:09,700 --> 00:41:11,440 and sign up for my grad course this fall 889 00:41:11,440 --> 00:41:12,360 Thank you 890 00:41:22,440 --> 00:41:24,580 Thank you