1 00:00:00,000 --> 00:00:01,400 Okay, welcome everybody. 2 00:00:01,400 --> 00:00:06,340 Thank you for coming on to Quantum Algorithms for Finding Short Vectors. 3 00:00:06,340 --> 00:00:11,780 Glad to see that the title didn't dissuade too many of you. 4 00:00:12,300 --> 00:00:16,860 So, let's see what we have here. 5 00:00:17,520 --> 00:00:20,480 Start off with a quick overview. 6 00:00:21,020 --> 00:00:27,740 So, first of all, Mark took a little bit of content from me earlier. 7 00:00:27,740 --> 00:00:29,720 I'm asking who does what. 8 00:00:29,720 --> 00:00:33,560 So, we'll quickly recycle that. 9 00:00:33,560 --> 00:00:36,680 It's helpful to know exactly who's in the audience. 10 00:00:36,680 --> 00:00:41,380 So, who identifies more as a quantum person? 11 00:00:42,460 --> 00:00:44,200 Quantum backgrounds? 12 00:00:44,440 --> 00:00:45,520 Excellent. 13 00:00:45,520 --> 00:00:48,160 Okay, who's more... we've got somebody over there. 14 00:00:48,160 --> 00:00:50,260 Who's more cyber security? 15 00:00:51,160 --> 00:00:52,780 Okay, cool. 16 00:00:52,780 --> 00:00:56,460 And then we say cryptography in particular. 17 00:00:57,400 --> 00:01:02,820 Okay, so hopefully a lot of this is going to be new and interesting there. 18 00:01:09,120 --> 00:01:12,720 So, the gist of cryptography. 19 00:01:13,260 --> 00:01:19,760 We've got a few cryptographers, but not too many people are native cryptographers. 20 00:01:19,940 --> 00:01:25,000 Generally speaking, we've got symmetric cryptography, which is kind of like the old stuff. 21 00:01:25,000 --> 00:01:30,780 Pretty efficient stuff, AES, hash database on that. 22 00:01:31,520 --> 00:01:34,740 And essentially it's lots of scrambling. 23 00:01:34,800 --> 00:01:42,980 It's kind of interesting, but the really juicy, interesting stuff, as far as I'm concerned, is in this public key cryptography. 24 00:01:43,220 --> 00:01:53,220 So, this is key exchanges, your digital signature algorithms, and this is all the wacky stuff which we wind back 70 or 80 years. 25 00:01:53,220 --> 00:01:58,320 Nobody really had even conceived that public key cryptography could really exist. 26 00:01:58,320 --> 00:02:09,460 How can you share a secret with another individual who you don't even have any kind of exclusive access to? 27 00:02:09,460 --> 00:02:10,920 Super wacky. 28 00:02:11,680 --> 00:02:20,100 Now, the interesting difference about public key crypto is that it's based on some kind of hard mathematical underlying problem. 29 00:02:20,100 --> 00:02:30,080 So there's some kind of juicy structure, and when you get into this, stuff gets all super wacky, and we're going to dive into that a little bit later. 30 00:02:31,200 --> 00:02:37,460 But basically, breaking crypto systems reduces down to just solving mathematical problems. 31 00:02:37,460 --> 00:02:48,100 And that's the really exciting bit, because until this point, mathematicians were really not very useful. 32 00:02:50,060 --> 00:02:56,080 Prime numbers were used for music a little bit, but this really gave us a reason to. 33 00:02:59,130 --> 00:03:00,670 So, what are we going to do? 34 00:03:00,670 --> 00:03:06,730 We're going to try and have a crack at this NP-hard problem, the shortest vector problem. 35 00:03:06,730 --> 00:03:13,510 And this is one of the problems which underlies these next-generation cryptosystems, which is based on lattices. 36 00:03:13,510 --> 00:03:15,430 It's a really cool family of cryptosystems. 37 00:03:15,430 --> 00:03:18,070 We're going to talk a little bit more about how that's taken on. 38 00:03:18,990 --> 00:03:23,950 And it's the hardness of solving the shortest vector problem that makes cryptosystems secure. 39 00:03:24,210 --> 00:03:31,730 And the reason I really like talking about and working on the shortest vector problem is because it's really... 40 00:03:31,730 --> 00:03:40,450 I mean, OK, it's a maths problem, but it's so geometrically beautiful and simple that I can actually say this to my parents. 41 00:03:40,570 --> 00:03:46,830 And whenever people ask my parents what I do, they say, oh, it's something like, find the sort of distance between points. 42 00:03:46,830 --> 00:03:49,350 And it's pretty comprehensible. 43 00:03:50,370 --> 00:03:56,730 And then what we're going to do is we're going to try and design a quantum SQD solver, which is... 44 00:03:56,730 --> 00:04:01,790 I guess that's the thing that got a few of you in here. 45 00:04:04,470 --> 00:04:12,750 So the actual structure, being concrete, is despite my maths background, I do not like equations very much. 46 00:04:12,750 --> 00:04:16,490 I'm up for ideas and pictures and understanding stuff. 47 00:04:16,490 --> 00:04:18,770 I want to understand the ideas and the concepts. 48 00:04:18,770 --> 00:04:22,610 The equations are just a way to get a number or a parameter. 49 00:04:22,610 --> 00:04:25,870 So not too much dry maths equations. 50 00:04:25,870 --> 00:04:31,010 And the ones that are, I try and keep to V equals X dot B. 51 00:04:31,230 --> 00:04:34,630 That's about as advanced as that gets, and a little bit of linear algebra. 52 00:04:34,630 --> 00:04:36,850 I'm going to try and go heavy on nice pictures. 53 00:04:36,850 --> 00:04:39,250 Nice pictures are far better for learning. 54 00:04:39,330 --> 00:04:43,970 And what we're going to do is we're going to use this problem. 55 00:04:43,970 --> 00:04:47,550 We've got a cryptosystem that we want to break. 56 00:04:47,550 --> 00:04:49,730 It's based on a mathematical problem. 57 00:04:49,730 --> 00:04:56,830 And we're going to create a quantum algorithm to try and see if we can have a crack at solving this problem. 58 00:04:57,470 --> 00:05:03,410 And this is a nice framework to basically take us the whole way through a workbook. 59 00:05:04,130 --> 00:05:12,650 So we can start off with a brief and high level intro to quantum computing, because we don't have many quantum native people there. 60 00:05:12,650 --> 00:05:17,970 And that's going to be given by Ryder here, who I will introduce momentarily. 61 00:05:18,690 --> 00:05:22,970 I'm going to take a spoon of continuous time quantum computing. 62 00:05:22,970 --> 00:05:25,270 So this is a really interesting paradigm. 63 00:05:27,050 --> 00:05:35,770 It's super different when we actually get into it and describe how it works to the gate model quantum computing, classical quantum computing. 64 00:05:36,470 --> 00:05:38,810 But actually it reduces to the same stuff. 65 00:05:38,810 --> 00:05:40,070 Super cool. 66 00:05:40,550 --> 00:05:47,390 Then Ryder here is going to give an intro to lattices and lattice problems and how it relates to cryptography. 67 00:05:48,790 --> 00:05:52,110 And then, we're getting to the business end now. 68 00:05:52,110 --> 00:06:01,110 How do we take these lattices and how do we map it to something that we can actually put on a continuous time quantum algorithm to solve? 69 00:06:01,830 --> 00:06:07,870 And at this portion, we are going to move to the interactive part. 70 00:06:07,870 --> 00:06:14,270 So if you've bought your laptops and you want to participate in this part, then we've got a couple of collabs for you to fill in. 71 00:06:14,270 --> 00:06:18,970 We're going to fill in the Hamiltonians. 72 00:06:19,190 --> 00:06:20,950 We'll explain what that is later. 73 00:06:22,070 --> 00:06:30,510 And hopefully, we're going to be able to submit these queries to the D-Wave 5000Q quantum solver. 74 00:06:30,610 --> 00:06:36,430 So if you haven't already got a D-Wave lead account, it takes two minutes to set up and it will give you an API key. 75 00:06:36,430 --> 00:06:37,990 You can just paste that in. 76 00:06:38,950 --> 00:06:43,030 And then, you just run the whole way through the notebook and just check out your results. 77 00:06:43,030 --> 00:06:47,910 And then, you can be reasonably confident that we won't be creating any of these cryptosystems anytime soon. 78 00:06:49,410 --> 00:06:58,250 And then, at the end, for those who don't want to participate in the actual coding part, then we'll do some interactive Q&A. 79 00:06:58,330 --> 00:07:02,690 There's loads of questions, loads of interesting discussion topics. 80 00:07:02,690 --> 00:07:10,750 And if anything, from however long I've been studying this workflow, there are far more questions than answers. 81 00:07:12,590 --> 00:07:16,590 And there's some interesting other content that we can move on to. 82 00:07:17,610 --> 00:07:21,450 So, without further ado, I'm David Joseph. 83 00:07:21,450 --> 00:07:24,990 I'm a senior research scientist at Sandbox AQ. 84 00:07:24,990 --> 00:07:30,250 And my specialities are quantum algorithms, looking at quantum atmospheres. 85 00:07:30,250 --> 00:07:36,210 So , one of the capabilities of quantum atmospheres against various cryptosystems. 86 00:07:36,310 --> 00:07:38,670 And that stuff gets super wacky. 87 00:07:38,710 --> 00:07:40,410 Very, very theoretical. 88 00:07:40,690 --> 00:07:43,370 And I do a bit of theoretical cryptography as well. 89 00:07:43,370 --> 00:07:49,610 So , you know, I think NIST just opened up new communication signatures. 90 00:07:49,630 --> 00:07:53,110 And , you know, a lot of people have been having a bit of fun with that. 91 00:07:53,190 --> 00:07:57,010 So, I'm on one of the consortia there. 92 00:07:57,010 --> 00:08:00,950 That's another topic you can't be outside of NIST talking about. 93 00:08:00,950 --> 00:08:02,310 That gets pretty wacky. 94 00:08:02,310 --> 00:08:09,570 And my glamorous assistant, which was promised to you in the abstract, is Ryder Lu Lin. 95 00:08:09,570 --> 00:08:10,990 So, over to you. 96 00:08:11,350 --> 00:08:12,550 Hello, everybody. 97 00:08:12,550 --> 00:08:13,830 I am Ryder Lu Lin. 98 00:08:13,830 --> 00:08:16,010 I am an intern at Sandbox. 99 00:08:16,010 --> 00:08:19,310 And I've been here for, I think, nine months now. 100 00:08:19,490 --> 00:08:21,170 Really enjoying my time here. 101 00:08:21,170 --> 00:08:22,630 Really interesting work. 102 00:08:23,310 --> 00:08:27,150 And my background is I have a math BA from UC Berkeley. 103 00:08:28,250 --> 00:08:31,110 And there's no real focus when it comes to a BA. 104 00:08:31,110 --> 00:08:34,030 But I did some work in cryptography research. 105 00:08:34,690 --> 00:08:36,950 More so, like, classical cryptography. 106 00:08:36,950 --> 00:08:38,770 So, not any of this quantum stuff. 107 00:08:38,770 --> 00:08:41,610 So, getting to do this was, like, a really fun experience. 108 00:08:41,730 --> 00:08:44,730 And getting to learn about all these quantum conjectures and stuff like that. 109 00:08:44,730 --> 00:08:45,530 So, yeah. 110 00:08:46,370 --> 00:08:47,910 And how old are you, Ryder? 111 00:08:48,610 --> 00:08:49,250 Oh, yes. 112 00:08:49,250 --> 00:08:50,290 I'm 19. 113 00:08:55,190 --> 00:08:56,130 All right. 114 00:08:56,130 --> 00:08:59,230 So, I'm going to give a quick introduction to quantum computing. 115 00:08:59,230 --> 00:09:02,650 So, this stuff sort of crosses into physics as well. 116 00:09:02,650 --> 00:09:04,590 And neither of us are physicists. 117 00:09:04,990 --> 00:09:08,290 So, we'll try our best to sort of give the high-level overview. 118 00:09:08,290 --> 00:09:16,310 But when it comes to specific questions about, like, how does one go about constructing a physical qubit, unfortunately, we're not really the best people to answer those questions. 119 00:09:16,310 --> 00:09:20,610 But if there are, like, any physicists here, then maybe you can ask them. 120 00:09:22,630 --> 00:09:24,430 First of all, what is a qubit? 121 00:09:24,690 --> 00:09:28,290 So, we're going to be approaching this from a sort of mathematical perspective. 122 00:09:28,290 --> 00:09:32,170 So, we can think of a qubit as a point on a block sphere. 123 00:09:32,330 --> 00:09:35,110 So, this diagram is a block sphere. 124 00:09:35,590 --> 00:09:40,750 And it's sort of a... you can think of a qubit as a vector, right? 125 00:09:40,750 --> 00:09:45,510 And so, in this case, we have the negative z being, like, a spin 1. 126 00:09:45,830 --> 00:09:47,970 Positive z, 0. 127 00:09:48,250 --> 00:09:50,050 This is sort of an arbitrary choice. 128 00:09:50,050 --> 00:09:51,910 This is just a mathematical representation. 129 00:09:51,910 --> 00:09:54,470 So, again, these are, like, arbitrary choices that we're making. 130 00:09:55,750 --> 00:09:56,890 But, yeah. 131 00:09:56,910 --> 00:09:59,390 So, how do we manipulate a qubit? 132 00:10:00,130 --> 00:10:03,910 So, to manipulate a qubit, we perform a unitary operation on it. 133 00:10:03,910 --> 00:10:07,670 And we'll go more into what a unitary operation is later on. 134 00:10:07,670 --> 00:10:12,550 But, sort of, the important part to keep in mind is that a qubit is sort of a vector. 135 00:10:12,550 --> 00:10:15,410 And it's more continuous than a classical bit is, right? 136 00:10:15,410 --> 00:10:17,510 A classical bit is either 0 or 1. 137 00:10:17,510 --> 00:10:19,630 A qubit, you've probably heard this, right? 138 00:10:19,630 --> 00:10:22,890 Sort of a superposition of multiple states. 139 00:10:25,730 --> 00:10:29,590 So, then, we can also talk about operations on single qubits. 140 00:10:29,590 --> 00:10:32,270 In the same way we can talk about operations on single bits. 141 00:10:32,750 --> 00:10:35,690 So, here we have four different operations. 142 00:10:35,690 --> 00:10:37,690 And these are called the Pauling matrices. 143 00:10:38,930 --> 00:10:40,770 So, we have the identity. 144 00:10:41,130 --> 00:10:43,310 We have that in classical computing as well. 145 00:10:43,310 --> 00:10:44,250 We have the bit flip. 146 00:10:44,250 --> 00:10:46,170 We have that in classical computing as well. 147 00:10:46,170 --> 00:10:49,810 And then we also have the bit phase flip and the phase flip. 148 00:10:49,810 --> 00:10:52,490 These we don't really have in classical computing. 149 00:10:54,290 --> 00:10:55,350 So, yeah. 150 00:10:55,350 --> 00:10:57,090 These are 2 by 2 complex matrices. 151 00:10:57,090 --> 00:10:59,150 That's the mathematical way to think of these. 152 00:10:59,810 --> 00:11:01,270 We have the identity. 153 00:11:01,270 --> 00:11:03,070 We have the X, which is the bit flip. 154 00:11:03,070 --> 00:11:04,190 Y, bit phase. 155 00:11:04,190 --> 00:11:05,670 And then Z, phase flip. 156 00:11:06,730 --> 00:11:07,950 And, yeah. 157 00:11:07,950 --> 00:11:13,470 Combinations of Pauling operators can span every rotation on that sphere that we showed earlier. 158 00:11:16,250 --> 00:11:21,010 So, it's very common to measure these in the Z basis. 159 00:11:21,010 --> 00:11:22,570 So, negative 1 to 1. 160 00:11:23,070 --> 00:11:28,970 And then we can refer to this as a S01 via that simple operator there. 161 00:11:30,190 --> 00:11:33,350 And then the concept of a QDID. 162 00:11:33,350 --> 00:11:34,430 So, very important. 163 00:11:34,430 --> 00:11:35,030 This D here. 164 00:11:35,030 --> 00:11:36,070 QDID. 165 00:11:36,070 --> 00:11:40,830 This is sort of an interesting problem to solve here. 166 00:11:41,050 --> 00:11:47,970 So, to create a QDID, which is a D energy level system, we can combine these operators over a set of K qubits. 167 00:11:47,970 --> 00:11:52,990 So, what we want to do here is essentially combine these qubits into a single QDID. 168 00:11:52,990 --> 00:11:55,850 So, we can sort of think of qubits as just 0, 1. 169 00:11:55,850 --> 00:11:58,550 And then a QDID as 0 to D. 170 00:11:58,670 --> 00:12:00,030 So, it's a digit. 171 00:12:00,030 --> 00:12:01,710 A generalization of a bit. 172 00:12:05,310 --> 00:12:10,210 Another important concept in quantum computing is the idea of entanglement. 173 00:12:10,810 --> 00:12:14,730 So, the idea is that multiple particle states are inseparable. 174 00:12:15,110 --> 00:12:22,970 Mathematically, this is encapsulated by the idea that a system state is a sum that cannot be written as a single product term. 175 00:12:23,850 --> 00:12:28,670 And then entanglement is broken by some sort of measurement or interference. 176 00:12:28,770 --> 00:12:30,570 This is called decoherence. 177 00:12:31,150 --> 00:12:33,370 So, here's a small example. 178 00:12:33,470 --> 00:12:46,530 So, if we have a spin-0 particle that decays into two spin-1-half particles, then we can say maybe we measure one of the spin-1-half particles and it's spin up along some axis. 179 00:12:47,310 --> 00:12:51,170 Keep in mind the conservations of angular momentum and stuff like that. 180 00:12:51,170 --> 00:12:56,370 Can anybody tell me what the other particle's spin has to be along that same axis? 181 00:12:56,890 --> 00:12:58,830 So, yes, I see you pointing down. 182 00:12:58,830 --> 00:12:59,390 You're correct. 183 00:12:59,390 --> 00:13:03,570 So, we have one of the spin-1-half particles pointing up, so the other one must be pointing down. 184 00:13:03,590 --> 00:13:09,830 So, this is an example of the decoherence that's because of the measurement or the interference. 185 00:13:13,650 --> 00:13:18,170 So, this one is a bit of a boring math equation, but it's not super important. 186 00:13:18,170 --> 00:13:21,570 This is just sort of an illustration of a two-qubit state. 187 00:13:21,770 --> 00:13:26,850 So, if you measure one qubit, you can immediately deduce the state of the other one without disturbing it. 188 00:13:28,730 --> 00:13:32,130 Okay, back to unitary operators, as I mentioned earlier. 189 00:13:32,610 --> 00:13:37,550 So, they are angle- and length-preserving operators in a vector space. 190 00:13:37,650 --> 00:13:40,050 And remember, qubits can be interpreted as vectors. 191 00:13:40,370 --> 00:13:46,250 So, in our context, what this means is that because they preserve angle and they preserve length, they're preserving probability. 192 00:13:46,570 --> 00:13:51,510 So, when we're measuring qubits, there's always this question of probability, right? 193 00:13:51,510 --> 00:13:57,530 Like, what's the probability that when measured, it's one, or when measured, it's zero, stuff like that. 194 00:13:57,530 --> 00:14:02,290 So, we always need this probability to sum to one, obviously, over all the different cases. 195 00:14:02,290 --> 00:14:06,270 So, that's why we need to have this preserving probability property. 196 00:14:08,170 --> 00:14:11,250 Another bit of a boring math equation, this one is Schrodinger's equation. 197 00:14:11,250 --> 00:14:12,370 It's actually quite cool. 198 00:14:12,510 --> 00:14:17,370 It's a differential equation, but it basically governs the time evolution of the system. 199 00:14:17,370 --> 00:14:26,790 And if you hold the h constant, which is the Hamiltonian, which we'll talk about later, if you hold that constant, then the differential equation has the solution at the bottom. 200 00:14:27,070 --> 00:14:31,010 And so, this is psi of t equals u of t times psi of zero. 201 00:14:31,030 --> 00:14:33,910 So, u of t, that's the unitary operator. 202 00:14:34,050 --> 00:14:38,070 So, that is the thing that is telling us the state at the given time. 203 00:14:38,070 --> 00:14:40,070 It's telling us psi of t, right? 204 00:14:42,690 --> 00:14:45,950 Okay, so now, on to qubit construction. 205 00:14:45,950 --> 00:14:49,470 So, I'm going to talk about two different methods of constructing qubits. 206 00:14:49,470 --> 00:14:54,470 We're only going to be using one of them in the example, because it is, frankly, much simpler to understand. 207 00:14:54,470 --> 00:14:58,850 And there are also some physical considerations that come into why we choose it. 208 00:14:59,110 --> 00:15:03,090 So, this one is the binary encoded method. 209 00:15:03,450 --> 00:15:10,890 And this is maximally space efficient, because we are combining qubits into a binary number. 210 00:15:11,130 --> 00:15:15,290 So, every value has a unique representation. 211 00:15:15,290 --> 00:15:19,070 It matters what place value each qubit is in. 212 00:15:19,850 --> 00:15:25,250 And so, this obviously needs high-quality qubits, but it's maximally space efficient. 213 00:15:25,250 --> 00:15:30,210 We need high-quality qubits, because if a single bit is flipped, it completely changes the number, right? 214 00:15:31,710 --> 00:15:36,330 And yeah, so here we can map the phase-flip operators onto these qubits. 215 00:15:36,330 --> 00:15:39,990 And then we get integers from negative 2k to 2k minus 1. 216 00:15:39,990 --> 00:15:46,270 That's not super important, but again, this is sort of just in words explaining what's going on in this big equation here. 217 00:15:48,570 --> 00:15:49,830 The Hamming weight method. 218 00:15:49,830 --> 00:15:52,790 This is the method that we are going to be using in the example. 219 00:15:53,390 --> 00:15:55,470 So this one, maybe pay a bit more attention to. 220 00:15:55,470 --> 00:15:57,510 It's also much simpler, which is nice. 221 00:15:57,650 --> 00:16:04,310 So, a qubit operator, or a qubit operator, sorry, here is just a simple sum of the qubits. 222 00:16:04,370 --> 00:16:08,650 Basically, we are counting the number of qubits in the plus 1 state. 223 00:16:08,650 --> 00:16:11,490 And that's giving us our qubit. 224 00:16:11,850 --> 00:16:16,150 So obviously here there are redundant representations, right? 225 00:16:16,270 --> 00:16:21,090 So 1, 0, or 1, negative 1, 1 is the same as 1, 1, negative 1. 226 00:16:21,090 --> 00:16:23,250 They both represent the same thing. 227 00:16:23,910 --> 00:16:25,770 But it's more robust. 228 00:16:26,970 --> 00:16:31,830 So, in this case, in our case, in the real world case, we have poor-quality qubits. 229 00:16:31,830 --> 00:16:36,170 And we have enough space to justify using the Hamming weight method. 230 00:16:36,170 --> 00:16:41,470 And so, because of this poor-quality, we can't really get away with using the binary encoding method. 231 00:16:41,750 --> 00:16:47,750 Because there's just too much risk of stuff going wrong, going very wrong. 232 00:16:49,530 --> 00:16:54,750 Okay, so now I'll pass it back to Joseph, or David Joseph, for taking your time to participate. 233 00:16:55,590 --> 00:16:57,150 Thank you very much, Ryland. 234 00:16:57,150 --> 00:17:07,730 Yeah, so in the gate model of quantum computing, in fact, I think actually QuantumVillage released an image generator for quantum circuits, right? 235 00:17:07,810 --> 00:17:08,810 A font. 236 00:17:08,890 --> 00:17:09,430 Sorry? 237 00:17:09,430 --> 00:17:10,030 A font. 238 00:17:10,030 --> 00:17:10,910 A font for quantum circuits, right? 239 00:17:10,910 --> 00:17:12,010 Q-type font. 240 00:17:12,050 --> 00:17:13,190 Absolutely magical. 241 00:17:13,190 --> 00:17:19,870 So, basically, you kind of start off somewhere with a state, and then you run through and you apply a series of gates. 242 00:17:21,170 --> 00:17:26,010 And there is some analogous mapping back to classical computing. 243 00:17:26,990 --> 00:17:28,650 It's all very dull. 244 00:17:28,690 --> 00:17:32,630 But continuous time in quantum computing is super weird, right? 245 00:17:32,630 --> 00:17:39,710 Because you take these physical systems, and then you just kind of, you know, jimmy a problem into there. 246 00:17:41,310 --> 00:17:44,750 And we'll talk about it a bit more with the pictures. 247 00:17:44,750 --> 00:17:47,010 So I get quite excited about this stuff. 248 00:17:47,330 --> 00:17:54,650 So it starts off with what we call AQC, or Adiabatic Quantum Computing. 249 00:17:54,650 --> 00:18:03,830 And the crux of it is this one theorem, which is that when you have a physical system, it remains in its instantaneous eigenstate. 250 00:18:03,830 --> 00:18:09,570 And that basically means that whatever its energy level, whether it's an electron, it's going to jump, or excite, or de-excite. 251 00:18:10,070 --> 00:18:18,310 If it is evolved under some Hamiltonian, according to Schrodinger's equation, super, super slowly, right? 252 00:18:18,310 --> 00:18:30,130 So it's like, as soon as you try to move something along too much, it's basically going to put too much energy into the system, and you're going to get some quantum dynamics. 253 00:18:30,250 --> 00:18:40,230 But if we move it really, I mean, it's actually been moved almost infinitely slowly, we can guarantee that that energy state is not going to change. 254 00:18:41,170 --> 00:19:02,010 So the corollary of that is that if we initialize this system in the ground state in some kind of easy thing to set up, and then we kind of slowly, I don't know, kind of sort of gaslight the system into some different Hamiltonian. 255 00:19:02,010 --> 00:19:05,430 But we do it so slowly, the system almost doesn't notice it. 256 00:19:05,430 --> 00:19:17,050 And the thing is, the one that we start off with is a really simple system, that's not so bad to initialize in, for example, the equal superposition of states. 257 00:19:17,290 --> 00:19:24,410 But the one that we finish off in basically represents a solution to some hard problem. 258 00:19:25,390 --> 00:19:34,650 And if we take this problem and we map it such that the solution we're looking for is the ground energy state, then voila! 259 00:19:34,650 --> 00:19:36,350 We've solved our problem. 260 00:19:36,350 --> 00:19:50,630 And all we need to do is have quantum systems that can remain coherent for going to the limit of infinity amounts of time. 261 00:19:51,050 --> 00:19:53,350 So therein lies the problem. 262 00:19:53,610 --> 00:19:59,250 Adiabatic quantum computation is, you know, great, fancy mathematically. 263 00:19:59,250 --> 00:20:02,830 But in the real world, it doesn't quite work so well. 264 00:20:04,090 --> 00:20:14,790 However, if we evolve the system much faster than the adiabatic limit, it turns out that we can still get relatively low energy states. 265 00:20:14,790 --> 00:20:19,910 So you might be excited, but you're still probably talking about pretty low energy eigenstates. 266 00:20:19,950 --> 00:20:27,370 And if you're looking for an exact solution, then maybe it means that one of your samples probabilistically will be in that ground state. 267 00:20:27,370 --> 00:20:29,110 You might not be excited. 268 00:20:29,110 --> 00:20:32,890 But it's also really good for approximate problems, right? 269 00:20:32,890 --> 00:20:39,130 So if you're, you know, you don't need an exact solution sample, but you need an approximately low energy state. 270 00:20:39,130 --> 00:20:43,550 And this is, you know, annealing maybe the quantum algorithm for you. 271 00:20:46,780 --> 00:20:55,860 So what I just said, this here would be your initial Hamiltonian, which H0 might be equal superposition of all states. 272 00:20:57,160 --> 00:21:03,180 Hp is this Hamiltonian, which is a system that represents your hard problem. 273 00:21:03,340 --> 00:21:07,100 And essentially that, the way I think about it, I mean, OK, we want a definition of it. 274 00:21:07,100 --> 00:21:13,100 It's a function slash matrix from one space of physical states to another, and it corresponds to the total energy of the system. 275 00:21:13,320 --> 00:21:15,880 And to me, that doesn't mean too much. 276 00:21:15,880 --> 00:21:23,940 The way I think about it is we have eigenstates, and eigenstates basically correspond to the configuration of bits, right? 277 00:21:23,940 --> 00:21:29,660 I'm going to diagram later, but it's just like, read off some bits, and that would be your eigenstate. 278 00:21:29,960 --> 00:21:32,000 And each state has an eigenenergy. 279 00:21:32,080 --> 00:21:43,520 And that eigenenergy, the lower energy states are going to be, the configurations of the low energies correspond to the solutions that are really good, right? 280 00:21:44,160 --> 00:22:00,980 And, you know, to be honest, the schedules that we use to move gradually from the initial Hamiltonian to the final one, you can take a linear Hamiltonian, sort of a linear schedule where we basically say, OK, let's just move the same distance at each time. 281 00:22:02,780 --> 00:22:05,440 Then you can kind of muck around with that. 282 00:22:05,440 --> 00:22:13,780 And it actually turns out the most efficient one is an S shape because of various quantum dynamics that I can talk about later. 283 00:22:13,780 --> 00:22:32,460 And I did see a paper recently where somebody had slapped on some deep neural nets to load these to optimize the exact shape of the S curve that you need to optimize your adiabatic quantum algorithm. 284 00:22:32,460 --> 00:22:42,820 So this is a prime example of a Lennon squeezer, or a physical system that is still absolutely inconceivable from an engineering standpoint. 285 00:22:42,820 --> 00:22:47,560 But somebody's already slapped a neural net on it to squeeze out a few extra marginal gains. 286 00:22:47,600 --> 00:22:49,340 I quite enjoyed that one. 287 00:22:51,660 --> 00:22:54,160 So the pictures I promised you. 288 00:22:55,280 --> 00:23:02,080 This here represents the probability and the energies of the equal superposition. 289 00:23:02,080 --> 00:23:04,880 So this is basically the system described by your H norm. 290 00:23:04,880 --> 00:23:11,200 If you take the state that you've initialized it in, and you sample from it, basically it's a uniform random sample. 291 00:23:12,260 --> 00:23:13,140 Useless. 292 00:23:14,280 --> 00:23:19,640 And eventually what we're going to get to is this probability distribution over all of the states. 293 00:23:19,640 --> 00:23:24,540 So basically this might be like 0, 0, 0, 0, 1, 1, 1, 1, 1. 294 00:23:24,540 --> 00:23:28,000 And every state in the Hilbert space that goes along. 295 00:23:29,320 --> 00:23:36,740 And essentially what this corresponds to is when you get to this final Hamiltonian, you've got this super localized wave function. 296 00:23:36,980 --> 00:23:45,420 And that means when you measure it, there's going to be a super high probability of measuring it in this one, in this state, which is great because it's the lowest energy. 297 00:23:45,420 --> 00:23:48,600 This is the solution you're looking to get. 298 00:23:48,920 --> 00:23:52,340 And what happens is this is done over time. 299 00:23:52,340 --> 00:23:53,780 So this is some intermediate time. 300 00:23:53,780 --> 00:23:57,160 And it kind of gradually molds like that. 301 00:23:57,160 --> 00:23:59,920 If you think about having... 302 00:23:59,920 --> 00:24:03,560 OK, so classically you might have a marble here and you want to get it there. 303 00:24:03,580 --> 00:24:07,480 Well, you know, that's not going to happen, is it? 304 00:24:08,940 --> 00:24:15,080 We talk about quantum tunneling, you know, because you go, OK, probabilistically you need to tunnel through this energy gap. 305 00:24:15,140 --> 00:24:27,500 The way I like to think about it in AQC is that you start with the marble here, and then as you slightly perturb it, the marble is always, every time, going to remain at the lowest energy point. 306 00:24:29,000 --> 00:24:41,680 And then as you gradually perturb it, that lowest energy point in the overall space is basically going to continuously evolve until it's down here. 307 00:24:42,500 --> 00:24:44,980 That's the way I like to think about it. 308 00:24:51,500 --> 00:24:52,780 So here we go. 309 00:24:52,780 --> 00:24:54,060 More diagrams. 310 00:24:54,060 --> 00:24:59,680 What happens here is this over here is our initial superposition. 311 00:24:59,680 --> 00:25:01,860 So, you know, equal superposition. 312 00:25:03,020 --> 00:25:06,380 And so the lowest energy state is going to be equal superposition. 313 00:25:06,480 --> 00:25:09,080 And these are different energy states here. 314 00:25:09,520 --> 00:25:10,800 And you see this ground state. 315 00:25:10,800 --> 00:25:19,240 As we evolve over time, the eigenenergies of these intermediate Hamiltonians, they all kind of like squeeze together. 316 00:25:19,240 --> 00:25:25,020 And then they open out again for the final problem Hamiltonian, which is where you measure it. 317 00:25:26,060 --> 00:25:28,420 What's the time complexity of this algorithm? 318 00:25:28,640 --> 00:25:35,620 The time complexity depends solely on how small this energy gap is, right? 319 00:25:35,620 --> 00:25:50,320 So if this energy gap gets super, super small, well, basically how slowly you have to evolve the system for it to be adiabatic and to avoid you basically making this jump depends on the square of this energy gap, right? 320 00:25:50,320 --> 00:25:51,940 So you see that's pretty horrible, right? 321 00:25:54,560 --> 00:25:58,680 And then, yeah, over here, again, we have our nice marble draw, right? 322 00:25:58,680 --> 00:26:05,780 So here, you know, quantum mechanical tunneling. 323 00:26:05,880 --> 00:26:10,200 You start up and you move it adiabatically and you find, you know, like the marble on the sheet. 324 00:26:11,100 --> 00:26:13,740 But yeah, so think about this. 325 00:26:13,740 --> 00:26:16,220 This time complexity is really not very nice. 326 00:26:16,220 --> 00:26:21,680 And the reason that we don't have good results for this class of quantum computing, right? 327 00:26:21,680 --> 00:26:25,700 So Shor's algorithm, Grove's algorithm, they're all in the gate model. 328 00:26:26,020 --> 00:26:42,340 In the continuous time model with adiabatic quantum computing, all we have is this bound based on the intermediate Hamiltonian's eigenspectrum, take a slice, what does this look like? 329 00:26:42,420 --> 00:26:49,600 And the problem is, it's not at all easy to understand what this intermediate eigenspectrum looks like. 330 00:26:49,640 --> 00:26:56,780 We can maybe understand what this eigenspectrum looks like, but this is probably a hard problem just to understand classically. 331 00:26:57,260 --> 00:26:59,520 We definitely know what this one is. 332 00:26:59,560 --> 00:27:02,520 But the intermediate problems, very, very difficult. 333 00:27:05,570 --> 00:27:12,390 So the implications are, one, we've got this time complexity gap given by the minimum energy difference, right? 334 00:27:12,390 --> 00:27:13,610 So that's a problem. 335 00:27:14,210 --> 00:27:19,810 We begin in the ground state and evolve it slowly enough, no jumping. 336 00:27:19,910 --> 00:27:26,330 If we evolve it a little bit slowly, but not adiabatic, then we get a little bit of energy jumping. 337 00:27:26,530 --> 00:27:30,670 And essentially that means that at the end, we'll get a bit of a Gibbs distribution. 338 00:27:30,810 --> 00:27:43,990 You'll notice that if you look at the energy of the things that you've sampled from, you'll have basically energy solutions that will kind of be sampled from some kind of Gibbs heat distribution. 339 00:27:44,990 --> 00:27:51,930 This model is, even though it looks completely like it's from another world, it is equivalent to the circuit model. 340 00:27:51,930 --> 00:27:55,990 And it is universal, the adiabatic version, right? 341 00:27:55,990 --> 00:28:01,630 It is polynomial equivalent, which is, I guess, a word mathematicians used to say. 342 00:28:01,630 --> 00:28:10,410 I mean, polynomials can be pretty big, but if you're a mathematician, you just kind of have to say it. 343 00:28:10,650 --> 00:28:17,450 So basically, you can solve one problem, then you can solve another problem in a few hours more, basically. 344 00:28:17,670 --> 00:28:20,110 But for cryptographers, it's good enough. 345 00:28:21,710 --> 00:28:25,270 And in practice, it requires very long coherence times, right? 346 00:28:25,270 --> 00:28:31,370 So yeah, don't worry about long coherence times with the D-Wave. 347 00:28:35,450 --> 00:28:38,090 So we're going to try it out on the D-Wave from Manila. 348 00:28:38,090 --> 00:28:42,550 If you've got your laptop and your D-Wave account, feel free to set up that account. 349 00:28:42,550 --> 00:28:43,890 We're going to try this out later. 350 00:28:44,810 --> 00:28:47,970 It has 5,000 qubits with an asterisk. 351 00:28:47,970 --> 00:28:54,290 So you're not comparing these qubits to the, I don't know, what is it? 352 00:28:54,290 --> 00:28:57,310 The Osprey chip, I reckon it has 400 or something? 353 00:28:57,310 --> 00:28:59,390 Yes, Osprey 427. 354 00:28:59,510 --> 00:29:01,190 427, right. 355 00:29:03,610 --> 00:29:10,470 D-Wave and IBM use the same word, the same five or six letters. 356 00:29:11,030 --> 00:29:14,970 There is really very little equivalence between the two. 357 00:29:14,970 --> 00:29:23,750 In fact, almost the notion of a qubit in that physical sense with so many dozens of technologies, that is pretty crazy. 358 00:29:23,750 --> 00:29:25,470 So that's a whole different debate. 359 00:29:26,350 --> 00:29:29,130 There are lots of couplers, probably 25,000 of them. 360 00:29:29,130 --> 00:29:33,290 And each qubit is connected to 15 other qubits, right? 361 00:29:33,290 --> 00:29:52,090 So you can entangle a qubit directly with 15 other ones, but you're not going to entangle every one of those 5,000 qubits with every other one of those 5,000 qubits, which is ideally what we'd like to be able to do, because the secret, the magic source of quantum algorithms is entanglement, 362 00:29:52,090 --> 00:29:52,750 right? 363 00:29:52,750 --> 00:29:56,010 If there's no entanglement, you're running a classical algorithm. 364 00:29:56,010 --> 00:30:01,770 So the more connectivity you can get, the more quantum advantage, you're going to see. 365 00:30:05,150 --> 00:30:07,490 And what does this look like? 366 00:30:07,910 --> 00:30:13,370 So this might actually be a diagram of the Hameric topology, which is from the 2000Q. 367 00:30:13,370 --> 00:30:15,530 And this is a diagram of that qubit. 368 00:30:15,530 --> 00:30:20,290 So you see each qubit is connected to a cluster of other qubits. 369 00:30:20,630 --> 00:30:25,010 And then each cluster is connected to a cluster of other qubits. 370 00:30:25,770 --> 00:30:37,610 So you may be wondering, well, I've turned up here with my NP-hard, or whatever hard, fully connected problem. 371 00:30:37,850 --> 00:30:41,030 I want everything to be entangled with everything else. 372 00:30:41,290 --> 00:30:42,770 What am I going to do with that? 373 00:30:42,770 --> 00:30:51,670 Well, fortunately, there are mappings, which takes these 5,000 alleged qubits, and it reduces them to a much smaller set. 374 00:30:51,670 --> 00:31:02,170 But what happens is, you set these qubits to be basically very strongly interacting with other qubits, and you create a qubit chain, right? 375 00:31:02,170 --> 00:31:04,150 And by using these chains of qubits... 376 00:31:04,150 --> 00:31:06,870 So this is what Hewitt called a logical qubit. 377 00:31:06,870 --> 00:31:12,050 Other people call them logical qubits, like an error-corrected qubit. 378 00:31:12,050 --> 00:31:15,350 But these are not what I would call error-corrected. 379 00:31:15,350 --> 00:31:24,370 So I think the quantum computing community needs to have a sit down and discuss pedagogy and naming. 380 00:31:24,710 --> 00:31:30,890 But these qubit chains, essentially, can be all-to-all connected. 381 00:31:30,890 --> 00:31:38,030 So here you can see that qubit 4 and qubit 5 aren't connected, but we can create that in an all-to-all connected way. 382 00:31:38,170 --> 00:31:41,330 And the cost of that mapping is roughly quadratic, right? 383 00:31:41,330 --> 00:31:51,450 So if you've got 10 actual qubits in the problem that you want to solve, then when you map it into this thing, maybe you'll have 100 on that, right? 384 00:31:51,450 --> 00:31:52,670 Something like that. 385 00:31:52,930 --> 00:31:55,850 So there's a cost to it, but it's doable. 386 00:31:56,150 --> 00:32:03,370 And the actual D-Wave SDK has a mapping so that you don't need to worry about that. 387 00:32:06,020 --> 00:32:11,520 And so Ryder is going to send us through Lattices, which is really exciting. 388 00:32:11,520 --> 00:32:14,240 Ryder, you're slightly behind time. 389 00:32:14,540 --> 00:32:17,240 So, enthusiasm. 390 00:32:18,340 --> 00:32:20,100 Not too much work. 391 00:32:23,240 --> 00:32:28,100 Okay, so just quickly, why are we bothering with any of this in the first place? 392 00:32:28,100 --> 00:32:36,100 Classical cryptography mainly relies on integer factorization, or something like it, which is broken by Shor's algorithm. 393 00:32:36,100 --> 00:32:38,500 You've probably heard of Shor's algorithm before. 394 00:32:38,500 --> 00:32:44,560 It basically uses quantum Fourier transforms to do some crazy stuff. 395 00:32:44,920 --> 00:32:50,100 And it basically reduces most integer factorization, etc. 396 00:32:50,100 --> 00:32:57,540 problems from super polynomials to faster than polynomials, down a lot. 397 00:32:58,580 --> 00:33:05,040 It's not super important to what we're doing, but I'll just mention this is why we want to bother with any of this in the first place. 398 00:33:05,040 --> 00:33:14,540 So instead, Lattices, they offer new hard problems, like the closest to Shor's vector problems, which we'll talk about later on, to base cryptosystems on. 399 00:33:15,520 --> 00:33:17,020 And then what is a Lattice? 400 00:33:17,020 --> 00:33:24,440 A Lattice is just a repeating pattern of points in n-dimensional space defined by n linearly independent basis vectors. 401 00:33:25,320 --> 00:33:28,780 So this is an example of a Lattice, this picture right here. 402 00:33:29,500 --> 00:33:35,380 So we have a basis, like a regular vector space. 403 00:33:35,420 --> 00:33:47,720 So we can call these b1's at the end, and then instead of the vector space being any linear combination of those basis vectors, we instead just take the integer linear combinations of those basis vectors. 404 00:33:47,720 --> 00:33:50,320 And that's how we get this repeating pattern right here. 405 00:33:50,540 --> 00:33:55,740 And so we can define a Lattice vector as v equals x times v. 406 00:33:56,460 --> 00:34:00,200 And all Lattices, just like other vector spaces, have many bases. 407 00:34:00,500 --> 00:34:02,000 And so this is the key right here. 408 00:34:02,000 --> 00:34:03,580 These many different bases. 409 00:34:04,220 --> 00:34:07,800 We want short bases, we do not want long bases. 410 00:34:07,800 --> 00:34:09,640 And we'll talk about why later on. 411 00:34:11,400 --> 00:34:13,640 So, shortest vector problem. 412 00:34:14,360 --> 00:34:15,640 Shortest vector problem. 413 00:34:15,960 --> 00:34:18,180 Find the shortest vector in a Lattice. 414 00:34:18,180 --> 00:34:23,000 If we're given a basis that is the shortest vector, then that's very easy, it's right there. 415 00:34:23,000 --> 00:34:31,720 But if we're given a basis that is made up of multiple very long vectors, then the shortest vector might be some linear combination of those two very long vectors. 416 00:34:32,580 --> 00:34:37,100 And the closest vector problem is sort of the same as the shortest vector problem. 417 00:34:37,100 --> 00:34:48,580 The closest vector problem is just given some point in Rn, so not on the Lattice, but just somewhere in the real vector space, find the closest Lattice point to it. 418 00:34:48,580 --> 00:34:59,460 So we can see right here that blue star right there might be that point that we're given, and then the green circle is maybe the error that we're willing to accept. 419 00:34:59,680 --> 00:35:03,640 So the red dot in the second photo is the closest vector. 420 00:35:03,640 --> 00:35:06,220 That's the ideal, that's the best solution. 421 00:35:06,300 --> 00:35:11,580 But the green points inside that circle are vectors that are maybe close enough. 422 00:35:11,720 --> 00:35:13,520 Yeah, polynomially close enough. 423 00:35:13,520 --> 00:35:22,100 So as David was saying about how adiabatic quantum computing is good for getting maybe very close to the right solution, this is the same thing. 424 00:35:22,100 --> 00:35:23,540 We're getting close to the right solution. 425 00:35:23,540 --> 00:35:26,940 Maybe we're not actually getting the right solution, but it's good enough. 426 00:35:29,000 --> 00:35:32,080 So learning with errors, this is what LWB stands for. 427 00:35:32,080 --> 00:35:41,740 Learning with errors is the next step up from the shortest vector, closest vector problem, to building a full cryptosystem based on Lattices. 428 00:35:41,740 --> 00:35:47,260 So the idea is that we are hiding a secret with some noise, some error, E. 429 00:35:47,380 --> 00:35:52,740 The equation for that would just be like A times the secret plus the error is some B. 430 00:35:52,740 --> 00:35:57,780 And then we can use A and B as public keys, and then S as the secret key. 431 00:35:58,980 --> 00:36:02,600 And so there's two different versions of the learning with errors problem. 432 00:36:02,600 --> 00:36:10,080 There's the search version, which is we want to actually find S given A and B. 433 00:36:10,080 --> 00:36:15,020 There's the decision problem, which is distinguishing from the output. 434 00:36:15,460 --> 00:36:21,100 Distinguishing from A and then distinguishing just from some random something. 435 00:36:22,760 --> 00:36:27,540 And solving learning with errors is a special case of the closest vector problem. 436 00:36:27,540 --> 00:36:34,780 And the reason for that is we can see in this diagram right here, this sort of looks like a two-dimensional normal distribution. 437 00:36:35,840 --> 00:36:54,900 The idea is that if we take some distribution on the error, and we apply that to the A S plus E equation, then we'll end up like if the closest vector is that thing in the middle at the peak of the distribution, then we'll get a bunch of vectors around that when we sample the error. 438 00:36:55,860 --> 00:37:02,140 And so that's the sort of green circle on the previous slide. 439 00:37:02,140 --> 00:37:13,060 So that blue would be like near the middle of that distribution, and then that green circle is that sort of circle in this gaussian line here. 440 00:37:15,460 --> 00:37:16,840 And then here... 441 00:37:18,100 --> 00:37:28,000 Yeah, and so learning with errors is the basis of two of the post-quantum cryptosystems that NIST and NASA are standardizing. 442 00:37:28,000 --> 00:37:29,760 There are four that they're standardizing. 443 00:37:29,760 --> 00:37:32,660 One is Sphinx, it's on my T-shirt. 444 00:37:32,820 --> 00:37:35,640 Somebody designed a lovely T-shirt after last year's talk. 445 00:37:37,040 --> 00:37:39,940 And then there are two based on learning with errors. 446 00:37:39,940 --> 00:37:53,680 But basically, many, many of the latter schemes are based on this learning with errors problem, which is essentially, if we could include a slide where we show you how you encrypt a bit using this learning with errors thing, we don't have time for that. 447 00:37:54,060 --> 00:37:58,800 But essentially, as Ryder just explained, it is the closest vector problem. 448 00:37:58,800 --> 00:38:12,880 So if you can find close vectors, then please write a letter to NIST and explain all of your workings, and they'll remove these post-quantum systems from the running. 449 00:38:14,200 --> 00:38:17,520 There's not much danger of that, unless you've already written to someone. 450 00:38:21,180 --> 00:38:23,840 So annealing and encoding in the Ising model. 451 00:38:23,840 --> 00:38:25,840 Right, so we've done lattices, right? 452 00:38:25,840 --> 00:38:26,720 It's super simple. 453 00:38:26,720 --> 00:38:34,440 And if anybody was looking at those diagrams thinking, dude, come on, that looked like super easy to find those short vectors. 454 00:38:34,440 --> 00:38:37,000 That's because that was in two dimensions, right? 455 00:38:37,280 --> 00:38:42,340 That is not a cryptographic level of hardness. 456 00:38:43,040 --> 00:38:47,640 Usually these are done in sort of high hundreds or low thousands of dimensions. 457 00:38:47,780 --> 00:38:51,000 If you haven't structured it, it's a little bit different again. 458 00:38:51,000 --> 00:38:53,740 But in two dimensions, you can visualize what the problem is. 459 00:38:53,740 --> 00:38:54,940 It's very geometric. 460 00:38:54,940 --> 00:38:56,080 It's very simple. 461 00:38:56,080 --> 00:39:14,520 And now we need to work out how we take that, and we put it into this diagram of, you know, it starts with a marble, we move it to a rock, and we end up in some kind of no-energy state, which corresponds to a vector, which is in that little circle that Ryder just explained. 462 00:39:14,520 --> 00:39:16,220 So , okay. 463 00:39:17,540 --> 00:39:19,780 We're still rattling through. 464 00:39:20,200 --> 00:39:24,380 Okay, so quickly talking about what the Ising model is. 465 00:39:25,140 --> 00:39:29,820 Originally, it was for modeling aero-magnetism in materials. 466 00:39:30,920 --> 00:39:33,680 That's not at all what we're using it for here. 467 00:39:34,280 --> 00:39:47,600 So, in this case, in this equation here, sorry, another boring equation, but in this equation here, the J's are the interaction terms between qubits, which is the part that's introducing the entanglement. 468 00:39:48,020 --> 00:39:49,580 The S's are the spins. 469 00:39:49,580 --> 00:39:54,360 And then the H is just the on-site energy term for that particular move. 470 00:39:54,360 --> 00:39:55,580 That particular qubit. 471 00:39:56,200 --> 00:39:59,460 And we are encoding the shortest-vector problem. 472 00:39:59,460 --> 00:40:05,040 So in our example, we're going to be encoding the shortest-vector problem into the Ising model as Qubo. 473 00:40:05,040 --> 00:40:09,980 Again, it's not super important what Qubo means, it's just a type of optimization problem or expectation. 474 00:40:13,680 --> 00:40:18,420 And so when we talk about encoding, we need to talk about the Hamiltonians, right? 475 00:40:18,420 --> 00:40:20,560 What are our choices of Hamiltonian going to be? 476 00:40:20,560 --> 00:40:28,340 So the initial Hamiltonian is just going to be induced by Pauli-X operators, which are the bit-flip operators, if you remember. 477 00:40:28,340 --> 00:40:30,600 So those are just denoted by the sigmas here. 478 00:40:31,120 --> 00:40:36,560 And this relaxes the system to begin with, and is responsible for the exploration part. 479 00:40:37,140 --> 00:40:40,440 And this acts perpendicular to the Z-basis problem Hamiltonian. 480 00:40:40,440 --> 00:40:43,800 Not super important what that means, but yeah. 481 00:40:50,160 --> 00:40:56,640 So what you see here is a representation of a vector's length. 482 00:40:56,860 --> 00:41:09,040 Because when we have a basis, and we're told, find a combination of these basis vectors, that will give you a series of long chopsticks in n-dimensional space. 483 00:41:09,040 --> 00:41:12,000 We need to combine the chopsticks to find a short vector. 484 00:41:12,420 --> 00:41:15,880 And how long is the vector that we're going to end up with? 485 00:41:16,400 --> 00:41:21,660 So these xi's are the combinations, right? 486 00:41:21,660 --> 00:41:30,300 So we'll have five of that first basis vector, please, and minus three of the second one, and you pick your combination. 487 00:41:30,540 --> 00:41:36,240 And at the end, we end up with a vector length, which is the length of V. 488 00:41:36,700 --> 00:41:42,380 Now we can actually write the square of that vector length like this, right? 489 00:41:42,380 --> 00:41:47,520 This is basically just saying V equals X dot V, right? 490 00:41:47,820 --> 00:41:51,380 You take the two norm of that and square it, right? 491 00:41:51,380 --> 00:41:54,840 So this is just Pythagoras. 492 00:41:55,320 --> 00:41:57,880 It's really nothing more than Pythagoras. 493 00:41:58,280 --> 00:42:04,600 And if you write that out, and you expand all the terms, it's just this. 494 00:42:05,160 --> 00:42:10,840 Now, what does this look like when we turn this into our Ising model? 495 00:42:10,840 --> 00:42:12,620 This is key. 496 00:42:18,380 --> 00:42:25,740 So essentially, we can think of this as this X as being the output of our qunit, right? 497 00:42:25,740 --> 00:42:29,420 So we're going to put in the basis, that's the input, right? 498 00:42:29,420 --> 00:42:31,020 That describes our lattice. 499 00:42:31,020 --> 00:42:38,620 And what we want to read off of the quantum algorithm, we want to read off, like, okay, what is the combination of the basis vectors? 500 00:42:38,620 --> 00:42:41,260 So what is this vector X? 501 00:42:41,260 --> 00:42:47,720 So we get given V, we want to work out what X gives us short V, right? 502 00:42:47,720 --> 00:42:50,120 And so these X are what we want to output. 503 00:42:52,100 --> 00:42:56,240 And what that looks like is, okay, let's say that we've got a grid of qunits. 504 00:42:57,880 --> 00:43:04,920 This grid over here, as I was saying, you can construct your qunits any way that you want. 505 00:43:05,640 --> 00:43:11,000 If we do the Hamming version, where we just sum them up, then maybe this would be like 3, right? 506 00:43:11,040 --> 00:43:15,320 If we do the binary version, then 1101 is 13, right? 507 00:43:15,320 --> 00:43:20,960 So it's up to you how you construct your qunits, and there are reasons why you might think one way. 508 00:43:20,960 --> 00:43:24,500 But essentially, this is your X, right? 509 00:43:24,500 --> 00:43:27,160 So X1 times P1, right? 510 00:43:27,180 --> 00:43:34,620 So we'll have 13 of basis vectors 1, we'll have 5 of basis vectors 2, and so on and so forth. 511 00:43:34,620 --> 00:43:38,340 And so this is what this looks like classically. 512 00:43:39,960 --> 00:43:48,980 Now, we just need to take these Xi's and turn them into qunit operators. 513 00:43:48,980 --> 00:43:49,820 That's all you do. 514 00:43:49,820 --> 00:43:50,760 Super simple. 515 00:43:52,200 --> 00:43:53,240 Voila. 516 00:43:53,640 --> 00:43:56,920 And also, the Bi dot Bj, right? 517 00:43:56,920 --> 00:44:01,700 Again, this is just like, take a basis vector, dot product it with the other basis vector. 518 00:44:01,700 --> 00:44:06,040 And what this is, is basically, you take the whole basis as a matrix. 519 00:44:06,120 --> 00:44:09,380 You line up the basis vectors in its matrix. 520 00:44:10,000 --> 00:44:15,880 You multiply it with its transpose, and it gives you another matrix called the Gram matrix, right? 521 00:44:15,920 --> 00:44:20,660 It's basically like a matrix of overlaps, right? 522 00:44:20,660 --> 00:44:26,420 It's super simple, it's just you take the basis, matrix multiply it with its transpose, and you get this. 523 00:44:26,420 --> 00:44:33,780 So basically, you've got a qubit operator times another qubit operator with this Gram coefficient. 524 00:44:33,920 --> 00:44:37,740 And that is our problem Hamiltonian, right? 525 00:44:38,480 --> 00:44:47,240 So, as Ryder just explained, the initial Hamiltonian we might use is Pauli X operators on everything, right? 526 00:44:47,240 --> 00:44:49,880 We call this a relaxing Hamiltonian. 527 00:44:49,880 --> 00:44:51,640 I quite like that term. 528 00:44:51,640 --> 00:44:56,740 Because basically, it relaxes the system and explores the space. 529 00:44:56,980 --> 00:45:00,500 This Hamiltonian localizes the wave function. 530 00:45:01,900 --> 00:45:09,960 So, if you go on to fit things like the QAOA algorithm, which is where you apply them one, then the other, then one, then the other. 531 00:45:09,960 --> 00:45:12,900 It's kind of like, you relax the system a bit, you localize it a bit. 532 00:45:12,900 --> 00:45:15,980 You relax the system a bit, you localize it a bit. 533 00:45:18,160 --> 00:45:20,480 And again, we can talk about that later. 534 00:45:20,520 --> 00:45:24,280 QAOA is another thing where we don't know whether it's going to be fantastic or not. 535 00:45:24,280 --> 00:45:27,020 But there's some great ways to have that too. 536 00:45:28,740 --> 00:45:35,160 So, what we're going to do now is build the DIY quantum matrix. 537 00:45:35,160 --> 00:45:41,780 So, if you're interested in this part, we have some notebooks. 538 00:45:41,780 --> 00:45:43,260 I've shortened the URLs. 539 00:45:43,260 --> 00:45:48,280 If people would feel more comfortable to see me open these short URLs, I will do it. 540 00:45:48,780 --> 00:45:50,880 But I promise you they're the same. 541 00:45:52,980 --> 00:45:54,640 And let me know if they don't work. 542 00:45:54,640 --> 00:46:03,100 So, you need a D-Wave count, which will give you basically an API key, which will be useful if you want to actually see what you're getting back from D-Wave. 543 00:46:04,020 --> 00:46:06,520 This is the fill-in-the-blanks polar. 544 00:46:06,800 --> 00:46:10,460 And this is going to be the answers, right? 545 00:46:10,460 --> 00:46:14,940 So, we're basically going to build this Hamiltonian that we just described. 546 00:46:15,380 --> 00:46:17,100 Then we're going to go through. 547 00:46:17,100 --> 00:46:24,440 We're going to see what the bit strings we get back from D-Wave are. 548 00:46:24,520 --> 00:46:26,380 And then we're going to post-process it. 549 00:46:26,380 --> 00:46:30,260 And then we're going to understand exactly what these bit strings actually mean, right? 550 00:46:30,300 --> 00:46:32,200 So, we get a bit string. 551 00:46:32,700 --> 00:46:36,820 Okay, first of all, we're going to turn that into the QDIS, right? 552 00:46:37,500 --> 00:46:41,920 Which, remember, the Hamming version, we basically just sum them up and divide by two. 553 00:46:41,920 --> 00:46:44,540 So, that's what the X vector is. 554 00:46:44,980 --> 00:46:55,980 And then we're going to check that the eigenenergies that D-Wave gave us correspond to taking that vector, the X vector, and multiplying it with the basis. 555 00:46:56,280 --> 00:47:00,760 And then we can basically see what kind of eigenenergies we get. 556 00:47:00,760 --> 00:47:04,380 And then you can play around with the parameters in D-Wave and basically figure out. 557 00:47:06,040 --> 00:47:11,780 Yeah, I mean, you know, try putting in a really long coherence time. 558 00:47:11,780 --> 00:47:14,060 See if it makes your algorithm work much better. 559 00:47:16,160 --> 00:47:18,660 In pink, it doesn't. 560 00:47:18,680 --> 00:47:23,660 Because there's a lot more engineering to be done on that side of things. 561 00:47:23,660 --> 00:47:26,760 But the 5000Q is much better than the 2000Q in my experience. 562 00:47:28,060 --> 00:47:38,240 And if you have not bought your laptop, or you don't want to do that, then I'd like to invite people to ask some questions or try a bit of interactive discussion. 563 00:47:39,500 --> 00:47:47,900 And then people who do want to try this, just kind of crack on with it and put your hands up and we'll come over and explain. 564 00:47:50,720 --> 00:47:56,660 Just keep in mind, when you have your D-Wave leap account, you have a limited amount of time on the processor. 565 00:47:56,660 --> 00:48:00,540 So don't try a crazy coherence time or something like that. 566 00:48:00,540 --> 00:48:02,020 Just be mindful of that. 567 00:48:02,020 --> 00:48:05,960 And you can check the amount of time you have left on the website. 568 00:48:06,300 --> 00:48:14,780 But just running through the notebook once with all the right answers, I think usually only uses about 0.15% of the computing time. 569 00:48:15,060 --> 00:48:17,160 So you don't have to worry about it too much. 570 00:48:17,160 --> 00:48:18,160 Just keep it in mind. 571 00:48:18,900 --> 00:48:28,880 And also, because we've got the answers here, if you are lazy and not good at maths, then you can also just run through it and just play around with the D-Wave stuff anyway. 572 00:48:28,880 --> 00:48:34,740 And don't bother with the Pythagoras stuff and the linear algebra. 573 00:48:34,740 --> 00:48:49,520 And then what I'm going to do is, in sort of about half an hour, if people are interested, we can talk about other approaches, some adjacent topics, which kind of you can take different directions in. 574 00:48:49,520 --> 00:48:55,560 So we'll revisit the slides, but yeah, let's go with that. 575 00:48:55,560 --> 00:48:59,700 Put your hands up, ask questions, get stuck in. 576 00:49:04,420 --> 00:49:07,640 What exactly is D-Energy? 577 00:49:08,940 --> 00:49:10,660 Let's go back. 578 00:49:17,960 --> 00:49:22,880 So a Q-Dit would look like... 579 00:49:24,120 --> 00:49:30,440 Picture a Q-Dit which has values between 0 and 15. 580 00:49:30,440 --> 00:49:35,480 So this would be 4 qubits, which are constructed. 581 00:49:35,520 --> 00:49:40,360 And let's say that their eigenenergies are the extra value, right? 582 00:49:40,360 --> 00:49:44,800 So 0 has eigenenergy 0, 1 has eigenenergy 1, etc. 583 00:49:46,380 --> 00:50:04,100 Basically, that would be a problem Hamiltonian on a 4-qubit system, which would basically say 0, 0, 0, 0 gives this energy level, and 0, 1, 0, 0, 0, 1 gives this energy level, and so on and so forth. 584 00:50:04,100 --> 00:50:10,060 So basically, it's just an ordering of energies based on the readout. 585 00:50:10,620 --> 00:50:19,220 And there are physical systems which can be natively D-Energy level, right? 586 00:50:19,260 --> 00:50:20,940 That's pretty interesting. 587 00:50:20,940 --> 00:50:28,980 But for most of the quantum computing systems that we look at today, we construct them out of two-level systems. 588 00:50:28,980 --> 00:50:38,800 So if you want to make your own Q-Dits, you've got to basically define some math in yourself. 589 00:50:41,120 --> 00:50:43,340 I'll go to the gentleman at the back first. 590 00:50:43,340 --> 00:50:53,680 Now that you're in that slide, you're talking about complexities, depends on the weight, the size of the weight that you have right there. 591 00:50:53,920 --> 00:50:58,200 When you mentioned in the next slide, you said polynomial lower bound? 592 00:50:58,720 --> 00:51:00,480 Or does that mean the next one? 593 00:51:00,480 --> 00:51:03,500 Yeah, you said there's polynomials that you could have solved. 594 00:51:03,500 --> 00:51:04,880 That's a complexity, right? 595 00:51:04,880 --> 00:51:05,860 Lower bound. 596 00:51:05,860 --> 00:51:07,800 What would be the upper bound of that? 597 00:51:07,800 --> 00:51:09,040 Depends on the weight. 598 00:51:09,260 --> 00:51:10,480 Okay, interesting. 599 00:51:10,480 --> 00:51:17,280 So first of all, people doing the collabs. 600 00:51:17,720 --> 00:51:19,920 Sorry, does that change the slides? 601 00:51:19,920 --> 00:51:23,660 Does everybody who wants to take a look at the collabs have the links? 602 00:51:24,760 --> 00:51:26,360 Okay, good stuff. 603 00:51:39,280 --> 00:51:39,800 So... 604 00:51:41,440 --> 00:51:43,880 Thank you for mentioning that. 605 00:51:43,880 --> 00:51:45,740 Did everybody hear that? 606 00:51:46,000 --> 00:51:47,160 Say it again. 607 00:51:47,300 --> 00:51:49,580 I pointed out on the slide. 608 00:51:49,580 --> 00:51:50,280 Yeah. 609 00:51:50,360 --> 00:51:58,820 Lowercase L at the beginning and capital I at the end. 610 00:51:58,820 --> 00:52:00,600 How did you not see that? 611 00:52:01,120 --> 00:52:03,760 It's clearly obvious to everyone. 612 00:52:03,760 --> 00:52:05,580 To everyone with computer vision. 613 00:52:05,740 --> 00:52:07,380 The AI is way ahead. 614 00:52:07,380 --> 00:52:10,880 Sorry, I was gatekeeping the collabs there. 615 00:52:10,880 --> 00:52:15,040 For anyone with initiative to take part in this exercise. 616 00:52:18,660 --> 00:52:20,980 Thank you for that. 617 00:52:21,100 --> 00:52:21,740 So... 618 00:52:23,740 --> 00:52:26,980 What I mean here is... 619 00:52:26,980 --> 00:52:36,880 When I say polynomial equivalent, I mean you could take Shor's algorithm and you could map it into an adiabatic quantum computer. 620 00:52:37,180 --> 00:52:39,840 I don't know why you would, but you could. 621 00:52:40,420 --> 00:52:49,600 And what it means is that however long it's going to take you to factor that integer, it's only going to take you polynomially longer or shorter. 622 00:52:49,860 --> 00:52:53,060 But basically roughly the same time to a mathematician. 623 00:52:53,280 --> 00:52:58,020 Not to you or I, but to a mathematician, it's going to take roughly the same time. 624 00:52:58,240 --> 00:53:02,840 And the reason it's going to take roughly the same time is because... 625 00:53:02,840 --> 00:53:11,640 This gap is going to be roughly the same as whatever that would be in the game model. 626 00:53:12,820 --> 00:53:17,000 It's polynomially longer or polynomially shorter. 627 00:53:17,560 --> 00:53:23,180 But we only really care when stuff gets exponentially longer or shorter. 628 00:53:25,000 --> 00:53:26,000 Yeah, you in the back. 629 00:53:26,000 --> 00:53:32,700 Could you describe again the connection between the tunneling and the continuous time annealing? 630 00:53:32,700 --> 00:53:43,300 Is the idea that with the annealing and continuous time, the bulb stays at that focus point and it evolves like that? 631 00:53:43,560 --> 00:53:44,200 Yeah. 632 00:53:44,200 --> 00:53:52,240 It stays lowest and then if you just look at it from the tunneling perspective, it's like it moves from one to the other through the higher energy state. 633 00:53:53,040 --> 00:53:59,780 That's a very good question because now that I think about it, it's a little while ago that I did this work. 634 00:53:59,780 --> 00:54:01,440 It's actually slightly fuzzy to me. 635 00:54:01,440 --> 00:54:06,020 If anybody feels authoritatively that they have a better answer, then step in. 636 00:54:06,020 --> 00:54:12,860 But the way that I would think about it is that in the AQC version, you start off with the marble on the flat table top. 637 00:54:12,860 --> 00:54:24,380 And you don't really need to tunnel through anything because it always remains at the instantaneous lowest level. 638 00:54:25,140 --> 00:54:29,500 That may be incorrect, but that's what I think the answer is. 639 00:54:29,500 --> 00:54:45,940 However, for example, if you do the quantum approximate optimization algorithm where you localize the Hamiltonian a bit and then you relax it a bit and then you localize it a bit and then you relax it a bit, every time you apply the relaxation operator, 640 00:54:45,940 --> 00:54:50,920 you're inducing some level of quantum tunneling between the states. 641 00:54:50,920 --> 00:54:58,500 And every time you apply the localization operator, you're basically making the wave function go a little bit more smoothly. 642 00:54:58,500 --> 00:55:03,800 And those are two different ways of viewing that transformation of that Hamiltonian. 643 00:55:05,300 --> 00:55:07,140 I hope so. 644 00:55:07,260 --> 00:55:15,260 This is something where somebody who is much better at the quantum mechanics side of things would come in very handy. 645 00:55:15,800 --> 00:55:17,960 I do not claim to be that person. 646 00:55:17,960 --> 00:55:19,360 Maybe I'm not as well. 647 00:55:20,800 --> 00:55:22,920 We'll go to that gentleman at the back. 648 00:55:24,700 --> 00:55:25,680 Sorry? 649 00:55:27,580 --> 00:55:30,580 Oh, yes, we have an answer. 650 00:55:54,870 --> 00:56:01,110 There is a low probability of being very poorly defined based on the Hamiltonian. 651 00:56:01,110 --> 00:56:01,750 Why that would 652 00:56:06,480 --> 00:56:06,920 be ? 653 00:56:06,940 --> 00:56:11,580 You'll say, it would be that there would be a factor in the Hamiltonian. 654 00:56:12,700 --> 00:56:17,970 So if we had given it a 20 factor, it would be like a 5. 655 00:56:17,970 --> 00:56:21,050 It would be very easy to say, just look at the table first. 656 00:56:21,690 --> 00:56:28,510 And then when you close the plane of the Hamiltonian by the way that that occurs, it's going to stay at that lowest point. 657 00:56:29,250 --> 00:56:36,470 And then so then, once you move on from there, if you go too quickly, then it's like the ball doesn't stay at that lowest point. 658 00:56:36,470 --> 00:56:38,850 It's like it might move off a little bit somewhere else. 659 00:56:38,930 --> 00:56:43,710 And then when it evolves, when the Hamiltonian evolves, maybe it's not still at those points. 660 00:56:43,710 --> 00:56:45,530 It's somewhere down there. 661 00:56:58,310 --> 00:57:04,970 So, for the recording, the gentleman who claimed to be an expert in quantum mechanics said that I was close enough to write. 662 00:57:07,290 --> 00:57:12,990 And then there was a small amount of discussion beyond that. 663 00:57:15,470 --> 00:57:17,290 Any other questions? 664 00:57:20,590 --> 00:57:22,630 How do you do the relaxation? 665 00:57:22,630 --> 00:57:24,530 Oh, good question. 666 00:57:25,010 --> 00:57:28,950 So, let's go back to these Charlie operations. 667 00:57:33,950 --> 00:57:39,890 So, basically, if you go to Qubit and you apply... 668 00:57:39,890 --> 00:57:43,370 So, what we do is... 669 00:57:43,370 --> 00:57:56,550 The problem Hamiltonian, we generally, in the transverse Ising network, the transverse is what we mean by like we have a transverse field, is the problem Hamiltonian is induced by basically a load of Zs. 670 00:57:56,550 --> 00:57:59,870 And anybody who's going through the Colabs right now will notice that. 671 00:57:59,870 --> 00:58:03,990 The Hamiltonian is all implemented in terms of Zs. 672 00:58:04,930 --> 00:58:09,950 When Ryder showed us how we constructed the Qubits, we constructed them out of Z-gates. 673 00:58:10,650 --> 00:58:14,890 And that basically gives us a nice one minus one reading off. 674 00:58:15,910 --> 00:58:20,010 This BitLip operator is basically like saying... 675 00:58:20,530 --> 00:58:23,330 I guess one way to think of it is, yeah, it's BitLip. 676 00:58:23,330 --> 00:58:27,390 It's kind of saying like, OK, wherever you think you are, we're just going to mix things up. 677 00:58:27,390 --> 00:58:29,010 We'll explore a little bit more. 678 00:58:29,030 --> 00:58:30,590 We'll relax. 679 00:58:30,590 --> 00:58:32,510 We might not have the right answer yet. 680 00:58:33,410 --> 00:58:37,170 And the way you can think of this is, you've got your... 681 00:58:37,170 --> 00:58:41,550 Well, the way I think of it is that you've got your problem Hamiltonian do its thing. 682 00:58:41,550 --> 00:58:46,690 And then you have this relaxing field, which kind of comes perpendicular. 683 00:58:49,010 --> 00:58:51,470 And I don't know why that wouldn't make sense. 684 00:58:51,470 --> 00:58:53,090 I always found that helped me. 685 00:58:54,190 --> 00:59:01,470 Something's happening in this plane, and then you just kind of have some relaxing field coming from up above. 686 00:59:01,470 --> 00:59:06,330 It kind of smooths everything else a little bit, and then it carries on like that. 687 00:59:08,810 --> 00:59:18,350 You look perplexed, but I mean, we all find coping strategies for getting through long periods of work in problem-solving or coping mechanics. 688 00:59:18,350 --> 00:59:22,450 And yeah, it's a notoriously counterintuitive subject. 689 00:59:22,450 --> 00:59:24,530 Don't worry too much about that. 690 00:59:24,530 --> 00:59:29,530 Just follow the collab, and yeah, I promise it. 691 00:59:29,670 --> 00:59:30,750 It works. 692 00:59:32,690 --> 00:59:43,250 Did you, in the slide that you had that was describing the mapping onto the... 693 00:59:43,250 --> 00:59:45,310 The binary one? 694 00:59:45,310 --> 00:59:48,530 Yeah, when you showed the matrix of the Bs. 695 00:59:48,530 --> 00:59:50,430 The matrix of the Bs. 696 00:59:50,430 --> 00:59:52,090 And you said that... 697 00:59:52,090 --> 00:59:52,990 Same way. 698 00:59:52,990 --> 00:59:56,990 I'm going the wrong way. 699 00:59:56,990 --> 00:59:57,910 I think you're right. 700 01:00:02,310 --> 01:00:03,550 Oh, no, sorry. 701 01:00:03,550 --> 01:00:05,630 Are you talking about the one with the diagram of qubits? 702 01:00:06,230 --> 01:00:08,090 Oh, the diagram of qubits, okay. 703 01:00:08,090 --> 01:00:09,170 Yeah, qubits, yeah. 704 01:00:09,170 --> 01:00:14,670 When you said the right form for the Xs is... 705 01:00:16,050 --> 01:00:16,530 Yes. 706 01:00:16,530 --> 01:00:19,890 The output of the qubit function over the Bs. 707 01:00:19,890 --> 01:00:21,910 Got it. 708 01:00:21,970 --> 01:00:23,610 Or the next slide. 709 01:00:28,750 --> 01:00:31,510 Why is that the right form for the Xs? 710 01:00:32,470 --> 01:00:35,150 Why is this the right form for the Xs? 711 01:00:35,270 --> 01:00:40,010 Yeah, you mentioned it's either one of two different encodings. 712 01:00:40,110 --> 01:00:45,770 Right, okay, so why would you choose the Hamming version or the binary version? 713 01:00:45,770 --> 01:00:48,910 Yeah, why is either one the right form for the Xs? 714 01:00:48,910 --> 01:00:52,910 Okay, so you can basically... 715 01:00:52,910 --> 01:00:57,650 This is like a bring-your-own-qubit-mapping kind of thing. 716 01:01:00,290 --> 01:01:05,130 There's the one-hot encoding, which is super inefficient. 717 01:01:05,750 --> 01:01:12,590 There is this binary thing, which is where each individual configuration corresponds to a different energy level. 718 01:01:12,590 --> 01:01:15,150 So it corresponds to a different eigenstate. 719 01:01:15,750 --> 01:01:22,210 And the reason that you might like this is because people talk about us not having very many qubits. 720 01:01:22,210 --> 01:01:25,870 So maybe you think, oh, well, we want to be super efficient with the qubits that we've got. 721 01:01:25,870 --> 01:01:35,910 We want one configuration to correspond to one eigenstate. 722 01:01:36,930 --> 01:01:49,170 The reason that when I initially did this work, I submitted this to the 2000 queue, which was much worse than the 5000 queue, and what I got back was essentially garbage. 723 01:01:49,330 --> 01:01:52,910 And I was on the verge of giving up on this work. 724 01:01:53,150 --> 01:02:01,830 And then my collaborator says, hey, man, why don't we just try adding them all up? 725 01:02:01,830 --> 01:02:10,030 Or just do this really dumb thing where we just add up all the qubits and we pull out a qubit. 726 01:02:10,030 --> 01:02:14,230 And I did that, and all of a sudden, the result was much better. 727 01:02:14,530 --> 01:02:17,290 Now, this is why. 728 01:02:17,290 --> 01:02:21,490 So it requires many more qubits, but it's more robust. 729 01:02:21,490 --> 01:02:26,150 And the reason why is because when you have this... 730 01:02:34,980 --> 01:02:46,920 So when you've got this 2 to the plus 1 term, basically you're saying that the most significant qubit in your qubit is going to have a much stronger interaction with every other qubit, right? 731 01:02:47,420 --> 01:02:53,560 And the least significant qubit, when we tackle it, is going to have a much lower interaction. 732 01:02:54,640 --> 01:03:00,560 Now, the way the D-Wave Complementator works is that you have to squeeze all of your... 733 01:03:01,120 --> 01:03:04,940 you give a certain energy budget for how strongly everything can interact. 734 01:03:04,940 --> 01:03:08,700 So basically they say, scale everything down to between 0 and 1, right? 735 01:03:08,700 --> 01:03:16,020 So you can have your qubit 1 interact with qubit 2 with strings, qubit 1 with 5, whatever. 736 01:03:16,560 --> 01:03:28,840 But if you've got a D-level energy system, then basically you've got to scale down from 0 to 15, down to between 0 and 1, so you've got 16 things. 737 01:03:29,380 --> 01:03:32,740 But at the bottom, everything is like... 738 01:03:32,740 --> 01:03:40,200 the bottom half of that spectrum is occupied by putting up stuff like all but the top row of qubits. 739 01:03:42,620 --> 01:03:46,500 So any 0 just massively screws everything up. 740 01:03:46,500 --> 01:03:51,200 Whereas with the Hamming encoded ones, everything has the same strength. 741 01:03:51,200 --> 01:03:52,340 It's very egalitarian. 742 01:03:52,340 --> 01:03:56,000 Every qubit interacts with every other qubit with the same strength. 743 01:03:56,000 --> 01:04:01,680 And then it's kind of moderated by the gram coefficients. 744 01:04:02,640 --> 01:04:13,280 But basically what it means is that the lowest energy qubits, the least significant qubits, get subsumed by noise. 745 01:04:13,280 --> 01:04:24,320 And the reason this is a big problem with SDP is because when I showed you that equation, which is like b squared equals x of b, it's super unstable. 746 01:04:24,320 --> 01:04:39,840 And what that means is that if x changes by a single bit, so a single one of those coefficients changes, then basically you're adding on another really long basis vector onto your combination, which will sort. 747 01:04:39,840 --> 01:04:54,540 So any perturbation to the solution that gives you the correct, you know, the lowest energy vector, the shortest vector, any perturbational bit there is going to give you a really long vector. 748 01:04:54,540 --> 01:04:57,140 So it's super sensitive to noise. 749 01:04:57,760 --> 01:05:01,580 And it's probably easier to see this. 750 01:05:02,580 --> 01:05:08,040 But basically this is a lot less efficient because it uses more qubits. 751 01:05:08,040 --> 01:05:11,240 And at least in V-Wave, you kind of have loads of qubits. 752 01:05:11,240 --> 01:05:15,000 Not very good, but, you know, it's a form of error correction, I guess. 753 01:05:15,120 --> 01:05:21,620 So nothing makes it the right qubit, qubit mapping to try. 754 01:05:21,620 --> 01:05:23,960 But basically, yeah, try it yourself. 755 01:05:23,960 --> 01:05:28,840 And then obviously with the gate model, you have, you know, error correcting codes. 756 01:05:28,840 --> 01:05:45,840 I think Google recently demonstrated, if I'm not wrong, recently demonstrated that an error-corrected qubit did better in practice than the qubits that weren't error-corrected. 757 01:05:48,290 --> 01:06:01,150 Going back to your question, if you go back to the encoding part, what you depict with that matrix, in that matrix, there were just states of energy that you just captured at one point. 758 01:06:03,050 --> 01:06:11,550 If you go back to the encoding part, because the order in which you need to represent the state, that vector, can be huge if it's a series of ones. 759 01:06:11,550 --> 01:06:11,890 Yeah. 760 01:06:11,890 --> 01:06:16,410 But all you depict is that particular capture that you captured, right? 761 01:06:16,410 --> 01:06:17,250 Yeah. 762 01:06:17,250 --> 01:06:20,550 Once you've read off what the... 763 01:06:20,550 --> 01:06:25,210 So once you've measured the states at the end, the wave function has collapsed. 764 01:06:25,290 --> 01:06:27,070 You just get a configuration. 765 01:06:27,330 --> 01:06:30,850 And that configuration just corresponds to a single vector. 766 01:06:30,850 --> 01:06:35,850 Once you have extracted, like, OK, you take all zeros and ones, you turn that into points. 767 01:06:35,850 --> 01:06:40,690 X is the matrix multiplied to get the vector. 768 01:06:40,830 --> 01:06:44,310 And then you take the Euclidean length squared. 769 01:06:44,310 --> 01:06:48,590 That just corresponds, after you've read it off, to a single vector. 770 01:06:48,750 --> 01:06:55,250 But up until that point, it's a superposition over a couple of different ones, and it's up with different probabilities. 771 01:07:00,220 --> 01:07:01,700 OK, I will go to this gentleman. 772 01:07:01,700 --> 01:07:06,760 But first, I want to ask, is anybody going through, with the CoLab, having any major issues? 773 01:07:06,760 --> 01:07:08,300 Or is anybody finding it OK? 774 01:07:12,720 --> 01:07:14,960 Yep, you can get the link to the answers one again. 775 01:07:22,670 --> 01:07:23,470 DDox5. 776 01:07:24,890 --> 01:07:27,090 And that's less ambiguous, isn't it? 777 01:07:28,210 --> 01:07:32,630 The initial Hamiltonian construction is slightly more difficult. 778 01:07:32,630 --> 01:07:35,610 The post-processing, so feel free to just copy that across. 779 01:07:35,670 --> 01:07:39,610 The post-processing bit is a little bit more broken down and a little bit more intuitive. 780 01:07:42,890 --> 01:07:43,610 Thank you, Brian. 781 01:07:43,610 --> 01:07:50,270 If you want to go around and tell me what you're finding, like, on the CoLab, just give me a hint. 782 01:07:51,110 --> 01:07:51,890 Oh, great. 783 01:07:54,190 --> 01:07:57,450 Sorry, I was going to this gentleman first, and then I'll come across to you. 784 01:07:57,530 --> 01:07:58,950 I have a question. 785 01:08:07,510 --> 01:08:08,110 Right. 786 01:08:18,110 --> 01:08:19,590 Sorry, I'm not catching your question. 787 01:08:19,590 --> 01:08:21,610 There appears to be a bit of commotion over here. 788 01:08:27,010 --> 01:08:29,110 OK, the yelling has died down. 789 01:08:29,110 --> 01:08:30,350 Can you also speak up a little bit? 790 01:09:04,700 --> 01:09:04,800 Yeah, sorry. 791 01:09:04,800 --> 01:09:05,880 I'm still not... 792 01:09:20,660 --> 01:09:35,920 OK, so in general, so if you take Shor's algorithm, that breaks, creates electric curve stuff, RSA, you can do that. 793 01:09:35,920 --> 01:09:37,280 Let's take RSA. 794 01:09:37,280 --> 01:09:43,840 So if you're asking about man-in-the-middle attacks, you would do key exchange with RSA, right? 795 01:09:43,880 --> 01:09:48,260 But how do you know that you've exchanged your keys with the right person? 796 01:09:48,440 --> 01:09:49,560 Right. 797 01:09:49,740 --> 01:09:58,680 So then, in public key cryptography, you'd always pair that with authentication, so a digital signature. 798 01:09:58,680 --> 01:10:05,760 So, for example, every time you log on to... every time you use the Internet, you'll do a TLS handshake. 799 01:10:05,760 --> 01:10:13,240 And during that handshake, you will, one, exchange your session keys, and you will, two, authenticate the server. 800 01:10:13,600 --> 01:10:17,300 And you can also do that via RSA signatures, right? 801 01:10:17,300 --> 01:10:19,400 So it's the same mechanism. 802 01:10:21,400 --> 01:10:34,140 And some families in cryptography have good signatures, but not key exchange, you should always do both to make sure that you're exchanging with who somebody says they are. 803 01:10:34,140 --> 01:10:35,720 I'm getting man-in-the-middle attacks. 804 01:10:38,140 --> 01:10:45,600 At the moment, we rely on RSA-like algorithms for signatures and key exchanges. 805 01:10:45,600 --> 01:10:46,700 So both will eventually... 806 01:10:46,700 --> 01:10:54,220 However, the interesting thing is, it's interesting if you can break the key exchange in the future, because you can read. 807 01:10:55,200 --> 01:11:04,460 But to forge somebody's personality, to forge somebody's identity, you need to have your quantum computer forging signatures in real time. 808 01:11:04,500 --> 01:11:06,540 So that's another really interesting direction. 809 01:11:06,540 --> 01:11:08,800 Correct, yeah, my question was... 810 01:11:08,800 --> 01:11:16,600 I believe, unless you're... 811 01:11:16,600 --> 01:11:22,560 I think 2048, you basically break it in 8 hours, something like that. 812 01:11:22,560 --> 01:11:31,760 So what do you know from the experiments that have been tried with non-RSA-ing to... 813 01:11:34,840 --> 01:11:44,340 Yeah, so generally, anything based on period-finding will just be vulnerable. 814 01:11:44,780 --> 01:11:47,840 And anything not based on period-finding... 815 01:11:47,840 --> 01:11:49,860 No, I'm not going to say that. 816 01:11:49,860 --> 01:11:52,100 Anything not based on period-finding. 817 01:11:52,100 --> 01:12:05,500 Anything based on, for example, these type of problems, for example, we don't yet have any decomputing quantum attacks, and we don't think we will. 818 01:12:06,120 --> 01:12:06,680 Right . 819 01:12:07,400 --> 01:12:09,960 So that's about the size of it. 820 01:12:09,960 --> 01:12:17,340 We don't know for sure that computers won't be able to break this stuff, but we think they might. 821 01:12:17,940 --> 01:12:19,700 Question. 822 01:12:20,280 --> 01:12:21,800 Oh, yes. 823 01:12:21,800 --> 01:12:22,920 I have a question. 824 01:12:22,920 --> 01:12:25,760 I have a question. 825 01:12:38,780 --> 01:12:40,980 How do you go away from... 826 01:12:40,980 --> 01:12:42,280 Now, it might be that the... 827 01:12:43,440 --> 01:12:46,340 Still, it's zero. 828 01:12:46,820 --> 01:12:51,680 So what the data director has said is that it's used 829 01:13:02,070 --> 01:13:03,350 for... 830 01:13:03,350 --> 01:13:06,770 that it's lower than the transition time to find 5. 831 01:13:06,770 --> 01:13:10,650 And basically, you'll end up with... 832 01:13:11,410 --> 01:13:17,130 you'll end up with almost completely the same results from the state that you started from. 833 01:13:17,130 --> 01:13:20,730 You can define that state and apply it to the energy state. 834 01:13:22,270 --> 01:13:33,530 What happens is you apply your compute to it, and that means that both energy states that you started with will start mutating into another energy state. 835 01:13:33,530 --> 01:13:37,650 So you're going to end up needing a more complex provision to make that work. 836 01:13:37,650 --> 01:13:40,430 Now, if I can have a person... 837 01:13:48,110 --> 01:13:50,890 And the actual... 838 01:13:50,890 --> 01:13:53,550 that we talked about... 839 01:13:53,550 --> 01:13:55,570 has to go into... 840 01:13:55,570 --> 01:14:04,470 So when you have a large, finite amount of time, we're just quite very confident that they wind up being the correct... 841 01:14:04,470 --> 01:14:07,310 And we're confident that... 842 01:14:07,950 --> 01:14:10,470 So when we run it in time... 843 01:14:11,570 --> 01:14:13,490 So the underlying quantum sort of time... 844 01:14:13,990 --> 01:14:16,050 and what we see is like mediated... 845 01:14:16,890 --> 01:14:19,390 you're in the right state in the right time. 846 01:14:19,830 --> 01:14:23,170 And as your time builds towards the order of more and more... 847 01:14:23,170 --> 01:14:25,830 you're going to disrupt the alternative computation... 848 01:14:25,830 --> 01:14:27,510 and it will be more perfect. 849 01:14:28,970 --> 01:14:31,370 So that's why you have the... 850 01:14:32,630 --> 01:14:34,770 And we're going to pause now. 851 01:14:38,450 --> 01:14:39,490 Because otherwise... 852 01:14:39,490 --> 01:14:42,890 There's only going to be the question of how much... 853 01:14:43,530 --> 01:14:44,790 We're recording. 854 01:14:44,790 --> 01:14:47,110 More subject matter experts contribution. 855 01:14:47,470 --> 01:14:50,230 And Mark Carney, sign this gentleman up for next year. 856 01:14:53,010 --> 01:14:53,530 And... 857 01:14:53,530 --> 01:15:00,010 What I will do now, unless there are any more super impressive questions, is I've got just a couple more slides on... 858 01:15:00,010 --> 01:15:02,110 directions that you can take. 859 01:15:02,610 --> 01:15:06,190 And then, you know, after that... 860 01:15:06,190 --> 01:15:08,390 I'll put the mic down and then just come around and... 861 01:15:10,450 --> 01:15:12,530 chat about how that's going. 862 01:15:12,530 --> 01:15:15,010 Has anybody had any success in running the... 863 01:15:15,790 --> 01:15:18,590 answers one full time through or got to results? 864 01:15:19,710 --> 01:15:20,510 No? 865 01:15:20,510 --> 01:15:20,950 OK. 866 01:15:20,950 --> 01:15:22,430 We'll talk about that. 867 01:15:24,130 --> 01:15:27,010 So, alternative approaches... 868 01:15:27,010 --> 01:15:28,770 You have this... 869 01:15:28,770 --> 01:15:33,010 If this is the adiabatic pathway, then you have this quantum approximate... 870 01:15:34,570 --> 01:15:36,070 optimization algorithm. 871 01:15:36,070 --> 01:15:40,330 Which is actually a way of implementing the adiabatic... 872 01:15:40,330 --> 01:15:41,590 quantum algorithm. 873 01:15:41,810 --> 01:15:45,010 But we can actually run this... 874 01:15:46,090 --> 01:15:48,990 in the game model, which is really interesting. 875 01:15:49,030 --> 01:15:51,010 Because basically, it discretizes... 876 01:15:52,010 --> 01:15:53,710 the continuous pathway. 877 01:15:53,710 --> 01:15:56,910 So if the adiabatic step is smooth, then the QAOA... 878 01:15:57,910 --> 01:16:01,050 is done in, you know, leaps and bounds. 879 01:16:02,350 --> 01:16:02,870 And... 880 01:16:02,870 --> 01:16:06,570 there's an interesting theory which says, basically, if you do this... 881 01:16:06,570 --> 01:16:09,110 in infinite number of steps... 882 01:16:09,110 --> 01:16:13,410 and an infinite number of approximations, it will exactly be the adiabatic algorithm. 883 01:16:15,130 --> 01:16:16,350 QAOA is of interest... 884 01:16:16,350 --> 01:16:19,150 because we can actually run it at super low depth. 885 01:16:19,470 --> 01:16:22,730 And some people, like Enify, have showed that for some problems... 886 01:16:22,730 --> 01:16:26,330 there can actually be some really interesting, you know, some potential quantum advantage. 887 01:16:26,470 --> 01:16:28,510 A super low depth QAOA, right? 888 01:16:28,510 --> 01:16:31,830 So literally just doing one problem Hamiltonian... 889 01:16:31,830 --> 01:16:35,430 one relaxation Hamiltonian, and then measure it. 890 01:16:35,430 --> 01:16:38,510 And that would be really interesting, because that's pretty low depth. 891 01:16:39,370 --> 01:16:41,150 So this is quite promising. 892 01:16:43,670 --> 01:16:45,610 So yeah, that's QAOA. 893 01:16:46,490 --> 01:16:48,530 And then another thing is that you can... 894 01:16:48,530 --> 01:16:50,750 if you know what your search space is... 895 01:16:50,750 --> 01:16:55,490 so for example, previously I showed you a grid of, you know, like 4 by 3 cubits, for example. 896 01:16:55,690 --> 01:16:59,210 If you know that your solution is somewhere in that... 897 01:16:59,210 --> 01:17:02,070 2 to the 12 space... 898 01:17:02,070 --> 01:17:04,230 then you can just quickly search over that space. 899 01:17:04,230 --> 01:17:06,110 And we do have time bounds for that. 900 01:17:06,230 --> 01:17:10,950 It's essentially more drastically faster than... 901 01:17:10,950 --> 01:17:13,750 groupable searching over the 2 to the 12... 902 01:17:14,330 --> 01:17:15,690 search space. 903 01:17:16,110 --> 01:17:18,850 And so what you can do is... 904 01:17:18,850 --> 01:17:21,850 in that work, where we were looking for the shortest vectors... 905 01:17:23,070 --> 01:17:30,470 what we did is we wanted to know, well, how many cubits do we need to ensure that at least the shortest vector couldn't be the exact shortest vector? 906 01:17:30,730 --> 01:17:37,830 How many cubits do we need to ensure that at least the shortest vector is in the search space somewhere? 907 01:17:38,450 --> 01:17:46,690 Now we managed to prove that and find a bound based on Minkowski's theorem, which again is like some super cool geometrical stuff. 908 01:17:48,570 --> 01:17:56,850 And based on that bound, which tells us how many cubits we need to implement the algorithm I've just described, you could just Grover's search over it, right? 909 01:17:57,010 --> 01:18:00,770 And then you get a quadratic speedup on the search space. 910 01:18:00,770 --> 01:18:07,330 So again, that's just kind of slap-on Grover's to the search space, but easily some kind of time complexity. 911 01:18:08,090 --> 01:18:22,550 What you'll find is that implementing the Hamiltonian that I described as a Grover algorithm, we've been trying this, and we end up with a lot of gates, so it's not the most practical algorithm. 912 01:18:22,550 --> 01:18:56,410 And it actually leads me to believe that maybe these annealers, the way that you can implement the algorithm and don't have to construct enormous circuits full of adders and multipliers to basically do all of these operations, you might actually get a little bit of quantum advantage for certain types of problems on annealers or continuous subversions faster than the gate models just because of the amount of actual engineering and gates that you need to reach the results that you want to. 913 01:18:58,490 --> 01:19:01,710 And so yeah, I just mentioned the proof technique. 914 01:19:02,610 --> 01:19:06,090 You can lower bound, you can upper bound how many qubits you want. 915 01:19:06,170 --> 01:19:07,350 But this is the thing, right? 916 01:19:07,350 --> 01:19:17,950 With continuous time problem computing, you can bound the search space, but unless you know that minimum energy gap, you're not going to know exactly how long it's going to take. 917 01:19:17,950 --> 01:19:22,970 The best thing you can do is bound the size of the search space and then roverize it. 918 01:19:23,290 --> 01:19:30,210 So the time complexity is really a real sticking point for this class of algorithms. 919 01:19:30,570 --> 01:19:56,530 If anybody can solve it and find a generalized way to take an initial Hamiltonian, the distance between the lowest energy eigenstate and the upper, and the first eigenstate at any point, please come and tell me before you publish it yourself. 920 01:19:56,530 --> 01:20:02,170 And we'll go forward with that together. 921 01:20:06,110 --> 01:20:08,750 Yeah, that's it. 922 01:20:09,030 --> 01:20:11,290 I'll be around, Brian will be around. 923 01:20:12,170 --> 01:20:14,630 So yeah, come up and ask us questions. 924 01:20:14,990 --> 01:20:19,630 But I think we're now at content time, so we're all released. 925 01:20:19,630 --> 01:20:23,650 Thank you.