Abstract
The quantum algorithms for Monte Carlo integration (QMCI), which are based on quantum amplitude estimation (QAE), speed up expected value calculation compared with classical counterparts and have been widely investigated along with their applications to industrial problems such as financial derivative pricing. In this paper, we consider an expected value of a function of a stochastic variable and a real-valued parameter and how to calculate derivatives of the expectation with respect to the parameter. This problem is related to calculating sensitivities of financial derivatives and so of industrial importance. Based on QMCI and the general-order central difference formula for numerical differentiation, we propose two quantum methods for this problem and evaluate their complexities. The first one, which we call the naive iteration method, simply calculates the formula by iterative computations and additions of the terms in it and then estimates its expected value by QAE. The second one, which we name the sum-in-QAE method, performs the summation of the terms at the same time as the sum over the possible values of the stochastic variable in a single QAE. We see that, depending on the smoothness of the function and the number of qubits available, either of two methods is better than the other. In particular, when the function is nonsmooth or we want to save the qubit number, the sum-in-QAE method can be advantageous.
Similar content being viewed by others
Data Availability
Data sharing not applicable to this article as no datasets were generated or analyzed during the current study.
Notes
In this paper, when we simply say a derivative, it refers to a mathematical terms, that is, a derivative of a function. On the other hand, when we refer to a derivative as a financial product, we use a financial derivative.
References
Montanaro, A.: Quantum speedup of Monte Carlo methods. Proc. R. Soc. Ser. A 471(2181), 20150301 (2015)
Suzuki, Y., et al.: Amplitude estimation without phase estimation. Quantum Inf. Process. 19, 75 (2020)
Herbert, S.: Quantum Monte-Carlo Integration: the full advantage in minimal circuit depth. arXiv:2105.09100 (2021)
Brassard, G., et al.: Quantum amplitude amplification and estimation. Contemp. Math. 305, 53 (2002)
Aaronson, S., Rall, P.: Quantum approximate counting, simplified. In Proceedings of Symposium on Simplicity in Algorithms, pp. 24–32. SIAM (2020)
Grinko, D., et al.: Iterative quantum amplitude estimation. npj Quantum Inf. 7, 52 (2021)
Nakaji, K.: Faster amplitude estimation. Quantum Inf. Comput. 20, 1109 (2020)
Brown, E.G., et al.: Quantum amplitude estimation in the presence of noise. arXiv:2006.14145 (2020)
Kerenidis, I., Prakash, A.: A method for amplitude estimation with noisy intermediate-scale quantum computers. U.S. Patent Application No. 16/892,229 (2020)
Giurgica-Tiron, T., et al.: Low depth algorithms for quantum amplitude estimation. arXiv:2012.03348 (2020)
Tanaka, T., et al.: Amplitude estimation via maximum likelihood on noisy quantum computer. Quantum Inf. Process. 20, 293 (2021)
Uno, S., et al.: Modified Grover operator for amplitude estimation. New J. Phys. 23, 083031 (2021)
Wang, G., et al.: Minimizing estimation runtime on noisy quantum computers. PRX Quantum 2, 010346 (2021)
Rebentrost, P., et al.: Quantum computational finance: Monte Carlo pricing of financial derivatives. Phys. Rev. A 98, 022321 (2018)
Stamatopoulos, N., et al.: Option pricing using quantum computers. Quantum 4, 291 (2020)
Kaneko, K., et al.: Quantum pricing with a smile: Implementation of local volatility model on quantum computer. EPJ Quantum Technol. 9, 7 (2022)
Tang, H., et al.: Quantum computation for pricing the collateralized debt obligations. Quantum Eng. 3(4), e84 (2021)
Martin, A., et al.: Towards pricing financial derivatives with an IBM quantum computer. Phys. Rev. Res. 3, 013167 (2021)
Ramos-Calderer, S., et al.: Quantum unary approach to option pricing. Phys. Rev. A 103, 032414 (2021)
Vazquez, A.C., Woerner, S.: Efficient state preparation for quantum amplitude estimation. Phys. Rev. Appl. 15, 034027 (2021)
Chakrabarti, S., et al.: A threshold for quantum advantage in derivative pricing. Quantum 5, 463 (2021)
An, D., et al.: Quantum-accelerated multilevel Monte Carlo methods for stochastic differential equations in mathematical finance. Quantum 5, 481 (2021)
Miyamoto, K.: Bermudan option pricing by quantum amplitude estimation and Chebyshev interpolation. EPJ Quantum Technol. 9, 3 (2022)
Hull, J.C.: Options, Futures, and Other Derivatives. Prentice Hall, Englewood Cliffs (1995)
Jordan, S.P.: Fast quantum algorithm for numerical gradient estimation. Phys. Rev. Lett. 95, 050501 (2005)
Gilyén, A., Arunachalam, S., Wiebe, N.: Optimizing quantum optimization algorithms via faster quantum gradient computation. In: Proceedings of the 30th ACM-SIAM Symposium on Discrete Algorithms (SODA 2019), pp. 1425–1444. SIAM (2019)
Cornelissen, A.: Quantum gradient estimation of Gevrey functions. arXiv:1909.13528 (2019)
Glasserman, P.: Monte Carlo Methods in Financial Engineering. Springer (2003)
Fowler, A.G., et al.: Surface codes: towards practical large-scale quantum computation. Phys. Rev. A 86, 032324 (2012)
Li, J.: General explicit difference formulas for numerical differentiation. J. Comput. Appl. Math. 183, 29 (2005)
Vedral, V., Barenco, A., Ekert, A.: Quantum networks for elementary arithmetic operations. Phys. Rev. A 54, 147 (1996)
Draper, T. G.: Addition on a quantum computer. arXiv:quant-ph/0008033 (2000)
Cuccaro, S.A., et al.: A new quantum ripple-carry addition circuit. arXiv:quant-ph/0410184 (2004)
Takahashi, Y., et al.: A linear-size quantum circuit for addition with no ancillary qubits. Quantum Inf. Comput. 5, 440 (2005)
Draper, T.G., et al.: A logarithmic-depth quantum carry-lookahead adder. Quantum Inf. Comput. 6, 351 (2006)
Alvarez-Sanchez, J.J., et al.: A quantum architecture for multiplying signed integers. J. Phys. Conf. Ser. 128, 012013 (2008)
Takahashi, Y., et al.: A fast quantum circuit for addition with few qubits. Quantum Inf. Comput. 8, 636 (2008)
Takahashi, Y., et al.: Quantum addition circuits and unbounded fan-out. Quantum Inf. Comput. 10, 0872 (2010)
Khosropour, A., et al.: Quantum division circuit based on restoring division algorithm. In: Proceedings of 2011 Eighth International Conference on Information Technology: New Generations, pp. 1037–1040 (2011)
Thapliyal, H., Ranganathan, N.: Design of efficient reversible logic based binary and BCD adder circuits. J. Emerg. Technol. Comput. Syst. 9, 17 (2013)
Thapliyal, H.: Mapping of subtractor and adder-subtractor circuits on reversible quantum gates. Trans. Comput. Sci. XXVII, 10 (2016)
Jayashree, H.V., et al.: Ancilla-input and garbage-output optimized design of a reversible quantum integer multiplier. J. Supercomput. 72, 1477 (2016)
Dibbo, S.V., et al.: An efficient design technique of a quantum divider circuit. In: Proceedings of 2016 IEEE International Symposium on Circuits and Systems (ISCAS), pp. 2102–2105 (2016)
Muñoz-Coreas, E., Thapliyal, H.: T-count and qubit optimized quantum circuit design of the non-restoring square root algorithm. ACM J. Emerg. Technol. Comput. Syst. 14, 3 (2018)
Muñoz-Coreas, E., Thapliyal, H.: Quantum circuit design of a T-count optimized integer multiplier. IEEE Trans. Comput. 68, 5 (2019)
Thapliyal, H., et al.: Quantum circuit designs of integer division optimizing T-count and T-depth. IEEE Trans. Emerg. Top. Comput. 9, 1045 (2019)
Häner, T., Roetteler, M., Svore,K. M.: Optimizing Quantum Circuits for Arithmetic. arXiv:1805.12445 (2018)
Grover, L., Rudolph, T.: Creating superpositions that correspond to efficiently integrable probability distributions. quant-ph/0208112 (2002)
Miyamoto, K., Shiohara, K.: Reduction of qubits in quantum algorithm for Monte Carlo simulation by pseudo-random number generator. Phys. Rev. A 102, 022424 (2020)
Egger, D.J., et al.: Credit risk analysis using quantum computers. IEEE Trans. Comput. 70(12), 2136 (2020)
Mottonen, M., et al.: Transformation of quantum states using uniformly controlled rotations. Quant. Inf. Comput. 5, 467 (2005)
Bergholm, V., et al.: Quantum circuits with uniformly controlled one-qubit gates. Phys. Rev. A 71, 052330 (2005)
Shende, V.V., Bullock, S.S., Markov, I.L.: Synthesis of quantum logic circuits. IEEE Trans. Comput. Aided Des. 25, 1000 (2006)
Plesch, M., Brukner, C.: Quantum-state preparation with universal gate decompositions. Phys. Rev. A 83, 032302 (2011)
Iten, R., et al.: Quantum circuits for isometries. Phys. Rev. A 93, 032318 (2016)
Park, D.K., Petruccione, F., Rhee, J.-K.K.: Circuit-based quantum random access memory for classical data. Sci. Rep. 9, 3949 (2019)
Araujo, I.S., et al.: A divide-and-conquer algorithm for quantum state preparation. Sci. Rep. 11, 6329 (2021)
Robbins, H.: A remark on Stirling’s formula. Am. Math. Mon. 62, 26 (1955)
Acknowledgements
This work was supported by MEXT Quantum Leap Flagship Program (MEXT Q-LEAP) Grant Number JPMXS0120319794.
Author information
Authors and Affiliations
Corresponding author
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Appendices
Appendix A: Proof of Lemma 1
Proof
First, we consider the case where \(m\ge 2\). From the definition of \(a^{(m)}_{n,j}\) in (6),
holds for any \(j\in [-n:n]\setminus \{0\}\). Note that
Here, the third inequality follows from \(\left( 2n\right) ^{m-1}\le m^{2n}\), which holds for any positive integers m and n such that \(m\le 2n\). Then, we see that
This holds also when \(m=1\), since
Hence, combining this and (24) with the definition of \(R_f(x,n,m,h)\) in (6), we have
Here, we used \(\sum _{j=0}^k\left( {\begin{array}{c}k\\ j\end{array}}\right) =2^k\), which holds for any \(k\in \mathbb {N}\), at the third inequality, and
which is given in [58], at the fourth inequality. \(\square \)
Appendix B: Proof of Lemma 2
Proof
When \(m\ge 2\), because of (A 1), we have
for any \(j\in [-n:n]\setminus \{0\}\), where we used
Therefore, we obtain
where the first equality follows from the definition of \(d^{(m)}_{n,0}\) in (6).
When \(m=1\), \(|a^{(1)}_{n,j}| = (n!)^2/|j|\) for \(j\in [-n:n]\setminus \{0\}\), and therefore,
This leads to
which indicates that (27) holds also for \(m=1\). \(\square \)
Appendix C: Proof of Lemma 3
To prove Lemma 3, let us introduce some additional lemmas.
Lemma 4
For any \(a,x\in \mathbb {R}_+\) satisfying \(a^2\le x\),
holds.
Proof
Consider a function \(f_a(x)=x-a\log x\) on \({\mathbb {R}}_+\). \(f_a^\prime (x)=1-\frac{a}{x}\), and therefore, it takes the minimum \(a(1-\log a)\) at \(x=a\). Then, we consider the following cases.
(i) \(a\le e\)
Since the minimum of \(f_a(x)\) is larger than 0,
which means (C1) holds for any \(x\in \mathbb {R}_+\).
(i) \(a> e\)
As a special case of (C2), \(f_2(y)=y-2\log y\ge 0\) holds for any \(y\in {\mathbb {R}}_+\), which indicates that \(f_a(a^2)=a(a-2\log a)\ge 0\). Besides, \(f_a^\prime (x)>0\) for any x larger than \(a^2\). Combining these, we see that, for any x larger than \(a^2\), \(f_a(x)\ge 0\) holds, and so does (C1).
Lemma 5
For any \(a\in {\mathbb {R}}_{\ge 0}\), \(x\in {\mathbb {R}}_+\), and \(\epsilon \in {\mathbb {R}}_+\) such that
and
holds.
Proof
When \(a=0\), (C5) becomes \(2^{-x}\le \epsilon \) and holds trivially, since (C4) becomes \(x\ge \log _2\left( \frac{1}{\epsilon }\right) \). Therefore, we consider the case where \(a>0\) below. First, note that, under the condition (C3),
holds, and this means
because of Lemma 4. Then, we see that
where we use the definition (C4) of \(\tilde{x}_{a,\epsilon }\) at the first equality and (C7) at the inequality.
On the other hand, defining \(g(x):=\frac{x^a}{2^x}\), we obtain
which implies that, when \(x\ge \frac{a}{\log 2}\), \(\log g(x)\) is monotonically deceasing, and so is g(x). Besides, under (C3), we can see that both
and
hold by simple algebra, and therefore,
Hence, we obtain
for \(x\ge \tilde{x}_{a,\epsilon }\). \(\square \)
Now, let us prove Lemma 3.
Proof of Lemma 3
Under (28) and (30), Lemma 5 implies that
Then, we see that
Here, at the first inequality, we use (25) with \(M=Ac^{2n+1}\left( (2n+1)!\right) ^{\sigma }\), since \(f\in \mathcal {G}_{A,C,\sigma }\). We also use \(((2n+1)!)^\sigma \le ((2n+1)^{\sigma ^+})^{2n+1}\) at the second inequality, (29) at the third inequality, (C14) at the fourth inequality, and (31) at the last equality. Because of Theorem 1, (C15) indicates that (32) holds. \(\square \)
Rights and permissions
About this article
Cite this article
Miyamoto, K. Quantum algorithms for numerical differentiation of expected values with respect to parameters. Quantum Inf Process 21, 109 (2022). https://doi.org/10.1007/s11128-022-03453-5
Received:
Accepted:
Published:
DOI: https://doi.org/10.1007/s11128-022-03453-5