1 00:00:11,970 --> 00:00:15,090 Thank you so much for so many people turning up. 2 00:00:15,110 --> 00:00:16,230 This is amazing. 3 00:00:16,590 --> 00:00:17,990 I'm really looking forward to giving the talk. 4 00:00:18,530 --> 00:00:20,510 Title, Doomed to Repeat the Past. 5 00:00:20,510 --> 00:00:26,130 So this is not about quantum breaking and making your life horrible. 6 00:00:26,130 --> 00:00:27,930 It's about you making my life horrible. 7 00:00:28,750 --> 00:00:31,630 So this is Hardware Exploits for Quantum Computers. 8 00:00:33,190 --> 00:00:35,330 So I'm Jamie Friel. 9 00:00:35,330 --> 00:00:38,210 I'm a software engineer at Oxford Quantum Circuits. 10 00:00:38,210 --> 00:00:45,550 My main responsibility is within the compiler, so I think about run times and how run times might go wrong. 11 00:00:46,170 --> 00:00:49,670 At MQC, we make superconducting quantum computers. 12 00:00:49,890 --> 00:00:51,690 We build the full stack. 13 00:00:51,690 --> 00:00:55,210 That is the QPU, the chip itself. 14 00:00:55,210 --> 00:00:56,630 We don't build this bridge. 15 00:00:56,630 --> 00:00:57,790 We don't build it. 16 00:00:58,470 --> 00:01:07,430 The control hardware, compilation stack, and then the cloud layer, which is just the most common access point to quantum computers. 17 00:01:09,070 --> 00:01:15,610 If you want to run down on this, I gave a talk last year that sort of compared this to a classical control stack. 18 00:01:15,670 --> 00:01:21,490 Very loosely, we have a CPU, we have a motherboard, we have a compiler and a run time, and then a cloud layer. 19 00:01:22,430 --> 00:01:27,310 I try to relate this to classical concepts as much as I can. 20 00:01:27,390 --> 00:01:34,810 It's meant to be open and bridge the gap between quantum and security, so please raise your hand if you have questions throughout. 21 00:01:34,810 --> 00:01:36,230 I want to be clear to everyone. 22 00:01:37,670 --> 00:01:41,090 So what we do at MQC, we build quantum computers. 23 00:01:41,090 --> 00:01:43,050 It's available on AWS, the Cloud. 24 00:01:44,330 --> 00:01:52,230 The reason I want to give this talk is that quantum computers will solve many great problems, not just cracking encryption. 25 00:01:53,050 --> 00:02:00,290 Many good things, drug discovery, simulated molecules, machine learning, optimization problems, logistics. 26 00:02:00,510 --> 00:02:03,310 All of that is very, very sensitive data. 27 00:02:03,310 --> 00:02:04,150 All of that is data. 28 00:02:04,150 --> 00:02:06,350 If it was leet, I'd be in big trouble. 29 00:02:06,630 --> 00:02:20,750 So we're starting work now to ensure our environments are secure, so that when we get to solving real problems, we know we're not going to have things like Zenbleed and Downfall, which turned up a few days ago. 30 00:02:22,450 --> 00:02:25,070 I don't know if anyone has been involved in patching this. 31 00:02:25,170 --> 00:02:26,470 My heart goes out to you. 32 00:02:26,530 --> 00:02:31,110 If anyone has to patch Meltdown or Spectre again, my heart goes out to you. 33 00:02:31,110 --> 00:02:32,310 It would be me one day. 34 00:02:33,970 --> 00:02:37,490 Yeah, hardware exploits are still a big problem. 35 00:02:37,490 --> 00:02:42,370 Complex CPU optimizations give rise to complex exploits. 36 00:02:42,370 --> 00:02:55,050 Very hard to properly secure a complex CPU environment, especially with regards to separating out user space and the system space and privileged information. 37 00:02:56,450 --> 00:03:00,670 Right off the bat, a big one for people that are too difficult here. 38 00:03:00,670 --> 00:03:02,930 I think one is fixed in the same way as some of the other updates. 39 00:03:02,930 --> 00:03:06,690 I don't know if the other ones are patched yet, but at least one is. 40 00:03:09,760 --> 00:03:11,840 Q-Day is coming for you. 41 00:03:12,440 --> 00:03:17,360 Q-Day is the day that quantum computers crack encryption. 42 00:03:17,720 --> 00:03:19,660 The internet will collapse. 43 00:03:19,940 --> 00:03:22,440 Satoshi's sacred bitcoins are stolen. 44 00:03:22,980 --> 00:03:29,660 All of your 1997 PGP emails are free for everyone to read. 45 00:03:32,760 --> 00:03:34,800 But it's coming for me sooner. 46 00:03:35,100 --> 00:03:36,900 And this is the point of this talk. 47 00:03:37,340 --> 00:03:41,580 This will happen, but let's not be hyperbolic about it. 48 00:03:41,580 --> 00:03:43,740 This is a very, very long way off. 49 00:03:43,820 --> 00:03:50,460 And the solutions to solving the problems of encryption are much further advanced than the quantum computing hardware is. 50 00:03:50,460 --> 00:03:55,160 We got some talks from the folks at Sandbox are working on post-quantum cryptography. 51 00:03:56,520 --> 00:03:58,100 Don't go very well. 52 00:03:58,100 --> 00:03:58,540 That's great. 53 00:03:58,540 --> 00:04:00,380 Last space solutions look great. 54 00:04:01,380 --> 00:04:04,440 We're redefining a model of computing. 55 00:04:04,660 --> 00:04:07,480 We're redefining a runtime environment. 56 00:04:07,480 --> 00:04:12,120 We've got many, many more ways to go wrong before we're a risk to anyone. 57 00:04:16,300 --> 00:04:20,020 But before we can go into that, try the wrong quantum computing. 58 00:04:22,800 --> 00:04:24,580 This is a lock gate. 59 00:04:24,860 --> 00:04:28,940 For people familiar with that, 0 goes to 1 and 1 goes to 0. 60 00:04:30,440 --> 00:04:32,240 I'm using this weird notation. 61 00:04:32,240 --> 00:04:33,720 It's called bracket notation. 62 00:04:34,320 --> 00:04:36,600 I'm putting it there so people are comfortable with it. 63 00:04:36,600 --> 00:04:39,380 If you go to the literature, it will be there. 64 00:04:39,380 --> 00:04:40,620 It doesn't really matter what it is. 65 00:04:40,620 --> 00:04:42,680 It's an abstraction to a vector. 66 00:04:42,840 --> 00:04:46,500 I'm just wrapping bits in these things to feel more comfortable with it. 67 00:04:46,600 --> 00:04:48,600 These are bits right now. 68 00:04:50,040 --> 00:04:52,840 There will be some sources with more information on these gates. 69 00:04:53,580 --> 00:04:55,540 But Pauli X. 70 00:04:56,080 --> 00:04:59,920 Everything in physics is named after dead old men, which is very useful. 71 00:04:59,920 --> 00:05:01,180 This is just a lock gate. 72 00:05:01,280 --> 00:05:02,260 Pauli X. 73 00:05:05,280 --> 00:05:06,160 Hadamard. 74 00:05:06,320 --> 00:05:07,680 Another dead old man. 75 00:05:09,720 --> 00:05:11,780 They're all brilliant, to be fair. 76 00:05:12,120 --> 00:05:14,380 This is where we start to get quantum. 77 00:05:17,540 --> 00:05:19,220 Hadamard operation on 0. 78 00:05:19,220 --> 00:05:25,840 So the 0 bit, this is where you go from a mixture , a superposition of 0 or 1. 79 00:05:26,900 --> 00:05:34,660 So this is just saying it's a 50% probability that when you measure your quantum system, you get 0, 50% of the time you get 1. 80 00:05:34,800 --> 00:05:37,680 This is a coin flip, basically. 81 00:05:37,680 --> 00:05:38,340 That's how you think of this. 82 00:05:38,340 --> 00:05:41,420 This is a coin flip generator, this Hadamard gate. 83 00:05:41,540 --> 00:05:43,300 It will go backwards as well. 84 00:05:43,860 --> 00:05:50,460 So if you start with this equal superposition state, it will take you back to just 0. 85 00:05:50,820 --> 00:05:52,420 So this is a bit more quantum. 86 00:05:52,420 --> 00:05:56,800 This is where you have this idea that you can begin 0 and 1 at the same time. 87 00:05:57,240 --> 00:06:01,560 And you can do... this is part of where quantum power comes from. 88 00:06:01,880 --> 00:06:03,600 You could act on both at the same time. 89 00:06:03,600 --> 00:06:06,940 Now if you do this and then a 0, you've done a 0 in both. 90 00:06:08,520 --> 00:06:11,760 But there's two 1-bit operations. 91 00:06:12,200 --> 00:06:14,940 So I'm ignoring jargon qubits. 92 00:06:14,940 --> 00:06:16,840 These are... right now these are bits. 93 00:06:17,020 --> 00:06:20,440 In quantum land they are qubits, a quantum bit. 94 00:06:25,100 --> 00:06:29,060 The next step is 2-bit operations. 95 00:06:29,540 --> 00:06:34,480 This is C0, or an XOR with a carry. 96 00:06:34,500 --> 00:06:40,020 So this is... quantum computation is reversible, so you have to add the X carry. 97 00:06:41,660 --> 00:06:45,900 The XOR is if your first bit is 0, do nothing to the second. 98 00:06:46,420 --> 00:06:51,600 If your first bit is 1, then do an X gate or a NOT gate on the second bit. 99 00:06:53,760 --> 00:06:56,260 This in and of itself is... again, this is classical. 100 00:06:56,260 --> 00:06:57,200 This is an XOR gate. 101 00:06:57,200 --> 00:07:03,720 This is a classical circuit with nothing quantum about this necessarily, as it's relative yet. 102 00:07:03,720 --> 00:07:10,960 We'll see how the combination of this superposition and the C0 become quantum. 103 00:07:12,540 --> 00:07:19,520 But those are some classical operations, a little bit of quantum, to understand how we do some computation. 104 00:07:19,520 --> 00:07:20,780 Bit level we're at. 105 00:07:20,820 --> 00:07:23,380 Let me say we have an 8-qubit machine. 106 00:07:23,380 --> 00:07:26,620 That's not like an 8-bit computer, we have an 8-bit register. 107 00:07:26,620 --> 00:07:28,440 That's like 8 transistors. 108 00:07:28,540 --> 00:07:32,300 We are on the bit level of operation for these devices. 109 00:07:37,520 --> 00:07:43,320 So this is where we start to get into what a thread model might look like. 110 00:07:43,480 --> 00:07:46,120 And it's how is it do we actually do this? 111 00:07:47,340 --> 00:07:49,500 How do we make this operation happen? 112 00:07:49,500 --> 00:07:54,820 When this is a representation of our device Lucy, 8 qubits connected in a ring. 113 00:07:56,100 --> 00:08:03,740 And this is a piece of superconducting material, sits in the bottom of a dilution refrigerator, with some wires next to it. 114 00:08:04,100 --> 00:08:06,700 How do we actually do anything with this? 115 00:08:09,480 --> 00:08:13,360 So one thing to understand, we're going to brush over the physics here. 116 00:08:13,360 --> 00:08:17,800 If anyone wants to talk more about the details, please come talk to me, I'm here all weekend. 117 00:08:18,580 --> 00:08:20,780 I'm always happy to go into more detail on this. 118 00:08:20,780 --> 00:08:24,240 We have a frequency associated with each qubit. 119 00:08:24,780 --> 00:08:29,940 This frequency is... think of it like an energy, a voltage. 120 00:08:30,200 --> 00:08:37,440 If classically, your bits are separated by 5 volts, every bit here is separated by a different voltage. 121 00:08:38,280 --> 00:08:43,160 This might be a 4 volt difference between 0 and 1, this might be a 3 volt, this may be a 5 volt. 122 00:08:43,900 --> 00:08:50,880 That's what we... we add that energy into the system to drive the transition from 0 to 1. 123 00:08:51,020 --> 00:09:01,960 It happens to be microwaved, typically around 5 gigahertz, for devices like myself, OPCs, and IBMs, or Getys, around 5 gigahertz. 124 00:09:02,440 --> 00:09:08,040 So we add enough energy to pump up from 0 to the 1 state. 125 00:09:08,040 --> 00:09:10,520 That's how we do a NOT operation. 126 00:09:16,390 --> 00:09:22,870 Let's say... just to get the sense, it's the same as adding 5 volt, 4 volt into a system to flip a bit. 127 00:09:27,000 --> 00:09:28,700 How do we do the CNOT gate? 128 00:09:28,700 --> 00:09:35,540 Now this is a much more subtle operation, and in some regard you just have to trust me. 129 00:09:35,660 --> 00:09:40,180 Sorry, I didn't want to go to the maths of this, it's a bit gnarly. 130 00:09:41,360 --> 00:09:46,880 Let's take this example where our input is qubit 8 and qubit 1. 131 00:09:47,220 --> 00:09:51,920 So if qubit 8 is in 0, do nothing to qubit 1. 132 00:09:52,200 --> 00:09:54,960 If it's in state 1, flip it. 133 00:09:55,580 --> 00:10:02,260 The way that I do that is I drive qubit 8 with the energy of qubit 1. 134 00:10:03,940 --> 00:10:05,960 And that looks like... that should do nothing, right? 135 00:10:05,960 --> 00:10:08,220 I'm just driving qubit 8. 136 00:10:08,220 --> 00:10:10,660 It's this little arm here, it's this coupling. 137 00:10:10,660 --> 00:10:23,220 We engineer a coupling between the different bits such that when I drive one qubit at the energy of another, it does this operation. 138 00:10:23,780 --> 00:10:29,580 So this is how we do two bits, or two qubit operations in a quantum device. 139 00:10:36,020 --> 00:10:37,920 So, an example. 140 00:10:38,600 --> 00:10:42,660 This is called a Bell test, or GNZ state. 141 00:10:42,660 --> 00:10:44,940 Lots of business names in there. 142 00:10:47,440 --> 00:10:49,260 Start with Hadamard. 143 00:10:50,160 --> 00:10:53,400 For example, this is the first qubit, this rail. 144 00:10:53,560 --> 00:10:57,580 This is the second qubit, that's this rail here. 145 00:10:58,580 --> 00:10:59,920 What does this represent? 146 00:11:00,280 --> 00:11:12,200 This is saying that if I take a measurement of my system, because quantum systems collapse at some classical measurement, when I measure them, on this first qubit, it's a coin flip. 147 00:11:12,580 --> 00:11:16,300 So this is going to be 0 or 1, with equal probability. 148 00:11:16,600 --> 00:11:19,720 This bottom rail is always going to be 0. 149 00:11:20,180 --> 00:11:23,100 So this is a coin flip, and this is stuck on heads. 150 00:11:27,270 --> 00:11:30,710 Another way to represent this is a slightly more compact notation. 151 00:11:30,990 --> 00:11:32,770 First qubit, second qubit. 152 00:11:34,490 --> 00:11:38,190 First time, we can see this first one, 0 or 1. 153 00:11:38,870 --> 00:11:43,970 Regardless of that outcome, the second qubit is in 0. 154 00:11:48,140 --> 00:11:49,900 So this next bit. 155 00:11:51,400 --> 00:11:55,240 So remember this, if we're in 0, do nothing. 156 00:11:57,760 --> 00:12:01,100 So nothing happens to this part of the quantum state. 157 00:12:01,100 --> 00:12:03,380 If the first bit's 0, leave it. 158 00:12:03,380 --> 00:12:04,340 Do nothing. 159 00:12:06,400 --> 00:12:11,560 But the second, the other part of our superposition, the first bit is 1. 160 00:12:11,560 --> 00:12:15,300 So we do a flip on this part of the superposition. 161 00:12:16,780 --> 00:12:18,540 But what does this mean? 162 00:12:18,540 --> 00:12:22,000 Why is this even an important example I'm belabouring so heavily? 163 00:12:22,360 --> 00:12:24,180 We've got two coin flippers. 164 00:12:24,300 --> 00:12:26,500 We are physically distinct from one another. 165 00:12:26,780 --> 00:12:28,500 We both flip a coin and hide it. 166 00:12:28,500 --> 00:12:31,680 You get heads, immediately you have heads as well. 167 00:12:32,280 --> 00:12:33,600 Flip a coin again. 168 00:12:33,600 --> 00:12:36,180 You get tails, immediately you have tails as well. 169 00:12:36,460 --> 00:12:43,180 There is this correlation between physically distinct bodies that is not possible classically. 170 00:12:43,900 --> 00:12:45,700 So they are in lockstep. 171 00:12:45,700 --> 00:12:50,800 They are random until you look at one of them, and the other flipped into place and agrees with the other. 172 00:12:51,800 --> 00:12:55,540 And we take this is not fast and light transmission of data. 173 00:12:55,640 --> 00:12:56,940 It's not possible. 174 00:12:57,420 --> 00:12:58,900 Because this is random. 175 00:12:59,080 --> 00:13:00,900 You're just generating random data. 176 00:13:00,900 --> 00:13:04,920 There's just a connection between people that's distant. 177 00:13:06,100 --> 00:13:12,580 This is how you combine that superposition and these two bit operations to make something that is quantum. 178 00:13:12,580 --> 00:13:19,600 This is not possible classically to have this level of correlation between physically distinct entities. 179 00:13:20,460 --> 00:13:25,440 So this is hello world in quantum. 180 00:13:27,000 --> 00:13:29,420 So this is going to be our test case. 181 00:13:33,200 --> 00:13:35,740 And here's just an example output. 182 00:13:37,440 --> 00:13:44,540 So when you do a quantum computation, you repeat the computation many, many times, and you measure it every time. 183 00:13:44,620 --> 00:13:47,420 And you get a different pass for output. 184 00:13:47,620 --> 00:13:51,480 So this is, you see, when the first one is 0, 0, 0, 0, 1, and 1. 185 00:13:51,700 --> 00:13:52,500 So that's 186 00:13:58,380 --> 00:13:59,780 the quantum bit. 187 00:13:59,860 --> 00:14:03,600 We're going to briefly touch... I'm not a security person. 188 00:14:03,600 --> 00:14:05,460 Let me get that out there now. 189 00:14:05,460 --> 00:14:10,020 So if anything sounds a bit dubious to you here, it's because it is. 190 00:14:13,580 --> 00:14:16,440 But last year at DefCon... so this is one thing I love about Quantum Village. 191 00:14:16,440 --> 00:14:21,620 Last year at DefCon, it wasn't just us saying, hey, this is what quantum is. 192 00:14:21,860 --> 00:14:32,200 We spent a lot of time talking with red teamers and hardware hackers, teaching me, a quantum information theorist, about the world of security and threat modeling and hardware hacking and all this stuff. 193 00:14:32,840 --> 00:14:35,760 And so now we're trying to bring these two worlds together. 194 00:14:35,880 --> 00:14:41,720 So everyone in this room, if you do hardware hacking, this is probably painfully simple and oversimplistic. 195 00:14:41,720 --> 00:14:43,480 Same for the quantum bit. 196 00:14:43,480 --> 00:14:47,920 So quantum Q specialist, what I said was objectively wrong, probably. 197 00:14:48,600 --> 00:14:55,980 But you take simple ideas in two distinct fields and you have federal funding for interdisciplinary study. 198 00:14:57,200 --> 00:14:58,560 So this is what we're doing here. 199 00:14:58,560 --> 00:15:06,160 We're bringing simple ideas from quantum and simple ideas from security and bringing them together to do some really cool things. 200 00:15:07,440 --> 00:15:11,400 So Roham, this is a block of DRAM. 201 00:15:11,900 --> 00:15:14,140 These are cells that contain data. 202 00:15:14,980 --> 00:15:19,140 There is some very, very loose coupling between these cells. 203 00:15:19,140 --> 00:15:22,320 So there are straight electromagnetic fields. 204 00:15:22,320 --> 00:15:24,060 These things are very, very small. 205 00:15:24,720 --> 00:15:34,640 But unlike the coupling that we generate in a quantum computer, which is very distinct, very deliberate, this is an accident. 206 00:15:34,640 --> 00:15:40,000 This is a byproduct of the fact that you can't perfectly contain these straight fields. 207 00:15:42,480 --> 00:15:46,480 So let's say that this is Alice's data in the purple. 208 00:15:47,300 --> 00:16:01,740 If Eve, some malicious actor, comes in and starts flipping bits very, very rapidly on either side of Alice's data, you can induce bit flips through this very, very loose coupling. 209 00:16:01,740 --> 00:16:04,420 So you have to travel very, very hard and very precisely. 210 00:16:05,080 --> 00:16:13,560 But Google's Project Zero, they did find some privilege escalation exploits in doing Roham's style attacks. 211 00:16:13,560 --> 00:16:20,920 So it's a very serious, very real attack that RAM manufacturers, DRM manufacturers have to be aware of. 212 00:16:26,070 --> 00:16:27,690 So I'm going to go back to this slide. 213 00:16:27,690 --> 00:16:37,230 But one final point on what the quantum runtime looks like now, how it's distinct from classical runtime. 214 00:16:38,690 --> 00:16:40,130 We are CPU. 215 00:16:40,130 --> 00:16:41,070 We have our motherboard. 216 00:16:41,070 --> 00:16:42,130 We have our runtime. 217 00:16:42,130 --> 00:16:43,470 We have our access layout. 218 00:16:44,530 --> 00:16:49,450 There is a stack, and that's it. 219 00:16:49,450 --> 00:16:52,570 We pop off the top of the stack, and we run the instructions on the stack. 220 00:16:52,570 --> 00:16:54,670 There is no sys calls. 221 00:16:54,670 --> 00:16:56,710 There is no root user. 222 00:16:56,710 --> 00:16:59,110 There is no user space, really. 223 00:16:59,110 --> 00:17:06,270 You have the entire run of the machine as a user, and we just pop your instructions off the stack and execute them. 224 00:17:06,350 --> 00:17:09,950 Very, very simple runtime right now. 225 00:17:09,950 --> 00:17:19,490 It also lives for 0.2 seconds, and then the entire system shuts down, at least from a data perspective. 226 00:17:19,490 --> 00:17:23,090 This whole thing, we kept our fridge cold for 18 months. 227 00:17:23,090 --> 00:17:31,370 So we had an 18-month continuously running quantum computer at the record time, proving that cryogenics is not problematic. 228 00:17:33,350 --> 00:17:35,830 And so these are the differences. 229 00:17:35,830 --> 00:17:46,010 We don't have any of the subtleties that you have to deal with when separating out root access, system calls, all these passwords, environment variables. 230 00:17:46,010 --> 00:17:47,190 We have none of that. 231 00:17:47,630 --> 00:17:50,330 We have a set of numerical instructions we pop and execute. 232 00:17:50,610 --> 00:17:54,950 But there is still space for things to go wrong in this very simple execution model. 233 00:17:58,730 --> 00:18:03,370 So this is quantum-ish Rowhammer, or quantum-Rowhammer-ish. 234 00:18:06,220 --> 00:18:12,900 So that computation that we were examining earlier is two-bit computation. 235 00:18:13,420 --> 00:18:15,320 Let's say Alice wants to run this. 236 00:18:15,320 --> 00:18:17,940 So we assign Alice qubits one and two. 237 00:18:18,400 --> 00:18:19,460 You can run there. 238 00:18:19,460 --> 00:18:20,520 That's fine. 239 00:18:20,800 --> 00:18:23,920 But we've got six other qubits sat idle. 240 00:18:23,920 --> 00:18:25,800 That's lost revenue. 241 00:18:26,120 --> 00:18:28,420 We could be doing even more throughput. 242 00:18:29,240 --> 00:18:35,900 And so if Eve comes in and says, I've got a two-bit operation as well, let's put Eve in. 243 00:18:36,780 --> 00:18:42,140 Because this maximizes the remaining possible qubits for even more users to get involved. 244 00:18:46,820 --> 00:18:49,380 And this is a piece of chasm. 245 00:18:50,220 --> 00:18:54,820 This is a textual representation of the computation we showed before. 246 00:18:54,820 --> 00:18:57,260 This is the Hadamard, for qubit one. 247 00:18:57,780 --> 00:19:01,100 And this is the CX gate, for qubits one and two. 248 00:19:02,060 --> 00:19:02,980 And this is the output. 249 00:19:02,980 --> 00:19:04,140 There's a little bit of noise, right? 250 00:19:04,140 --> 00:19:05,200 These machines aren't perfect. 251 00:19:05,200 --> 00:19:06,260 It's a little bit noisy. 252 00:19:07,160 --> 00:19:11,300 But 1, 1, 0, 0 being our most probable outcome. 253 00:19:13,740 --> 00:19:20,060 Let's flip back to here, and think about what might Eve do? 254 00:19:20,060 --> 00:19:22,180 This was foreshadowing. 255 00:19:22,180 --> 00:19:28,100 What might Eve's computation look like with those two qubits? 256 00:19:29,120 --> 00:19:44,370 If you think of this as user space, qubits one, two, Eve doesn't need permission from Alice's user space to drive an interaction. 257 00:19:45,570 --> 00:19:51,630 The way that Eve drives an interaction is entirely local to Eve's user space. 258 00:19:53,410 --> 00:19:55,710 And so I can do that. 259 00:19:59,280 --> 00:20:00,720 Ah, it's come out a bit small. 260 00:20:02,360 --> 00:20:05,900 But this is an extension of Chasm, called OpenPulse. 261 00:20:06,380 --> 00:20:15,280 And this is a language that gives access to... gives pulse-level access to users. 262 00:20:16,820 --> 00:20:19,280 So what is the program that Eve is running here? 263 00:20:19,280 --> 00:20:27,880 It's exactly what we looked at previously, which is Eve says, OK, I'm going to drive qubit 8, but not the usual frequency, not the usual energy. 264 00:20:27,940 --> 00:20:31,040 I want to drive it at qubit 1. 265 00:20:31,500 --> 00:20:33,500 And it's destroyed the results. 266 00:20:34,840 --> 00:20:36,500 This is what it should look like. 267 00:20:36,500 --> 00:20:37,960 This is what we get afterwards. 268 00:20:38,600 --> 00:20:39,440 It's a mess. 269 00:20:39,440 --> 00:20:40,360 It's garbage. 270 00:20:40,860 --> 00:20:41,820 It's useless. 271 00:20:43,020 --> 00:20:53,400 But what's hard about this is that the point of OpenPulse is to give researchers access to do things like sweep through frequencies. 272 00:20:54,100 --> 00:20:58,320 So it's a perfectly normal request to make. 273 00:20:58,320 --> 00:21:03,960 It doesn't look malicious, unless Eve is in a particular space. 274 00:21:07,700 --> 00:21:15,220 So that's our little demonstration of a classically-inspired quantum row hammer. 275 00:21:16,080 --> 00:21:24,140 We're able to destroy the results of another user without having to access their user space. 276 00:21:28,790 --> 00:21:30,330 How do we remediate this? 277 00:21:30,330 --> 00:21:31,510 Sorry, question? 278 00:21:31,730 --> 00:21:32,590 Exactly. 279 00:21:32,590 --> 00:21:33,830 That was my question. 280 00:21:33,830 --> 00:21:34,790 How do you remediate this? 281 00:21:34,790 --> 00:21:35,590 Yeah. 282 00:21:36,330 --> 00:21:37,530 Coming up soon. 283 00:21:37,530 --> 00:21:38,390 Yeah. 284 00:21:39,290 --> 00:21:51,910 So, in a lot of superconducting devices, architectures like Regettis, until this week, like ours, like IBM's, these are fixed. 285 00:21:51,910 --> 00:21:53,450 These couplers are there. 286 00:21:53,450 --> 00:21:54,330 They're in place. 287 00:21:54,710 --> 00:21:56,310 You don't get rid of them. 288 00:21:57,390 --> 00:21:58,870 So we just have to move Eve. 289 00:21:59,850 --> 00:22:04,490 There is no way that I'm aware of, if there is, let's think about it. 290 00:22:04,490 --> 00:22:06,490 We want to maximize usage. 291 00:22:06,770 --> 00:22:12,290 You just have to move Eve sufficiently far that she can't drive an interaction through many, many qubits. 292 00:22:13,090 --> 00:22:20,550 So you would just have to say, unless I can situate you sufficiently far, I can't thread this execution. 293 00:22:21,810 --> 00:22:30,330 There are other architectures that come with additional complexity with manufacturing, where you can tune these couplers. 294 00:22:30,330 --> 00:22:33,090 You can turn them on and off, basically. 295 00:22:33,150 --> 00:22:36,350 But it's very much harder to manufacture them and calibrate them. 296 00:22:36,350 --> 00:22:43,110 But that would allow you to start really packing in the possible simultaneous users. 297 00:22:46,360 --> 00:22:46,880 Yeah, 298 00:22:50,840 --> 00:22:55,780 you could. 299 00:22:56,040 --> 00:23:03,760 But if I was to genuinely implement this within our runtime, I would put them as distant as I can. 300 00:23:03,920 --> 00:23:11,940 Because I generally don't know that there isn't a way for Eve to drive a multiple qubit interaction. 301 00:23:19,980 --> 00:23:22,420 Yeah, maybe. 302 00:23:33,670 --> 00:23:34,550 Yeah. 303 00:23:49,690 --> 00:23:50,450 Precisely. 304 00:23:50,530 --> 00:23:52,910 I know that's precisely what I was trying to get forward. 305 00:23:52,910 --> 00:23:54,950 So in fact, the NDEX is probably a bit advanced. 306 00:23:55,310 --> 00:23:59,670 We're barely at ticker tape type machines. 307 00:24:00,490 --> 00:24:03,050 And there is more softness in here as well. 308 00:24:03,290 --> 00:24:05,370 Because I've laid this out in a ring. 309 00:24:05,750 --> 00:24:08,350 Physically, this isn't how it's laid out. 310 00:24:08,350 --> 00:24:11,730 Some of these qubits are pulled in slightly closer to one another. 311 00:24:12,150 --> 00:24:21,370 So there is this parasitic coupling you can get just by proximity. 312 00:24:21,370 --> 00:24:31,910 So things like the NDEX, moving couplers at 90 degrees or whatever you want to do, to try and shoot those any stray fields out into a vehicle. 313 00:24:32,830 --> 00:24:33,750 Absolutely. 314 00:24:36,170 --> 00:24:38,350 Any more questions before we move on? 315 00:24:38,350 --> 00:24:38,790 Yeah. 316 00:24:38,790 --> 00:24:39,610 Maybe. 317 00:24:43,410 --> 00:24:51,450 So, one thing you can do in the middle, with these qubits, you could apply some decoupling regime. 318 00:24:52,130 --> 00:24:56,530 In fact, you can drive the other qubits very, very hard and try to block out other interactions. 319 00:24:56,650 --> 00:25:01,330 Or just keep measuring qubits in the middle to stop interactions happening. 320 00:25:01,370 --> 00:25:04,610 But this is what I'd like to work out precisely. 321 00:25:04,990 --> 00:25:06,470 I'm speculating here. 322 00:25:06,470 --> 00:25:09,730 I don't know the best way to remediate against this problem. 323 00:25:10,730 --> 00:25:11,490 Yeah. 324 00:25:20,270 --> 00:25:21,270 Yeah. 325 00:25:21,270 --> 00:25:23,010 Something like that. 326 00:25:23,010 --> 00:25:25,490 It's very analogous. 327 00:25:25,490 --> 00:25:29,730 You want to remove any direct lines of contact with these things. 328 00:25:29,730 --> 00:25:31,490 That's a very good way to put it. 329 00:25:34,480 --> 00:25:35,920 Oh yeah, go ahead. 330 00:25:40,080 --> 00:25:41,280 Yeah. 331 00:25:47,000 --> 00:25:49,440 Yeah, exactly. 332 00:25:50,420 --> 00:25:57,800 It's hard, because I can cut off frequencies to prevent malicious exploration. 333 00:25:57,900 --> 00:26:03,820 But I have to allow the malicious frequencies, because that's how a regular computation is done as well. 334 00:26:03,880 --> 00:26:10,180 So I can block particular frequencies on qubit 8 while something's running here. 335 00:26:10,180 --> 00:26:13,180 But that would limit... 336 00:26:15,960 --> 00:26:19,160 the open-pulse interface would become limited. 337 00:26:19,340 --> 00:26:19,900 Which is fine. 338 00:26:19,900 --> 00:26:21,620 Open-pulse is very hard to use as well. 339 00:26:21,620 --> 00:26:23,020 Not many people use it. 340 00:26:23,520 --> 00:26:28,560 But yeah, blocking frequencies, hard-blocking frequencies could be a good way to do it. 341 00:26:28,560 --> 00:26:29,180 Absolutely. 342 00:26:29,900 --> 00:26:39,420 In a similar vein, would making it sort of polyphasic, so you have different phases shifting the phase around, or does that not actually have any effect in mitigating it? 343 00:26:39,860 --> 00:26:41,180 I don't think so. 344 00:26:41,400 --> 00:26:42,600 I don't know. 345 00:26:42,780 --> 00:26:43,740 Let's try it. 346 00:26:44,240 --> 00:26:47,360 Basically, the answer to almost every question is, let's try it. 347 00:26:48,100 --> 00:26:50,600 Should you think of phases that sound a bit slow? 348 00:26:50,980 --> 00:26:53,600 No, our phase shifts are instantaneous. 349 00:26:53,600 --> 00:26:54,640 They're done in software. 350 00:26:54,640 --> 00:27:04,420 So, if you have a rotation, like you have your vector here, instead of physically driving a phase change, you change phases. 351 00:27:04,540 --> 00:27:05,520 It's virtual. 352 00:27:05,520 --> 00:27:07,420 The phase shifts are free. 353 00:27:09,280 --> 00:27:10,360 Sorry. 354 00:27:10,360 --> 00:27:10,920 Yes. 355 00:27:14,380 --> 00:27:16,200 Any more questions? 356 00:27:16,200 --> 00:27:17,160 I'm loving this. 357 00:27:17,160 --> 00:27:17,940 Thank you everyone. 358 00:27:17,940 --> 00:27:20,880 What's your stability as far as you're on a microwave? 359 00:27:24,320 --> 00:27:25,600 I don't know. 360 00:27:26,320 --> 00:27:31,480 I'm only asking that because it has influence of things around us. 361 00:27:31,480 --> 00:27:33,140 Solar flares and stuff like that. 362 00:27:33,140 --> 00:27:35,040 It has a big impact. 363 00:27:41,630 --> 00:27:43,990 Yeah, absolutely. 364 00:27:43,990 --> 00:27:55,190 There was a paper from Google where they started doing some error correction experiments that implied that these solar flare, these solar events, were a limiting factor for how good their machine was. 365 00:27:55,970 --> 00:28:02,530 If we get hit by some solar flare here, the whole thing gets excited. 366 00:28:02,530 --> 00:28:06,290 It adds enough energy to drive the whole system into one or higher. 367 00:28:06,390 --> 00:28:08,650 Does it look like these were bits? 368 00:28:08,650 --> 00:28:11,390 Really, these are very high-dimensional systems. 369 00:28:15,290 --> 00:28:19,950 It's a problem for distributed HPC clusters as well. 370 00:28:19,950 --> 00:28:24,070 Bit flips somewhere here, and your MPI whole node goes down. 371 00:28:25,190 --> 00:28:28,270 Stick them in a lead-lined room in Colorado. 372 00:28:40,760 --> 00:28:42,180 Let's say it's analog. 373 00:28:42,180 --> 00:28:44,600 You can stick to the subset. 374 00:28:44,600 --> 00:28:50,260 Classical compute, reversible classical compute, is a subset of these quantum algorithms. 375 00:28:50,580 --> 00:28:57,020 So it's a generalization of classical compute to a probability theory sense of doing it. 376 00:28:57,020 --> 00:29:00,520 So you move away from just 0 and 1, which you can do. 377 00:29:00,520 --> 00:29:06,340 You can just do classical, like the NOT and the conditional NOT, and just do classical compute. 378 00:29:06,400 --> 00:29:08,680 You can build an adder quite easily. 379 00:29:09,140 --> 00:29:14,540 But we also have the possibility of adding these superpositions where you become analog. 380 00:29:24,000 --> 00:29:25,200 Yeah? 381 00:29:25,520 --> 00:29:30,620 Yeah , so currently each one of these has their own microwave control line. 382 00:29:30,680 --> 00:29:32,100 You can multiplex. 383 00:29:32,100 --> 00:29:37,300 You can send multiple tones down one driveline if you wish to. 384 00:29:37,580 --> 00:29:41,640 But most people tend to have one driveline per qubit. 385 00:29:45,280 --> 00:29:46,280 Say again? 386 00:29:47,900 --> 00:29:49,820 Yes, yeah. 387 00:29:49,820 --> 00:29:56,600 So in fact, our qubits are actually tiny, tiny, nanoscale fabrication. 388 00:29:56,800 --> 00:30:08,140 The size of this antenna is basically the size of the coax at the bottom, to pick up and couple towards that microwave driveline. 389 00:30:15,380 --> 00:30:16,780 Sorry, say again? 390 00:30:22,300 --> 00:30:24,680 Yeah, yeah, yeah. 391 00:30:24,680 --> 00:30:29,600 So this is part of the core IP of OQC. 392 00:30:29,600 --> 00:30:31,280 It's called the coaximum. 393 00:30:31,280 --> 00:30:43,160 If you are familiar with the transmon technology that many superconducting devices use, you have your control lines come in in-plane, and you have to solder them in, you have to flip chip to get it over. 394 00:30:43,460 --> 00:30:48,440 Our control lines come in perpendicular to the device and are air-gapped. 395 00:30:48,440 --> 00:30:55,800 So there's a sample pack shoulder, you just screw your control lines into the top, and it's lined up with the qubits underneath. 396 00:30:56,500 --> 00:30:58,340 If it goes wrong, there's air-gap. 397 00:30:58,340 --> 00:31:00,940 You flick out the done one, and you put a new one in. 398 00:31:06,660 --> 00:31:08,080 Sorry, say again? 399 00:31:09,620 --> 00:31:11,200 How many values? 400 00:31:11,200 --> 00:31:13,200 So like... 401 00:31:15,980 --> 00:31:20,420 Yes, so it's a continuous spectrum. 402 00:31:20,900 --> 00:31:25,100 So you have zero... it's a sphere, because you also have a phase. 403 00:31:25,200 --> 00:31:28,980 So you go anywhere between 0 and 1, so 0 plus 1. 404 00:31:28,980 --> 00:31:32,040 And then you can travel across the equator as well. 405 00:31:34,400 --> 00:31:38,780 What's your qubit resolution around that rotation? 406 00:31:38,820 --> 00:31:39,660 Good. 407 00:31:41,860 --> 00:31:42,300 Magnificent. 408 00:31:42,300 --> 00:31:43,360 Yeah, perfect. 409 00:31:47,060 --> 00:31:53,120 I couldn't say off the top of my head what our angle of resolution is, but phase is perfect. 410 00:31:53,180 --> 00:31:54,260 Let's give you a max phase. 411 00:31:58,220 --> 00:31:58,640 Yeah? 412 00:31:58,640 --> 00:32:04,880 So you said you keep the... you just excite the qubit, and then you keep the phase in software, right? 413 00:32:04,880 --> 00:32:05,580 Yes. 414 00:32:05,580 --> 00:32:12,940 And you bring these links into the diode that is controlled by software that allows or doesn't allow current to pass through. 415 00:32:14,000 --> 00:32:19,180 So that's something like the idea of these tunable couplers. 416 00:32:19,280 --> 00:32:25,760 But you can shift them, these couplers, very far out of the coupling space. 417 00:32:25,760 --> 00:32:31,960 So yeah, this is basically what people like Google do, and Regetti as of last week, these tunable couplers. 418 00:32:32,620 --> 00:32:37,700 Typically that's mediated by a magnetic field that kind of switches these things on and off. 419 00:32:37,940 --> 00:32:40,260 Yeah, but that's absolutely what some people do. 420 00:32:40,260 --> 00:32:53,180 So I'm thinking you could improve that and make it by dragging these phases in the next few weeks, and instead of it being, not being in a single phase, it would allow, software phases would allow to enable qubit to excite. 421 00:32:53,180 --> 00:32:53,460 Yeah. 422 00:32:53,460 --> 00:32:59,000 But you need to tie it with a single phase and either allow the second phase. 423 00:32:59,000 --> 00:33:00,600 Yeah, absolutely. 424 00:33:00,980 --> 00:33:06,280 And that's a challenging software and engineering problem to build. 425 00:33:06,440 --> 00:33:08,200 But a very good solution. 426 00:33:13,360 --> 00:33:14,280 Oh, sorry. 427 00:33:14,280 --> 00:33:15,340 Yeah, go ahead. 428 00:33:31,360 --> 00:33:32,840 Yes, absolutely. 429 00:33:33,040 --> 00:33:33,540 Yeah. 430 00:33:33,540 --> 00:33:39,600 So this is one way to drive a two-bit, two-qubit interaction, is the way I've described it. 431 00:33:39,600 --> 00:33:43,640 There are many, many other ways that involve pumping into these higher energy states. 432 00:33:43,640 --> 00:33:46,660 So you could do the same thing, go higher, and then... 433 00:33:46,660 --> 00:33:51,020 I mean, I'm not going to enumerate all the different possible ways to drive a two-bit interaction. 434 00:33:51,020 --> 00:33:52,380 It's basically continuous. 435 00:33:52,380 --> 00:33:54,160 There are no possibilities of that. 436 00:33:54,160 --> 00:33:55,240 Yeah, precisely. 437 00:34:00,540 --> 00:34:02,740 I think I'm going to move on to the next slide. 438 00:34:03,960 --> 00:34:05,840 I was going to say that. 439 00:34:06,780 --> 00:34:08,200 Just slide in. 440 00:34:08,640 --> 00:34:09,420 Yeah. 441 00:34:10,640 --> 00:34:14,820 I just want to throw this slide up to shout out some amazing researchers. 442 00:34:15,500 --> 00:34:18,380 This review of primary security of quantum computing. 443 00:34:18,380 --> 00:34:24,460 This is starting to become, to be seriously considered by many different researchers. 444 00:34:24,460 --> 00:34:30,420 Farooq Sarnash and Abdullah, IBM and Penn State, respectively. 445 00:34:30,800 --> 00:34:34,940 These folks are taking this very, very seriously. 446 00:34:34,940 --> 00:34:42,560 And there's not a huge body of work compared with, like, the body of work in hardware, the body of work in algorithms. 447 00:34:42,560 --> 00:34:45,380 But it's starting to get there and being taken seriously. 448 00:34:45,380 --> 00:34:53,700 As the computers get good enough and sophisticated enough that we can start to think about these sorts of threaded execution models. 449 00:34:54,580 --> 00:34:57,900 But you can see that this isn't just quantum. 450 00:34:57,900 --> 00:35:00,060 There's scheduler attacks. 451 00:35:00,060 --> 00:35:01,920 Everyone has a cloud API. 452 00:35:03,080 --> 00:35:13,010 There's a whole bunch of just classical security engineering that can lead things in unique ways in the quantum space. 453 00:35:14,340 --> 00:35:14,800 Yeah. 454 00:35:15,100 --> 00:35:18,580 We'll make these slides available so people can get these sources. 455 00:35:18,580 --> 00:35:26,900 But I'll say this is probably the best or the only review in the space of quantum security experts. 456 00:35:29,600 --> 00:35:31,020 So, Quickfire. 457 00:35:31,020 --> 00:35:35,480 I've got plenty of time for any more questions. 458 00:35:37,160 --> 00:35:47,300 Quickfire, these are just some ideas to get people thinking about what the different things that might happen, inspired by different classical software inputs. 459 00:35:49,200 --> 00:35:50,640 Overflow inspired. 460 00:35:51,280 --> 00:35:53,520 What happens if I ask for a number of measurements? 461 00:35:53,520 --> 00:35:55,340 What happens if I ask for zero measurements? 462 00:35:55,340 --> 00:35:56,780 Or minus one measurements? 463 00:35:56,780 --> 00:35:59,460 Or two to the n plus one measurements? 464 00:35:59,620 --> 00:36:01,280 This is all custom built. 465 00:36:01,280 --> 00:36:02,640 All this stuff is custom built. 466 00:36:02,660 --> 00:36:06,220 We're going to rediscover a load of overflow attacks. 467 00:36:07,440 --> 00:36:08,440 Woo! 468 00:36:09,520 --> 00:36:12,900 We talked about open pulse very, very loosely. 469 00:36:13,180 --> 00:36:19,660 Open pulse lets users define these microwave envelopes that get sent to the quantum computer. 470 00:36:20,060 --> 00:36:26,560 What happens if I ask for a massive pulse, a massive voltage, and one... you can put arbitrary times. 471 00:36:26,640 --> 00:36:29,480 I want the maximum voltage for three days, please. 472 00:36:29,480 --> 00:36:31,140 Let's heat that fridge up. 473 00:36:32,860 --> 00:36:35,960 And a slightly more subtle one. 474 00:36:36,200 --> 00:36:37,860 Qubit use after three. 475 00:36:37,860 --> 00:36:42,400 This is actually a suggestion from quantum village organizers. 476 00:36:43,440 --> 00:36:50,040 This is a different language spec, QIR, Quantum Intermediate Representation. 477 00:36:50,360 --> 00:37:01,120 For any Clang users, for any LLVM users, this is an extension of LLVM intermediate representation. 478 00:37:01,120 --> 00:37:03,540 That includes quantum elements. 479 00:37:04,540 --> 00:37:07,400 So that we can distribute our compute. 480 00:37:07,600 --> 00:37:10,880 You can power a server with CUDA to do some GPU acceleration. 481 00:37:10,880 --> 00:37:12,820 You can also throw in that quantum element. 482 00:37:13,520 --> 00:37:16,200 And the CUDA quantum project from the video is doing the first thing. 483 00:37:17,960 --> 00:37:19,200 But what have we got here? 484 00:37:19,200 --> 00:37:21,180 We've got an allocation and a release. 485 00:37:23,120 --> 00:37:25,120 Use after three. 486 00:37:25,120 --> 00:37:27,660 This is a problem classically. 487 00:37:27,660 --> 00:37:29,480 And we're rediscovering it. 488 00:37:31,900 --> 00:37:34,960 And just to get to the center, why would you do this? 489 00:37:34,960 --> 00:37:42,720 There's a lot of algorithms that temporarily require entanglement to other qubits to perform a computation. 490 00:37:42,720 --> 00:37:44,040 And then they don't care. 491 00:37:44,040 --> 00:37:47,920 But there's information still in those qubits after they've been released. 492 00:37:47,920 --> 00:37:49,960 So I could jump in and just measure them. 493 00:37:50,500 --> 00:37:52,520 Extract the information out of the system. 494 00:37:55,920 --> 00:37:56,640 What have we got? 495 00:37:56,640 --> 00:37:57,980 Side-channel attacks. 496 00:37:58,480 --> 00:37:59,980 Look at all these lovely labs. 497 00:38:00,560 --> 00:38:04,920 Look at all those lovely wires in free space and the LEDs that are blinking. 498 00:38:05,960 --> 00:38:09,000 That looks like side-channel attack vector space to me. 499 00:38:09,400 --> 00:38:13,160 Maybe you can tell me I'm wrong, but there's lots of resistive heating. 500 00:38:13,160 --> 00:38:13,980 There's LEDs. 501 00:38:13,980 --> 00:38:17,500 There's lots of ways that information would be leaked. 502 00:38:17,500 --> 00:38:20,760 Right now, it's not because of where these machines are situated. 503 00:38:20,760 --> 00:38:22,120 That's not a problem. 504 00:38:22,140 --> 00:38:31,680 When they start going out, when they start being openly sold to anywhere that isn't a very secure environment, this becomes a problem. 505 00:38:32,440 --> 00:38:35,220 So again, you see we take it very seriously. 506 00:38:35,260 --> 00:38:42,080 Our future deployments are taking place in data centers, our very, very secure environments, classically speaking already. 507 00:38:42,080 --> 00:38:43,020 ... 508 00:38:46,080 --> 00:38:48,980 Very, very low power variance. 509 00:38:49,920 --> 00:38:50,980 ... 510 00:39:01,800 --> 00:39:03,920 Yeah. 511 00:39:09,160 --> 00:39:11,460 Yeah, I agree. 512 00:39:11,460 --> 00:39:15,420 It's something to explore and understand. 513 00:39:15,420 --> 00:39:18,840 How much is that and will that affect us? 514 00:39:27,090 --> 00:39:27,770 Hysteresis. 515 00:39:27,770 --> 00:39:30,490 Sorry, there was a better name I've given about this. 516 00:39:30,770 --> 00:39:32,570 It's proven on security person. 517 00:39:32,570 --> 00:39:36,550 When you delete something on a memory stick and it's not deleted, it's still there. 518 00:39:36,550 --> 00:39:37,510 Whatever that's called. 519 00:39:37,510 --> 00:39:38,930 Whatever that exploit is. 520 00:39:38,930 --> 00:39:40,790 This is the other quantum version. 521 00:39:42,730 --> 00:39:43,670 So what happens? 522 00:39:43,670 --> 00:39:49,270 This is now threaded, not on a QPU, but shot to shot. 523 00:39:49,270 --> 00:39:53,510 So every measurement, I flick between a different user. 524 00:39:53,790 --> 00:39:57,430 Something like a fair scheduler in a cone. 525 00:39:57,430 --> 00:40:00,850 We're flipping between these different bits. 526 00:40:01,810 --> 00:40:05,470 If I'm in state one, we're adding energy into the system. 527 00:40:05,470 --> 00:40:08,110 So this is a higher energy level. 528 00:40:08,110 --> 00:40:12,610 It has to relax back down to zero in order to be safe for reuse. 529 00:40:13,690 --> 00:40:19,390 And it's an exponential decay, which is quick, but that's still not zero. 530 00:40:20,290 --> 00:40:23,770 So this is a setup problem that might go wrong. 531 00:40:24,770 --> 00:40:34,150 If I don't leave enough time between the shots, there's information still lingering in the system about who was previously running on the device. 532 00:40:35,210 --> 00:40:36,230 So Alice is shot. 533 00:40:36,230 --> 00:40:37,270 This might be genuine. 534 00:40:37,270 --> 00:40:40,070 This is trying to do something good for the world. 535 00:40:40,730 --> 00:40:42,950 Eve just comes in and says, I'm just going to measure. 536 00:40:42,950 --> 00:40:44,210 I'm not going to do any computation. 537 00:40:44,210 --> 00:40:45,170 I'm just going to measure. 538 00:40:45,730 --> 00:40:50,850 And if Alice is trying to generate graphic keys, I'm just going to measure those keys. 539 00:40:52,010 --> 00:40:55,090 So this is what our remediation is for. 540 00:40:55,090 --> 00:41:02,130 It's a good active reset, where we pump the entropy out of the system and make sure we're at zero. 541 00:41:02,130 --> 00:41:02,670 Yeah? 542 00:41:02,670 --> 00:41:12,970 The x-axis on your graph, is that 8 times 10 to the negative 5, or is that 8 times 10 to the negative 6, and then the end of the graph is 1e negative 5? 543 00:41:13,090 --> 00:41:16,210 Yeah, the whole thing is multiplied by 1e minus 5. 544 00:41:16,210 --> 00:41:17,170 OK, great. 545 00:41:18,790 --> 00:41:19,970 And this is real. 546 00:41:19,970 --> 00:41:22,890 It's T1, it's called, which is the relaxation energy. 547 00:41:22,890 --> 00:41:26,950 This is genuine data that we collected. 548 00:41:27,170 --> 00:41:31,830 These characteristics are very well understood in the physics space. 549 00:41:32,110 --> 00:41:32,710 Yeah? 550 00:41:32,710 --> 00:41:38,470 This actually means we're at the end of the universe, and we're in the magnetic memory. 551 00:41:38,470 --> 00:41:40,610 It's in the Apollo game. 552 00:41:41,430 --> 00:41:42,390 It is. 553 00:41:42,410 --> 00:41:48,310 It's exactly like that, where you have this dissipation of the energy that happens over some time period. 554 00:41:48,870 --> 00:41:49,290 Yeah? 555 00:41:49,290 --> 00:41:51,990 And it's very well based on Apollo data itself. 556 00:41:52,110 --> 00:41:53,050 Exactly. 557 00:41:53,130 --> 00:41:56,130 Every qubit will have a different, we call it, T1 time. 558 00:41:56,130 --> 00:42:01,290 This one has a T1 time of 22 and a half microseconds. 559 00:42:01,290 --> 00:42:07,290 Every qubit, they'll range, I think, way up to maybe 200 microseconds. 560 00:42:07,690 --> 00:42:11,190 In the industry, that is, 250 microseconds. 561 00:42:11,950 --> 00:42:13,890 Like, Google Gateway was very low. 562 00:42:13,890 --> 00:42:15,630 They were 30 microseconds. 563 00:42:15,630 --> 00:42:20,690 So there's a huge variation on what these relaxation times are. 564 00:42:24,180 --> 00:42:25,940 Timing attacks. 565 00:42:26,040 --> 00:42:29,900 Any crypto engineer here has another timing attack. 566 00:42:30,820 --> 00:42:39,300 These two qubit gates that I mentioned, they're not as simple as just drive it for 100 nanoseconds. 567 00:42:39,540 --> 00:42:41,580 They vary a lot. 568 00:42:41,580 --> 00:42:48,260 The calibration doesn't just check for the frequency, but it also does the amplitude, the length of time it takes. 569 00:42:48,480 --> 00:42:51,720 So here, this is the IBM Auckland device. 570 00:42:51,940 --> 00:42:57,320 And their range is 284 nanoseconds to 746 nanoseconds. 571 00:42:58,060 --> 00:43:04,360 But each two-qubit interaction varies between those two extremes. 572 00:43:05,240 --> 00:43:12,060 What that means is you can get some information about the structure of the circuit just based on how long it took. 573 00:43:16,190 --> 00:43:20,250 A remediation for this is you make all your gates the same length as the longest one, right? 574 00:43:20,250 --> 00:43:21,430 You add a delay in. 575 00:43:21,430 --> 00:43:23,330 Then maybe there's side channels there again. 576 00:43:27,330 --> 00:43:29,810 So now, that was all the bad news. 577 00:43:29,810 --> 00:43:31,870 All the ways it's going to go wrong. 578 00:43:31,870 --> 00:43:35,650 The last two slides I have are about some mitigations. 579 00:43:37,190 --> 00:43:40,290 This first one, blind computation. 580 00:43:40,350 --> 00:43:46,250 This is some work from Ann Broadbent, Jerry Fitzsimmons, and Elham Keshefi. 581 00:43:46,250 --> 00:43:57,130 Three astonishing researchers who were very, very pioneering in understanding the links between quantum computing and cryptography, and how they can really help one another. 582 00:43:59,370 --> 00:44:00,190 I'll brief you. 583 00:44:00,190 --> 00:44:01,670 What is this cluster? 584 00:44:01,670 --> 00:44:06,650 This is a new model, what we call measurement-based quantum computing. 585 00:44:06,690 --> 00:44:08,970 I'm going to brush over exactly the details. 586 00:44:09,410 --> 00:44:11,150 But what we do here... 587 00:44:11,150 --> 00:44:15,250 Previously, when someone asked for a two-bit operation, we did that for them. 588 00:44:15,750 --> 00:44:20,830 In this model, we preload all of the possible two-bit interactions. 589 00:44:20,970 --> 00:44:23,550 So we entangle our entire system. 590 00:44:23,550 --> 00:44:27,510 And then the way we do compute is just by doing measurements. 591 00:44:27,870 --> 00:44:30,270 Sequentially, on individual qubits. 592 00:44:30,610 --> 00:44:35,470 And the angle of those measurements changes the computation. 593 00:44:36,970 --> 00:44:38,750 Why is that important? 594 00:44:39,510 --> 00:44:42,730 This is classical verification-improver stuff. 595 00:44:42,730 --> 00:44:51,270 I have some computation that I want to perform. 596 00:44:51,270 --> 00:44:54,570 Basically, it's a series of angles. 597 00:44:55,230 --> 00:44:59,490 Of very particular angles, not just arbitrary. 598 00:45:00,950 --> 00:45:03,270 What I do, the client... 599 00:45:04,070 --> 00:45:11,110 So if I don't trust some machine, I inject a state into that machine that kicks off the whole thing. 600 00:45:11,790 --> 00:45:14,530 What that does is it gives me a one-time pad. 601 00:45:14,750 --> 00:45:20,510 I've encrypted my entire computation in the combination of angles and this injected state. 602 00:45:20,510 --> 00:45:29,710 So if I interleave my computations with genuine compute and trapped compute, that I know the answer for, by just doing 1 plus 1. 603 00:45:29,710 --> 00:45:31,530 It's probably more interesting than that. 604 00:45:31,530 --> 00:45:33,530 I've encrypted 1 plus 1. 605 00:45:34,090 --> 00:45:39,570 Then I can tell I'm being fooled here, because my trapped computes keep coming back wrong. 606 00:45:40,090 --> 00:45:47,110 But because it's one-time padded, the server has no way of telling the difference between the trapped and the genuine. 607 00:45:48,750 --> 00:45:59,810 So it's impossible to, theoretically, it's impossible for the server to trick you and pass the trapped and fail the genuine ones. 608 00:45:59,870 --> 00:46:01,270 This gives us assurance. 609 00:46:01,270 --> 00:46:05,330 It won't necessarily fix it, but it will tell you if you're being tampered with or not. 610 00:46:08,230 --> 00:46:13,170 In fact, in an incredible, very recent paper, they actually physically implemented this. 611 00:46:13,170 --> 00:46:14,530 Some really astonishing work. 612 00:46:14,530 --> 00:46:18,610 This has been decades of work to get to the point where they've actually done this. 613 00:46:19,610 --> 00:46:24,110 This is something that's very easy or hard, depending on your architecture. 614 00:46:24,430 --> 00:46:27,350 I talked earlier from Xanadu. 615 00:46:27,410 --> 00:46:28,970 For atomic devices, this is easy. 616 00:46:28,970 --> 00:46:35,110 You just stick a fiber optic cable into the front of your device, and you give me the other end, and I inject my states. 617 00:46:35,530 --> 00:46:38,390 Equally, some ion-trapped devices, it's quite easy to do. 618 00:46:38,390 --> 00:46:48,450 It is quite hard to do for superconducting-based devices, but there are proposals if you're working towards something like that. 619 00:46:51,290 --> 00:46:56,810 Just a sidebar, this isn't just for detecting if I'm being messed with. 620 00:46:57,330 --> 00:47:00,530 This also tells me that my device is running correctly. 621 00:47:01,070 --> 00:47:09,710 When I get to the point where I cannot verify the correctness of my answer, it's not MP, I can't check it for the rest of the time. 622 00:47:09,710 --> 00:47:12,790 Then I can use this method and say, yeah, your device is running well. 623 00:47:12,930 --> 00:47:14,990 So you can probably trust your answer. 624 00:47:18,680 --> 00:47:22,100 And the final mitigation is error correction. 625 00:47:25,880 --> 00:47:33,340 And this is RAM manufacturers bake error correction into their devices for very similar purposes. 626 00:47:33,340 --> 00:47:35,700 Well, there's a few reasons we do error correction. 627 00:47:37,240 --> 00:47:40,200 But let's take a classical error correcting code. 628 00:47:40,200 --> 00:47:44,180 We take any time I see a zero, I make that three zeros. 629 00:47:44,480 --> 00:47:47,500 Any time I see a one, I make that three ones. 630 00:47:47,720 --> 00:47:54,420 And then when I take a measurement, I take a majority vote and assume that approximately one error occurs. 631 00:47:55,560 --> 00:48:00,240 That's the simplest possible error correcting classical code. 632 00:48:01,160 --> 00:48:05,400 The difference with quantum compute is that we have two errors to correct for. 633 00:48:05,400 --> 00:48:14,080 We have this 0, 1 error, this bit flip error, where I said we also can traverse the equator between 0 and 1. 634 00:48:14,340 --> 00:48:17,000 So in this instance we have a phase error as well. 635 00:48:17,000 --> 00:48:19,260 I can go from 0 plus 1 to minus 1. 636 00:48:19,260 --> 00:48:22,680 So basically there's two equators I could bounce between. 637 00:48:23,760 --> 00:48:28,160 So we have to bake two errors into our error correction. 638 00:48:28,160 --> 00:48:36,900 This is a recent paper from Google demonstrating the phase flip and the bit flip error, demonstrating that you can correct for these things. 639 00:48:37,680 --> 00:48:41,800 And this is what people talk about when they say fault tolerant for quantum computers. 640 00:48:41,940 --> 00:48:46,260 It means that you are correcting for errors faster than they're occurring. 641 00:48:46,640 --> 00:48:48,920 And this could include malicious errors. 642 00:48:50,280 --> 00:48:52,180 This is a surface code. 643 00:48:52,180 --> 00:48:53,080 This is cool. 644 00:48:53,080 --> 00:48:57,860 They're not very good at highly correlated errors. 645 00:48:57,860 --> 00:48:59,280 So it's still not very good. 646 00:48:59,280 --> 00:49:02,020 If you get hit by a cosmic ray, you still die. 647 00:49:02,020 --> 00:49:04,340 There's not much you can do about that. 648 00:49:04,780 --> 00:49:08,600 But this is somewhat the end goal of quantum computing. 649 00:49:08,860 --> 00:49:15,580 And when we have full error correction, that's when you have to worry about things like Shor's algorithm and your cryptography. 650 00:49:17,060 --> 00:49:19,980 Current estimates may be 20 million cubits to crack. 651 00:49:20,060 --> 00:49:21,860 RSA 2048, I think. 652 00:49:22,100 --> 00:49:23,540 Don't quote me on that. 653 00:49:23,640 --> 00:49:24,960 We can Google it afterwards. 654 00:49:27,330 --> 00:49:33,130 Yeah, so this will really solve most of the problems. 655 00:49:33,130 --> 00:49:34,250 Not the side channels, of course. 656 00:49:34,250 --> 00:49:35,310 Side channels are always there. 657 00:49:35,310 --> 00:49:36,970 Time intact will still be there. 658 00:49:36,970 --> 00:49:39,310 But malicious intent, you can correct for. 659 00:49:50,580 --> 00:49:55,620 So this surface code is based off a torus. 660 00:49:55,640 --> 00:49:58,700 And you have one direction goes one way, and the other goes the other way. 661 00:49:58,700 --> 00:50:02,180 And it adds a lot of redundancy into your system. 662 00:50:02,520 --> 00:50:10,100 But the basic idea of error correction is you add redundancy into your system, such that if a few bits go wrong, you can detect that and correct it. 663 00:50:10,520 --> 00:50:12,940 Same as classical and quantum. 664 00:50:16,200 --> 00:50:18,480 This is my last slide, so any questions? 665 00:50:19,500 --> 00:50:20,540 No. 666 00:50:23,480 --> 00:50:25,180 I put my email down here. 667 00:50:25,180 --> 00:50:28,360 I'd love to hear any of your ideas, any suggestions. 668 00:50:28,360 --> 00:50:34,760 I want to get this conversation going between the quantum and hardware hackers and the regular hackers. 669 00:50:34,760 --> 00:50:38,420 I want to get our devices as secure as possible. 670 00:50:38,420 --> 00:50:45,240 So please give me an email, jfriel, j-f-r-i-e-l, out to quantumcircuit.com. 671 00:50:45,240 --> 00:50:47,320 And let's talk hardware hacking. 672 00:50:47,320 --> 00:50:48,160 Thank you for listening.