# Quantum Computing Industries - Finance

The financial industry, and all those it impacts, has much to gain from quantum computing, and can benefit from the thoughtful deployment of quantum sooner than any other industry. Whether a risk analysis justifies a family receiving a loan for which they would normally be rejected or an individual gains financial competence and independence through better pricing of assets or options, the benefits of quantum computing in the financial industry are far-reaching.

As many financial firms interact with other industries, there is often an overlap in the quantum applications that are important to them. Take AXA, one of the top global insurance firms, for example - though they don’t make pharmaceuticals, some of their clients do, and their early adoption of quantum computing benefits both the company, as they gain quantum competence, and their clients, whom already rely on their insurer for advice.

Quantum computing often offers a powerful speedup when there are large unstructured datasets. Properties inherent to quantum systems allow the analysis of many scenarios simultaneously. We already see hints of this implemented in the financial field with Monte Carlo simulations, utilizing the randomness of nature to predict outcomes of complex systems. Optimizations and simulations cover many uses in the financial field such as minimizing loss, maximizing gain, or simulating investing in exotic options. It’s noteworthy many of these calculations can be performed even in the present state of NISQ hardware using hybrid classical/quantum algorithms like VQE, so even today’s devices are not far delivering rewards.

Interested in live examples? Watch a recent webinar demonstrating how the Classiq platform uses quantum computing to solve financial problems here, watch a portfolio optimization demo here, or schedule a demo here.

It’s also noteworthy that the speedups from quantum computing can greatly contribute to quantum machine learning - a field with large, unstructured datasets everywhere and with commonly used approaches to financial solutions. Any problem that can be mapped into a classical machine learning model could become a candidate to solve on quantum machinery.

## The Classiq Approach to Value at Risk

Let's use the Classiq Platform to solve a Quantum Risk Analysis problem, where an investor needs to quantify how large a loss on investment could be, given a certain level of confidence, over a period of time.

To solve this problem, one must create a distribution function that represents the assets portfolio, construct the Value at Risk operator, and extract the value at risk using amplitude estimation. Say we have a two asset portfolio represented by a Conditioned Gaussian model.

To use the Classiq platform, use either an extension to Visual Studio Code or a Python SDK, both offering pretty much the same functionality. You'll need a Classiq license, of course.

With the textual model in VS Code, the user simply specifies constraints and the functionality of the circuit and uses the "Generate Quantum Circuit" command.

And with the Python SDK:

We can now generate our circuit.

And here's the interactive circuit, where one can explore the different functional blocks of this circuit by clicking the plus icons in the top-left corner of each block.

Now we execute this circuit using amplitude estimation. To find the value at risk we use binary search. The value at risk is the loss value that corresponds to the percentile we have inserted at the binary search threshold.

With the textual model we create an execution preferences file and use the "Execute Generated Quantum Circuit" command.

And with the Python SDK, we specify the following:

And the result?

Want to learn more about how Classiq can help you with Quantum Risk Analysis? Schedule a no-commitment demo here!

The financial industry, and all those it impacts, has much to gain from quantum computing, and can benefit from the thoughtful deployment of quantum sooner than any other industry. Whether a risk analysis justifies a family receiving a loan for which they would normally be rejected or an individual gains financial competence and independence through better pricing of assets or options, the benefits of quantum computing in the financial industry are far-reaching.

As many financial firms interact with other industries, there is often an overlap in the quantum applications that are important to them. Take AXA, one of the top global insurance firms, for example - though they don’t make pharmaceuticals, some of their clients do, and their early adoption of quantum computing benefits both the company, as they gain quantum competence, and their clients, whom already rely on their insurer for advice.

Quantum computing often offers a powerful speedup when there are large unstructured datasets. Properties inherent to quantum systems allow the analysis of many scenarios simultaneously. We already see hints of this implemented in the financial field with Monte Carlo simulations, utilizing the randomness of nature to predict outcomes of complex systems. Optimizations and simulations cover many uses in the financial field such as minimizing loss, maximizing gain, or simulating investing in exotic options. It’s noteworthy many of these calculations can be performed even in the present state of NISQ hardware using hybrid classical/quantum algorithms like VQE, so even today’s devices are not far delivering rewards.

Interested in live examples? Watch a recent webinar demonstrating how the Classiq platform uses quantum computing to solve financial problems here, watch a portfolio optimization demo here, or schedule a demo here.

It’s also noteworthy that the speedups from quantum computing can greatly contribute to quantum machine learning - a field with large, unstructured datasets everywhere and with commonly used approaches to financial solutions. Any problem that can be mapped into a classical machine learning model could become a candidate to solve on quantum machinery.

## The Classiq Approach to Value at Risk

Let's use the Classiq Platform to solve a Quantum Risk Analysis problem, where an investor needs to quantify how large a loss on investment could be, given a certain level of confidence, over a period of time.

To solve this problem, one must create a distribution function that represents the assets portfolio, construct the Value at Risk operator, and extract the value at risk using amplitude estimation. Say we have a two asset portfolio represented by a Conditioned Gaussian model.

To use the Classiq platform, use either an extension to Visual Studio Code or a Python SDK, both offering pretty much the same functionality. You'll need a Classiq license, of course.

With the textual model in VS Code, the user simply specifies constraints and the functionality of the circuit and uses the "Generate Quantum Circuit" command.

And with the Python SDK:

We can now generate our circuit.

And here's the interactive circuit, where one can explore the different functional blocks of this circuit by clicking the plus icons in the top-left corner of each block.

Now we execute this circuit using amplitude estimation. To find the value at risk we use binary search. The value at risk is the loss value that corresponds to the percentile we have inserted at the binary search threshold.

With the textual model we create an execution preferences file and use the "Execute Generated Quantum Circuit" command.

And with the Python SDK, we specify the following:

And the result?

Want to learn more about how Classiq can help you with Quantum Risk Analysis? Schedule a no-commitment demo here!

## About "The Qubit Guy's Podcast"

Hosted by The Qubit Guy (Yuval Boger, our Chief Marketing Officer), the podcast hosts thought leaders in quantum computing to discuss business and technical questions that impact the quantum computing ecosystem. Our guests provide interesting insights about quantum computer software and algorithm, quantum computer hardware, key applications for quantum computing, market studies of the quantum industry and more.

If you would like to suggest a guest for the podcast, please contact us.