Thank you so much for so many people turning up. This is amazing. I'm really looking forward to giving the talk. Title, Doomed to Repeat the Past. So this is not about quantum breaking and making your life horrible. It's about you making my life horrible. So this is Hardware Exploits for Quantum Computers. So I'm Jamie Friel. I'm a software engineer at Oxford Quantum Circuits. My main responsibility is within the compiler, so I think about run times and how run times might go wrong. At MQC, we make superconducting quantum computers. We build the full stack. That is the QPU, the chip itself. We don't build this bridge. We don't build it. The control hardware, compilation stack, and then the cloud layer, which is just the most common access point to quantum computers. If you want to run down on this, I gave a talk last year that sort of compared this to a classical control stack. Very loosely, we have a CPU, we have a motherboard, we have a compiler and a run time, and then a cloud layer. I try to relate this to classical concepts as much as I can. It's meant to be open and bridge the gap between quantum and security, so please raise your hand if you have questions throughout. I want to be clear to everyone. So what we do at MQC, we build quantum computers. It's available on AWS, the Cloud. The reason I want to give this talk is that quantum computers will solve many great problems, not just cracking encryption. Many good things, drug discovery, simulated molecules, machine learning, optimization problems, logistics. All of that is very, very sensitive data. All of that is data. If it was leet, I'd be in big trouble. 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. I don't know if anyone has been involved in patching this. My heart goes out to you. If anyone has to patch Meltdown or Spectre again, my heart goes out to you. It would be me one day. Yeah, hardware exploits are still a big problem. Complex CPU optimizations give rise to complex exploits. Very hard to properly secure a complex CPU environment, especially with regards to separating out user space and the system space and privileged information. Right off the bat, a big one for people that are too difficult here. I think one is fixed in the same way as some of the other updates. I don't know if the other ones are patched yet, but at least one is. Q-Day is coming for you. Q-Day is the day that quantum computers crack encryption. The internet will collapse. Satoshi's sacred bitcoins are stolen. All of your 1997 PGP emails are free for everyone to read. But it's coming for me sooner. And this is the point of this talk. This will happen, but let's not be hyperbolic about it. This is a very, very long way off. And the solutions to solving the problems of encryption are much further advanced than the quantum computing hardware is. We got some talks from the folks at Sandbox are working on post-quantum cryptography. Don't go very well. That's great. Last space solutions look great. We're redefining a model of computing. We're redefining a runtime environment. We've got many, many more ways to go wrong before we're a risk to anyone. But before we can go into that, try the wrong quantum computing. This is a lock gate. For people familiar with that, 0 goes to 1 and 1 goes to 0. I'm using this weird notation. It's called bracket notation. I'm putting it there so people are comfortable with it. If you go to the literature, it will be there. It doesn't really matter what it is. It's an abstraction to a vector. I'm just wrapping bits in these things to feel more comfortable with it. These are bits right now. There will be some sources with more information on these gates. But Pauli X. Everything in physics is named after dead old men, which is very useful. This is just a lock gate. Pauli X. Hadamard. Another dead old man. They're all brilliant, to be fair. This is where we start to get quantum. Hadamard operation on 0. So the 0 bit, this is where you go from a mixture , a superposition of 0 or 1. 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. This is a coin flip, basically. That's how you think of this. This is a coin flip generator, this Hadamard gate. It will go backwards as well. So if you start with this equal superposition state, it will take you back to just 0. So this is a bit more quantum. This is where you have this idea that you can begin 0 and 1 at the same time. And you can do... this is part of where quantum power comes from. You could act on both at the same time. Now if you do this and then a 0, you've done a 0 in both. But there's two 1-bit operations. So I'm ignoring jargon qubits. These are... right now these are bits. In quantum land they are qubits, a quantum bit. The next step is 2-bit operations. This is C0, or an XOR with a carry. So this is... quantum computation is reversible, so you have to add the X carry. The XOR is if your first bit is 0, do nothing to the second. If your first bit is 1, then do an X gate or a NOT gate on the second bit. This in and of itself is... again, this is classical. This is an XOR gate. This is a classical circuit with nothing quantum about this necessarily, as it's relative yet. We'll see how the combination of this superposition and the C0 become quantum. But those are some classical operations, a little bit of quantum, to understand how we do some computation. Bit level we're at. Let me say we have an 8-qubit machine. That's not like an 8-bit computer, we have an 8-bit register. That's like 8 transistors. We are on the bit level of operation for these devices. So this is where we start to get into what a thread model might look like. And it's how is it do we actually do this? How do we make this operation happen? When this is a representation of our device Lucy, 8 qubits connected in a ring. And this is a piece of superconducting material, sits in the bottom of a dilution refrigerator, with some wires next to it. How do we actually do anything with this? So one thing to understand, we're going to brush over the physics here. If anyone wants to talk more about the details, please come talk to me, I'm here all weekend. I'm always happy to go into more detail on this. We have a frequency associated with each qubit. This frequency is... think of it like an energy, a voltage. If classically, your bits are separated by 5 volts, every bit here is separated by a different voltage. This might be a 4 volt difference between 0 and 1, this might be a 3 volt, this may be a 5 volt. That's what we... we add that energy into the system to drive the transition from 0 to 1. It happens to be microwaved, typically around 5 gigahertz, for devices like myself, OPCs, and IBMs, or Getys, around 5 gigahertz. So we add enough energy to pump up from 0 to the 1 state. That's how we do a NOT operation. 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. How do we do the CNOT gate? Now this is a much more subtle operation, and in some regard you just have to trust me. Sorry, I didn't want to go to the maths of this, it's a bit gnarly. Let's take this example where our input is qubit 8 and qubit 1. So if qubit 8 is in 0, do nothing to qubit 1. If it's in state 1, flip it. The way that I do that is I drive qubit 8 with the energy of qubit 1. And that looks like... that should do nothing, right? I'm just driving qubit 8. It's this little arm here, it's this coupling. We engineer a coupling between the different bits such that when I drive one qubit at the energy of another, it does this operation. So this is how we do two bits, or two qubit operations in a quantum device. So, an example. This is called a Bell test, or GNZ state. Lots of business names in there. Start with Hadamard. For example, this is the first qubit, this rail. This is the second qubit, that's this rail here. What does this represent? 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. So this is going to be 0 or 1, with equal probability. This bottom rail is always going to be 0. So this is a coin flip, and this is stuck on heads. Another way to represent this is a slightly more compact notation. First qubit, second qubit. First time, we can see this first one, 0 or 1. Regardless of that outcome, the second qubit is in 0. So this next bit. So remember this, if we're in 0, do nothing. So nothing happens to this part of the quantum state. If the first bit's 0, leave it. Do nothing. But the second, the other part of our superposition, the first bit is 1. So we do a flip on this part of the superposition. But what does this mean? Why is this even an important example I'm belabouring so heavily? We've got two coin flippers. We are physically distinct from one another. We both flip a coin and hide it. You get heads, immediately you have heads as well. Flip a coin again. You get tails, immediately you have tails as well. There is this correlation between physically distinct bodies that is not possible classically. So they are in lockstep. They are random until you look at one of them, and the other flipped into place and agrees with the other. And we take this is not fast and light transmission of data. It's not possible. Because this is random. You're just generating random data. There's just a connection between people that's distant. This is how you combine that superposition and these two bit operations to make something that is quantum. This is not possible classically to have this level of correlation between physically distinct entities. So this is hello world in quantum. So this is going to be our test case. And here's just an example output. So when you do a quantum computation, you repeat the computation many, many times, and you measure it every time. And you get a different pass for output. So this is, you see, when the first one is 0, 0, 0, 0, 1, and 1. So that's the quantum bit. We're going to briefly touch... I'm not a security person. Let me get that out there now. So if anything sounds a bit dubious to you here, it's because it is. But last year at DefCon... so this is one thing I love about Quantum Village. Last year at DefCon, it wasn't just us saying, hey, this is what quantum is. 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. And so now we're trying to bring these two worlds together. So everyone in this room, if you do hardware hacking, this is probably painfully simple and oversimplistic. Same for the quantum bit. So quantum Q specialist, what I said was objectively wrong, probably. But you take simple ideas in two distinct fields and you have federal funding for interdisciplinary study. So this is what we're doing here. We're bringing simple ideas from quantum and simple ideas from security and bringing them together to do some really cool things. So Roham, this is a block of DRAM. These are cells that contain data. There is some very, very loose coupling between these cells. So there are straight electromagnetic fields. These things are very, very small. But unlike the coupling that we generate in a quantum computer, which is very distinct, very deliberate, this is an accident. This is a byproduct of the fact that you can't perfectly contain these straight fields. So let's say that this is Alice's data in the purple. 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. So you have to travel very, very hard and very precisely. But Google's Project Zero, they did find some privilege escalation exploits in doing Roham's style attacks. So it's a very serious, very real attack that RAM manufacturers, DRM manufacturers have to be aware of. So I'm going to go back to this slide. But one final point on what the quantum runtime looks like now, how it's distinct from classical runtime. We are CPU. We have our motherboard. We have our runtime. We have our access layout. There is a stack, and that's it. We pop off the top of the stack, and we run the instructions on the stack. There is no sys calls. There is no root user. There is no user space, really. You have the entire run of the machine as a user, and we just pop your instructions off the stack and execute them. Very, very simple runtime right now. It also lives for 0.2 seconds, and then the entire system shuts down, at least from a data perspective. This whole thing, we kept our fridge cold for 18 months. So we had an 18-month continuously running quantum computer at the record time, proving that cryogenics is not problematic. And so these are the differences. 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. We have none of that. We have a set of numerical instructions we pop and execute. But there is still space for things to go wrong in this very simple execution model. So this is quantum-ish Rowhammer, or quantum-Rowhammer-ish. So that computation that we were examining earlier is two-bit computation. Let's say Alice wants to run this. So we assign Alice qubits one and two. You can run there. That's fine. But we've got six other qubits sat idle. That's lost revenue. We could be doing even more throughput. And so if Eve comes in and says, I've got a two-bit operation as well, let's put Eve in. Because this maximizes the remaining possible qubits for even more users to get involved. And this is a piece of chasm. This is a textual representation of the computation we showed before. This is the Hadamard, for qubit one. And this is the CX gate, for qubits one and two. And this is the output. There's a little bit of noise, right? These machines aren't perfect. It's a little bit noisy. But 1, 1, 0, 0 being our most probable outcome. Let's flip back to here, and think about what might Eve do? This was foreshadowing. What might Eve's computation look like with those two qubits? 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. The way that Eve drives an interaction is entirely local to Eve's user space. And so I can do that. Ah, it's come out a bit small. But this is an extension of Chasm, called OpenPulse. And this is a language that gives access to... gives pulse-level access to users. So what is the program that Eve is running here? 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. I want to drive it at qubit 1. And it's destroyed the results. This is what it should look like. This is what we get afterwards. It's a mess. It's garbage. It's useless. But what's hard about this is that the point of OpenPulse is to give researchers access to do things like sweep through frequencies. So it's a perfectly normal request to make. It doesn't look malicious, unless Eve is in a particular space. So that's our little demonstration of a classically-inspired quantum row hammer. We're able to destroy the results of another user without having to access their user space. How do we remediate this? Sorry, question? Exactly. That was my question. How do you remediate this? Yeah. Coming up soon. Yeah. So, in a lot of superconducting devices, architectures like Regettis, until this week, like ours, like IBM's, these are fixed. These couplers are there. They're in place. You don't get rid of them. So we just have to move Eve. There is no way that I'm aware of, if there is, let's think about it. We want to maximize usage. You just have to move Eve sufficiently far that she can't drive an interaction through many, many qubits. So you would just have to say, unless I can situate you sufficiently far, I can't thread this execution. There are other architectures that come with additional complexity with manufacturing, where you can tune these couplers. You can turn them on and off, basically. But it's very much harder to manufacture them and calibrate them. But that would allow you to start really packing in the possible simultaneous users. Yeah, you could. But if I was to genuinely implement this within our runtime, I would put them as distant as I can. Because I generally don't know that there isn't a way for Eve to drive a multiple qubit interaction. Yeah, maybe. Yeah. Precisely. I know that's precisely what I was trying to get forward. So in fact, the NDEX is probably a bit advanced. We're barely at ticker tape type machines. And there is more softness in here as well. Because I've laid this out in a ring. Physically, this isn't how it's laid out. Some of these qubits are pulled in slightly closer to one another. So there is this parasitic coupling you can get just by proximity. 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. Absolutely. Any more questions before we move on? Yeah. Maybe. So, one thing you can do in the middle, with these qubits, you could apply some decoupling regime. In fact, you can drive the other qubits very, very hard and try to block out other interactions. Or just keep measuring qubits in the middle to stop interactions happening. But this is what I'd like to work out precisely. I'm speculating here. I don't know the best way to remediate against this problem. Yeah. Yeah. Something like that. It's very analogous. You want to remove any direct lines of contact with these things. That's a very good way to put it. Oh yeah, go ahead. Yeah. Yeah, exactly. It's hard, because I can cut off frequencies to prevent malicious exploration. But I have to allow the malicious frequencies, because that's how a regular computation is done as well. So I can block particular frequencies on qubit 8 while something's running here. But that would limit... the open-pulse interface would become limited. Which is fine. Open-pulse is very hard to use as well. Not many people use it. But yeah, blocking frequencies, hard-blocking frequencies could be a good way to do it. Absolutely. 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? I don't think so. I don't know. Let's try it. Basically, the answer to almost every question is, let's try it. Should you think of phases that sound a bit slow? No, our phase shifts are instantaneous. They're done in software. So, if you have a rotation, like you have your vector here, instead of physically driving a phase change, you change phases. It's virtual. The phase shifts are free. Sorry. Yes. Any more questions? I'm loving this. Thank you everyone. What's your stability as far as you're on a microwave? I don't know. I'm only asking that because it has influence of things around us. Solar flares and stuff like that. It has a big impact. Yeah, absolutely. 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. If we get hit by some solar flare here, the whole thing gets excited. It adds enough energy to drive the whole system into one or higher. Does it look like these were bits? Really, these are very high-dimensional systems. It's a problem for distributed HPC clusters as well. Bit flips somewhere here, and your MPI whole node goes down. Stick them in a lead-lined room in Colorado. Let's say it's analog. You can stick to the subset. Classical compute, reversible classical compute, is a subset of these quantum algorithms. So it's a generalization of classical compute to a probability theory sense of doing it. So you move away from just 0 and 1, which you can do. You can just do classical, like the NOT and the conditional NOT, and just do classical compute. You can build an adder quite easily. But we also have the possibility of adding these superpositions where you become analog. Yeah? Yeah , so currently each one of these has their own microwave control line. You can multiplex. You can send multiple tones down one driveline if you wish to. But most people tend to have one driveline per qubit. Say again? Yes, yeah. So in fact, our qubits are actually tiny, tiny, nanoscale fabrication. The size of this antenna is basically the size of the coax at the bottom, to pick up and couple towards that microwave driveline. Sorry, say again? Yeah, yeah, yeah. So this is part of the core IP of OQC. It's called the coaximum. 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. Our control lines come in perpendicular to the device and are air-gapped. 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. If it goes wrong, there's air-gap. You flick out the done one, and you put a new one in. Sorry, say again? How many values? So like... Yes, so it's a continuous spectrum. So you have zero... it's a sphere, because you also have a phase. So you go anywhere between 0 and 1, so 0 plus 1. And then you can travel across the equator as well. What's your qubit resolution around that rotation? Good. Magnificent. Yeah, perfect. I couldn't say off the top of my head what our angle of resolution is, but phase is perfect. Let's give you a max phase. Yeah? So you said you keep the... you just excite the qubit, and then you keep the phase in software, right? Yes. And you bring these links into the diode that is controlled by software that allows or doesn't allow current to pass through. So that's something like the idea of these tunable couplers. But you can shift them, these couplers, very far out of the coupling space. So yeah, this is basically what people like Google do, and Regetti as of last week, these tunable couplers. Typically that's mediated by a magnetic field that kind of switches these things on and off. Yeah, but that's absolutely what some people do. 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. Yeah. But you need to tie it with a single phase and either allow the second phase. Yeah, absolutely. And that's a challenging software and engineering problem to build. But a very good solution. Oh, sorry. Yeah, go ahead. Yes, absolutely. Yeah. So this is one way to drive a two-bit, two-qubit interaction, is the way I've described it. There are many, many other ways that involve pumping into these higher energy states. So you could do the same thing, go higher, and then... I mean, I'm not going to enumerate all the different possible ways to drive a two-bit interaction. It's basically continuous. There are no possibilities of that. Yeah, precisely. I think I'm going to move on to the next slide. I was going to say that. Just slide in. Yeah. I just want to throw this slide up to shout out some amazing researchers. This review of primary security of quantum computing. This is starting to become, to be seriously considered by many different researchers. Farooq Sarnash and Abdullah, IBM and Penn State, respectively. These folks are taking this very, very seriously. And there's not a huge body of work compared with, like, the body of work in hardware, the body of work in algorithms. But it's starting to get there and being taken seriously. As the computers get good enough and sophisticated enough that we can start to think about these sorts of threaded execution models. But you can see that this isn't just quantum. There's scheduler attacks. Everyone has a cloud API. There's a whole bunch of just classical security engineering that can lead things in unique ways in the quantum space. Yeah. We'll make these slides available so people can get these sources. But I'll say this is probably the best or the only review in the space of quantum security experts. So, Quickfire. I've got plenty of time for any more questions. Quickfire, these are just some ideas to get people thinking about what the different things that might happen, inspired by different classical software inputs. Overflow inspired. What happens if I ask for a number of measurements? What happens if I ask for zero measurements? Or minus one measurements? Or two to the n plus one measurements? This is all custom built. All this stuff is custom built. We're going to rediscover a load of overflow attacks. Woo! We talked about open pulse very, very loosely. Open pulse lets users define these microwave envelopes that get sent to the quantum computer. What happens if I ask for a massive pulse, a massive voltage, and one... you can put arbitrary times. I want the maximum voltage for three days, please. Let's heat that fridge up. And a slightly more subtle one. Qubit use after three. This is actually a suggestion from quantum village organizers. This is a different language spec, QIR, Quantum Intermediate Representation. For any Clang users, for any LLVM users, this is an extension of LLVM intermediate representation. That includes quantum elements. So that we can distribute our compute. You can power a server with CUDA to do some GPU acceleration. You can also throw in that quantum element. And the CUDA quantum project from the video is doing the first thing. But what have we got here? We've got an allocation and a release. Use after three. This is a problem classically. And we're rediscovering it. And just to get to the center, why would you do this? There's a lot of algorithms that temporarily require entanglement to other qubits to perform a computation. And then they don't care. But there's information still in those qubits after they've been released. So I could jump in and just measure them. Extract the information out of the system. What have we got? Side-channel attacks. Look at all these lovely labs. Look at all those lovely wires in free space and the LEDs that are blinking. That looks like side-channel attack vector space to me. Maybe you can tell me I'm wrong, but there's lots of resistive heating. There's LEDs. There's lots of ways that information would be leaked. Right now, it's not because of where these machines are situated. That's not a problem. When they start going out, when they start being openly sold to anywhere that isn't a very secure environment, this becomes a problem. So again, you see we take it very seriously. Our future deployments are taking place in data centers, our very, very secure environments, classically speaking already. ... Very, very low power variance. ... Yeah. Yeah, I agree. It's something to explore and understand. How much is that and will that affect us? Hysteresis. Sorry, there was a better name I've given about this. It's proven on security person. When you delete something on a memory stick and it's not deleted, it's still there. Whatever that's called. Whatever that exploit is. This is the other quantum version. So what happens? This is now threaded, not on a QPU, but shot to shot. So every measurement, I flick between a different user. Something like a fair scheduler in a cone. We're flipping between these different bits. If I'm in state one, we're adding energy into the system. So this is a higher energy level. It has to relax back down to zero in order to be safe for reuse. And it's an exponential decay, which is quick, but that's still not zero. So this is a setup problem that might go wrong. 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. So Alice is shot. This might be genuine. This is trying to do something good for the world. Eve just comes in and says, I'm just going to measure. I'm not going to do any computation. I'm just going to measure. And if Alice is trying to generate graphic keys, I'm just going to measure those keys. So this is what our remediation is for. It's a good active reset, where we pump the entropy out of the system and make sure we're at zero. Yeah? 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? Yeah, the whole thing is multiplied by 1e minus 5. OK, great. And this is real. It's T1, it's called, which is the relaxation energy. This is genuine data that we collected. These characteristics are very well understood in the physics space. Yeah? This actually means we're at the end of the universe, and we're in the magnetic memory. It's in the Apollo game. It is. It's exactly like that, where you have this dissipation of the energy that happens over some time period. Yeah? And it's very well based on Apollo data itself. Exactly. Every qubit will have a different, we call it, T1 time. This one has a T1 time of 22 and a half microseconds. Every qubit, they'll range, I think, way up to maybe 200 microseconds. In the industry, that is, 250 microseconds. Like, Google Gateway was very low. They were 30 microseconds. So there's a huge variation on what these relaxation times are. Timing attacks. Any crypto engineer here has another timing attack. These two qubit gates that I mentioned, they're not as simple as just drive it for 100 nanoseconds. They vary a lot. The calibration doesn't just check for the frequency, but it also does the amplitude, the length of time it takes. So here, this is the IBM Auckland device. And their range is 284 nanoseconds to 746 nanoseconds. But each two-qubit interaction varies between those two extremes. What that means is you can get some information about the structure of the circuit just based on how long it took. A remediation for this is you make all your gates the same length as the longest one, right? You add a delay in. Then maybe there's side channels there again. So now, that was all the bad news. All the ways it's going to go wrong. The last two slides I have are about some mitigations. This first one, blind computation. This is some work from Ann Broadbent, Jerry Fitzsimmons, and Elham Keshefi. 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. I'll brief you. What is this cluster? This is a new model, what we call measurement-based quantum computing. I'm going to brush over exactly the details. But what we do here... Previously, when someone asked for a two-bit operation, we did that for them. In this model, we preload all of the possible two-bit interactions. So we entangle our entire system. And then the way we do compute is just by doing measurements. Sequentially, on individual qubits. And the angle of those measurements changes the computation. Why is that important? This is classical verification-improver stuff. I have some computation that I want to perform. Basically, it's a series of angles. Of very particular angles, not just arbitrary. What I do, the client... So if I don't trust some machine, I inject a state into that machine that kicks off the whole thing. What that does is it gives me a one-time pad. I've encrypted my entire computation in the combination of angles and this injected state. So if I interleave my computations with genuine compute and trapped compute, that I know the answer for, by just doing 1 plus 1. It's probably more interesting than that. I've encrypted 1 plus 1. Then I can tell I'm being fooled here, because my trapped computes keep coming back wrong. But because it's one-time padded, the server has no way of telling the difference between the trapped and the genuine. So it's impossible to, theoretically, it's impossible for the server to trick you and pass the trapped and fail the genuine ones. This gives us assurance. It won't necessarily fix it, but it will tell you if you're being tampered with or not. In fact, in an incredible, very recent paper, they actually physically implemented this. Some really astonishing work. This has been decades of work to get to the point where they've actually done this. This is something that's very easy or hard, depending on your architecture. I talked earlier from Xanadu. For atomic devices, this is easy. 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. Equally, some ion-trapped devices, it's quite easy to do. It is quite hard to do for superconducting-based devices, but there are proposals if you're working towards something like that. Just a sidebar, this isn't just for detecting if I'm being messed with. This also tells me that my device is running correctly. 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. Then I can use this method and say, yeah, your device is running well. So you can probably trust your answer. And the final mitigation is error correction. And this is RAM manufacturers bake error correction into their devices for very similar purposes. Well, there's a few reasons we do error correction. But let's take a classical error correcting code. We take any time I see a zero, I make that three zeros. Any time I see a one, I make that three ones. And then when I take a measurement, I take a majority vote and assume that approximately one error occurs. That's the simplest possible error correcting classical code. The difference with quantum compute is that we have two errors to correct for. We have this 0, 1 error, this bit flip error, where I said we also can traverse the equator between 0 and 1. So in this instance we have a phase error as well. I can go from 0 plus 1 to minus 1. So basically there's two equators I could bounce between. So we have to bake two errors into our error correction. This is a recent paper from Google demonstrating the phase flip and the bit flip error, demonstrating that you can correct for these things. And this is what people talk about when they say fault tolerant for quantum computers. It means that you are correcting for errors faster than they're occurring. And this could include malicious errors. This is a surface code. This is cool. They're not very good at highly correlated errors. So it's still not very good. If you get hit by a cosmic ray, you still die. There's not much you can do about that. But this is somewhat the end goal of quantum computing. And when we have full error correction, that's when you have to worry about things like Shor's algorithm and your cryptography. Current estimates may be 20 million cubits to crack. RSA 2048, I think. Don't quote me on that. We can Google it afterwards. Yeah, so this will really solve most of the problems. Not the side channels, of course. Side channels are always there. Time intact will still be there. But malicious intent, you can correct for. So this surface code is based off a torus. And you have one direction goes one way, and the other goes the other way. And it adds a lot of redundancy into your system. 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. Same as classical and quantum. This is my last slide, so any questions? No. I put my email down here. I'd love to hear any of your ideas, any suggestions. I want to get this conversation going between the quantum and hardware hackers and the regular hackers. I want to get our devices as secure as possible. So please give me an email, jfriel, j-f-r-i-e-l, out to quantumcircuit.com. And let's talk hardware hacking. Thank you for listening.