Quantum computer chip in its golden mount

Quantum computing and artificial intelligence

Like quantum computing, artificial intelligence has made dazzling progress in recent decades. Only recently, this field of computing has shown impressive new results, notably with ChatGPT and Midjourney. What could quantum technologies bring to artificial intelligence?



Artificial intelligence in brief!

Artificial intelligence, often abbreviated to AI, is a much broader field of computing than one might think. Spell-checking, route planning or relevant web searches: AI has now become an essential tool for most of our electronic devices. In practice, an AI algorithm takes in objective data, called observable variables, and deduces new information from it, called hidden variables.

 

In its most basic form, an AI algorithm is incapable of learning. It simply returns a set of hidden variables from observable variables, and that's all. For example, it will be able to say that an image contains a red object if it finds red pixels, but it stops there. Today, the major results in AI are obtained thanks to machine learning and its derivatives. Machine learning algorithms, often abbreviated to ML, are algorithms that can learn from a volume of data. In practice, this works in a similar way to the brain: an infant who frequently hears "Mummy" in the presence of their mother will end up associating the two notions and will say their first words. Well, in machine learning, it's the same!


 

The current limits

To be effective, an ML model must be trained on a large amount of data so that, when presented with new observable variables, it can deduce the hidden variables associated with them. So, in theory, with enough training data and time, an ML algorithm would be able to do more or less everything the human brain does. In practice, things get complicated!

 

Training a high-performing algorithm is a slow and resource-intensive process whose aim is to adjust a set of parameters in an optimal way. To give an idea of scale, training GPT-3, the model presented by OpenAI in 2020, required optimising 175 billion parameters. OpenAI has not published this number for GPT-4, its successor. Generally speaking, training a model is a slow process that is costly in resources (computing and energy)... So might it not be worth using quantum computing?

 


Quantum machine learning

As mentioned in my previous article, quantum computing is a powerful tool, but one that must be used wisely. At present, the small number of qubits available on the machines greatly limits the number of observable variables with which the model can be trained. Likewise, the error inevitably linked to quantum computation would not make it possible to obtain precise values for the model's parameters. Given the current performance of quantum machines, simply copying an ML algorithm with a quantum approach would not be very relevant…

 

That is why, today, research in quantum ML focuses mainly on hybrid classical/quantum approaches in order to make the most of quantum technologies, despite their current limitations. In these hybrid approaches, specific tasks that are known to be hard to compute are run on the quantum machine, and the rest is left to the classical machine.




For example, to search for optimal parameters, a commonly used method is gradient descent. To put it simply, this means finding the minimum of a function whose variables are the model's parameters. This process does not necessarily take long to run, but it is repeated so many times that speeding it up even a little would significantly reduce the time it takes for algorithms to learn.

 

In short, trying simply to copy classical methods into quantum form does not seem very relevant, at least in the current state of knowledge. But quantum has not had its last word!


 

Variational quantum algorithms

Rather than simply copying its classical neighbour, quantum computing has its own ideas, and already knows how to put them into practice. These novel approaches include variational quantum algorithms, abbreviated to VQA!


The idea behind VQAs is to start from a set of quantum operators (which, as a reminder, are called quantum gates) forming a circuit. Where in ML we simply seek to determine the best parameters for a fairly general model, in a VQA we will also try to adapt the model to the problem posed. For this type of algorithm, the idea is not to obtain the best solutions all the time, but to create a model in which we maximise the probability of obtaining them. So, by repeating the calculation as updates are made, we increase our chances of obtaining a solution close to the best possible one!




The VQA family includes algorithms such as QAOA, which stands for Quantum Approximate Optimization Algorithm. In this approach, we start from the principle that we know the formulation of the problem to be solved very well, but have no idea what the solution looks like. For example, we could look for the best way to cross Paris by car at rush hour. We know the entire road network, but the immense variety of possible routes makes it difficult to choose the optimal one!

 

There are also VQEs (not to be confused with VQAs!), which stands for Variational Quantum Eigensolver. In this case, we have a good idea of the value of the solution, but do not know how to obtain it. For example, in finance, a common problem is the search for a set of shares that minimises risk and maximises profit. If we set limit values for these two criteria, we then have a large number of possible combinations that make it possible to reach the goal, of which only a few are optimal.

 

For both of these approaches, the model is optimised through simple operations in classical computing. So we have a hybrid approach again, but this time it is the classical serving the quantum, and not the other way round!

 


But it doesn't stop there…

In these few paragraphs, we have glimpsed the first avenues of purely quantum approaches, which could replace their classical counterparts in the medium term, but these are not the only methods specific to quantum computing. Coming in a few months: an article presenting the technology of quantum annealing, which admittedly has a few restrictions, but very promising potential!






Sources:


  1. Artificial Intelligence and Machine Learning; https://www.le-cortex.com/media/articles/lintelligence-artificielle-comment-ca-marche
  2. Example of a hybrid classical-quantum approach for image processing: https://arxiv.org/pdf/2109.02862.pdf
  3. Variational quantum algorithms in more detail; https://arxiv.org/pdf/2012.09265.pdf
  4. QAOA ; https://qiskit.org/textbook/ch-applications/qaoa.html
  5. VQE ; https://towardsdatascience.com/the-variational-quantum-eigensolver-explained-adcbc9659c3a


Comment ( 0 ) :

Subscribe to our newsletter

We post content regularly, stay up to date by subscribing to our newsletter.