Next Article in Journal
Proposal and Integration of Functionalities for an Assistive Platform in Complex Indoor Environments
Previous Article in Journal
A Parallel Tool for the Identification of Differentially Methylated Regions in Genomic Analyses
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Proceeding Paper

Quantum Arithmetic for Directly Embedded Arrays †

by
Alberto Manzano
1,*,‡,
Daniele Musso
2,‡,
Álvaro Leitao
1,
Andrés Gómez
2,
Carlos Vázquez
1,
Gustavo Ordóñez
3 and
María Rodríguez-Nogueiras
3
1
Research Group M2NICA, Department of Mathematics, CITIC, University of A Coruña, Campus de Elviña S/N, 15071 A Coruña, Spain
2
Centro de Supercomputación de Galicia (CESGA), Avenida de Vigo, 15705 Santiago de Compostela, Spain
3
Global Risk Analytics, HSBC, Centenary Sq, Birmingham B1 1HQ, UK
*
Author to whom correspondence should be addressed.
Presented at the 4th XoveTIC Conference, A Coruña, Spain, 7–8 October 2021.
These authors contributed equally to this work.
Eng. Proc. 2021, 7(1), 45; https://doi.org/10.3390/engproc2021007045
Published: 21 October 2021
(This article belongs to the Proceedings of The 4th XoveTIC Conference)

Abstract

:
We describe a general-purpose framework to implement quantum algorithms relying upon an efficient handling of arrays. The cornerstone of the framework is the direct embedding of information into quantum amplitudes, thus avoiding hampering square roots. We discuss the entire pipeline, from data loading to information extraction. Particular attention is devoted to the definition of an efficient toolkit of basic quantum operations on arrays. We comment on strong and weak points of the proposed quantum manipulations, especially in relation to an effective exploitation of quantum parallelism. We describe in detail some general-purpose routines as well as their embedding in full algorithms. Their efficiency is critically discussed both locally, at the level of the routine, and globally, at the level of the full algorithm. Finally, we comment on some applications in the quantitative finance domain.

1. Introduction

Quantum hardware and software are still in their early days of development; thus, the design of quantum algorithms typically focuses on low-level operations. Although one should always keep in mind the hardware limitations, especially when describing possible near-term implementations of quantum algorithms, it is convenient to pursue higher levels of abstraction. Apart from its long-term and algorithmic interest, a more abstract and standardized approach serves practical purposes too, for example, that of making the benchmarking of quantum computer performances a more solid and transparent process. In turn, this helps pushing the research and the development in quantum computation at all levels. In the present paper, we describe a novel framework for the design of quantum algorithms on a more abstract plane. To this aim, we have three proposals [1].

2. Results

Our first proposal consists in the definition of a quantum matrix, namely a quantum state organized in two registers:
ψ = i = 0 I 1 j = 0 J 1 c i j i n I j n J .
Specifically, we interpret the first register as the index running over the rows and the second register as the index running over the columns. This way of storing the information has a common ground with that of Flexible Representation of Quantum Images (FRQI) and the Novel Enhanced Quantum Representation (NEQR) [2,3]. The main difference with FRQI and NEQR is that we encode the information of the (i,j) entry of the matrix in the quantum amplitude. Intuitively, the matrix is a bi-dimensional memory array where the amplitude encodes the information stored in the (i,j) memory location (see Figure 1).
The second proposal is a key technical feature about how we encode the information into the quantum amplitudes, the so-called direct embedding [4]. Namely, the information to be stored into the quantum matrix is directly loaded into the amplitudes without taking square roots, as it is instead usually done in the literature. Such loading choice has several and important implications in later stages of the quantum algorithms and—most importantly—the information stored into the quantum state is handled and combined more easily, because algebraic operations are not hampered by the presence of square roots.
The third and final proposal is to give a full overview of the complete pipeline, or overall structure, of a generic algorithm admitting implementation within this framework (see Figure 2).
The first step of every algorithm corresponds to loading some input data. In the quantum case, it is often convenient to split this step into two sub steps:
  • Loading a probability distribution [4,5,6];
  • Loading a bi-dimensional function.
It is not strictly necessary to split the loading into two steps. Yet, we consider such splitting because—typically—we adopt different loading techniques for them: the probability distribution is loaded with a state preparation algorithm (e.g., a multiplexor binary tree); the function is loaded by means of another technique.
The second step of the pipeline in our framework corresponds to the implementation of various arithmetic operations, typically at the level of entire arrays or sub-arrays, and we refer to it as quantum arithmetic.
The third and last step of the pipeline corresponds to extracting the information that we have stored in the quantum state, namely the read-out of the state that encodes the result of the algorithm. There are multiple techniques for this purpose such as those appearing in [7,8,9,10,11].

3. Discussion

One of the advantages of organizing the pipeline as we have discussed is that it enjoys a modular structure; therefore, we can develop, analyze and improve each of the steps independently, achieving a better understanding of the problems in each domain.
In this paper, apart from introducing the framework, we provide some simple examples of arithmetic operations with finance in view. The possibility of implementing arithmetic operations has been considered in the literature since the early days of quantum computation. Apart from the quantum implementation of logical circuits corresponding to basic operations, such as the quantum adder [12,13], also the manipulation of “continuous” numbers has been studied. Let us mention some works which, at least in spirit, are closer to ours [14,15,16,17]. The difference with such approaches consists in the fact that we use a new embedding and organize the information into the matrix (1); these two aspects combined allow us to work in a transparent and simple manner.

Funding

This research was funded by the European Project NExt ApplicationS of Quantum Computing (NEASQC), funded by Horizon 2020 Program inside the call H2020-FETFLAG-2020-01(Grant Agreement 951821). Part of the computational resources for this project were provided by the Centro de Supercomputación de Galicia (CESGA).

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Manzano, A.; Musso, D.; Leitao, Á.; Gómez, A.; Vázquez, C.; Ordóñez, G.; Rodríguez-Nogueiras, M. Quantum Arithmetic for Directly Embedded Arrays. arXiv 2021, arXiv:2107.13872. [Google Scholar]
  2. Le, P.; Iliyasu, A.; Dong, F.; Hirota, K. A flexible representation of quantum images for polynomial preparation, image compression and processing operations. Quantum Inf. Process. 2011, 10, 63–84. [Google Scholar] [CrossRef]
  3. Zhang, Y.; Lu, K.; Gao, Y.; Wang, M. NEQR: A novel enhanced quantum representation of digital images. Quantum Inf. Process. 2013, 12, 2833–2860. [Google Scholar] [CrossRef]
  4. Kubo, K.; Nakagawa, Y.O.; Endo, S.; Nagayama, S. Variational quantum simulations of stochastic differential equations. arXiv 2020, arXiv:2012.04429. [Google Scholar]
  5. Grover, L.; Rudolph, T. Creating superpositions that correspond to efficiently integrable probability distributions. arXiv 2002, arXiv:quant-ph/0208112. [Google Scholar]
  6. Nakaji, K.; Uno, S.; Suzuki, Y.; Raymond, R.; Onodera, T.; Tanaka, T.; Tezuka, H.; Mitsuda, N.; Yamamoto, N. Approximate amplitude encoding in shallow parameterized quantum circuits and its application to financial market indicator. arXiv 2021, arXiv:2103.13211. [Google Scholar]
  7. Shimada, N.H.; Hachisuka, T. Quantum Coin Method for Numerical Integration. arXiv 2020, arXiv:1910.00263. [Google Scholar] [CrossRef]
  8. Brassard, G.; Hoyer, P.; Mosca, M.; Tapp, A. Quantum Amplitude Amplification and Estimation. AMS Contemp. Math. Ser. 2000, 305, 53–74. [Google Scholar] [CrossRef] [Green Version]
  9. Suzuki, Y.; Uno, S.; Raymond, R.; Tanaka, T.; Onodera, T.; Yamamoto, N. Amplitude estimation without phase estimation. Quantum Inf. Process. 2020, 19, 75. [Google Scholar] [CrossRef] [Green Version]
  10. Grinko, D.; Gacon, J.; Zoufal, C.; Woerner, S. Iterative Quantum Amplitude Estimation. npj Quantum Inf. 2021, 7. [Google Scholar] [CrossRef]
  11. Giurgica-Tiron, T.; Kerenidis, I.; Labib, F.; Prakash, A.; Zeng, W. Low depth algorithms for quantum amplitude estimation. arXiv 2020, arXiv:2012.03348. [Google Scholar]
  12. Draper, T.G. Addition on a Quantum Computer. arXiv 2000, arXiv:quant-ph/0008033. [Google Scholar]
  13. Cuccaro, S.A.; Draper, T.G.; Kutin, S.A.; Petrie Moulton, D. A new quantum ripple-carry addition circuit. arXiv 2004, arXiv:quant-ph/0410184. [Google Scholar]
  14. Wang, S.; Wang, Z.; Cui, G.; Fan, L.; Shi, S.; Shang, R.; Li, W.; Wei, Z.; Gu, Y. Quantum Amplitude Arithmetic. arXiv 2020, arXiv:2012.11056. [Google Scholar]
  15. Vedral, V.; Barenco, A.; Ekert, A. Quantum networks for elementary arithmetic operations. Phys. Rev. A 1996, 54, 147–153. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  16. Lloyd, S.; Braunstein, S.L. Quantum Computation over Continuous Variables. Phys. Rev. Lett. 1999, 82, 1784–1787. [Google Scholar] [CrossRef] [Green Version]
  17. Xiaopeng, C.; Yu, S. QBLAS: A Quantum Basic Linear Algebra and Simulation Library; GitHub: San Francisco, CA, USA, 2019. [Google Scholar]
Figure 1. Quantum matrix structure.
Figure 1. Quantum matrix structure.
Engproc 07 00045 g001
Figure 2. Structure of the pipeline. The dark gray nodes represent the three main steps; the nodes in red correspond to algorithms that are not efficient, for those in yellow the efficiency varies from case to case and, finally, the nodes in green represent efficient algorithms.
Figure 2. Structure of the pipeline. The dark gray nodes represent the three main steps; the nodes in red correspond to algorithms that are not efficient, for those in yellow the efficiency varies from case to case and, finally, the nodes in green represent efficient algorithms.
Engproc 07 00045 g002
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Manzano, A.; Musso, D.; Leitao, Á.; Gómez, A.; Vázquez, C.; Ordóñez, G.; Rodríguez-Nogueiras, M. Quantum Arithmetic for Directly Embedded Arrays. Eng. Proc. 2021, 7, 45. https://doi.org/10.3390/engproc2021007045

AMA Style

Manzano A, Musso D, Leitao Á, Gómez A, Vázquez C, Ordóñez G, Rodríguez-Nogueiras M. Quantum Arithmetic for Directly Embedded Arrays. Engineering Proceedings. 2021; 7(1):45. https://doi.org/10.3390/engproc2021007045

Chicago/Turabian Style

Manzano, Alberto, Daniele Musso, Álvaro Leitao, Andrés Gómez, Carlos Vázquez, Gustavo Ordóñez, and María Rodríguez-Nogueiras. 2021. "Quantum Arithmetic for Directly Embedded Arrays" Engineering Proceedings 7, no. 1: 45. https://doi.org/10.3390/engproc2021007045

Article Metrics

Back to TopTop