start	end	text
11970	15090	Thank you so much for so many people turning up.
15110	16230	This is amazing.
16590	17990	I'm really looking forward to giving the talk.
18530	20510	Title, Doomed to Repeat the Past.
20510	26130	So this is not about quantum breaking and making your life horrible.
26130	27930	It's about you making my life horrible.
28750	31630	So this is Hardware Exploits for Quantum Computers.
33190	35330	So I'm Jamie Friel.
35330	38210	I'm a software engineer at Oxford Quantum Circuits.
38210	45550	My main responsibility is within the compiler, so I think about run times and how run times might go wrong.
46170	49670	At MQC, we make superconducting quantum computers.
49890	51690	We build the full stack.
51690	55210	That is the QPU, the chip itself.
55210	56630	We don't build this bridge.
56630	57790	We don't build it.
58470	67430	The control hardware, compilation stack, and then the cloud layer, which is just the most common access point to quantum computers.
69070	75610	If you want to run down on this, I gave a talk last year that sort of compared this to a classical control stack.
75670	81490	Very loosely, we have a CPU, we have a motherboard, we have a compiler and a run time, and then a cloud layer.
82430	87310	I try to relate this to classical concepts as much as I can.
87390	94810	It's meant to be open and bridge the gap between quantum and security, so please raise your hand if you have questions throughout.
94810	96230	I want to be clear to everyone.
97670	101090	So what we do at MQC, we build quantum computers.
101090	103050	It's available on AWS, the Cloud.
104330	112230	The reason I want to give this talk is that quantum computers will solve many great problems, not just cracking encryption.
113050	120290	Many good things, drug discovery, simulated molecules, machine learning, optimization problems, logistics.
120510	123310	All of that is very, very sensitive data.
123310	124150	All of that is data.
124150	126350	If it was leet, I'd be in big trouble.
126630	140750	So we're starting work now to ensure our environments are secure, so that when we get to solving real problems, we know we're not going to have things like Zenbleed and Downfall, which turned up a few days ago.
142450	145070	I don't know if anyone has been involved in patching this.
145170	146470	My heart goes out to you.
146530	151110	If anyone has to patch Meltdown or Spectre again, my heart goes out to you.
151110	152310	It would be me one day.
153970	157490	Yeah, hardware exploits are still a big problem.
157490	162370	Complex CPU optimizations give rise to complex exploits.
162370	175050	Very hard to properly secure a complex CPU environment, especially with regards to separating out user space and the system space and privileged information.
176450	180670	Right off the bat, a big one for people that are too difficult here.
180670	182930	I think one is fixed in the same way as some of the other updates.
182930	186690	I don't know if the other ones are patched yet, but at least one is.
189760	191840	Q-Day is coming for you.
192440	197360	Q-Day is the day that quantum computers crack encryption.
197720	199660	The internet will collapse.
199940	202440	Satoshi's sacred bitcoins are stolen.
202980	209660	All of your 1997 PGP emails are free for everyone to read.
212760	214800	But it's coming for me sooner.
215100	216900	And this is the point of this talk.
217340	221580	This will happen, but let's not be hyperbolic about it.
221580	223740	This is a very, very long way off.
223820	230460	And the solutions to solving the problems of encryption are much further advanced than the quantum computing hardware is.
230460	235160	We got some talks from the folks at Sandbox are working on post-quantum cryptography.
236520	238100	Don't go very well.
238100	238540	That's great.
238540	240380	Last space solutions look great.
241380	244440	We're redefining a model of computing.
244660	247480	We're redefining a runtime environment.
247480	252120	We've got many, many more ways to go wrong before we're a risk to anyone.
256300	260020	But before we can go into that, try the wrong quantum computing.
262800	264580	This is a lock gate.
264860	268940	For people familiar with that, 0 goes to 1 and 1 goes to 0.
270440	272240	I'm using this weird notation.
272240	273720	It's called bracket notation.
274320	276600	I'm putting it there so people are comfortable with it.
276600	279380	If you go to the literature, it will be there.
279380	280620	It doesn't really matter what it is.
280620	282680	It's an abstraction to a vector.
282840	286500	I'm just wrapping bits in these things to feel more comfortable with it.
286600	288600	These are bits right now.
290040	292840	There will be some sources with more information on these gates.
293580	295540	But Pauli X.
296080	299920	Everything in physics is named after dead old men, which is very useful.
299920	301180	This is just a lock gate.
301280	302260	Pauli X.
305280	306160	Hadamard.
306320	307680	Another dead old man.
309720	311780	They're all brilliant, to be fair.
312120	314380	This is where we start to get quantum.
317540	319220	Hadamard operation on 0.
319220	325840	So the 0 bit, this is where you go from a mixture , a superposition of 0 or 1.
326900	334660	So this is just saying it's a 50% probability that when you measure your quantum system, you get 0, 50% of the time you get 1.
334800	337680	This is a coin flip, basically.
337680	338340	That's how you think of this.
338340	341420	This is a coin flip generator, this Hadamard gate.
341540	343300	It will go backwards as well.
343860	350460	So if you start with this equal superposition state, it will take you back to just 0.
350820	352420	So this is a bit more quantum.
352420	356800	This is where you have this idea that you can begin 0 and 1 at the same time.
357240	361560	And you can do... this is part of where quantum power comes from.
361880	363600	You could act on both at the same time.
363600	366940	Now if you do this and then a 0, you've done a 0 in both.
368520	371760	But there's two 1-bit operations.
372200	374940	So I'm ignoring jargon qubits.
374940	376840	These are... right now these are bits.
377020	380440	In quantum land they are qubits, a quantum bit.
385100	389060	The next step is 2-bit operations.
389540	394480	This is C0, or an XOR with a carry.
394500	400020	So this is... quantum computation is reversible, so you have to add the X carry.
401660	405900	The XOR is if your first bit is 0, do nothing to the second.
406420	411600	If your first bit is 1, then do an X gate or a NOT gate on the second bit.
413760	416260	This in and of itself is... again, this is classical.
416260	417200	This is an XOR gate.
417200	423720	This is a classical circuit with nothing quantum about this necessarily, as it's relative yet.
423720	430960	We'll see how the combination of this superposition and the C0 become quantum.
432540	439520	But those are some classical operations, a little bit of quantum, to understand how we do some computation.
439520	440780	Bit level we're at.
440820	443380	Let me say we have an 8-qubit machine.
443380	446620	That's not like an 8-bit computer, we have an 8-bit register.
446620	448440	That's like 8 transistors.
448540	452300	We are on the bit level of operation for these devices.
457520	463320	So this is where we start to get into what a thread model might look like.
463480	466120	And it's how is it do we actually do this?
467340	469500	How do we make this operation happen?
469500	474820	When this is a representation of our device Lucy, 8 qubits connected in a ring.
476100	483740	And this is a piece of superconducting material, sits in the bottom of a dilution refrigerator, with some wires next to it.
484100	486700	How do we actually do anything with this?
489480	493360	So one thing to understand, we're going to brush over the physics here.
493360	497800	If anyone wants to talk more about the details, please come talk to me, I'm here all weekend.
498580	500780	I'm always happy to go into more detail on this.
500780	504240	We have a frequency associated with each qubit.
504780	509940	This frequency is... think of it like an energy, a voltage.
510200	517440	If classically, your bits are separated by 5 volts, every bit here is separated by a different voltage.
518280	523160	This might be a 4 volt difference between 0 and 1, this might be a 3 volt, this may be a 5 volt.
523900	530880	That's what we... we add that energy into the system to drive the transition from 0 to 1.
531020	541960	It happens to be microwaved, typically around 5 gigahertz, for devices like myself, OPCs, and IBMs, or Getys, around 5 gigahertz.
542440	548040	So we add enough energy to pump up from 0 to the 1 state.
548040	550520	That's how we do a NOT operation.
556390	562870	Let's say... just to get the sense, it's the same as adding 5 volt, 4 volt into a system to flip a bit.
567000	568700	How do we do the CNOT gate?
568700	575540	Now this is a much more subtle operation, and in some regard you just have to trust me.
575660	580180	Sorry, I didn't want to go to the maths of this, it's a bit gnarly.
581360	586880	Let's take this example where our input is qubit 8 and qubit 1.
587220	591920	So if qubit 8 is in 0, do nothing to qubit 1.
592200	594960	If it's in state 1, flip it.
595580	602260	The way that I do that is I drive qubit 8 with the energy of qubit 1.
603940	605960	And that looks like... that should do nothing, right?
605960	608220	I'm just driving qubit 8.
608220	610660	It's this little arm here, it's this coupling.
610660	623220	We engineer a coupling between the different bits such that when I drive one qubit at the energy of another, it does this operation.
623780	629580	So this is how we do two bits, or two qubit operations in a quantum device.
636020	637920	So, an example.
638600	642660	This is called a Bell test, or GNZ state.
642660	644940	Lots of business names in there.
647440	649260	Start with Hadamard.
650160	653400	For example, this is the first qubit, this rail.
653560	657580	This is the second qubit, that's this rail here.
658580	659920	What does this represent?
660280	672200	This is saying that if I take a measurement of my system, because quantum systems collapse at some classical measurement, when I measure them, on this first qubit, it's a coin flip.
672580	676300	So this is going to be 0 or 1, with equal probability.
676600	679720	This bottom rail is always going to be 0.
680180	683100	So this is a coin flip, and this is stuck on heads.
687270	690710	Another way to represent this is a slightly more compact notation.
690990	692770	First qubit, second qubit.
694490	698190	First time, we can see this first one, 0 or 1.
698870	703970	Regardless of that outcome, the second qubit is in 0.
708140	709900	So this next bit.
711400	715240	So remember this, if we're in 0, do nothing.
717760	721100	So nothing happens to this part of the quantum state.
721100	723380	If the first bit's 0, leave it.
723380	724340	Do nothing.
726400	731560	But the second, the other part of our superposition, the first bit is 1.
731560	735300	So we do a flip on this part of the superposition.
736780	738540	But what does this mean?
738540	742000	Why is this even an important example I'm belabouring so heavily?
742360	744180	We've got two coin flippers.
744300	746500	We are physically distinct from one another.
746780	748500	We both flip a coin and hide it.
748500	751680	You get heads, immediately you have heads as well.
752280	753600	Flip a coin again.
753600	756180	You get tails, immediately you have tails as well.
756460	763180	There is this correlation between physically distinct bodies that is not possible classically.
763900	765700	So they are in lockstep.
765700	770800	They are random until you look at one of them, and the other flipped into place and agrees with the other.
771800	775540	And we take this is not fast and light transmission of data.
775640	776940	It's not possible.
777420	778900	Because this is random.
779080	780900	You're just generating random data.
780900	784920	There's just a connection between people that's distant.
786100	792580	This is how you combine that superposition and these two bit operations to make something that is quantum.
792580	799600	This is not possible classically to have this level of correlation between physically distinct entities.
800460	805440	So this is hello world in quantum.
807000	809420	So this is going to be our test case.
813200	815740	And here's just an example output.
817440	824540	So when you do a quantum computation, you repeat the computation many, many times, and you measure it every time.
824620	827420	And you get a different pass for output.
827620	831480	So this is, you see, when the first one is 0, 0, 0, 0, 1, and 1.
831700	832500	So that's
838380	839780	the quantum bit.
839860	843600	We're going to briefly touch... I'm not a security person.
843600	845460	Let me get that out there now.
845460	850020	So if anything sounds a bit dubious to you here, it's because it is.
853580	856440	But last year at DefCon... so this is one thing I love about Quantum Village.
856440	861620	Last year at DefCon, it wasn't just us saying, hey, this is what quantum is.
861860	872200	We spent a lot of time talking with red teamers and hardware hackers, teaching me, a quantum information theorist, about the world of security and threat modeling and hardware hacking and all this stuff.
872840	875760	And so now we're trying to bring these two worlds together.
875880	881720	So everyone in this room, if you do hardware hacking, this is probably painfully simple and oversimplistic.
881720	883480	Same for the quantum bit.
883480	887920	So quantum Q specialist, what I said was objectively wrong, probably.
888600	895980	But you take simple ideas in two distinct fields and you have federal funding for interdisciplinary study.
897200	898560	So this is what we're doing here.
898560	906160	We're bringing simple ideas from quantum and simple ideas from security and bringing them together to do some really cool things.
907440	911400	So Roham, this is a block of DRAM.
911900	914140	These are cells that contain data.
914980	919140	There is some very, very loose coupling between these cells.
919140	922320	So there are straight electromagnetic fields.
922320	924060	These things are very, very small.
924720	934640	But unlike the coupling that we generate in a quantum computer, which is very distinct, very deliberate, this is an accident.
934640	940000	This is a byproduct of the fact that you can't perfectly contain these straight fields.
942480	946480	So let's say that this is Alice's data in the purple.
947300	961740	If Eve, some malicious actor, comes in and starts flipping bits very, very rapidly on either side of Alice's data, you can induce bit flips through this very, very loose coupling.
961740	964420	So you have to travel very, very hard and very precisely.
965080	973560	But Google's Project Zero, they did find some privilege escalation exploits in doing Roham's style attacks.
973560	980920	So it's a very serious, very real attack that RAM manufacturers, DRM manufacturers have to be aware of.
986070	987690	So I'm going to go back to this slide.
987690	997230	But one final point on what the quantum runtime looks like now, how it's distinct from classical runtime.
998690	1000130	We are CPU.
1000130	1001070	We have our motherboard.
1001070	1002130	We have our runtime.
1002130	1003470	We have our access layout.
1004530	1009450	There is a stack, and that's it.
1009450	1012570	We pop off the top of the stack, and we run the instructions on the stack.
1012570	1014670	There is no sys calls.
1014670	1016710	There is no root user.
1016710	1019110	There is no user space, really.
1019110	1026270	You have the entire run of the machine as a user, and we just pop your instructions off the stack and execute them.
1026350	1029950	Very, very simple runtime right now.
1029950	1039490	It also lives for 0.2 seconds, and then the entire system shuts down, at least from a data perspective.
1039490	1043090	This whole thing, we kept our fridge cold for 18 months.
1043090	1051370	So we had an 18-month continuously running quantum computer at the record time, proving that cryogenics is not problematic.
1053350	1055830	And so these are the differences.
1055830	1066010	We don't have any of the subtleties that you have to deal with when separating out root access, system calls, all these passwords, environment variables.
1066010	1067190	We have none of that.
1067630	1070330	We have a set of numerical instructions we pop and execute.
1070610	1074950	But there is still space for things to go wrong in this very simple execution model.
1078730	1083370	So this is quantum-ish Rowhammer, or quantum-Rowhammer-ish.
1086220	1092900	So that computation that we were examining earlier is two-bit computation.
1093420	1095320	Let's say Alice wants to run this.
1095320	1097940	So we assign Alice qubits one and two.
1098400	1099460	You can run there.
1099460	1100520	That's fine.
1100800	1103920	But we've got six other qubits sat idle.
1103920	1105800	That's lost revenue.
1106120	1108420	We could be doing even more throughput.
1109240	1115900	And so if Eve comes in and says, I've got a two-bit operation as well, let's put Eve in.
1116780	1122140	Because this maximizes the remaining possible qubits for even more users to get involved.
1126820	1129380	And this is a piece of chasm.
1130220	1134820	This is a textual representation of the computation we showed before.
1134820	1137260	This is the Hadamard, for qubit one.
1137780	1141100	And this is the CX gate, for qubits one and two.
1142060	1142980	And this is the output.
1142980	1144140	There's a little bit of noise, right?
1144140	1145200	These machines aren't perfect.
1145200	1146260	It's a little bit noisy.
1147160	1151300	But 1, 1, 0, 0 being our most probable outcome.
1153740	1160060	Let's flip back to here, and think about what might Eve do?
1160060	1162180	This was foreshadowing.
1162180	1168100	What might Eve's computation look like with those two qubits?
1169120	1184370	If you think of this as user space, qubits one, two, Eve doesn't need permission from Alice's user space to drive an interaction.
1185570	1191630	The way that Eve drives an interaction is entirely local to Eve's user space.
1193410	1195710	And so I can do that.
1199280	1200720	Ah, it's come out a bit small.
1202360	1205900	But this is an extension of Chasm, called OpenPulse.
1206380	1215280	And this is a language that gives access to... gives pulse-level access to users.
1216820	1219280	So what is the program that Eve is running here?
1219280	1227880	It's exactly what we looked at previously, which is Eve says, OK, I'm going to drive qubit 8, but not the usual frequency, not the usual energy.
1227940	1231040	I want to drive it at qubit 1.
1231500	1233500	And it's destroyed the results.
1234840	1236500	This is what it should look like.
1236500	1237960	This is what we get afterwards.
1238600	1239440	It's a mess.
1239440	1240360	It's garbage.
1240860	1241820	It's useless.
1243020	1253400	But what's hard about this is that the point of OpenPulse is to give researchers access to do things like sweep through frequencies.
1254100	1258320	So it's a perfectly normal request to make.
1258320	1263960	It doesn't look malicious, unless Eve is in a particular space.
1267700	1275220	So that's our little demonstration of a classically-inspired quantum row hammer.
1276080	1284140	We're able to destroy the results of another user without having to access their user space.
1288790	1290330	How do we remediate this?
1290330	1291510	Sorry, question?
1291730	1292590	Exactly.
1292590	1293830	That was my question.
1293830	1294790	How do you remediate this?
1294790	1295590	Yeah.
1296330	1297530	Coming up soon.
1297530	1298390	Yeah.
1299290	1311910	So, in a lot of superconducting devices, architectures like Regettis, until this week, like ours, like IBM's, these are fixed.
1311910	1313450	These couplers are there.
1313450	1314330	They're in place.
1314710	1316310	You don't get rid of them.
1317390	1318870	So we just have to move Eve.
1319850	1324490	There is no way that I'm aware of, if there is, let's think about it.
1324490	1326490	We want to maximize usage.
1326770	1332290	You just have to move Eve sufficiently far that she can't drive an interaction through many, many qubits.
1333090	1340550	So you would just have to say, unless I can situate you sufficiently far, I can't thread this execution.
1341810	1350330	There are other architectures that come with additional complexity with manufacturing, where you can tune these couplers.
1350330	1353090	You can turn them on and off, basically.
1353150	1356350	But it's very much harder to manufacture them and calibrate them.
1356350	1363110	But that would allow you to start really packing in the possible simultaneous users.
1366360	1366880	Yeah,
1370840	1375780	you could.
1376040	1383760	But if I was to genuinely implement this within our runtime, I would put them as distant as I can.
1383920	1391940	Because I generally don't know that there isn't a way for Eve to drive a multiple qubit interaction.
1399980	1402420	Yeah, maybe.
1413670	1414550	Yeah.
1429690	1430450	Precisely.
1430530	1432910	I know that's precisely what I was trying to get forward.
1432910	1434950	So in fact, the NDEX is probably a bit advanced.
1435310	1439670	We're barely at ticker tape type machines.
1440490	1443050	And there is more softness in here as well.
1443290	1445370	Because I've laid this out in a ring.
1445750	1448350	Physically, this isn't how it's laid out.
1448350	1451730	Some of these qubits are pulled in slightly closer to one another.
1452150	1461370	So there is this parasitic coupling you can get just by proximity.
1461370	1471910	So things like the NDEX, moving couplers at 90 degrees or whatever you want to do, to try and shoot those any stray fields out into a vehicle.
1472830	1473750	Absolutely.
1476170	1478350	Any more questions before we move on?
1478350	1478790	Yeah.
1478790	1479610	Maybe.
1483410	1491450	So, one thing you can do in the middle, with these qubits, you could apply some decoupling regime.
1492130	1496530	In fact, you can drive the other qubits very, very hard and try to block out other interactions.
1496650	1501330	Or just keep measuring qubits in the middle to stop interactions happening.
1501370	1504610	But this is what I'd like to work out precisely.
1504990	1506470	I'm speculating here.
1506470	1509730	I don't know the best way to remediate against this problem.
1510730	1511490	Yeah.
1520270	1521270	Yeah.
1521270	1523010	Something like that.
1523010	1525490	It's very analogous.
1525490	1529730	You want to remove any direct lines of contact with these things.
1529730	1531490	That's a very good way to put it.
1534480	1535920	Oh yeah, go ahead.
1540080	1541280	Yeah.
1547000	1549440	Yeah, exactly.
1550420	1557800	It's hard, because I can cut off frequencies to prevent malicious exploration.
1557900	1563820	But I have to allow the malicious frequencies, because that's how a regular computation is done as well.
1563880	1570180	So I can block particular frequencies on qubit 8 while something's running here.
1570180	1573180	But that would limit...
1575960	1579160	the open-pulse interface would become limited.
1579340	1579900	Which is fine.
1579900	1581620	Open-pulse is very hard to use as well.
1581620	1583020	Not many people use it.
1583520	1588560	But yeah, blocking frequencies, hard-blocking frequencies could be a good way to do it.
1588560	1589180	Absolutely.
1589900	1599420	In a similar vein, would making it sort of polyphasic, so you have different phases shifting the phase around, or does that not actually have any effect in mitigating it?
1599860	1601180	I don't think so.
1601400	1602600	I don't know.
1602780	1603740	Let's try it.
1604240	1607360	Basically, the answer to almost every question is, let's try it.
1608100	1610600	Should you think of phases that sound a bit slow?
1610980	1613600	No, our phase shifts are instantaneous.
1613600	1614640	They're done in software.
1614640	1624420	So, if you have a rotation, like you have your vector here, instead of physically driving a phase change, you change phases.
1624540	1625520	It's virtual.
1625520	1627420	The phase shifts are free.
1629280	1630360	Sorry.
1630360	1630920	Yes.
1634380	1636200	Any more questions?
1636200	1637160	I'm loving this.
1637160	1637940	Thank you everyone.
1637940	1640880	What's your stability as far as you're on a microwave?
1644320	1645600	I don't know.
1646320	1651480	I'm only asking that because it has influence of things around us.
1651480	1653140	Solar flares and stuff like that.
1653140	1655040	It has a big impact.
1661630	1663990	Yeah, absolutely.
1663990	1675190	There was a paper from Google where they started doing some error correction experiments that implied that these solar flare, these solar events, were a limiting factor for how good their machine was.
1675970	1682530	If we get hit by some solar flare here, the whole thing gets excited.
1682530	1686290	It adds enough energy to drive the whole system into one or higher.
1686390	1688650	Does it look like these were bits?
1688650	1691390	Really, these are very high-dimensional systems.
1695290	1699950	It's a problem for distributed HPC clusters as well.
1699950	1704070	Bit flips somewhere here, and your MPI whole node goes down.
1705190	1708270	Stick them in a lead-lined room in Colorado.
1720760	1722180	Let's say it's analog.
1722180	1724600	You can stick to the subset.
1724600	1730260	Classical compute, reversible classical compute, is a subset of these quantum algorithms.
1730580	1737020	So it's a generalization of classical compute to a probability theory sense of doing it.
1737020	1740520	So you move away from just 0 and 1, which you can do.
1740520	1746340	You can just do classical, like the NOT and the conditional NOT, and just do classical compute.
1746400	1748680	You can build an adder quite easily.
1749140	1754540	But we also have the possibility of adding these superpositions where you become analog.
1764000	1765200	Yeah?
1765520	1770620	Yeah , so currently each one of these has their own microwave control line.
1770680	1772100	You can multiplex.
1772100	1777300	You can send multiple tones down one driveline if you wish to.
1777580	1781640	But most people tend to have one driveline per qubit.
1785280	1786280	Say again?
1787900	1789820	Yes, yeah.
1789820	1796600	So in fact, our qubits are actually tiny, tiny, nanoscale fabrication.
1796800	1808140	The size of this antenna is basically the size of the coax at the bottom, to pick up and couple towards that microwave driveline.
1815380	1816780	Sorry, say again?
1822300	1824680	Yeah, yeah, yeah.
1824680	1829600	So this is part of the core IP of OQC.
1829600	1831280	It's called the coaximum.
1831280	1843160	If you are familiar with the transmon technology that many superconducting devices use, you have your control lines come in in-plane, and you have to solder them in, you have to flip chip to get it over.
1843460	1848440	Our control lines come in perpendicular to the device and are air-gapped.
1848440	1855800	So there's a sample pack shoulder, you just screw your control lines into the top, and it's lined up with the qubits underneath.
1856500	1858340	If it goes wrong, there's air-gap.
1858340	1860940	You flick out the done one, and you put a new one in.
1866660	1868080	Sorry, say again?
1869620	1871200	How many values?
1871200	1873200	So like...
1875980	1880420	Yes, so it's a continuous spectrum.
1880900	1885100	So you have zero... it's a sphere, because you also have a phase.
1885200	1888980	So you go anywhere between 0 and 1, so 0 plus 1.
1888980	1892040	And then you can travel across the equator as well.
1894400	1898780	What's your qubit resolution around that rotation?
1898820	1899660	Good.
1901860	1902300	Magnificent.
1902300	1903360	Yeah, perfect.
1907060	1913120	I couldn't say off the top of my head what our angle of resolution is, but phase is perfect.
1913180	1914260	Let's give you a max phase.
1918220	1918640	Yeah?
1918640	1924880	So you said you keep the... you just excite the qubit, and then you keep the phase in software, right?
1924880	1925580	Yes.
1925580	1932940	And you bring these links into the diode that is controlled by software that allows or doesn't allow current to pass through.
1934000	1939180	So that's something like the idea of these tunable couplers.
1939280	1945760	But you can shift them, these couplers, very far out of the coupling space.
1945760	1951960	So yeah, this is basically what people like Google do, and Regetti as of last week, these tunable couplers.
1952620	1957700	Typically that's mediated by a magnetic field that kind of switches these things on and off.
1957940	1960260	Yeah, but that's absolutely what some people do.
1960260	1973180	So I'm thinking you could improve that and make it by dragging these phases in the next few weeks, and instead of it being, not being in a single phase, it would allow, software phases would allow to enable qubit to excite.
1973180	1973460	Yeah.
1973460	1979000	But you need to tie it with a single phase and either allow the second phase.
1979000	1980600	Yeah, absolutely.
1980980	1986280	And that's a challenging software and engineering problem to build.
1986440	1988200	But a very good solution.
1993360	1994280	Oh, sorry.
1994280	1995340	Yeah, go ahead.
2011360	2012840	Yes, absolutely.
2013040	2013540	Yeah.
2013540	2019600	So this is one way to drive a two-bit, two-qubit interaction, is the way I've described it.
2019600	2023640	There are many, many other ways that involve pumping into these higher energy states.
2023640	2026660	So you could do the same thing, go higher, and then...
2026660	2031020	I mean, I'm not going to enumerate all the different possible ways to drive a two-bit interaction.
2031020	2032380	It's basically continuous.
2032380	2034160	There are no possibilities of that.
2034160	2035240	Yeah, precisely.
2040540	2042740	I think I'm going to move on to the next slide.
2043960	2045840	I was going to say that.
2046780	2048200	Just slide in.
2048640	2049420	Yeah.
2050640	2054820	I just want to throw this slide up to shout out some amazing researchers.
2055500	2058380	This review of primary security of quantum computing.
2058380	2064460	This is starting to become, to be seriously considered by many different researchers.
2064460	2070420	Farooq Sarnash and Abdullah, IBM and Penn State, respectively.
2070800	2074940	These folks are taking this very, very seriously.
2074940	2082560	And there's not a huge body of work compared with, like, the body of work in hardware, the body of work in algorithms.
2082560	2085380	But it's starting to get there and being taken seriously.
2085380	2093700	As the computers get good enough and sophisticated enough that we can start to think about these sorts of threaded execution models.
2094580	2097900	But you can see that this isn't just quantum.
2097900	2100060	There's scheduler attacks.
2100060	2101920	Everyone has a cloud API.
2103080	2113010	There's a whole bunch of just classical security engineering that can lead things in unique ways in the quantum space.
2114340	2114800	Yeah.
2115100	2118580	We'll make these slides available so people can get these sources.
2118580	2126900	But I'll say this is probably the best or the only review in the space of quantum security experts.
2129600	2131020	So, Quickfire.
2131020	2135480	I've got plenty of time for any more questions.
2137160	2147300	Quickfire, these are just some ideas to get people thinking about what the different things that might happen, inspired by different classical software inputs.
2149200	2150640	Overflow inspired.
2151280	2153520	What happens if I ask for a number of measurements?
2153520	2155340	What happens if I ask for zero measurements?
2155340	2156780	Or minus one measurements?
2156780	2159460	Or two to the n plus one measurements?
2159620	2161280	This is all custom built.
2161280	2162640	All this stuff is custom built.
2162660	2166220	We're going to rediscover a load of overflow attacks.
2167440	2168440	Woo!
2169520	2172900	We talked about open pulse very, very loosely.
2173180	2179660	Open pulse lets users define these microwave envelopes that get sent to the quantum computer.
2180060	2186560	What happens if I ask for a massive pulse, a massive voltage, and one... you can put arbitrary times.
2186640	2189480	I want the maximum voltage for three days, please.
2189480	2191140	Let's heat that fridge up.
2192860	2195960	And a slightly more subtle one.
2196200	2197860	Qubit use after three.
2197860	2202400	This is actually a suggestion from quantum village organizers.
2203440	2210040	This is a different language spec, QIR, Quantum Intermediate Representation.
2210360	2221120	For any Clang users, for any LLVM users, this is an extension of LLVM intermediate representation.
2221120	2223540	That includes quantum elements.
2224540	2227400	So that we can distribute our compute.
2227600	2230880	You can power a server with CUDA to do some GPU acceleration.
2230880	2232820	You can also throw in that quantum element.
2233520	2236200	And the CUDA quantum project from the video is doing the first thing.
2237960	2239200	But what have we got here?
2239200	2241180	We've got an allocation and a release.
2243120	2245120	Use after three.
2245120	2247660	This is a problem classically.
2247660	2249480	And we're rediscovering it.
2251900	2254960	And just to get to the center, why would you do this?
2254960	2262720	There's a lot of algorithms that temporarily require entanglement to other qubits to perform a computation.
2262720	2264040	And then they don't care.
2264040	2267920	But there's information still in those qubits after they've been released.
2267920	2269960	So I could jump in and just measure them.
2270500	2272520	Extract the information out of the system.
2275920	2276640	What have we got?
2276640	2277980	Side-channel attacks.
2278480	2279980	Look at all these lovely labs.
2280560	2284920	Look at all those lovely wires in free space and the LEDs that are blinking.
2285960	2289000	That looks like side-channel attack vector space to me.
2289400	2293160	Maybe you can tell me I'm wrong, but there's lots of resistive heating.
2293160	2293980	There's LEDs.
2293980	2297500	There's lots of ways that information would be leaked.
2297500	2300760	Right now, it's not because of where these machines are situated.
2300760	2302120	That's not a problem.
2302140	2311680	When they start going out, when they start being openly sold to anywhere that isn't a very secure environment, this becomes a problem.
2312440	2315220	So again, you see we take it very seriously.
2315260	2322080	Our future deployments are taking place in data centers, our very, very secure environments, classically speaking already.
2322080	2323020	...
2326080	2328980	Very, very low power variance.
2329920	2330980	...
2341800	2343920	Yeah.
2349160	2351460	Yeah, I agree.
2351460	2355420	It's something to explore and understand.
2355420	2358840	How much is that and will that affect us?
2367090	2367770	Hysteresis.
2367770	2370490	Sorry, there was a better name I've given about this.
2370770	2372570	It's proven on security person.
2372570	2376550	When you delete something on a memory stick and it's not deleted, it's still there.
2376550	2377510	Whatever that's called.
2377510	2378930	Whatever that exploit is.
2378930	2380790	This is the other quantum version.
2382730	2383670	So what happens?
2383670	2389270	This is now threaded, not on a QPU, but shot to shot.
2389270	2393510	So every measurement, I flick between a different user.
2393790	2397430	Something like a fair scheduler in a cone.
2397430	2400850	We're flipping between these different bits.
2401810	2405470	If I'm in state one, we're adding energy into the system.
2405470	2408110	So this is a higher energy level.
2408110	2412610	It has to relax back down to zero in order to be safe for reuse.
2413690	2419390	And it's an exponential decay, which is quick, but that's still not zero.
2420290	2423770	So this is a setup problem that might go wrong.
2424770	2434150	If I don't leave enough time between the shots, there's information still lingering in the system about who was previously running on the device.
2435210	2436230	So Alice is shot.
2436230	2437270	This might be genuine.
2437270	2440070	This is trying to do something good for the world.
2440730	2442950	Eve just comes in and says, I'm just going to measure.
2442950	2444210	I'm not going to do any computation.
2444210	2445170	I'm just going to measure.
2445730	2450850	And if Alice is trying to generate graphic keys, I'm just going to measure those keys.
2452010	2455090	So this is what our remediation is for.
2455090	2462130	It's a good active reset, where we pump the entropy out of the system and make sure we're at zero.
2462130	2462670	Yeah?
2462670	2472970	The x-axis on your graph, is that 8 times 10 to the negative 5, or is that 8 times 10 to the negative 6, and then the end of the graph is 1e negative 5?
2473090	2476210	Yeah, the whole thing is multiplied by 1e minus 5.
2476210	2477170	OK, great.
2478790	2479970	And this is real.
2479970	2482890	It's T1, it's called, which is the relaxation energy.
2482890	2486950	This is genuine data that we collected.
2487170	2491830	These characteristics are very well understood in the physics space.
2492110	2492710	Yeah?
2492710	2498470	This actually means we're at the end of the universe, and we're in the magnetic memory.
2498470	2500610	It's in the Apollo game.
2501430	2502390	It is.
2502410	2508310	It's exactly like that, where you have this dissipation of the energy that happens over some time period.
2508870	2509290	Yeah?
2509290	2511990	And it's very well based on Apollo data itself.
2512110	2513050	Exactly.
2513130	2516130	Every qubit will have a different, we call it, T1 time.
2516130	2521290	This one has a T1 time of 22 and a half microseconds.
2521290	2527290	Every qubit, they'll range, I think, way up to maybe 200 microseconds.
2527690	2531190	In the industry, that is, 250 microseconds.
2531950	2533890	Like, Google Gateway was very low.
2533890	2535630	They were 30 microseconds.
2535630	2540690	So there's a huge variation on what these relaxation times are.
2544180	2545940	Timing attacks.
2546040	2549900	Any crypto engineer here has another timing attack.
2550820	2559300	These two qubit gates that I mentioned, they're not as simple as just drive it for 100 nanoseconds.
2559540	2561580	They vary a lot.
2561580	2568260	The calibration doesn't just check for the frequency, but it also does the amplitude, the length of time it takes.
2568480	2571720	So here, this is the IBM Auckland device.
2571940	2577320	And their range is 284 nanoseconds to 746 nanoseconds.
2578060	2584360	But each two-qubit interaction varies between those two extremes.
2585240	2592060	What that means is you can get some information about the structure of the circuit just based on how long it took.
2596190	2600250	A remediation for this is you make all your gates the same length as the longest one, right?
2600250	2601430	You add a delay in.
2601430	2603330	Then maybe there's side channels there again.
2607330	2609810	So now, that was all the bad news.
2609810	2611870	All the ways it's going to go wrong.
2611870	2615650	The last two slides I have are about some mitigations.
2617190	2620290	This first one, blind computation.
2620350	2626250	This is some work from Ann Broadbent, Jerry Fitzsimmons, and Elham Keshefi.
2626250	2637130	Three astonishing researchers who were very, very pioneering in understanding the links between quantum computing and cryptography, and how they can really help one another.
2639370	2640190	I'll brief you.
2640190	2641670	What is this cluster?
2641670	2646650	This is a new model, what we call measurement-based quantum computing.
2646690	2648970	I'm going to brush over exactly the details.
2649410	2651150	But what we do here...
2651150	2655250	Previously, when someone asked for a two-bit operation, we did that for them.
2655750	2660830	In this model, we preload all of the possible two-bit interactions.
2660970	2663550	So we entangle our entire system.
2663550	2667510	And then the way we do compute is just by doing measurements.
2667870	2670270	Sequentially, on individual qubits.
2670610	2675470	And the angle of those measurements changes the computation.
2676970	2678750	Why is that important?
2679510	2682730	This is classical verification-improver stuff.
2682730	2691270	I have some computation that I want to perform.
2691270	2694570	Basically, it's a series of angles.
2695230	2699490	Of very particular angles, not just arbitrary.
2700950	2703270	What I do, the client...
2704070	2711110	So if I don't trust some machine, I inject a state into that machine that kicks off the whole thing.
2711790	2714530	What that does is it gives me a one-time pad.
2714750	2720510	I've encrypted my entire computation in the combination of angles and this injected state.
2720510	2729710	So if I interleave my computations with genuine compute and trapped compute, that I know the answer for, by just doing 1 plus 1.
2729710	2731530	It's probably more interesting than that.
2731530	2733530	I've encrypted 1 plus 1.
2734090	2739570	Then I can tell I'm being fooled here, because my trapped computes keep coming back wrong.
2740090	2747110	But because it's one-time padded, the server has no way of telling the difference between the trapped and the genuine.
2748750	2759810	So it's impossible to, theoretically, it's impossible for the server to trick you and pass the trapped and fail the genuine ones.
2759870	2761270	This gives us assurance.
2761270	2765330	It won't necessarily fix it, but it will tell you if you're being tampered with or not.
2768230	2773170	In fact, in an incredible, very recent paper, they actually physically implemented this.
2773170	2774530	Some really astonishing work.
2774530	2778610	This has been decades of work to get to the point where they've actually done this.
2779610	2784110	This is something that's very easy or hard, depending on your architecture.
2784430	2787350	I talked earlier from Xanadu.
2787410	2788970	For atomic devices, this is easy.
2788970	2795110	You just stick a fiber optic cable into the front of your device, and you give me the other end, and I inject my states.
2795530	2798390	Equally, some ion-trapped devices, it's quite easy to do.
2798390	2808450	It is quite hard to do for superconducting-based devices, but there are proposals if you're working towards something like that.
2811290	2816810	Just a sidebar, this isn't just for detecting if I'm being messed with.
2817330	2820530	This also tells me that my device is running correctly.
2821070	2829710	When I get to the point where I cannot verify the correctness of my answer, it's not MP, I can't check it for the rest of the time.
2829710	2832790	Then I can use this method and say, yeah, your device is running well.
2832930	2834990	So you can probably trust your answer.
2838680	2842100	And the final mitigation is error correction.
2845880	2853340	And this is RAM manufacturers bake error correction into their devices for very similar purposes.
2853340	2855700	Well, there's a few reasons we do error correction.
2857240	2860200	But let's take a classical error correcting code.
2860200	2864180	We take any time I see a zero, I make that three zeros.
2864480	2867500	Any time I see a one, I make that three ones.
2867720	2874420	And then when I take a measurement, I take a majority vote and assume that approximately one error occurs.
2875560	2880240	That's the simplest possible error correcting classical code.
2881160	2885400	The difference with quantum compute is that we have two errors to correct for.
2885400	2894080	We have this 0, 1 error, this bit flip error, where I said we also can traverse the equator between 0 and 1.
2894340	2897000	So in this instance we have a phase error as well.
2897000	2899260	I can go from 0 plus 1 to minus 1.
2899260	2902680	So basically there's two equators I could bounce between.
2903760	2908160	So we have to bake two errors into our error correction.
2908160	2916900	This is a recent paper from Google demonstrating the phase flip and the bit flip error, demonstrating that you can correct for these things.
2917680	2921800	And this is what people talk about when they say fault tolerant for quantum computers.
2921940	2926260	It means that you are correcting for errors faster than they're occurring.
2926640	2928920	And this could include malicious errors.
2930280	2932180	This is a surface code.
2932180	2933080	This is cool.
2933080	2937860	They're not very good at highly correlated errors.
2937860	2939280	So it's still not very good.
2939280	2942020	If you get hit by a cosmic ray, you still die.
2942020	2944340	There's not much you can do about that.
2944780	2948600	But this is somewhat the end goal of quantum computing.
2948860	2955580	And when we have full error correction, that's when you have to worry about things like Shor's algorithm and your cryptography.
2957060	2959980	Current estimates may be 20 million cubits to crack.
2960060	2961860	RSA 2048, I think.
2962100	2963540	Don't quote me on that.
2963640	2964960	We can Google it afterwards.
2967330	2973130	Yeah, so this will really solve most of the problems.
2973130	2974250	Not the side channels, of course.
2974250	2975310	Side channels are always there.
2975310	2976970	Time intact will still be there.
2976970	2979310	But malicious intent, you can correct for.
2990580	2995620	So this surface code is based off a torus.
2995640	2998700	And you have one direction goes one way, and the other goes the other way.
2998700	3002180	And it adds a lot of redundancy into your system.
3002520	3010100	But the basic idea of error correction is you add redundancy into your system, such that if a few bits go wrong, you can detect that and correct it.
3010520	3012940	Same as classical and quantum.
3016200	3018480	This is my last slide, so any questions?
3019500	3020540	No.
3023480	3025180	I put my email down here.
3025180	3028360	I'd love to hear any of your ideas, any suggestions.
3028360	3034760	I want to get this conversation going between the quantum and hardware hackers and the regular hackers.
3034760	3038420	I want to get our devices as secure as possible.
3038420	3045240	So please give me an email, jfriel, j-f-r-i-e-l, out to quantumcircuit.com.
3045240	3047320	And let's talk hardware hacking.
3047320	3048160	Thank you for listening.
