Thank you, Mark. I assume everyone can hear me. I'll try to stay as close as possible to the microphone, but I have a tendency to walk and show. Let me try to see if I can carry it with me. Yeah, it works. Wonderful. Okay. So yeah, I'll talk to you about a special team in Quantinium. It's the Oxford team. It's located in Oxford, United Kingdom. And it's a team called Quantum Compositional Intelligence. And it's a team that is focused on working on the theory on quantum logic and quantum foundation. So we do very theoretical work. Indeed, we're possibly the only team that doesn't have any commercial pressure. So I know that DEF CON, you know, it's a... We are doing things that are not corporate in that team. We're really doing pure research. Okay? And so the agenda for this talk today is I'll talk to you about, yeah, what is quantum logic and quantum foundations and why we are working on this field that is very abstract and seems to be actually very disconnected from applications. But you'll see that there is some value in doing that. And then I'll talk to you about a new language. That we developed. I'll tell you what that means. But this is very, very powerful. And then I'll give you a success, an example of a success from this research. So you think, like, you know, very theoretical research. Can it have any practical usefulness? It does. And the example is Ticket. I mean, Mark talked to you about Ticket yesterday for those who were here. I'll tell you a bit more why Ticket is the best compiler in the world in quantum. And that is actually a result of the research we do in theory and foundations in the Oxford team. Then I'll show you some...I'll talk to you about a very, very fascinating project that I'm sure some of you, especially those that are not very well versed in linear algebra, will find very, very interesting. And I'll briefly talk about the culture of our team. And I'll finish with... an introduction to LAMBEC, which is the, you know, the open source toolkit that those of you who are doing the challenge, the CTF challenge on quantum natural language processing, will be using. If you want the slides, I'll send them to you afterwards. So you wonder what we're doing in this team. We're doing this. We're also doing that. And we're doing this as well. So you see, like, all these very beautiful pictures. You obviously don't know what they mean. Don't ask me to explain to you what they mean in detail. This is some very rigorous mathematics. In fact, it's an area of mathematics that is called category theory. And I don't know if some of you have heard of category theory. But category theory is possibly the most abstract field of mathematics. The goal of category theory is to build a meta theory of mathematics. And when you deal with categories, you deal with the most... You abstract any objects or every field of mathematics, and you look at relationship between them. So I don't think that in any field of knowledge you can go more abstract than this. This is logic at its purest form. So you think, like, okay, well, if it's pure and abstract, how could this be useful? I'll tell you, but it's very useful. So I think... So a lot of people here are interested because they believe that quantum technologies will be a major technological revolution. Or, at least, there is a high chance for quantum technology to be one of the largest technological revolution of all time. Of course, I'm working in the field, I really believe that it's possibly going to be the largest industrial revolution of all time. But what no one knows is how it will look like. No one knows exactly how this industry will look like in 10 years, 20 years, 30 years, 40 years. years in the same way that no one when they were working on transistors would would foresee that we have the technology we have now and the usage we have now and i think the best way to deal with uncertainty in that um in this you know in this in this emerging field is to not just look at applications but also to look at every level of the every every part of the chain um from very applied science to very fundamental science and i think that having a team working on on foundations is is actually what makes quantinia my company unique because we're like you know like a country we're not just investing in the applied stuff we're investing in the fundamental stuff so that will give us you know we're building an ecosystem so there will be interactions and i think it's it's it's a good way of of of innovating you need to be knowledgeable about every level of the of the chain um just a note on our team when i say it's it's a pure research team it's actually a spin-off of the university of oxford quantum logic and quantum foundations uh research group so that group that was working on fundamental research in oxford spun out and now is part of quantinium um yeah so that's another example of these diagrammatic algebra uh so we call this diagrammatic reasoning or diagrammatic algebra so this is a rigorous form of mathematics um but um it's it's using pictures and the reason behind it um is that again i'll send you the slides afterward don't worry um is that um let's go to the fundamentals actually when when we speak when we use language we when we write for example we write from right to left it doesn't matter you know it's if it's english it's from left to right it's french from left to right uh if it's arabic it's from right to left if it's hebrew it's from right to left as well uh and i guess in ancient chinese um you know it was from top to bottom but at the end of the day no matter what language you speak you only you always write linearly it doesn't matter you know you could say okay well chinese characters are pictures but then you compose them one after the other right and the reason behind that is that you know if you write from this is possibly because when we speak we can only say things in a linear way of course your your the voice sound is going to go in three dimension sound propagates in three dimensions but whether you listen to it here or there it's the same message it's a linear message you don't say three things at the same time in three different directions right and you can only process this information with your ear linearly right but and it's the same in mathematics when when we express words we use we use mathematics and we express it in linear ways then you could say oh well how about matrices you know matrices are you know three by three you know that they're two dimensional objects but yet matrices you always compose them one after the other you've never seen you know well yeah you've never seen something or you can compose them in parallel but your your language is only going to be linear you're never going to see you know matrices here and then you you add it above and add another one below you it wouldn't make sense right and there is nothing in nature that there is no law of nature that says that concepts would want to live on a one-dimensional medium there's nothing that says that and so we humans have been constrained by language to express and describe concepts in a one-dimensional way which is not necessarily very well suited to describe those concepts and by that we've added what we call you know some sort of bureaucracies to constrain them in this medium so it means that possibly this medium is not very efficient and one of the things that we've shown in our group is that okay this for people who are good at linear algebra that will be i wouldn't say it's obvious but that will require a few seconds of compute time but they will they will be able to say that the left-hand side is equal to the right-hand side for those who've never done linear algebra well it's not so obvious but still it's an easy example but still requires some compute time in diagrammatic reasoning it looks like this and there is no loss of information of course you haven't studied diagrammatic reasoning so you can only believe me on this but the two the two right hand side and left hand side that are expressed in two different ways with linear algebra are expressed in one unique way in diagrammatic reasoning and of course this is just one example so it doesn't prove the rule doesn't prove the theory we have many many other examples and i'd be very happy to send you you know references and things to look at this the point behind this is that these two things are equal and the diagrammatic one is way much more efficient and intuitive to express this and this is so where i you know i'm going to talk about ticket that mark introduced yesterday mark and catherine introduced tickets yesterday this is one of the reason that ticket is the best compiler right now in quantum computing this is the reason why even ibm is using ticket to um to work on their own system and they're actually very interested about that this is also why google is actually using diagrammatic reasoning to do circuit optimization so yeah diagrammatic reasoning is used to do circuit optimization that's uh the slide from mark yesterday showing you you know the different you know a series of gates that can be simplified using diagrammatic reasoning representing quantum circuit with diagrammatic reasoning make me makes it much more intuitive you know as you could see in the in the algebra versus diagrammatic reasoning for the system to see the simplifications we actually came up with a series of rewriting rules so when we represent a system with a in a diagrammatic way then we can easily convert it in a much simpler form without any loss of information and making it literally completely equivalent um but maybe more profound than this is that teaching physics using diagrammatic reasoning could make it much more intuitive and we're actually running an experiment uh right now i mean we're about to start we've we've we've designed the experiment we've we're in the process of recruiting students in which we're teaching quantum mechanics quantum information theory to high school kids and at the end of the experiment so it's going to be a three-year month course and at the end of the experiment we're going to give them an oxford master student paper and not only we're actually pretty confident that some of those high school kids will perform as well we actually expect that even some of them may perform even better than some oxford students so what do we do i mean of course we're not giving them the the linear algebra version with hilbert spaces and for neumann formalism of course we're taking the paper we're converting it rigorously into this diagrammatic format and we teach the kids for three weeks the rewriting rules and the you know the general intuitions behind quantum quantum mechanics and quantum information theory and we're giving them the exact paper and of course the oxford student we compare the results with oxford students using the fundamental formalism but we want to show that using this we can actually lift a portion of the population because of course if high school kids can can do quantum mechanics then pretty much most of the students will be able to do quantum mechanics the adult population can do it right and and why is this important is because you know if you if you assume that quantum revolution is going to be a profound industrial revolution just look at what other industrial revolution did in the past every industrial revolution raised the well-being of population that's one positive you know one positive aspect but on the contrary and it it's a fact it doesn't matter whether you're left and left wing or right wing it also increases inequalities between those who didn't have things and those who had things you know and we want to try to i mean that would be a brilliant thing so you know what if you could allow a portion of the population to also have access to this technology because this technology right now is reserved to a trained elite we did you know several years at least of mathematics or programming or you know who has this engineering mindset or scientific mindset what if we can bring an entire new portion of society and and and give them that ability to to learn that science and the cool thing is that it doesn't just work for quantum mechanics or physics it could work for chemistry it could work for biology so what if you know i guess like it was like a hundred years ago someone who had a master were considered an expert now nowadays without a postdoc you're not considered an expert so the you know the level you need to have to be an expert in the technologies has increased maybe there's been some great inflation but not just that of course there's there's probably the amount of knowledge that is required to be an expert at something is also increased um if now we can lower that limit again that would be that would be tremendous we could probably have impact on every level of society um so yeah that's the kind of things we do in oxford we're a bit of a team of rebellious people um especially the the boss i'm i'm not i'm i'm a just normal person but but so uh ross is the inventor is the one of the what is the head developer of tickets bob is um is the i mean ross and bob developed actually the diagrammatic reasoning i mean the one type of diagrammatic reasoning the zx calculus that we're using for circuit optimization and uh yeah he's the head of the quantum compositional intelligence team he used to be a professor at oxford in uh in uh quantum foundations and quantum logic and all of them love drinking beer and and and uh and and and do you know doing jam sessions and uh doing you know hard metal music with with uh you know uh it's very fun we actually have i didn't i don't have a picture of this but we have a music studio in the basement of the office and it's really fun and i met yesterday someone will be playing some quantum music later um he's not here in the audience but he's going to play at some point uh and i think it's it's very cool it's the kind of stuff that my team also does and and really likes and one last point um is that this also have has unexpected results one of them is that toolkit that we developed um and that we some of you will use in the in the capture the flag we have a couple of challenge that we've uploaded um the history behind it is that um one day bob that you saw in the previous slide uh was giving a talk at mcgill in montreal explaining his you know his new diagrammatic formalism to to describe quantum processes and one man in the audience called joachim lambeck with a we just changed it with a q obviously was in the audience and pointed at bob saying okay but what you're describing is not quantum teleportation it's actually grammar and bob was like no no i mean this is this is quantum teleportation i worked on quantum teleportation but what lambeck meant is that the mathematics that bob developed for describing quantum processes was actually compatible with the mathematics that he joachim lambeck developed so he's one of the most prominent uh formal grammarians in the world like chomsky in the following of chomsky and and and the mathematics that bob developed was actually very compatible with the mathematics that he uses to model meaning in language you know linguistics is the study of language but one of the main challenge in linguistics is ambiguity um you know grammar and syntax you know they're trying to make it they're trying to add more and more rules to to make it more bulletproof and make it better at actually describing meaning but this is this is a very challenging thing and using the simple math is not sufficient and so the math that we've been developing in order to make sense of the unapparent you know um if you know a weirdness of quantum of the quantum world is a more powerful math and that more powerful math can actually be applied to other fields as well um i'm gonna if you want to i'm also happy to make it a bit interactive but i i can actually guide you through the pipeline of lambeck how to do that so i'm going to show you lambeck works okay so lambeck has a so has a pipeline in five steps the first step is to parse a sentence so what parsing means is um uh when you have some of you have nlp background or okay so we don't use parsing anymore in nlp pretty much i mean it's it's done implicitly statistically uh by this very large uh model of course these very large models are very powerful they can do amazing things there's still some challenges you know conversational agents i mean you can be bluffed maybe once in a while but most of the time it's not very good machine translation for some basic translation it works pretty well but for when you want to actually go into the the actual translation it's pretty bad and so we haven't sold we're far from solving artificial general intelligence i think but but but the current nlp systems are very good at automating language tasks when you want to process information extract information they're really good but what they're not good at is being interpretable these are statistical black box models of course they're research being done trying to you know interpret how you know why a specific transformer leads to a specific you know result but it's still very you know there was there was a sentence from i think it was from darwin was saying that a mathematician was a blind man when a dark room is looking for a black cat who is not there i think it's probably describes kind of well the research being done on on transformers and so the previous approaches in nlp were relying on parsing so they were relying on explicit rules to decry the structure of of of sentences of course they're not as powerful as the as the transformer statistical approaches but they're not as powerful as the nlp but if we can push them with this new technology we can possibly create a formalism that will make sense and model the flow of meaning in sentences and that's what we're trying so the first step is given a sentence we parse it so we decompose it into different uh grammar type we call them atomic types and so you know park is a noun there is a determiner but we we describe it by n slash n which means that this one is the inverse of n so they both combine they form a noun actually there it's equivalent to a noun and that's why in english we call it a noun phrase the park is called a noun phrase because it's basically equivalent to a noun and we repeat that through all the worlds all the words of the of the sentence uh in lambeck it's represented like this but it's equivalent and then we apply category theory we model it using this diagrammatic formalism i mean i'm simplifying this i'm simplifying things right here right now but this is the idea and we call this the This data structure, we call it a string diagram, and it's very useful for us to manipulate language. We can simplify the string diagram using the rules that we have, and then we can use what we call a NANDSAT, an hypothesis, to transform it into a quantum circuit. So this is the quantum circuit. This is the parametrized quantum circuit for John Walks in the bar. This is a representation with Qiskit, but we can do it with Ticket. It's the same thing. So all this is described in this paper, QNLP in Practice. And we've actually run it on an actual quantum hardware, and it works. So we've actually shown that using quantum physics, we can process the meaning of sentences. So it's not just us trying to add quantum to surf on the hype. It's really intuition that came at the foundations level that turns out to be potentially useful for this. And why do we call ourselves quantum composites? Well, we call it quantum compositional intelligence because if we can describe language with this, you know, language is at the heart of intelligence. Even just look at the Turing test. It's a language task. And this is the best thing that we have, humans, to determine intelligence so far. We call it quantum compositional intelligence because we hope that with this research we'll be able to pierce the secrets of artificial intelligence. So if you want, if you're interested about that, do our LAMBEC challenges. I think they're really useful. They're really good, you know, introduction to this field. And yeah, feel free to ask me questions or Charlie even now or you can talk to me at the end. It's fine. I think Charlie will maybe give you a quick demo of how LAMBEC works for those who want. Thank you. All right. Can everyone hear me? Cool. So that was as soon as this comes up. . Or not. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . processing as it exists currently it uses this diagrammatic formalism that that Thomas was talking about it's called distributed compositional semantics so in the olden days when they did natural language processing there was compositional semantics which is that the meaning of a sentence or a document or something is comes from how it the small parts combine how the words combine it's a natural way to think about it a sentence is made up of words the combination of the words in their order and how they combine gives you the meaning but they've moved away from this with current NLP and it's almost all distributional the meaning of a word is what's around it and it's encoded as a vector of numbers that's how all NLP works at the moment so with Lambeck we try and combine those so the compositional structure how everything connects together determines how your quantum circuits will look your circuit describes your sentence or your document then the distributional bit comes in in that we parameterize this circuit so each box so this here this is a box this is a noun this is just a noun by itself this has no meaning on its own apart from the meaning that a human can give it but to a computer there's no meaning to instill meaning in this we can convert it to what it is this is a parameterized quantum circuit so these are three gates that will rotate your input qubit so by training these gates you imbue meaning on the computer so if you want Alice to be different from Bob you train the gates so that for Alice your state may come out as a one with very high probability and for Bob your state will come out as a zero with very high probability so this is how you go from the structure and here we can see this is the structure of a sentence this is a grammatical structure but in a diagrammatic form this actually it's called a combinatorial categorical grammar gives you this structure for a sentence then by putting meaning into the boxes by adding quantum gates you have a circuit that has meaning on a quantum computer so down here this is what the circuit will look like this is a real runnable quantum circuit you can run this on a computer and by training the gates because these are rotations there's a classical parameter for each of these gates which is how much it rotates the state by and then the combination of these boxes with their structure and their meaning means that on this wire here you get some output and that's the meaning you train it so it gets the right meaning so if one of the challenges you have a bunch of sentences about cooking and a bunch of sentences about computing and you want to train a model that can differentiate them differentiate whether the topic is cooking or computing you build circuits for each of these sentences and they share boxes so each box if a box is the word computer every time that appears in every different sentence you use the same parameters and so by training multiple of these you imbue meaning into each of the boxes so it now will transform the word computer into a given state every time and by combining that with the other words it will generally be able to pick out that a sentence containing computer means it's about computing and a sentence containing fish means it's about cooking so by adding meaning to the boxes and combining them together you can get a complete new sentence once you've trained your boxes so that they have the correct meanings with a grammatical sentence you build the structure you combine them you turn it into a circuit and for a brand new sentence you now have the meaning coming out of the quantum computer just by running it so this is it in in ticket this is the circuit for our quantum computer and this is the circuit for our I think it's Alice Loves Bob something like that yeah this is this is Alice Loves Bob on a quantum computer this is this is just kiss kid and then you want to train a model though one sentence is cool but if you have one sentence you're not learning anything you can you can make it output whatever you want by setting the parameters correctly what you want is for the word Alice to have a meaning and in the state that comes out so here what we do is we take in a data set of a bunch of sentences so these are different sentences you can see here organization church established organization that team joined and they have labels depending on what the sentence is about all these sentences are about the same thing so they have the same label but the final sentences are about different things they have different labels and you can train a model to split these sentences up so we build our structures for all the sentences in fact I need to run this here here's the structure for one of the sentences again it's a grammatical structure we get them all we get them all we convert them into quantum circuits like this so each sentence will have its own circuit but with shared parameters because each box has the same parameters in every sentence where that box appears then we go on and here we're training a model on these sentences to discern the sentences so here we can see it's this is only it's been trained twice to looping over all the sentences it has an accuracy of 71 percent about if you train this longer it'll get perfect accuracy because the boxes have meaning they combine together you could put in a brand new sentence using the same words and it will be able to tell you whether it's from the first class or the second class sorry and then here so I didn't want to run it for much longer because I'm only up here for a little bit but in in the challenges there is a Lambeck task where you are going to train a model to be able to it's actually what it's going to do is it's going to take a pair of sentences and tell you whether they're about the same thing or a different thing now a very quick introduction so any questions I would be happy to take because yes please oh my God it's so loud how do you mean um I mean yes that there will be you know like any machine learning model it's probably not going to get 100 accuracy on a very simple task it will be that but yeah uh yes yeah uh and then in that your boxes will be trained based on what's around them, based on what you're part of. So your parameters of your games are going to depend on your total set, on your label, on everything. And then... Forgot the mic. Forgot the mic. Yeah, so you build it up, and then your boxes constitute your model effectively. The structure is less of the model. The structure is fixed for every sentence. We don't change the structure with training. But by training the boxes and combining them together, you get the meaning of the overall sentence. Yeah. The classification's all done on a quantum computer. There's no classical involved except to build the structure, and that is a CCG parser. It's just a standard, bog-standard parser, effectively. Sorry, was there another question? Sorry. Sorry. So, if you'd never seen that word before in the context you're talking about during training, and it was a brand new way of using a word in test, so if the word is being used in the same way, because obviously there are some words that can have different meaning in different places, and if you only had one meaning in your training and the other meaning in your testing, it's not going to work, but that's also a problem with any classical model you have. But if you're using it the same way in a new context, that should be fine. It should have learned that your hope is that the meaning of the word is learned by the parameterization, so that if you use it within a completely new context, through the structure, it's able to combine that with the stuff around it to do the right thing. So, you can go back to what's about the word, and more about, like, the context, like, you can recognize that the context around the whiteboard, like, I don't know if the whiteboard is connected, but they have a context, and that context is also going to be, like, heard from a computer, or something like that, and I don't know if it's going to take up, well, let's throw this word into this white space, because the context that it's reading is interlinked with the text, and that's what we're going to be hearing from each of them. And that's what we're going to be hearing from each of them. I'm not sure about that. I'm not sure I understood the question. I will... . . . . . . . . . . . . . . . . . . . . . . . . . . . a word it does so because it's related to the different contexts around it to give it meaning so I was thinking if you if you had the sum of all contexts a word is used in could it derive the use of that word in a new context because it's the the context that is new implies some kind of use of the sum of all of the contexts that word has been in is it recognizing that word or is it just recognizing the all of the different words associated with it to bring on new associations and use a word in a new context or vice versa would it pick out and say oh well this word was used in this context I've never seen before but I know the all of the other contexts around it and based on the the completeness of these other contexts it would make sense to use it in like a new place with different associations because of the like the the way it associates so one thing I'd say is that depending on the number of parameters you're using to encode a single word it's it's not going to be able to remember that many contexts it's been used in before but if you had enough parameterization enough parameters I think what you're saying sounds sounds like sounds right sounds like it should be able to use what it'll have the new structure the next time it gets used and I think based on the old contexts that are encoded in the box now plus the new structure it should be able to figure out how to use it in the new one I will I'll talk to you after because I'm not sure I I think there's other questions yeah please please come up I don't know yeah yeah come come come I don't know to state it in a more simplistic way can a single word have different meanings so a single word noun specifically yeah so so different words are encoded in different ways and noun is always is is generally encoded as as just some rotations following a qubit no that noun in the in in a different context is always going to come out with the same state nouns are generally the nouns are connected into them so they will change depending on the context but the the so in the diagrams I showed I don't know if it'll come up again but the ones at the very top level they're always going to have the same meaning because because there's nothing being there's no context being given into them the information flows through the diagram top to bottom and nouns are generally at the top because of how ccgs work and the flow through that it's always going to be at the same state but a verb is generally lower down has nouns flow into it this will change depending on the context on it yeah if that answers yeah how much information if you use to track each word or the telling the phrase to track it so if I have one user word I have to track eachgraded word and noon or sooner that becomes a word and you say you're talking about the state of that word how much information is that in in the simplest in the simplest form um when we do it a noun will be a single qubit followed by three rotations parameterized rotations which will allow that single qubit to be in any state after that depending on the rotations but yeah one qubit so two complex numbers um in the simplest case when you want to do bigger sentences more complex things lambeck lets you use more you could you can use as many qubits as you want to encode a single word but but with the restrictions of technology at the time the you can what's the biggest one you can do 12 qubits up to a depth of 12 gates with high fidelity currently so if you want to use more than a single qubit for a word in you're gonna you're gonna struggle a lot running it on a real quantum computer currently oh yeah yeah um yeah this guy first because and then and then i think probably you and then i probably have to go i don't know how much time i have so when you when you're presented with a word and its context uh are you able to infer a new word or uh are you based are you able to infer a uh an unfamiliar word based on its context when you have that same context for a word that you know so um you could and it's it's gonna depend on how you that doesn't come for free it's gonna depend on how you set up your model and stuff but but it is possible you could you could get a context circuit you could put in a a toke a blank token or something and then you could ask the model at the end to maybe output three numbers prescribing to what rotations the model thinks that model should be but you would have to train it to do that it doesn't come for free um yeah last last one and then i'll go so it creates a new circuit for every line right so does that add like latency to training time and like have you thought about like adjusting that or improving it um so yes it does because you you have to iterate over every sentence we have we're currently developing a new framework that lets you encode entire documents as as a single circuit but again with current technology we can only run those on simulators so yeah so that that can't be run on a real thing these little ones here you can run on a real quantum computer if you want you can you can train it it's going to take forever because an ion trap computer takes loads of time but um we are working on bigger ones where you can you can learn context over whole documents stuff like that but it's it's not going to be able to run on a quantum computer for we expect quite a while a lot of this is is very speculative work in the future so we're going to do a bunch of stuff we assume quantum computers work then we do a bunch of stuff and then we hope that our other team makes them work at some point but um thank you very much um i'm going to head off now do the challenges