Skip to content

Team 7: Quantum Risk #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 86 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
86 commits
Select commit Hold shift + click to select a range
3f08650
Created using Colaboratory
gopalm-ai Jul 26, 2022
b93b534
Create Business_Application.md
ebarati Jul 26, 2022
0a5afb2
Update Business_Application.md
ebarati Jul 26, 2022
5e483b3
Update Business_Application.md
ebarati Jul 26, 2022
35c22ea
Update Business_Application.md
ebarati Jul 26, 2022
b065949
Update Business_Application.md
ebarati Jul 26, 2022
b647d35
Update Business_Application.md
ebarati Jul 26, 2022
f899944
Update Business_Application.md
ebarati Jul 26, 2022
6467503
Update Business_Application.md
ebarati Jul 26, 2022
441d9b6
Update Business_Application.md
ebarati Jul 26, 2022
eef7e18
Update Business_Application.md
ebarati Jul 26, 2022
01fcdc9
Update Business_Application.md
ebarati Jul 26, 2022
6f9d2cc
Update Business_Application.md
ebarati Jul 26, 2022
6c69382
Update Business_Application.md
ebarati Jul 26, 2022
3916345
Update Business_Application.md
ebarati Jul 26, 2022
d955840
Update Business_Application.md
ebarati Jul 26, 2022
f057280
Update Business_Application.md
ebarati Jul 26, 2022
ee9f21f
Update Business_Application.md
ebarati Jul 26, 2022
4fc98fd
Update Business_Application.md
ebarati Jul 26, 2022
c17b83f
Update Business_Application.md
ebarati Jul 26, 2022
8dad764
Update Business_Application.md
ebarati Jul 26, 2022
1f4b1f6
Update Business_Application.md
ebarati Jul 26, 2022
252c524
Update Business_Application.md
ebarati Jul 26, 2022
a23d3eb
Update Business_Application.md
ebarati Jul 26, 2022
b15e6cf
Update Business_Application.md
ebarati Jul 26, 2022
3f2cb46
Update Business_Application.md
ebarati Jul 26, 2022
f0e447e
Update Business_Application.md
ebarati Jul 26, 2022
4c6ba29
Update Business_Application.md
ebarati Jul 26, 2022
58b2107
Update Business_Application.md
ebarati Jul 26, 2022
41dd875
Update Business_Application.md
ebarati Jul 26, 2022
40001be
Update Business_Application.md
ebarati Jul 26, 2022
d2f2d07
Update Business_Application.md
ebarati Jul 26, 2022
4df4137
Update Business_Application.md
ebarati Jul 26, 2022
d1271f5
Update Business_Application.md
ebarati Jul 26, 2022
3ad1b47
Update Business_Application.md
ebarati Jul 26, 2022
755ce95
Update Business_Application.md
ebarati Jul 26, 2022
57701c7
Update Business_Application.md
ebarati Jul 26, 2022
893c52e
Update Business_Application.md
ebarati Jul 26, 2022
0bdfc74
Update Business_Application.md
ebarati Jul 26, 2022
f9930ee
Update Business_Application.md
ebarati Jul 26, 2022
ed70d27
Update Business_Application.md
ebarati Jul 26, 2022
2e5094e
Update Business_Application.md
ebarati Jul 26, 2022
92cbb3f
Update Business_Application.md
ebarati Jul 26, 2022
101cf3a
Update Business_Application.md
ebarati Jul 26, 2022
dda1f33
Update Business_Application.md
ebarati Jul 26, 2022
32fc63c
Update Business_Application.md
ebarati Jul 27, 2022
b1962df
Update Business_Application.md
ebarati Jul 27, 2022
c6cfe74
Update Business_Application.md
ebarati Jul 27, 2022
95ce28b
Update Business_Application.md
ebarati Jul 27, 2022
5d4fd7e
Update Business_Application.md
ebarati Jul 27, 2022
b11beeb
Update Business_Application.md
ebarati Jul 27, 2022
c974d8f
Update Business_Application.md
ebarati Jul 27, 2022
7b963e3
Update Business_Application.md
ebarati Jul 27, 2022
a27f964
Update Business_Application.md
ebarati Jul 27, 2022
6ddd7f4
Update Business_Application.md
ebarati Jul 27, 2022
99b3337
Update Business_Application.md
ebarati Jul 27, 2022
39a9927
Update Business_Application.md
ebarati Jul 27, 2022
deeb130
Update Business_Application.md
ebarati Jul 27, 2022
d1a46f1
Update Business_Application.md
ebarati Jul 27, 2022
5d9aa57
Update Business_Application.md
ebarati Jul 27, 2022
b814021
Update Business_Application.md
ebarati Jul 27, 2022
6e78b8d
Update Business_Application.md
ebarati Jul 27, 2022
439228c
Update Business_Application.md
ebarati Jul 27, 2022
d7e2308
Update Business_Application.md
ebarati Jul 27, 2022
9d55bf8
Update Business_Application.md
ebarati Jul 27, 2022
67f69f8
Update Business_Application.md
ebarati Jul 27, 2022
d73525f
Update Business_Application.md
ebarati Jul 27, 2022
4629f74
Update Business_Application.md
ebarati Jul 27, 2022
aa78724
Update Business_Application.md
ebarati Jul 27, 2022
66f272b
Update Business_Application.md
ebarati Jul 27, 2022
4d186df
Update Business_Application.md
ebarati Jul 27, 2022
c1803e8
Update Business_Application.md
ebarati Jul 27, 2022
36e3226
Update Business_Application.md
ebarati Jul 27, 2022
019f580
Update Business_Application.md
ebarati Jul 27, 2022
fcb51ca
Update Business_Application.md
ebarati Jul 27, 2022
f9e0422
Update Business_Application.md
ebarati Jul 27, 2022
65a6b1b
Update Business_Application.md
ebarati Jul 27, 2022
e585772
Update Business_Application.md
ebarati Jul 27, 2022
0b44612
Update Business_Application.md
ebarati Jul 27, 2022
f4ee6a0
Update Business_Application.md
ebarati Jul 27, 2022
2a26c66
Update Business_Application.md
ebarati Jul 27, 2022
c1ec687
Update Business_Application.md
ebarati Jul 27, 2022
8c0fd83
Update Business_Application.md
ebarati Jul 27, 2022
f56cbd3
Update Business_Application.md
ebarati Jul 27, 2022
4642a27
Created using Colaboratory
gopalm-ai Jul 27, 2022
7841657
Merge pull request #1 from ebarati/patch-1
gopalm-ai Jul 27, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 69 additions & 0 deletions Business_Application.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# Quantum Algorithms for the Sensitivity Analysis of Business Risks


# Quantum algorithms

- Problem definition:
Quantum algorithms are known for super-polynomial speedup over their classical counterparts.
They can be applied to various real-world problems such as cryptography, optimization, and simulations.

- Performance analysis:
Following the methodology by Deutsche Börse Group we present a quantum algorithm (namely Grover's algorithm) to address the sensitivity analysis for a business risk model, which found to be computationally too expensive to perform by classical algorithms.
Grover's algorithm (1996) is known for its ability to address unstructured search problems, which are basic problems in computer science.
Here, we implement and analysis the risk modeling and its representation on quantum circuits using this algorithm and the Quantum Amplitude Estimation (QAE).
The fact that quantum algorithms are faster than a classical ones can be tested by the code execution runtime, measured by the number of elementary operations used by an algorithm, and can be done using the quantum circuit model.
The quantum program employed here is fast (as compared to classical ones, e.g. quasi-Monte Carlo methods), requires low number of qubits (< 200, achievable), and has an interesting nested structure: Grover's algorithm\QAE\Quantum risk model.


# Business risk model and analysis:
The impact of external adverse developments on future revenues in any business can be addressed within a risk model.
A risk model estimates the overall likelihood of impacts that would threaten the business.
Thus we are dealing with a probability problem.
To define the problem, a threshold $A$ for a financial impact is defined.
The probability $P(A)$ shows probability that the financial impact bigger than $A$, and $P_{max}$ is the maximal acceptable value of $P(A)$.
In the business risk model, to avoid loss, an action needs to be taken when $P(A)$ reaches it maximum value $P_{max}$.
The estimated $P(A)$ is based on some estimated parameters (inputs) and we are interested in finding the parameter(s) that when changed
slightly, influence the output of the model such that $P(A)>P_{max}$.

The business risks is implemented as follows:
An intrinsic probability $P_i$ is defined for each relevant event (risk item, e.g. a change in stock market).
An item ($i$ th) is also assigned a probability to trigger another item ($j$ th) with the transition probability $P_{ij}$.
Each triggered risk item (e.g. by other items) generates a specific loss.
The sum of the losses of the triggered items gives the total loss for a specific scenario.
Finally, the model is evaluated by brute force (cf. ref [1] for the details).


- Compilation (circuit representation):
The implementation of the quantum program and simulations are done using Qiskit, as illustrated in the Risk_Analysis_Hackathon.ipynb file.
As shown the oracles we consider lower the success probability by a constant factor compared to standard oracles.
A success probability of at least 81% (rather than nearly 100% in conventional Grover) is achieved, which is inherited from the QAE.


# Quantum implementation
The sensitivity analysis of the risk model is considered as a quantum program that analyzes the impact of varying each input parameter in three steps:
1. Implementing the risk model as a quantum algorithm,
2. Implementing QAE on the outputs of the risk model,
3. Search sensitive parameters with Grover's algorithm.

For the first step, the structure of the model is translated into a quantum circuit.
In the quantum formalism the risk items are represented by qubits.
A risk item can be put into a superposition of being triggered with probability $P$ and not being triggered with probability $1-P$
by appying a rotation operator
$U_3(\theta,\phi,\lambda)$
on a qubit, with a $\theta$ that fulfil the relation $\sin(\theta/2)=P$, and the phases $\phi$ and $\lambda$ can be set to zero.
Such quantum implementation of the model turns out to be remarkably efficient as compared to the implementation on a classical computer.


# Potential customers

Potential customers for the Sensitivity Analysis of Business Risks includes banks, trading companies, and any financial institute dealing with risk analysis
and any company dealing with portfolio.


# References

[1] M.C. Braun et al., A Quantum Algorithm for the Sensitivity Analysis of Business Risks (2021), https://arxiv.org/abs/2103.05475

[2] A. Montanaro, Quantum algorithms: an overview, npj Quantum Inf 2, 15023 (2016).

[3] S. Woerner and D.J. Egger, Quantum risk analysis, npj Quantum Inf 5, 15 (2019).
Loading