How does a quantum computer learn?
#Pure tech
03.08.2023
Irene de León
Illustration: Maite Rosende
Technology’s constant and rapid development sometimes makes this world feel a bit alien. The terms and formalities used are not necessarily familiar to all of us, but, fortunately, we can understand some technical concepts thanks to simple language and everyday examples. As a Quantum Data scientist, I’m going to explain what neural networks are, and their potential in the world of science
Neural networks are an Artificial Intelligence technique that mimics the behavior of the human brain. In neural networks, the neurons (or perceptrons) are connected to each other, forming a network (hence the name). Thanks to these connections, the information received is transmitted from one neuron to another, thus being able to process the data received. However, as they always say, “You can’t learn everything on the first try.” This means that it’s necessary to practice – do some trial and error – until you manage to improve the skill you want to learn. Let’s look at an example: wanting to learn archery. Your goal will be to hit the center of the target. The first time you try, the arrow will, most likely, hit a point far from the bullseye (or you might not even manage to hit the target at all). The second time, you’ll already have become familiar with how to hold the bow, and will be able to shoot the arrow more accurately. Next, you’ll find that by positioning your arm a certain way, you can better pin down the direction that the arrow will shoot. And you’ll try as many times as necessary until you achieve your goal. Neural networks are based on this learning process.
When a person learns a new skill, they have to practice it over and over again, making appropriate changes each time to hone their abilities. We can understand a neural network model with each neuron having a possible change to make. If we use the example of archery, we can say that one neuron is responsible for adjusting the shooting angle, another for the position of the arm, another for when to release the fingers... by adjusting each possible change for each neuron, we’ll finally be able to achieve the proper action allowing us to hit the target. This is why we say that the model is being “trained.” This is done with mathematical techniques that are beyond the scope of this article, but it’s important to remember the general idea: the neural network model can make certain changes until we get the desired result. With humans, once someone has learned how to shoot an arrow well, when they try the same thing again, they’ll do better than the first time, because they’ve already trained. The same thing happens with neural network models: once the model is trained, when given new data, it will know what to do with that data.
In what areas can we use neural networks? There are different types, each suitable for certain tasks. The areas of application vary from image detection using cameras to assessing value predictions based on prior data. In the case of Global Data Quantum, we use neural networks to predict the filling of dumpsters. We have data on the collection of dumpsters in Biscay. Using this data and neural networks, it’s possible to predict when a dumpster is going to be full or not. Therefore, during the waste-collection process, if we know that there is a dumpster that is going to be empty, the truck’s route will avoid them, thus saving time and fuel during the collection route.
Thus far we’ve explained what neural networks and their applications consist of, more or less, but where does Quantum Technology come into all this? Quantum Computing is a field that has been talked about a lot in recent decades. There’s great hype about this new technology, but the reality is that quantum computers won’t replace the conventional computers that we all know and love (which we’ll refer to as classical computers). Quantum computing will complement classical computing, thus being able to improve its performance on problems that are too complicated for today’s classical computers. This is where the technique known as Quantum Machine Learning comes in, which is an extension of Machine Learning that uses Quantum Computing. Thanks to this, we can now introduce the concept of quantum neural networks, which is one of the projects that I, as a Quantum Data scientist, am involved in at Global Data Quantum. As previously mentioned, we use neural networks to predict how full dumpsters are in order to optimize collection routes, but now let’s take a look at what happens when we combine classical techniques with quantum computing.
What’s the difference between a classical neural network and a quantum neural network? It must be clarified that, today, quantum neural networks are not purely quantum. This means that we use hybrid algorithms; that is, a combination of classical computing techniques with quantum computing ones. As we mentioned before, when we learn a new skill, we make certain changes until we achieve the desired goal. Quantum neural networks also make changes until they achieve their goals. The difference is that now we have to program our neural network so that it can be implemented on a quantum computer. This is achieved using quantum circuits, which are an approximation to Quantum Computing. Quantum Computing consists of doing computations (as its name suggests) while taking advantage of phenomena from quantum physics, such as superposition and entanglement. Superposition means that an object can be in more than one state at the same time (or take more than one value at the same time). Entanglement means that, even if we separate a system from one or more objects, what happens to one will happen to the other, despite being spatially separated. These types of phenomena can be reproduced by different techniques, but IBM’s quantum computers, on which we can run our programs, use quantum circuits, so I’m going to explain how we implement our quantum neural networks at Global Data Quantum.
Quantum neural networks, therefore, consist of a quantum circuit; specifically, a variational quantum circuit. The word “variational” tells us that the circuit has elements that can vary in value, which we will call “parameters.” The quantum circuit has elements whose value can vary, in the same way that we make changes to improve our archery technique. Being a quantum circuit, we’ll be able to take advantage of superposition and entanglement to process information faster when quantum computers become more sophisticated. The process followed by a quantum neural network is, therefore, as follows: first, the data is entered into the system and initially prepared to be transferred to the quantum circuit. Next, the data goes into the quantum neural network, which, as we said before, is a quantum circuit. This quantum circuit processes the information and gives us a result. This part of the process could be compared to a first attempt when practicing archery. Imagine that you’ve shot the arrow and it hasn’t even hit the target. Based on the result (you haven’t hit the target with your arrow) you’ll change, for example, the angle at which you shoot. Our quantum neural network will do the same thing. Based on the result, it will adjust some of the circuit’s values. This process, known as parameter optimization, is done in a classical way; that is, with a conventional computer. Once you’ve made your first attempt, the next thing is to repeat it, to see if it turns out better this time. The quantum neural network will do the same thing. It will repeat the process with the changed values. It gets a result, and then optimizes it again. And it will repeat the process until the desired results are achieved. Just like us learning archery, the quantum neural network also “learns.” The difference is that it won’t take months for the quantum neural network to learn its new technique. This is how we′re transferring the classical neural network technique to predict the filling of dumpsters via quantum computing.
Currently, the quantum advantage over classical computers has not yet been achieved, and further research into quantum computing techniques is needed. The applications of neural networks are very diverse, and this is an area in constant development. We could say that now our goal is not to learn to shoot an arrow, but to learn to implement neural networks.
Labels
- #startup
- #quantum
- #innovación
- #ciencia
- #ibm
- #computación
- #física
- #mujeres
Take our advice and check it out
Slide to show more
Cookies
We use proprietary and third-party cookies for technical, analytical and customisation purposes, such as choosing the language in which to display the website. For more information, please consult our cookies policy (Opens modal window).
Cookies policy
The website at https://www.bizkaia.eus (hereinafter, the Website) uses tools to track browsing activity on the website and the IP address of the service recipient for the purpose of improving and guaranteeing the provision of services or technical operation of the website, distinguishing you from other users and analysing your browsing habits.
This Cookies Policy seeks to inform you clearly and precisely about the operation and function of the cookies we use.
What are cookies and why do we use them?
A cookie is a file that is downloaded to your computer when accessing certain websites.
Cookies enable a website to, among other things, store and recover information about the browsing habits of a user or their device and, depending on the information contained and the way in which the same is used by the device, may be used to recognise the user.
Current law allows us to store cookies on your device if they are strictly necessary for operation of this website. However, we need permission for all other cookies.
Types of cookies based on the managing entity
Depending on who manages the computer or domain from where the cookies are sent and who processes the data obtained, a distinction can be made between the following types of cookies:
- Proprietary cookies: these are managed by the Provincial Council of Biscay.
-
Third-party cookies: these are managed by another entity, which processes the data obtained via the cookies.
This website may contain cookies belonging to the Basque Government, used for its own purposes and stored by domains other than those owned by the Bizkaia Provincial Council.
Types of cookies based on their purpose
- Technical cookies: these allow the user to browse a website, platform or application and to use the various options or services available, such as control data traffic and communication, identify the session, access restricted areas, request registration or participation in an event, use security elements while browsing, store content for video or audio playback, or share content via social media networks.
- Customisation cookies: these allow the user to access the service with some general characteristics predefined according to a series of criteria on the user’s device, such as the language, type of browser being used to access the service, regional configuration from where the service is accessed, etc.
- Analysis cookies: these allow the number of users to be counted and the browsing activity to be statistically measured and analysed for the purpose of improving the services made available. They may be proprietary or third-party cookies.
Duration of the cookies
- Session cookies: these collect and store data while the user is visiting a website.
- Persistent cookies: the data are stored on the device in an ongoing fashion and may be accessed and processed during a period defined by the cookie manager, which may range from a few minutes to several years.
Which cookies does this website use?
In each row you can find data relating to Technical cookies
| Name | Purpose | Duration | Owner |
|---|---|---|---|
| JSESSIONID | Session identifier | Session | Bizkaia Provincial Council |
| ASPSESSIONID | Session identifier | Session | Bizkaia Provincial Council |
| TS01 | Session identifier | Session | Bizkaia Provincial Council |
| LFR_SESSION_STATE | Session identifier | Session | Bizkaia Provincial Council |
| COOKIE_SUPPORT | Indicate whether the user has the cookie support activated | 1 year | Bizkaia Provincial Council |
| pc_tecnicas_bizkaia | Choose your preferences for acceptance of the block of technical cookies | 1 year | Bizkaia Provincial Council |
| pc_analitica_bizkaia | Choose your preferences for acceptance of the block of analytical cookies | 1 year | Bizkaia Provincial Council |
| pc_preferencias_bizkaia | Choose your preferences for acceptance/rejection of the block of preferential cookies | 1 year | Bizkaia Provincial Council |
| pc_terceros_bizkaia | Choose your preferences for acceptance/rejection of the block of third-party cookies | 1 year | Bizkaia Provincial Council |
| Kultursistema_session | Keeping the user’s session | 1 year | Kultursistema |
| CPLB | Contains information used by our load-balancing servers | Session | Provincial Council of Biscay |
| XSRF-TOKEN | To prevent CSRF (Cross-Site Request Forgery) attacks | 1 year | Kultursistema |
| _GRECAPTCHA | Protects the website from spam and brute-force attacks | 5 months |
In each row you can find data relating to Analysis cookies
| Name | Purpose | Duration | Owner | |
|---|---|---|---|---|
| dtCookie | Track a visit through multiple requests | Session | Bizkaia Provincial Council | |
| dtLatC | Measure the latency of the server to monitor performance | Session | Bizkaia Provincial Council | |
| dtPC | Necessary to identify the appropriate parameters for beacon transmission; includes session ID for correlation | Session | Bizkaia Provincial Council | |
| dtSa | Intermediate storage for actions spanning pages | Session | Bizkaia Provincial Council | |
| rxVisitor | Visitor ID to correlate sessions | Constantly | Bizkaia Provincial Council | |
| rxvt | Session waiting time | Session | Bizkaia Provincial Council | |
| iyrc-user-id | Distinguish users | 1 year | Bizkaia Provincial Council | |
| _ga, _ga_XXXXXXXXXXX | Analysis | To distinguish users | 2 years | Google Analytics |
| _gat, _gat_XXXXXXXXXXX | Analysis | To limit the percentage of requests | 1 minute | Google Analytics |
| _gid | Analysis | To distinguish users | 1 day | Google Analytics |
In each row you can find data relating to Personalisation cookies
| Name | Purpose | Duration | Owner |
|---|---|---|---|
| Idioma | Select the language preferred by the user | 1 year | Bizkaia Provincial Council |
| cookie-tramites-favs | Save favourite procedures in Prior Appointment | 1 year | Bizkaia Provincial Council |
In each row you can find data relating to Third-party cookies
| Name | Purpose | Duration | Owner |
|---|---|---|---|
| CLID | Identify a user’s first visit | 1 year | Microsoft Clarity |
| APISID | Store user preferences and information during page views with Google maps in them. | 2 years | |
| HSID | Store user preferences and information during page views with Google maps in them. | 2 years | |
| MUID | Store user preferences and information during page views with Google maps in them. | 1 year | Microsoft Clarity |
| NID | Remember their preferences and other information | 6 months | |
| SAPISID | Show personalised advertisements on Google sites | 2 years | |
| SID | Provide advertisement delivery or retargeting, provide fraud prevention. | 2 years | |
| SIDCC | Provide reliable web traffic identification. | 1 year | |
| SM | Used to synchronise the MUID between Microsoft domains. | Session | Microsoft Clarity |
| SSID | Provide advertisement delivery or retargeting, provide fraud prevention. | 2 years | |
| __Secure-1PAPISID | Create a website visitor interest profile to show relevant and personalised Google advertising. | 2 years | |
| __Secure-1PSID | Create a website visitor interest profile to show relevant and personalised Google advertising. | 2 years | |
| __Secure-1PSIDCC | Create a website visitor interest profile to show relevant and personalised advertising through retargeting. | 1 year | |
| __Secure-1PSIDTS | Create a website visitor interest profile to show relevant and personalised advertising through retargeting. | 1 year | |
| __Secure-3PSID | 2 years | ||
| __Secure-3PSIDCC | Create a website visitor interest profile to show relevant and personalised advertising through retargeting. | 1 year | |
| __Secure-3PSIDTS | Create a website visitor interest profile to show relevant and personalised advertising through retargeting. | 1 year | |
| __Secure-ENID | Necessary cookies to use website services and options | 1 year | |
| ar_debug | Refine advertisements. | 1 año | |
| MR | Indicate when MUID is refreshed | 6 months | Microsoft Clarity |
| XSRF-TOKEN | Indicate when MUID is refreshed | 1 hour | Kultursistema |
| _fbp | Store and track website visits | 1 year | |
| kultursistema_session | Keep the user’s session | 1 hour | Kultursistema |
| AEC | Detect spam, fraud, and abuse | 6 months | |
| SOCS | Store user cookies preferences | 13 months | |
| Locale | not available | Basque government | |
| _hegoa_coop_session | Create a session ID for users | Session | Basque government |
How to deactivate or delete cookies?
When first accessing the Website, the user may configure and accept or reject the cookies on this Website. Subsequently, the user may change or withdraw their consent at any time via this Cookies Policy or the settings page.
However, you may exercise your right to freely deactivate them and even delete the cookies on this Website at any time. This is done differently depending on which browser you are using. Here is a quick guide for the most popular browsers.
- Deactivate Cookies in Chrome
- Deactivate Cookies in Explorer
- Deactivate Cookies in Firefox
- Deactivate Cookies in Safari
- Deactivate Cookies in Edge
If you deactivate or delete cookies, certain features of the Website may no longer function correctly.
Changes to the Cookies Policy
The Website reserves the right to change this Cookies Policy under the terms provided for by current legislation. We therefore recommend that you revise this policy each time you access our website to see any changes and read the pertinent information.
Configure cookies
We show you hereinbelow the different categories of cookies that our web page uses. You can personalise your choice by accepting or rejecting these categories through the buttons enabled to that end. For more information, consult our cookies policy (Opens modal window).
-
Technical Always active
These are needed to allow browsing on our website and for basic tasks related to correct website operation.
