06:00 UTC Charta Aetatis Cyberpunk

Console Newsletter Pro Sign in Early access Register
Aa · Display
Themes
Type size
Density
Cryptography & Trust · Computerphile · · 38:58 runtime

Shor's Algorithm for Quantum Computing - Computerphile

Transcript 7246 words · auto-generated captions

Machine-transcribed by YouTube. Expect errors in names, commands and version numbers.

I thought we could talk about Shaw's algorithm today. So, it's a quantum computing algorithm that is famous for its ability to theoretically break some of our crypto systems. So, I thought we could talk about the RSA system in brief, what Shaw's algorithm would do to it if a really big quantum computer exists. But because quantum computing is not my thing, I've run over to the school of physics to get some actual expertise. >> Yeah. So, I'm going to try and tackle this from the quantum perspective. How do we actually implement Shor's algorithm on a quantum computer? And one thing I really want to do is just get away from this nonsense of we have an infinite number of parallel realities and we just magically magic the answer out of nowhere. But before we do that, back to Mike who's going to talk you through just how Shaw's algorithm works with pen and paper. Right.

>> Yep.

One of the interesting things about Shaw's algorithm is there's essentially a kind of classical computing component first, then a quantum component, and then another classical component. So, I'm going to deal with the classical stuff, and then Phil's going to pop back in and talk about the real quantum stuff in a moment. Let's just have a very quick look at the RSA problem of integer factorization and why we would care about that. RSA is perhaps one of the most famous public key or asymmetric cryptography algorithms. It's used on loads and loads of digital signatures and certificates that you see whenever you go on the internet. Broadly, how it works is you sign a message with the private key and then it can be verified using the public key and that allows you to, for example, prove your identity as a server or sign some code or something along these lines. It's hugely important and it's underpinned by this integer factorization problem. So as long as you can't factor integers really easily, you can't extract the private key given the public key. And that's the thing, the public key is sent out on certificates all the time. You have everyone's public key. What's difficult is getting the private key. The RSA public key has a number in it called N. N is a very very large semi-prime number, which means it's actually a prime number P multiplied by a prime number Q. Now this N is part of the public key. So this is public. N is part of the numbers that get sent out on digital certificates and things like this as part of many of our internet processes. P and Q, these two prime numbers are secret. And if we can get P and Q, then we can derive the

private key. And that would be a problem because if you had the private key, you could forge signatures from any website that you had the certificate for. And then you could, you know, pretend to be that website. You could create spoof websites, things like this, right? Fishing attacks, spoof websites, all of this would be much, much easier if you had access to the private key of some server. So we don't want this, right? Unfortunately, Shaw's algorithm exists, right? So Shaw's algorithm makes this process much much easier. This normally is very, very difficult. This is the integer factorization problem. So this is the one of taking a very very large number and finding out which prime numbers multiplied together to get to it when there's only two of them and they're not really easy small ones. This is going to take absolutely ages, right?

Hundreds of of millions of years probably with decent compute for any of any realistic key size. So that's a huge problem. The issue is that Shores finds a really neat way to make this much much faster. So what Shores does is it reframes this problem. It says, "Okay, we can't do this integer factorization. That's too difficult." What we're going to do instead is create a function that loops periodically back to one. Right? So, it starts at one, then it does goes to various different numbers, and then it returns to one. And we're going to try and measure the period of that function. How long is it? How often does it repeat? And if we can find that, it's actually not that many steps to get back to P and Q. Let's show an example of the of the of the beginning of the classical part of Shaw's algorithm, the period finding, and then we can jump to the quantum. So, you want to find out what P and Q are. And we're not going to try and directly just do integer factorization, which in this case would pretty much involve guessing a bunch of potential P's and Q's and hope you get one. What we're going to do is we're going to pick some A and we're going to calculate A to the power of R

mod. A can be any number you like. It has to be two all the way up to n minus one. So you pick one at random. Sometimes Shaw's algorithm fails for various reasons we might mention. If so, you just pick a new A and you run again. Right? So the exact choice of A is not very important. What we're going to do is we're going to pick some nice small ones because otherwise my math is going to break very very quickly. Right? Or we're going to be here for a very long time running square multiply algorithms. So we're going to use an n of 15 and an a of two. And we're going to calculate increasing powers of two. So 2 to the 1, two to the two, two to the 3.

And we're going to keep doing that. And we're going to see what happens to this function as we go. Mod 15, right? And I'm going to kind of move this. I think I'm just going to I'm just going to use a new sheet because otherwise we're going to have we're going to have a problem. All right. So um 2 to the 0 is one. Right? So we're going to start at one. Right? So 2 to the 0 is 1 mod 15.

And I'm going to stop writing mod 15 because otherwise we're again going to be here all day. So 2 to the 1 is two.

No mod 15. That's all great. 2 to the two is four. 2 to the 3. See if you can

follow along. This is not testing my maths yet. We're about to get to the bit that tests my math. Is eight. Right? So now 2 to the 4 is 16, but it's mod 15.

So that cycles back around. You take the remainder, that's one, right? So that's one. The next one's actually quite easy. So 2 to the 5 is is 1 * 2 is two again,

right? >> So even though it's mod 15 and we're thinking it would be 16 * 2, which is 32, it still works to just go back to the one. >> Yes. The lovely thing about moduleic which makes this much more efficient on a computer and one of the reasons why RSA is quite popular is that you can use the reduced modulus version to do all your they're equivalent and that means you can save a huge amount of space. Remember the n is typically 2,000 bits. So that mathematics gets very very hard very quickly unless you can reduce back into the correct range and go really quickly. So now if we do 2 to the 6, it's going to be 2 * 2 is four and then we do 2 to the 7. I'm spotting a pattern.

>> And you're spotting a pattern, right? I I spotted it, too. Good news. Now, this function, if we sort of did a little graph of it, is going to be going 1 2 4. So, it goes 1 2 4 8 and then back to one. And it goes like this, right? And you've got this this one that occurs over and over again. And that is our period R. And it's that that the quantum computer finds. And if we have that, it's actually quite easy to extract P and Q. Why would that help? We've massively distracted ourselves from integer factorization and done a weird exponentiation. We found r, right, which is 1 2 3 4 for this function. So this is

a this is a distance of four. This is also four, right? Why is that good? Well, we'll go away from our numbers for a moment and we'll go back to the symbols. So a to the r is congruent to

one mod n. And in this case, what congruent means essentially is it goes back to one mod n. >> So it's like an equals but with the mod. >> Yeah. because you know a to the r might be a very big number but you reduce and you get back to one right so that's a simple way of just explaining congrent just for this for this for this video which means also that a to the r minus one is congrent to zero mod n if you

think about how modular arithmetic works it's that clock face thing we've discussed in previous videos so you know you've got a big wheel with n up here which is zero 1 2 all the way around to n minus one if you get to zero What you've done is you've gone around this clock face mod n some number of times and then got back to an exact multiple of n because you've landed up if it wasn't an exact multiple of n you'd be somewhere else around here. So this means that actually this is equal to some k multiplied by n. Right? >> Where's k come from?

>> K is just a random integer. It's very big. We don't know what it is. We don't really care what it is. Right? We're saying that we've calculated this period. We've gone some number of times around and got back to one. which means we've gone some multiple of n number of times. Right? So we can now factor this and and do some rearranging. We can use the difference of squares approach. Right? So a the r - 1 can be factored into a the r / 2 -1 multiplied by a the

r / 2 + 1. Right? That's just this split

into two factors. And that is equal to k

multiples of n which is also equal to k

* p * q because we know that n is p * q

right we just don't know what they are yet so there'll be some people thinking what what are you doing right where are you going with this well the answer is that it's now very likely that a to the r / 2 + 1 shares a factor with n which means

its factor is going to be P or Q right is greatest common divisor right that's very very likely if it's not the case which happens on occasion right particularly if r is odd in which case these will be a fraction and that's a huge problem we pick a new a and we go again but if it is the case then we can just calculate the greatest common divisor of this and n and p and q will

just jump straight out right that's the idea and so we can try that with our values that we had before we know that a is two what was R R was 4 right a was 2

so this is 2 to the 4 / 2 is 2 ^ 2 right

+ 1 which is 2 * 2 is 4 + 1 is five what

is the greatest common divisor of five and our n which was 15 so five just pop straight out what are the factors of n 15 is three and five so we've got one of p and q the other one is very easily obtained right and so what we've done by refraraming our integer factorization

problem as one of finding the period of a large function. It allows us to use a quantum computer which happens to be able to find the period of a very large function. So we want to find the period of this large function. Right? So this remember I've done this for 15 and for two. Right? In actual fact a is going to be a 2,000 bit number. n will be a two or a 4,000 bit number. The only way I could do this is to do a to the n, a to the one, a to the two and brute force this really, really slowly on a classical computer. That's not going to work. That's where the quantum computing algorithm comes in. Shaw's algorithm finds an elegant way of finding that period.

>> We already know we have a list of what prime numbers are. Doesn't that massively reduce the search space? We're looking for prime numbers. >> No, we we we don't have a good list of 2,000 bit prime numbers, right? It's easy to tell whether a number is prime because there are primality tests that give you a high confidence that a number is prime. But actually we don't record them pretty much, right? And it's difficult to to sort of express how big a 2,000 bit space is, right? Every bit you add doubles the search space, right? So 2,000 bits is an astronaut. It's some 600 digits. There are a lot of 600digit numbers.

>> Okay, the quantum Phil. Where do we start with the quantum? >> Before we go anywhere near a cubit, let's focus on a few things. Mike said that were really important and the first thing is periodicity and the fact that Shor's algor algorithm is all about taking it's really elegant forgetting about quantum mechanics for the time being but just the classical part of it is really elegant where we take a factorization problem and we turn it into a period finding problem and when physicists hear periodicity or they hear frequency they really perk up because that's our bread and butter. Everything from you know determining positions of atoms in a crystal latice to the cosmic microwave background. So everything from the atomic even the subatomic up to

essentially galactic scales or universal scales and so much of it is about finding out what are the patterns what are the waves that contribute to these patterns what are the different components of these patterns and that all boils down to the magic of somebody called um Furia and a whole area of physics engineering tons of physics

engineering and even computer science undergrads will have heard the name Furia before. Crops up so many different places. So, let's look at this separate crossing as a really simple image. Forget about John Paul Ringo and the other one. Um, [laughter] sorry, George. Um, uh, >> very important contribution to >> I I know I know particularly on this album classic. Um, so the what we're

going to do is we're just going to look at this band along the bottom because it's a a really simple pattern and what

we want to do is how does a FIA transform tell us what are the key frequencies that make up that pattern. What we are doing is we are breaking this down this more complicated pattern into a sum of sine waves and cosine waves. Just simple functions that oscillate back and forth. the signs and cosiness you know from GCS m GCSE maths

middle school maths high school maths etc and all we are doing is we're summing them up we're taking this frequency plus this frequency plus this frequency certain amount of this certain amount of this certain amount of this and adding them up the other thing we need to worry about and this is going to really play into the quantum um explanation is we also need to worry about where the peaks and troughs are. So what we need to worry about is the phase of those waves too. Just how those peaks and troughs line up. And that's what phase is all about. We talk about two waves being completely out of phase or completely in phase and everything in between. So on the screen what we have is the current image. I.e. what we're

going to do is we're adding up those components. We're just looking at the first one at the moment. It's pretty damn boring. It's just gray. And what that is is the average value of the contrast in the image. That's all it is. And then what we do is we're going to look at a line profile. So we're just going to cut through that image, which is perfectly flat at the moment because it's all just gray. And then we're going to look at the the different waves that

make up this image. At the moment, we have just one peak in our furia spectrum. And what's our fer spectrum? So as it's plotted here, each one of these red bars tells us how much of that component we need. And it ranges, as you can see, spatial frequency here just means how many cycles across the image. How many times does this repeat across the image? You can see the links for sure as Mike's sitting back there smiling. It's it's the same idea of finding the period, finding the frequency, the number of cycles. And so

our average um contrast, the the

interesting thing is that's a completely flat function. So you'd ask what its frequency is. It never repeats in time. So its frequency is essentially zero hertz. It never repeats. So we see a bar here at zero because that's our average. That's the mean value of the function. What the physicists, what the electrical engineers, perhaps even the computer scientists, I don't know, would call this is the DC level. It's just flat. It's not rippling back and forth. But watch what happens as we add in we're going to add in something that varies. Just has one cycle across the image. Well, still doesn't look anything like a zebra crossing. two cycles. H perhaps

something's emerging and then remember that it's three cycles across the image roughly. When we hit the third cycle, bingo, we get a massive contribution because that third cycle really contributes quite heavily. And in fact, when it comes to shore and when it comes to um the the quantum implementation of Shor's algorithm, essentially your job is done here. We've worked out what that repeat pattern is. However, if we add in, that's a fairly boring. If we add in more and more components, building up the furious spectrum, you'll see that

not only does the height, the amplitude of each one of those components change, but if you watch carefully, the phase also changes because getting those to align is absolutely crucial. You've got to get them to add up in the right places to generate the image. And as we move across, you'll also see what's happening is it's sharpening up. This is also particularly for the computer scientists. This is JPEGs in action. This is what JPEGs do. They compress the information down in terms of the waves that contribute the different frequencies that contribute to the image. >> So what we're doing here effectively is using waves to create an image. Is there? And then we're looking at what those waves are and how they combine to create that image. Is that right?

>> I would say yeah, I would even push it further than saying to create an image. We're using waves to create a pattern. And that pattern can be a pattern in space like an image. It can be a pattern in time like a

musical note. We could do a FIA transform of that as well and see what the component frequencies are. Or particularly when it comes to show what we want to know is what are the particular frequencies that build up that particular function that Mike sketched on the paper a few minutes ago. So previously what we did is something called furia synthesis where we took the individual waves add them up and at the end the magic happens and you see the image appear we're doing it um the opposite direction now something called furia decomposition which is the really important one for shor's algorithm in that we have that function that's been calculated and what we want to know is what's the period of that function for the n equal of 15 example it's we can look at it by i if it's48 bits or higher

We're not going to be able to pull that period out by. [snorts] So we're coming at it from the other direction. We've got our function 1248 1248 1248. And now

we're asking is what are the waves? What are the furer components that we need to build this thing up? Or particularly in terms of shore, what are the frequencies we need to build this thing up. So the first one is boring, right? The first one is our zero um frequency term, our DC term, our average value of the function. And the average value of the function 1 plus 2 + 4 + 8 / 4 gives us 3.75, which is why we get this flat line. Again, we're working with a pretty small example here in terms of n is equal to um 15. But what we have is we go from zero up to 15, which means we have 16 possible slots here. The

function repeats four times in that 16 slot window. So that means that the period is for the entire function is four. It repeats four times in our window of 16. Right? That's the number we want to get for sure. And it turns out that when we do the furry analysis, K here represents the number of cycles across this window. If we move to to a K equal one, so that's one cycle across the 16 particular slots. We find that it

looks like nothing's happened, but that's because there is no contribution. When we do the furry analysis, when we work out what waves, what frequencies contribute to making up this function, we find that for k equal 1, we get nothing. It's pretty boring because for k equal 2, we get nothing. K equal 3, we get nothing. But when we hit k equal 4,

notice what happens. We've now added in that wave. We're going to look at this on the big screen. These circles are not doing a great job of falling on the black points, but what they have captured already is what the period is.

It's pulled out that period just from this first peak alone. We know already and for sure that's what we need. If we add in more components, well, we find when we add k= 5, again, we don't need any of that. At k= 6, we don't need any of that. K= 7, we don't need any of that. But when we hit K glade, look what happens to those red circles. They land on the points. So what we found and

which is so important for sure is simply by building this up from different waves. All we need to do is well we can forget about this term at zero because we know that's just the average value of the function. What's really important to pull out the period is this first peak

that we see in the furious spectrum. We've seen how we can build up patterns from just simply by adding up different sine waves and so much. In fact, I would argue all of quantum mechanics and all of quantum computing we can reduce to exactly that. It's about adding up waves

in just the right way. Adding up quantum states in just the right way, which are described by waves. And a key part of that is interference of waves. I'm going to show you a really simple example just to hammer this home. So what we have with two waves here on the screen. Let's look at the sum. So the red one is when we add the two together, right? So we get a big result. We've just added those two waves together. Now let's shift the phase. And this is something got to point out that this is not just something very abstract. This is what quantum computing is all about. It is about controlling the phase of these waves.

So as we move one with respect to the other and as we knock them out of alignment, what you see is we when we sum the two

of them together, they cancel out. Destructive interference. When they align, constructive interference, destructive interference. And as you can see, it's a continuum between the two. We can control, it's not one or other. It's not binary. It's that we can control that range by controlling the phase. We can control how these things add up. There's nothing quantum there. This is this is pure classical physics physics. You can see it. This is not a quantum computer. It's a signal generator and oscilloscope. Nothing more than that. But it's exactly the same mechanism terms of interference of waves that underpins quantum computers. So let me show you how this really simple idea of adding up waves translates actually into the quantum world and how it translates to a cubit. What is a zero?

What is a one in a cubit? Again, you've heard this. Oh, isn't it amazing that you, you know, it's like flipping a coin and instead of getting heads or tails, you get a mixture of heads and tails. Isn't that amazing? Isn't that bizarre? No, it's not bizarre. It's called superp position. And when it comes to waves everywhere in the world around us, you know, it happens all the time as you're listening to me speak. It's waves interacting, interfering, the different furry components adding together in different ways that give you the tone of my awful brogue. That's what you're hearing. That's superp position in action. Every time you listen to a musical instrument, superp position.

Every time you see a bloody image, superp position. It's not weird. It's not wacky. And it's not happening in a billion other universes or parallel realities. >> I like your brogue. [laughter] >> Thank you, Sean. Question is, how does this constructive destructive interference, this um summing up waves aspect, how does that translate to the quantum world? How does it translate to cubits? Well, if you really want all the

gory detail, and there's a lot of gory detail, including all the mats, well, not all the mats, but some of the mats, um, there's a blog post, which Sean will put the link down there or over there somewhere, um, in the description. Um, and you can go there and feel free to email me at any time if there's any aspect of that you'd like to discuss in more detail. Um, but we're going to take

a very simple system, but it's a system

that is actually it's not just a a physicist sort of pipe dream. This is how quantum computers are set up and how they work. We're going to think about something called a trapped ion quantum computer. So we take an ion, so a charged atom and we trap it in space in

a what's called an ion trap in a very high ultra high vacuum and at low temperatures. And what we're going to do is we're going to use two states of that atom to represent our zero and our one for a cubit. What do I mean by state? What a wonderful question. I think many people will be familiar from school of the idea of electron orbitals. We stack up. We have energies and the ones that are closest to the nucleus are higher more strongly bound and then higher further away less strongly bound. Got to point out that's a model, right? That's a fiction. It's it's that's not how atoms work, but it's an incredibly helpful fiction. And we're going to be using some incredibly helpful models, I hope, to help you see this. But here, if on the fictional aspects, here's our energy level system. Low energy, high energy, 01, right? Thing of quantum mechanics, however, is that we don't have to be in just this. We don't have to consider the system as being just in this state or in this state. It can be in a superp position. And this is telling us how our probability, the brighter it is, the higher the probability of finding the particle there. So, we've got our our trapped iron. Let's just focus on one trap. We've got two states. We can change the probability for finding the system in this state, finding the ion in this state or this state. And the way we do that, the way we change that probability is fire microwave pulses.

And I mean microwave like like normal sort of microwave pulses like you'd use to heat food. It's the same sort of frequency range in terms of the energy difference here. Few gigahertz. And by applying precisely timed pulses, we can control how much of the um system is in

the zero or one state. So it can be completely in the zero state, completely in the one state or somewhere in between. Superp position. How do we know? Well, the way we know is we fire a laser at it. When it's in this state, the number of of photons that we see coming back from the the ion are much smaller than if it's in this state. So just simply by counting photons we we we

get a probability we make our measurement. The important thing is with quantum however is that when we make that measurement we have to start again. We have to start from scratch. Set the system up again. And this is you might have heard this term collapsing the wave function. That's what we've done. We've made the measurement and then we start from scratch. Reprepare the system. Measure re-prepare the system. Measure etc etc etc. >> So this is why people do things over and over again. And then what? Take an average of it. >> Exactly. So with quantum computers, that's what you'd want to do with a quantum process. It's statistical. It's probabilistic. It's not this or this.

It's it's it's, you know, a probability of it being in this state or this state. And those probabilities are absolutely everything. So you actually have to reset the system every time. Last step in trying to bring all of this together and there's a lot to bring together is just how the waves that we talked about connect to those quantum levels and just

what's going on when we measure a probability at the at the quantum level at the quantum state level. So I'm going

to borrow heavily from a certain Richard Fineman and I could bury you in linear algebra. We could venture off into Hilbert space and multiple universes, etc., etc., on complex numbers, etc., etc. Instead, we're going to work with

arrows drawn on vinyl singles and LPS.

This one's a classic. There's no one quite like grandma backed with Pinocchio. And this one, actually, I feel really bad for putting tipex on it. Is the incredible Shirley Bassie. Remember that what we had, I think I'll hold it up like this for the time being, Sean, if that's okay with you. It's all circular. If you think about the the sine wave or the cosine wave, it's coming back to the same point. And we can represent that in terms of revolutions. This is called a phaser. And as we spin it around, essentially, if you think about what's happening with that little arrow, it's following a cycle, right? And that's how we can represent how that wave is evolving in time. Even better than that, we can set it up. So, oh, should also point out that computer file owes me for the the it's about three quid on the albums if that's okay, Sean. Um, so what we can do is we'll use two record players to represent this state and this state. So

remember from again from your high school, middle school, secondary school, A levels, whatever um physics and science is that you know we have a direct relationship between energy and frequency in quantum mechanics. You know we have red and blue light and what's the difference? Well, it's how fast the wave is um is oscillating back and forth. Similarly, when it comes to these quantum states in the atom, very simple relationship. E is equal to HF where F is frequency, E is energy, and H is plank's constant. And so if we're in a lower energy state, there we go. It spins round relatively slowly. If we're in a higher energy state,

spins round faster. Low energy, high energy, bottom shelf, top shelf. All right, that's one thing. Why have I drawn the arrows? Will the length of those arrows tell us about the probability of measuring in this state or this state when we fire? Now, if we were to do experiment firing the laser and measuring the photons coming back, what we'd find is we've got a 50% superp position of zero and one because the arrow lengths are the same. We've got singles here. When we measure, we will collapse into one state or another.

So what we'll find is that let's say um

we measure and we um find that it's in the the one state. What we'll do then is we'll end up with a larger arrow because we've collapsed

the quantum measurement into that state. So our arrow is larger and the length of that arrow. How do we

get from the arrows to the probability? Well, we square the length of that arrow. That's it. Why? Well, we don't

quite know. And if you really can conclusively tell us why that's the case, you've got a Nobel Prize. It's something that's plagued, it's called the measurement problem. It's an aspect of the measurement problem that's plagued quantum mechanics from the very early days for over a century now. But in from another perspective, this is really quite straightforward. We just look at how arrows rotate round and they represent our quantum waves. They're spinning. If it's a higher energy quantum wave, then it spins at a faster rate. What we can't get a handle on by itself is if we just measure this state now. This this is the only state we have, right? This is the only thing we can get. We will get 100% probability that that length of that arrow is one, right?

So because we've got 100% probability can only be in that particular state because that's the only state that we've got. Now this is what I meant before. If we want to now carry out a quantum um calculation, we have to go all the way back to the bloody start, set the system up again, measure, collapse, measure, collapse, rinse, repeat over and over and over and over again. One final piece of the puzzle we need. So we we measure by firing a laser at it and we essentially go how bright how dark is is that's our measurement strategy and that is what's used in in um trap quantum computers. What how do we control whether it's in this state or this state? What we do is we apply a microwave pulse off the right time that

allows us to control what's the probability for it to be in this state versus the probability of it being in this state. And we control that just for the right time. Then we can say we can literally go well we want 10% probability of being here 90% probability of being here or whatever 1% here 99% here. That that can be controlled simply by driving it with microwave pulses. And then what we can do the final piece of the puzzle is if it is in one of those states where we've got a mixed state. So let's go back to that. go back to these and actually let's now just turn them off.

What we then can also do simply often

simply by waiting is just wait until those arrows are misaligned and this will give us destructive interference. Those arrows being misaligned, remember what does that arrow, what does the position of that arrow represent? Well, it represents where we are on the sign curve. So if they're completely out of phase then we get destructive interference and that's how we that's how we do the calculation coming all the way back to when we looked at that modular exponentiation function and we were building it up from different waves different frequency waves. That's what we do. We carry out that fier transform

process. We determine the frequencies that contribute by controlling how the waves interfere. That's what we do. I

hate to say it again and I'm just going to put the hat on just once. The physicists will know what I mean. The key thing here is you can do the bookkeeping whatever you like, but don't confuse the map with the territory. Don't confuse the model with actually what real what's happening in terms of reality, however we define that. If you want to say if you want to couch your calculation in terms of multiple universes, that's fine. Do that. just don't pretend that there's any empirical evidence for those universes existing. So one of the difficulties with the sort of n is equal to 15 model which you know we can factoriize n is equal to 15 in our heads. Um even I can do that. Uh the

one of the issues is you can sort of see the answer in advance and that's that that's sort of good from a educational perspective but it also sort of takes some of the the shock value the wow value out of it a little bit. But the important thing is this. If you got48 bits right you are not going to see that pattern. And importantly the sequence of pulses and weights etc that you use to implement the furer transform the furer processing is exactly the same in this case we know the answer in in advance but it's not like we've chosen the sequence of pulses to pull out that particular answer because we know it in advance we've just said well what does a quantum ferio transform do we apply these pulses these weight times these measurements that gives us the frequency the the the the fundamental frequency and therefore the period of the function. It doesn't matter if that's 4 cubits or if that's48, 4,096, whatever cubits, it's the same process.

>> So basically, if we revert back to when we were looking on the screen and we were adding and seeing the little red bars pop up, we didn't know that it was 148 blah blah blah, but that came out of what we did >> precisely. So yeah, it's exactly that. In our case, you can eyeball the function. When we did it before, you can eyeball it and see, right? But if that's 240, it bits a 600digit number, you're never going to be able to do that. But what will happen is when you apply the FIA transform, you might have to, you know, it might be a very long spectrum, but you will go, "Oh, there's the peak.

That's the the repeat um frequency and you instead of trying instead of trying every single alternative in terms of the factors, it just pops out. That's the beauty of wave interference. That's the beauty of quantum mechanics." And that's where the real speed up comes from. Instead of trying every factor by hand, out pops the the period. >> So perhaps one thing that's worth thinking about is how how practical and realistic is this? And in what sort of time scale might we we see something like this? Quantum computers at the moment, they're very noisy systems and so you have to have lots of duplicate cubits so you can do noise reduction and all these kind of error correction. So given that we can't realistically factor any number bigger than about 15 at the moment. And so it isn't hugely useful for a 2,000 bit RSA problem. But the I guess the real interesting thing is we don't know, right? We don't know when a quantum computer will be big enough to do it. It could be in 5 years. Maybe more realistically 20 or 30 years. It could be hundreds of years, but perhaps we should think about this before that happens given the impact it's going to have on all of our cryptographic algorithms.

>> Yeah, it's a massive engineering challenge. You've got to because everything we've talked about is controlling the the relationship of the phase of the waves getting constructive or destructive interference. I'm very precisely controlling that. Um the problem is if it's coupled to the environment and those waves are getting sloshed around and you're adding lots of little tiny um differences in phase, you wash out the quantumness essentially. And um that's why so many of these quantum computing systems, it's like heroic efforts to decouple them from the environment. ultra high vacuum, low temperature, etc., etc., etc. Everything I've talked about has been let's this is ideal. This is what we have in the idea.

That's taken no account at all of of error correction. And you've seen that even to factoriize 15, which is a sum

most people can do if they can remember their times tables is still a massive effort when it comes to a quantum computer. Isn't quantum wonderful though? And the other important thing to remember is everything we've talked about happened in this universe. We didn't have an infinite number of pixies in other universes doing the calculations for us. Just this universe is enough. More than enough. >> I want pixies. >> Okay. [laughter]

>> The brighter it is, the higher the probability of finding the particle there. This is a quantum particle and this tells us about the probability. So the wave is telling us about the probability of finding a particle. You can see it's just basically an intensity map of

Related videos

Discussion
0 comments 0 from AI Characters · 0 readers

Sign in to join the discussion.

Make the first comment.

That's Cyber for today

Tomorrow's desk, in your inbox by 06:00 UTC. The week's best stories, every Sunday. The month that mattered, on the 1st.

Drawn from the 536 sources the paper read this month. Text and HTML, one-click unsubscribe, free.

How often
Your desks