Volume 3, Issue 4 e84
RESEARCH ARTICLE
Full Access

Quantum computation for pricing the collateralized debt obligations

Hao Tang

Corresponding Author

Hao Tang

Center for Integrated Quantum Information Technologies (IQIT), School of Physics and Astronomy and State Key Laboratory of Advanced Optical Communication Systems and Networks, Shanghai Jiao Tong University, Shanghai, China

CAS Center for Excellence and Synergetic Innovation Center in Quantum Information and Quantum Physics, University of Science and Technology of China, Hefei, China

Correspondence

Hao Tang and Xian-Min Jin, Center for Integrated Quantum Information Technologies (IQIT), School of Physics and Astronomy and State Key Laboratory of Advanced Optical Communication Systems and Networks, Shanghai Jiao Tong University, Shanghai 200240, China.

Email: [email protected] and [email protected]

Search for more papers by this author
Anurag Pal

Anurag Pal

Center for Integrated Quantum Information Technologies (IQIT), School of Physics and Astronomy and State Key Laboratory of Advanced Optical Communication Systems and Networks, Shanghai Jiao Tong University, Shanghai, China

CAS Center for Excellence and Synergetic Innovation Center in Quantum Information and Quantum Physics, University of Science and Technology of China, Hefei, China

Search for more papers by this author
Tian-Yu Wang

Tian-Yu Wang

Center for Integrated Quantum Information Technologies (IQIT), School of Physics and Astronomy and State Key Laboratory of Advanced Optical Communication Systems and Networks, Shanghai Jiao Tong University, Shanghai, China

CAS Center for Excellence and Synergetic Innovation Center in Quantum Information and Quantum Physics, University of Science and Technology of China, Hefei, China

Search for more papers by this author
Lu-Feng Qiao

Lu-Feng Qiao

Center for Integrated Quantum Information Technologies (IQIT), School of Physics and Astronomy and State Key Laboratory of Advanced Optical Communication Systems and Networks, Shanghai Jiao Tong University, Shanghai, China

CAS Center for Excellence and Synergetic Innovation Center in Quantum Information and Quantum Physics, University of Science and Technology of China, Hefei, China

Search for more papers by this author
Jun Gao

Jun Gao

Center for Integrated Quantum Information Technologies (IQIT), School of Physics and Astronomy and State Key Laboratory of Advanced Optical Communication Systems and Networks, Shanghai Jiao Tong University, Shanghai, China

CAS Center for Excellence and Synergetic Innovation Center in Quantum Information and Quantum Physics, University of Science and Technology of China, Hefei, China

Search for more papers by this author
Xian-Min Jin

Corresponding Author

Xian-Min Jin

Center for Integrated Quantum Information Technologies (IQIT), School of Physics and Astronomy and State Key Laboratory of Advanced Optical Communication Systems and Networks, Shanghai Jiao Tong University, Shanghai, China

CAS Center for Excellence and Synergetic Innovation Center in Quantum Information and Quantum Physics, University of Science and Technology of China, Hefei, China

TuringQ Co., Ltd., Shanghai, China

Correspondence

Hao Tang and Xian-Min Jin, Center for Integrated Quantum Information Technologies (IQIT), School of Physics and Astronomy and State Key Laboratory of Advanced Optical Communication Systems and Networks, Shanghai Jiao Tong University, Shanghai 200240, China.

Email: [email protected] and [email protected]

Search for more papers by this author
First published: 03 November 2021
Citations: 16

Funding information: National Key R&D Program of China, 2019YFA0308700; 2017YFA0303700; National Natural Science Foundation of China, 61734005; 11761141014; 11690033; 11904229; Science and Technology Commission of Shanghai Municipality (STCSM), 21ZR1432800; 17JC1400403; Shanghai Municipal Education Commission (SMEC), 2017-01-07-00-02-E00049

Abstract

Collateralized debt obligation (CDO) has been one of the most commonly used structured financial products and is intensively studied in quantitative finance. By setting the asset pool into different tranches, it effectively works out and redistributes credit risks and returns to meet the risk preferences for different tranche investors. The copula models of various kinds are normally used for pricing CDOs, and the Monte Carlo simulations are required to get their numerical solution. Here we implement two typical CDO models, the single-factor Gaussian copula model and normal inverse Gaussian copula model, and by applying the conditional independence approach, we manage to load each model of distribution in quantum circuits. We then apply quantum amplitude estimation as an alternative to Monte Carlo simulation for CDO pricing. We demonstrate the quantum computation results using IBM Qiskit. Our work addresses a useful task in finance instrument pricing, significantly broadening the application scope for quantum computing in finance.

1 INTRODUCTION

Quantum computing for finance applications is an emerging field with quickly growing popularity. The finance industry involves various numerical and analytical tasks, for example, derivative pricing, credit rating, Forex algorithm trading, portfolio optimization, and so forth. They all demand heavy quantitative work, and the improved calculation speed and precision would bring significant social value. Quantum computing aims at these very targets.1 Early studies focused on improving finance models with basic quantum mechanics.2-4 Schrodinger equations and Feynman's path integral were suggested to solve stochastic differential equations for pricing interest rate derivatives,2 and Heisenberg uncertainty principle was used to interpret the leptokurtic and fat-tailed distribution of stock price volatilities.4 Recent studies tend to utilize quantum advantages as a faster computing machine. Algorithms that can be implemented in quantum circuits, such as amplitude estimation,5 quantum principle component analysis (PCA),6 quantum generative adversarial network (QGAN),7 the quantum-classical hybrid variational quantum eigensolver (VQE),8 and quantum-approximate-optimization-algorithm (QAOA),9 spring up and begin to be applied to various financial quantitative tasks.10-15

Within all sectors of quantitative finance, the Monte Carlo simulation always plays a significant role,16-18 as only a few stochastic equations for derivative pricing have found analytical solutions,19, 20 while most can only be solved numerically by repeating random settings a great many times in an uncertainty distribution (e.g., normal or log-normal distribution), which therefore consumes much time. The quantum amplitude estimation (QAE) algorithm was raised5 in 2002. It is newly suggested as a promising alternative to the Monte Carlo method, as it shows a quadratic speedup comparing to the latter.10 So far, applications of QAE for option pricing11 and credit risk analysis12 have been demonstrated.

Considering the wide use of Monte Carlo simulation and the large variety of pricing models, the involvement of quantum techniques in finance is still at its infancy. Credit derivatives are frequently mentioned financial instruments because of the strong demand for tackling default risks in finance industry. Collateralized debt obligation (CDO) is a multi-name credit derivative backed on a pool of portfolios of defaultable assets (loans, bonds, credits, etc.). CDO then packages the portfolio into several tranches with different returns and priorities to suffer the default loss.18 CDO can effectively protect the senior tranche from the loss, but too many default events in the pool would still make the CDO collapsed, which was the case during the subprime financial crisis in 2008. Many voices were then made for improving the CDO pricing model and strengthening regulations in various aspects. Nonetheless, the CDO itself is a useful credit instrument that can work out and redistribute credit risks in a very quantitative way. So far, however, the implementation of complex credit instruments like CDO in quantum algorithms has never been reported.

In this work, we present the first quantum circuit implementation for CDO pricing using IBM Qiskit.21 To address the correlations among a large number of assets in the CDO pool, we use both the common Gaussian copula model22 and an improved model, the normal inverse Gaussian (NIG) copula model23, 24 that can interpret the skewness and kurtosis of the real markets which the Gaussian distribution cannot portray.25-27 We follow a conditional independence approach to load the correlated distributions in the quantum circuits, and then use quantum comparators and QAE algorithm to calculate the losses in different tranches. We demonstrate the quantum computation results for a CDO that matches the classical Monte Carlo method, suggesting a promising approach for pricing various derivatives.

2 THE CDO STRUCTURE AND PRICING MODELS

2.1 The CDO tranche structures

The CDO pool is normally divided into three tranches: the equity, mezzanine, and senior tranche. As shown in Figure 1, when defaults occur, the equity tranche investors bear the loss first, then the mezzanine tranche investors if the loss is greater than the first attachment point. Only when the loss is greater than the second attachment point, will the senior tranche investors lose money. Therefore, senior tranche has the priority of receiving principle and interest payment, and the best protection from risk while having the lowest return.

Details are in the caption following the image
The CDO tranche structure. The CDO comprises equity tranche (consisting of unrated or lowly rated securities), mezzanine tranche (consisting of intermediately rated securities), and senior tranche (consisting of highly rated securities), and the tranches have a sequence to bear the loss

Let urn:x-wiley:que2:media:que284:que284-math-0001 and urn:x-wiley:que2:media:que284:que284-math-0002 denote the lower and upper attachment point for tranche k, respectively. When defaults occur, the buyer of the tranche k will bear the loss in excess of urn:x-wiley:que2:media:que284:que284-math-0003, and up to urn:x-wiley:que2:media:que284:que284-math-0004.

Let L denotes the total loss for the portfolio and urn:x-wiley:que2:media:que284:que284-math-0005 denotes the loss suffered by the holders of tranche k. There is: urn:x-wiley:que2:media:que284:que284-math-0006. As there are various default scenarios under some uncertainty distribution, we evaluate the expectation value of the tranche loss urn:x-wiley:que2:media:que284:que284-math-0007 for each tranche k: urn:x-wiley:que2:media:que284:que284-math-0008. Then we can get the fair spread for this tranche denoted as urn:x-wiley:que2:media:que284:que284-math-0009:
urn:x-wiley:que2:media:que284:que284-math-0010(1)
where urn:x-wiley:que2:media:que284:que284-math-0011 is the notional value of tranche k of the portfolio, which can be calculated by urn:x-wiley:que2:media:que284:que284-math-0012. To arrive at a fair price of a CDO, the return for investors of each tranche should be consistent with the expected loss the investors would bear. Therefore, such a fair spread is considered as the return for this tranche.

2.2 The conditional independence approach

Usually the pool in CDO is a portfolio of correlated assets. Their default events are not independent, which can be modeled using the single-factor Gaussian copula.

Meanwhile, through years' practice on the Gaussian model, it is found not to well portray the phenomena in real CDO markets, for example, the “correlation smile.”25 In 2005, the NIG model was introduced to CDO pricing. In fact, price volatilities in derivative markets seldom show perfect Gaussian distribution. NIG can flexibly introduce a target skewness and kurtosis which the Gaussian model cannot achieve.25-27 Explanation for NIG distribution and its probability density function (pdf) can be seen in Supplementary Appendix I.

For either the Gaussian copula or NIG copula model, both of them can use the conditional independence approach28 originally developed by Vašíček29, 30 for the multivariate distribution problems. Consider a portfolio that comprises n assets, each with an independent default risk urn:x-wiley:que2:media:que284:que284-math-0013, and a correlation urn:x-wiley:que2:media:que284:que284-math-0014 with the systematic risk Z. The latent variables urn:x-wiley:que2:media:que284:que284-math-0015 can be used: urn:x-wiley:que2:media:que284:que284-math-0016, where urn:x-wiley:que2:media:que284:que284-math-0017s are correlation parameters that can be obtained by calibrating the market data. urn:x-wiley:que2:media:que284:que284-math-0018, urn:x-wiley:que2:media:que284:que284-math-0019, and Z generally follow the same type of uncertainty distribution, that is, the three all follow a Gaussian-type distribution in the Gaussian copula model.

Let urn:x-wiley:que2:media:que284:que284-math-0020 be the original default probability for asset i that is uncorrelated to Z. Via detailed derivation,28 the default probability under z, a detailed certain level of the systematic risk Z, follows:
urn:x-wiley:que2:media:que284:que284-math-0021(2)

Equation (2) is derived for very general scenarios.28 F stands for the cumulative distribution function that Z follows, which can be any continuous and strictly increasing distribution function, and in this content, they are Gaussian for the Gaussian copula model or NIG for the NIG copula model. urn:x-wiley:que2:media:que284:que284-math-0022 stands for the inverse of distribution F.

Using this conditional independence model, each asset i would default with a probability urn:x-wiley:que2:media:que284:que284-math-0023. The default event urn:x-wiley:que2:media:que284:que284-math-0024 has a Bernoulli distribution, that is, urn:x-wiley:que2:media:que284:que284-math-0025 means to default and urn:x-wiley:que2:media:que284:que284-math-0026 for no default. Given urn:x-wiley:que2:media:que284:que284-math-0027, the loss that would incur for asset i when default happens, the total loss is certainly urn:x-wiley:que2:media:que284:que284-math-0028. Consider the probability for urn:x-wiley:que2:media:que284:que284-math-0029 is urn:x-wiley:que2:media:que284:que284-math-0030, the expectation for the total loss would be:
urn:x-wiley:que2:media:que284:que284-math-0031(3)
where urn:x-wiley:que2:media:que284:que284-math-0032 is the probability density function (PDF) of a systematic risk level z. For Gaussian distribution with a variance urn:x-wiley:que2:media:que284:que284-math-0033, integrating z from urn:x-wiley:que2:media:que284:que284-math-0034 to urn:x-wiley:que2:media:que284:que284-math-0035 would cover 99.73% of the distribution. After obtained the expected total loss from Equation (3), we can refer to Equation (1) to get the tranche loss and hence fulfill CDO pricing for each tranche. More derivations for the conditional independence approach and the Monte Carlo method for calculating the tranche loss are given in Supplementary Appendix II.

3 QUANTUM CIRCUIT CONSTRUCTION

The quantum circuit framework is demonstrated in Figure 2. To apply quantum computation for CDO pricing, the primary task is to load the correlated default risk for each asset of the portfolio into the quantum circuit. Either the Gaussian or NIG model can be loaded following a previous circuit approach12 for the conditional independence model. This involves the operator urn:x-wiley:que2:media:que284:que284-math-0036, urn:x-wiley:que2:media:que284:que284-math-0037, and urn:x-wiley:que2:media:que284:que284-math-0038, and then sum up the total loss using operator urn:x-wiley:que2:media:que284:que284-math-0039.

Details are in the caption following the image
The quantum circuit framework. The quantum circuit first uses operator urn:x-wiley:que2:media:que284:que284-math-0040 to load the assets with non-correlated independent default risks, uses operator urn:x-wiley:que2:media:que284:que284-math-0041 to load Z distribution, and uses operator urn:x-wiley:que2:media:que284:que284-math-0042 to address the correlation among asset default risks. The total portfolio loss is summed up using operator urn:x-wiley:que2:media:que284:que284-math-0043. Then it comes to the comparator operator urn:x-wiley:que2:media:que284:que284-math-0044 and the piecewise linear rotation operator urn:x-wiley:que2:media:que284:que284-math-0045 to calculate the tranche loss, which is related to urn:x-wiley:que2:media:que284:que284-math-0046, the probability of the objective qubit at the state urn:x-wiley:que2:media:que284:que284-math-0047 after rotation. Detailed circuit for each operator is provided in the Supplementary Appendix

3.1 Load uncorrelated default using operator urn:x-wiley:que2:media:que284:que284-math-0048

We first load the uncorrelated asset default event urn:x-wiley:que2:media:que284:que284-math-0049 using linear Y-rotation gate. The default probability urn:x-wiley:que2:media:que284:que284-math-0050 for each asset i can be obtained from its historical performance. The operator urn:x-wiley:que2:media:que284:que284-math-0051 involves urn:x-wiley:que2:media:que284:que284-math-0052 qubits to load the urn:x-wiley:que2:media:que284:que284-math-0053 independent assets. For each of the urn:x-wiley:que2:media:que284:que284-math-0054 qubits, operator urn:x-wiley:que2:media:que284:que284-math-0055 inputs the initial state urn:x-wiley:que2:media:que284:que284-math-0056 and outputs the state:
urn:x-wiley:que2:media:que284:que284-math-0057(4)
so that the probability for state urn:x-wiley:que2:media:que284:que284-math-0058 encodes the default probability urn:x-wiley:que2:media:que284:que284-math-0059. See Supplementary Appendix III for the circuit for operator urn:x-wiley:que2:media:que284:que284-math-0060.

3.2 Load Z distribution using operator urn:x-wiley:que2:media:que284:que284-math-0061

We need to note that the Gaussian or NIG distribution for systematic risk Z has to be loaded using operator urn:x-wiley:que2:media:que284:que284-math-0062 before operator urn:x-wiley:que2:media:que284:que284-math-0063. We use urn:x-wiley:que2:media:que284:que284-math-0064 qubits to discretize the distribution to urn:x-wiley:que2:media:que284:que284-math-0065 slots. The y axis for these slots is the probability of Z, that is, the PDF function urn:x-wiley:que2:media:que284:que284-math-0066. For Gaussian distribution function, the urn:x-wiley:que2:media:que284:que284-math-0067 values can be loaded using the built-in codes of uncertainty model in Qiskit, and we contribute the similar codes for NIG distribution. Essentially, operator urn:x-wiley:que2:media:que284:que284-math-0068 inputs the state urn:x-wiley:que2:media:que284:que284-math-0069 for these urn:x-wiley:que2:media:que284:que284-math-0070 qubits, and outputs urn:x-wiley:que2:media:que284:que284-math-0071, a superposition of urn:x-wiley:que2:media:que284:que284-math-0072 entangled states:
urn:x-wiley:que2:media:que284:que284-math-0073(5)
where z is an integer in the binary form, for example, for urn:x-wiley:que2:media:que284:que284-math-0074, urn:x-wiley:que2:media:que284:que284-math-0075 ranges from urn:x-wiley:que2:media:que284:que284-math-0076 to urn:x-wiley:que2:media:que284:que284-math-0077, corresponding to urn:x-wiley:que2:media:que284:que284-math-00783urn:x-wiley:que2:media:que284:que284-math-0079 to 3urn:x-wiley:que2:media:que284:que284-math-0080 of the Gaussian distribution. Operator urn:x-wiley:que2:media:que284:que284-math-0081 is constructed via a series of controlled-not gates and unitary rotations. See Supplementary Appendix IV for the circuit of operator urn:x-wiley:que2:media:que284:que284-math-0082 and a brief derivation via matrix calculations.

3.3 Load correlated default using operator urn:x-wiley:que2:media:que284:que284-math-0083

Then we need to load the default correlation using operator urn:x-wiley:que2:media:que284:que284-math-0084. In short, operator urn:x-wiley:que2:media:que284:que284-math-0085 inputs urn:x-wiley:que2:media:que284:que284-math-0086 and urn:x-wiley:que2:media:que284:que284-math-0087 from urn:x-wiley:que2:media:que284:que284-math-0088 and urn:x-wiley:que2:media:que284:que284-math-0089, respectively, and outputs the further entangled state:
urn:x-wiley:que2:media:que284:que284-math-0090(6)

We use affine mapping12 to encode the influence of a z value for the lower urn:x-wiley:que2:media:que284:que284-math-0091 qubits. For instance, with urn:x-wiley:que2:media:que284:que284-math-0092 qubits, for urn:x-wiley:que2:media:que284:que284-math-0093, Qubit 1 and Qubit 3 turn on their controlled gates, while Qubit 2 does not switch on its controlled gate, so that the value urn:x-wiley:que2:media:que284:que284-math-0094 is considered for the urn:x-wiley:que2:media:que284:que284-math-0095 qubits, and there is a probability of urn:x-wiley:que2:media:que284:que284-math-0096 for z being 4. Meanwhile, there are also many linear Y-rotation gates urn:x-wiley:que2:media:que284:que284-math-0097 working on the urn:x-wiley:que2:media:que284:que284-math-0098 qubits, which change the probability for state urn:x-wiley:que2:media:que284:que284-math-0099 from urn:x-wiley:que2:media:que284:que284-math-0100 to urn:x-wiley:que2:media:que284:que284-math-0101. The expression for urn:x-wiley:que2:media:que284:que284-math-0102 as a function of z and the correlation-free urn:x-wiley:que2:media:que284:que284-math-0103 just follows Equation (2), which derives the slope and offset for the rotation gate for operator urn:x-wiley:que2:media:que284:que284-math-0104, that is, urn:x-wiley:que2:media:que284:que284-math-0105. See derivation of slope and offset in Supplementary Appendix V. The quantum circuit for operator urn:x-wiley:que2:media:que284:que284-math-0106 is provided in Supplementary Appendix VI.

3.4 Load total loss using operator urn:x-wiley:que2:media:que284:que284-math-0107

Furthermore, we set an operator urn:x-wiley:que2:media:que284:que284-math-0108 to sum up the loss due to all default events in this asset pool. The sum of loss equals to urn:x-wiley:que2:media:que284:que284-math-0109, where urn:x-wiley:que2:media:que284:que284-math-0110 is the loss given default for asset i, and urn:x-wiley:que2:media:que284:que284-math-0111 is 1 if asset i default and is 0 vice versa. The amplitude for urn:x-wiley:que2:media:que284:que284-math-0112 at the quantum state urn:x-wiley:que2:media:que284:que284-math-0113 is urn:x-wiley:que2:media:que284:que284-math-0114. That is, the probability for urn:x-wiley:que2:media:que284:que284-math-0115 is urn:x-wiley:que2:media:que284:que284-math-0116, where urn:x-wiley:que2:media:que284:que284-math-0117 is given by operator urn:x-wiley:que2:media:que284:que284-math-0118. The maximum loss would be urn:x-wiley:que2:media:que284:que284-math-0119 when all assets default, so ensuring the maximum loss to be encoded needs urn:x-wiley:que2:media:que284:que284-math-0120 qubits that urn:x-wiley:que2:media:que284:que284-math-0121. The operator urn:x-wiley:que2:media:que284:que284-math-0122 uses urn:x-wiley:que2:media:que284:que284-math-0123 qubits following the previous design of sum operator.12 It inputs the state: urn:x-wiley:que2:media:que284:que284-math-0124, and outputs the state:
urn:x-wiley:que2:media:que284:que284-math-0125(7)

The first urn:x-wiley:que2:media:que284:que284-math-0126 qubits are used to load the sum of loss urn:x-wiley:que2:media:que284:que284-math-0127. Given the probability for urn:x-wiley:que2:media:que284:que284-math-0128 is urn:x-wiley:que2:media:que284:que284-math-0129, the expectation of total loss is urn:x-wiley:que2:media:que284:que284-math-0130. The next urn:x-wiley:que2:media:que284:que284-math-0131 qubits are used as the carry qubits urn:x-wiley:que2:media:que284:que284-math-0132. See details on the circuit and a simple proof that the sum operator indeed loads the expectation value of the total loss urn:x-wiley:que2:media:que284:que284-math-0133 in Supplementary Appendix VII.

In short, the output after operator S is consistent with the expression for total loss given in Equation (3). The next step is to compare the total loss with the attachment points for each tranche and work out the tranche loss.

3.5 Load tranche loss using operator urn:x-wiley:que2:media:que284:que284-math-0134

We use the comparator operator urn:x-wiley:que2:media:que284:que284-math-0135 (urn:x-wiley:que2:media:que284:que284-math-0136, 2, and 3) to compare the sum of loss with the fixed lower attachment point urn:x-wiley:que2:media:que284:que284-math-0137 for each tranche k. The comparator has been used to compare the underlying asset value with the striking price for option pricing in a recent work.11 The operator urn:x-wiley:que2:media:que284:que284-math-0138 would flip the comparator ancilla qubit from urn:x-wiley:que2:media:que284:que284-math-0139 to urn:x-wiley:que2:media:que284:que284-math-0140 if urn:x-wiley:que2:media:que284:que284-math-0141, the sum of loss under a systematic risk level z, is higher than urn:x-wiley:que2:media:que284:que284-math-0142, and would keep urn:x-wiley:que2:media:que284:que284-math-0143 otherwise.

Meanwhile, a piecewise linear rotation operator urn:x-wiley:que2:media:que284:que284-math-0144 will also rotate the state of an objective qubit under the control of the comparator ancilla qubit. The operator urn:x-wiley:que2:media:que284:que284-math-0145 inputs the state urn:x-wiley:que2:media:que284:que284-math-0146 and outputs the state urn:x-wiley:que2:media:que284:que284-math-0147:
urn:x-wiley:que2:media:que284:que284-math-0148(8)
where urn:x-wiley:que2:media:que284:que284-math-0149, and c is a scaling factor. urn:x-wiley:que2:media:que284:que284-math-0150, where urn:x-wiley:que2:media:que284:que284-math-0151 can be implemented using controlled Y-rotations, and it is mapped to integer value urn:x-wiley:que2:media:que284:que284-math-0152. Note that there is an upperbound breakpoint urn:x-wiley:que2:media:que284:que284-math-0153 as well, so we set another comparator operator urn:x-wiley:que2:media:que284:que284-math-0154 that encodes urn:x-wiley:que2:media:que284:que284-math-0155, and urn:x-wiley:que2:media:que284:que284-math-0156 finally reads as:
urn:x-wiley:que2:media:que284:que284-math-0157(9)

With such settings urn:x-wiley:que2:media:que284:que284-math-0158 would be in the range urn:x-wiley:que2:media:que284:que284-math-0159, and by choosing a small scaling parameter c, which is generally set as 0.1 in this work, we can ensure urn:x-wiley:que2:media:que284:que284-math-0160 in a monotonously increasing regime. See Supplementary Appendix VIII for the quantum circuit of operator urn:x-wiley:que2:media:que284:que284-math-0161.

Then the probability at state urn:x-wiley:que2:media:que284:que284-math-0162 is expressed as urn:x-wiley:que2:media:que284:que284-math-0163, and it is found to have a relationship with the tranche loss:
urn:x-wiley:que2:media:que284:que284-math-0164(10)
where urn:x-wiley:que2:media:que284:que284-math-0165 is the expectation of loss for a certain tranche k, for instance, the loss for equity tranche when setting urn:x-wiley:que2:media:que284:que284-math-0166 and urn:x-wiley:que2:media:que284:que284-math-0167. See detailed derivation for Equation (10) in Supplementary Appendix IX.

3.6 Calculate tranche loss using QAE

Then it comes to the issue how to read the value of urn:x-wiley:que2:media:que284:que284-math-0168. QAE has been demonstrated as a good alternative to Monte Carlo simulation31 for finance pricing.10-13 In this work, QAE that estimates urn:x-wiley:que2:media:que284:que284-math-0169 allows us to obtain the CDO tranche loss and return. The canonical QAE algorithm was raised in 2002,5 which is to map the amplitude to be estimated (urn:x-wiley:que2:media:que284:que284-math-0170 in this case) to the discretized value using m additional qubits via controlled rotations and inverse quantum Fourier transform (QFT). QAE can achieve quadratic speedup, but involvement of inverse QFT requires exponentially increasing circuit depths. Therefore, there arising a series of adapted QAE methods to reduce the complexities of quantum circuits.32-34 Here we implement an iterative QAE32 (IQAE) for our tranche pricing task. IQAE was raised in late 2019 and it has now become widely used, for example, the Qiskit module has replaced the canonical QAE with QAE for many tutorial modules. The methods for both canonical QAE and iterative QAE are provided in Supplementary Appendix X.

4 RESULT ANALYSIS

We consider an example to show the pricing for CDO tranches. As listed in Table 1, the CDO pool has four assets, each showing a default probability urn:x-wiley:que2:media:que284:que284-math-0171, a sensitivity to the systematic risk urn:x-wiley:que2:media:que284:que284-math-0172 and a loss given default urn:x-wiley:que2:media:que284:que284-math-0173.

TABLE 1. The relevant parameters for each asset
Asset i urn:x-wiley:que2:media:que284:que284-math-0174 urn:x-wiley:que2:media:que284:que284-math-0175 urn:x-wiley:que2:media:que284:que284-math-0176
1 2 0.3 0.05
2 2 0.1 0.15
3 1 0.2 0.1
4 2 0.1 0.05

The CDO is divided into three tranches: the equity, mezzanine, and senior tranches. Values for the lower attachment point urn:x-wiley:que2:media:que284:que284-math-0179 and upper attachment point urn:x-wiley:que2:media:que284:que284-math-0180 for three tranches are provided in Table 2.

TABLE 2. The attachment points for each tranche
Tranche name Lower urn:x-wiley:que2:media:que284:que284-math-0177 Upper urn:x-wiley:que2:media:que284:que284-math-0178
Equity 0 1
Mezzanine 1 2
Senior 2 7

For this task, we need urn:x-wiley:que2:media:que284:que284-math-0187 qubits to represent the four assets in operator urn:x-wiley:que2:media:que284:que284-math-0188, and urn:x-wiley:que2:media:que284:que284-math-0189 qubits in operator urn:x-wiley:que2:media:que284:que284-math-0190 to make urn:x-wiley:que2:media:que284:que284-math-0191 slots for the uncertainty distribution of systematic risk Z. We implement Gaussian (Figure 3A) and NIG (Figure 3B) distribution for Z.

Details are in the caption following the image
Systematic risk distribution and the tranche loss functions. (A, B) The probabilities of urn:x-wiley:que2:media:que284:que284-math-0181 different z values using urn:x-wiley:que2:media:que284:que284-math-0182 qubits follow the Gaussian distribution (mean = 0, variance = 1) in (A) and the NIG distribution (skewness = 1, kurtosis = 6, mean = 0, variance = 1) in (B). For both distributions, the range is from urn:x-wiley:que2:media:que284:que284-math-0183 to urn:x-wiley:que2:media:que284:que284-math-0184. (C–E) The tranche loss as a function of cumulative loss for (C) equity tranche, (D) mezzanine tranche, and (E) senior tranche. In the white box in (C–E), the first, second, and third array, respectively, show the breakpoints, slopes, and offsets for this tranche. urn:x-wiley:que2:media:que284:que284-math-0185 is the attachment point between equity and mezzanine tranche, while urn:x-wiley:que2:media:que284:que284-math-0186 is that between mezzanine and senior tranche

For NIG distribution, by setting the parameters given in Supplementary Appendix I, it shows a skewness of 1 and kurtosis of 6, which are consistent with a real CDO market.25 Comparing with Gaussian distribution, this is narrower and centered to the left.

The step after loading distribution is to calculate the cumulative loss. The maximal loss is urn:x-wiley:que2:media:que284:que284-math-0192 for this portfolio. Therefore, we can use urn:x-wiley:que2:media:que284:que284-math-0193 qubits to encode the total loss in the weighted sum operator urn:x-wiley:que2:media:que284:que284-math-0194.

The pricing of the tranche loss is similar to the call option pricing, where there is a linear “payoff function” that goes up from zero after the option striking price or, for the CDO tranche, the attachment point. The tranche loss as a function of the total cumulative loss is given in Figure 3C–E for this specific example. We can use the built-in code named “PwlObjective” for the piecewise linear rotation function in operator urn:x-wiley:que2:media:que284:que284-math-0195. The built-in function uses the “breakpoints” array to record the attachment points, and uses the “slopes” and “offsets” arrays in which slope k and offset k correspond to these for the line segment between breakpoint urn:x-wiley:que2:media:que284:que284-math-0196 and breakpoint k. Note the offset is the y-axis value for the starting point of the line segment, instead of the intercept by extending the line segment to the y axis. The breakpoints, slopes and offsets for the tranche loss function in this specific case study are shown in each figure in Figure 3C–E, which can be very straightforwardly calculated. These are used as the input parameters for the built-in piecewise linear rotation function.

We then use IQAE to estimate urn:x-wiley:que2:media:que284:que284-math-0199 and convert it to the tranche loss according to Equation (4). We use the QASM cloud backend that is in the noisy intermediate-scale quantum (NISQ) environment. Figure 4 demonstrates the calculated tranche loss for an NIG distribution (Figure 3B) using IQAE (with a precision parameter urn:x-wiley:que2:media:que284:que284-math-0200 and a confidence interval parameter urn:x-wiley:que2:media:que284:que284-math-0201), the expected wavefunction results from the quantum circuit and the classical Monte Carlo method. The results for different approaches match well. The IQAE results, as indicated by a blue bar with different widths, give a confidence level of urn:x-wiley:que2:media:que284:que284-math-0202, while QAE estimates a few different values, each with a certain probability (see Figure A10 in the Supplementary Appendix).

Details are in the caption following the image
CDO tranche loss with Z under the NIG distribution. The calculated loss for (A) equity tranche, (B) mezzanine tranche, and (C) senior tranche. Z follows the NIG distribution depicted in Figure 3B. Blue bars indicate quantum computation results with urn:x-wiley:que2:media:que284:que284-math-0197 and urn:x-wiley:que2:media:que284:que284-math-0198 for IQAE using QASM simulator. Red dashed lines indicate definite matrix calculation result of the quantum circuit. The pink shading areas indicate the Monte Carlo results, which are obtained by finding the range of 20 sets of Monte Carlo simulations, each set having 1000 random repetitions

When Z follows Gaussian distribution (Figure 3A), consistent results have also been obtained, as shown in Figure A11 in the Supplementary Appendix. Still, the NIG results slight differs from the Gaussian results with a relatively lower tranche loss, especially for the senior tranche loss, which is 0.2233 for NIG and 0.2301 for Gaussian distribution, both obtained via the matrix calculation result for related quantum circuits. This can be due to the skewed distribution for NIG, which makes more positive z values than the Gaussian one, so that expected total loss will be relatively lower considering a negative urn:x-wiley:que2:media:que284:que284-math-0203 relationship given in Equation (2) and a positive urn:x-wiley:que2:media:que284:que284-math-0204 relationship given in Equation (4). Therefore, if the real market follows an NIG distribution while we use Gaussian distribution to model it, we would overestimate the expected tranche loss.

With the calculated tranche loss, we can price the CDO tranche return according to Equation (1). The notional value N for the equity tranche, mezzanine tranche, and senior tranche is 1, 1, and 5, respectively, by calculating urn:x-wiley:que2:media:que284:que284-math-0205 for each tranche. For equity, mezzanine, and senior tranche, the expected tranche loss via IQAE gives 52.0%, 41.7% and 23.8%. Then the tranche return for these tranches are 52.0%, 41.7% and 4.76%, respectively. The low return for the senior tranche is consistent with the practice in reality. Such a low value is first due to the last sequence to bear the loss, and second owing to its large notional value, which is normally above 80% of the sum for the three tranches.

It is worth noting that the returns for equity and mezzanine tranche in the case study of the main text are a bit too high, comparing to the custom returns that would be around 15%–25% and 5%–15% for the equity and mezzanine tranche, respectively.18 It is partially because that default probabilities urn:x-wiley:que2:media:que284:que284-math-0206s are a bit high. One more reason is that we ignore the recovery rate of the asset in order to focus on the essential structure. The recovery rate urn:x-wiley:que2:media:que284:que284-math-0207, which is generally set as 40%, means that when asset defaults, some values can be recovered by ways like selling real estates to get funds to compensate investors. Then the maximum loss would equal to the total notional value multiplies (urn:x-wiley:que2:media:que284:que284-math-0208). In this example, the loss given default urn:x-wiley:que2:media:que284:que284-math-0209 to urn:x-wiley:que2:media:que284:que284-math-0210 would become 1.2, 1.2, 0.6, and 1.2, while the tranche attachment points keep unchanged. This would bring down the tranche loss.

We further conduct a robustness analysis on the quantum computation method for CDO tranche pricing, with details given in Supplementary Appendix XI. We have noticed that the scaling factor c is introduced in the operator urn:x-wiley:que2:media:que284:que284-math-0211, and it has to be small enough to make the approximation urn:x-wiley:que2:media:que284:que284-math-0212 satisfied. Therefore, a smaller value of c tends to be more accurate. The IQAE parameters, including the confidence interval parameter urn:x-wiley:que2:media:que284:que284-math-0213 and the precision parameter urn:x-wiley:que2:media:que284:que284-math-0214, are investigated as well. We find that urn:x-wiley:que2:media:que284:que284-math-0215 does not have a prominent influence on the range of the result, that is, the bar width, while urn:x-wiley:que2:media:que284:que284-math-0216 has a severe impact, and the result is satisfactory only when urn:x-wiley:que2:media:que284:que284-math-0217 goes down to 0.002 or below. For all these quantum computing parameters, the senior tranche is most sensitive to the changes. This can be due to its last sequence to bear loss. While little fluctuation would not change the result for other tranches, a slight decrease of total loss can possibly exempt the loss due for the senior tranche. We also introduce up to urn:x-wiley:que2:media:que284:que284-math-0218 fluctuations of either the independent probability of default urn:x-wiley:que2:media:que284:que284-math-0219 or the correlation to systematic risk, urn:x-wiley:que2:media:que284:que284-math-0220, and find that the fluctuation of urn:x-wiley:que2:media:que284:que284-math-0221 has a stronger influence on the tranche loss comparing to urn:x-wiley:que2:media:que284:que284-math-0222. We show that each tranche loss shows an increasing and decreasing trend with urn:x-wiley:que2:media:que284:que284-math-0223 and urn:x-wiley:que2:media:que284:que284-math-0224, respectively, which is consistent with the theoretical conditional independence approach in Eq.(2). In addition, an analysis is given in Supplementary Appendix XII to show how different operators scale with urn:x-wiley:que2:media:que284:que284-math-0225, urn:x-wiley:que2:media:que284:que284-math-0226, and urn:x-wiley:que2:media:que284:que284-math-0227. It suggests that urn:x-wiley:que2:media:que284:que284-math-0228 and urn:x-wiley:que2:media:que284:que284-math-0229 consume heavy circuit depth and it is worth investigation for further optimization for those operators.

5 DISCUSSION AND CONCLUSION

The CDO is a relatively advanced and complex structured finance product, and the credit market plays a significant role in the finance industry. Therefore, despite there were some disputes on CDOs during the 2008 financial crisis, CDOs are still widely studied in quantitative finance, and inspire the work of pricing more credit derivatives, which now include a wide range of products like credit default swaps (CDS) and credit valuation adjustment (CVA).

The CDOs are being improved with various financial models considering the inadequacy of early single-factor Gaussian copulas. In this work, we implement the NIG model as an alternative to the Gaussian model. In general, the heavy-tailed distribution of factors in a one-factor copula model may always help to solve the correlation smile problem of the Gaussian copula model. For instance, there is also the variance gamma model that was first applied to option pricing35 and later found to be a good model for CDO pricing.36 Such improved models can also be calculated via quantum computation.

We have stated that the Monte Carlo is useful as only a few stochastic equations for derivative pricing have analytical solutions. It is also worth to note that there are many numerical methods which are being investigated and may work faster than Monte Carlo, for example, finite difference and Fourier transform methods. They would set up a higher classical benchmark that calls for further improvement of corresponding quantum algorithms.

Note that the quantum adaption of generative adversarial network7, 37 has now been considered as an effective way to load any distribution in quantum circuits15 and can be applied to more finance models. Besides, the parameter shift rule38, 39 has been raised to solve the issue of encoding gradients in quantum circuits, which facilitates the mapping of machine learning techniques in quantum algorithms. Furthermore, the trendy variational quantum algorithms that are suitable for NISQ environment, and the alternative approach using quantum annealing,40 may work on a large variety of optimization tasks in finance. In all, there's much room to explore for quantum computation in finance applications.

ACKNOWLEDGMENTS

Hao Tang thanks Prof. Stephen Schaefer's previous help for studies on fixed income and interest rate derivative at London Business School. The authors thank Jian-Wei Pan for helpful discussions. This research was supported by National Key R&D Program of China (2019YFA0308700, 2017YFA0303700), National Natural Science Foundation of China (61734005, 11761141014, 11690033, 11904229), Science and Technology Commission of Shanghai Municipality (STCSM) (21ZR1432800, 17JC1400403), and Shanghai Municipal Education Commission (SMEC) (2017-01-07-00-02-E00049). Xian-Min Jin acknowledges additional support from a Shanghai Talent Program.

    CONFLICT OF INTEREST

    The authors declare no competing interests.

    AUTHOR CONTRIBUTIONS

    Hao Tang and Xian-Min Jin conceived and supervised the project. Hao Tang and Anurag Pal designed the scheme. Anurag Pal wrote the Qiskit code. Hao Tang did Monte Carlo simulation. Hao Tang, Anurag Pal, Lu-Feng Qiao, Tian-Yu Wang, Jun Gao, and Xian-Min Jin analyzed the data and presented the figures. Hao Tang, Anurag Pal, and Tian-Yu Wang enriched the quantum circuit analysis in the Supplementary Appendix. Hao Tang wrote the article, including the Supplementary Appendix, with input from all the other authors.

    DATA AVAILABILITY STATEMENT

    The data that support the plots within this article and other findings of this study are available from the corresponding author upon reasonable request.

      The full text of this article hosted at iucr.org is unavailable due to technical difficulties.