<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Encoding and Provisioning Data in diferent Data Models for Quantum Computing</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Markus Zajac</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Supervised by Prof. Uta Störl FernUniversität in Hagen</institution>
          ,
          <addr-line>Universitätsstraße 47, 58097 Hagen</addr-line>
          ,
          <country country="DE">Germany</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>[3] M. Schuld</institution>
          ,
          <addr-line>F. Petruccione, Quantum Computing, [17] M. Weigold, J. Barzen, F. Leymann, M. Salm, Data</addr-line>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2023</year>
      </pub-date>
      <volume>5162</volume>
      <fpage>0000</fpage>
      <lpage>0002</lpage>
      <abstract>
        <p>Quantum computers promise polynomial or exponential speed-up in solving certain problems in comparison to classical computers. In practical use, however, there are currently a number of fundamental technical challenges. One of them concerns the loading of data into quantum computers and the corresponding encoding, since they cannot access database systems directly. In this paper, a hybrid data management architecture in which databases can serve as data sources for quantum algorithms is presented. Furthermore, a first encoding approach for data organized in tree structures is given.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Data management for quantum computing</kwd>
        <kwd>hybrid quantum computing</kwd>
        <kwd>data encoding</kwd>
        <kwd>data loading</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Brief Introduction from a</title>
    </sec>
    <sec id="sec-2">
      <title>Database Perspective</title>
    </sec>
    <sec id="sec-3">
      <title>2. Related Work</title>
      <p>
        as an example for this. In addition, event-driven
worklfows are to be supported and economical data exchange
It can be generally stated that research on the use of quan- between database systems and quantum computers is
tum computers around database systems and data-driven to be explored (cf. Subsection 3.1). Works describing
applications is rather rare. As outlined in Section 1, work communication between database systems and quantum
on this may well be visionary. However, in order to con- computers considering these aspects are not known so
cretely use data in a quantum computer, that data must far. Initial design of this architecture is described in
Subbe loaded by encoding it into the state of the qubits [
        <xref ref-type="bibr" rid="ref3">4</xref>
        ]. section 3.1. However, it is a work in progress and will be
In paper [
        <xref ref-type="bibr" rid="ref5">6</xref>
        ] it is generally mentioned that loading data continuously developed.
into a quantum computer is a hard problem. The fact that Comments on Q2: For developed encoding methods a
databases can provide data for quantum computing is runtime and space complexity analysis is performed. The
almost not discussed in the literature. The same applies ifrst analyzes the runtime of the encoding methods, the
to possible data exchange procedures between database second the demand for qubits. This task is described as
systems and quantum computers. The paper [15] deals challenging [
        <xref ref-type="bibr" rid="ref4">5</xref>
        ]. In this way, methods can be compared
with the orchestration of hybrid quantum applications with each other. In Subsection 3.2, an encoding approach
in the cloud using BPMN-Workflows and uses a database for a tree structure is conceptually developed, which,
as input for a specific use case. In [
        <xref ref-type="bibr" rid="ref4">5</xref>
        ], there is mention of however, has not yet been experimentally verified.
the need to transform data from databases for quantum
computing. 3.1. Data Exchange Framework–A Hybrid
      </p>
      <p>
        The next important topic concerns encoding.
Encoding represents the transformed classical data by means Data Management Architecture
of qubits [
        <xref ref-type="bibr" rid="ref4">5</xref>
        ]. Only then can the data be processed on In this Section, we introduce the Hybrid Data
Managea quantum computer. In [
        <xref ref-type="bibr" rid="ref3">4, 16, 17</xref>
        ], various encoding ment Architecture, which acts as a data exchange
frameprocedures are explained, which are understood as pat- work. A first conceptual idea of the architecture was
terns. These patterns are self-contained, reusable build- published in [18]. Figure 1 shows the schematic structure
ing blocks that are to be reused in the construction of of the architecture. It can be roughly divided into two
quantum algorithms. The fit of these patterns to real- parts: On the left, a classical system with Applications,
world data-driven use cases is not discussed. The use Coordinator, and Databases, and on the right, Quantum
case data itself can be organized in diferent data mod- Circuits that process data using quantum hardware or
els or structures. For example, they can be available in simulators. Quantum hardware may well be provided as
relations, in documents (as semi-structured data), or as la- a service in the cloud.
beled/unlabeled trees/graphs. The papers do not address
how these logical structures can be encoded. Quantum Hardware
      </p>
    </sec>
    <sec id="sec-4">
      <title>3. Research Direction</title>
      <sec id="sec-4-1">
        <title>Based on the challenges of Section 1 and the related work in Section 2, the following research questions arise for the PhD thesis:</title>
      </sec>
      <sec id="sec-4-2">
        <title>Q1: How is a framework for exchanging data between</title>
        <p>database systems and quantum computers?</p>
      </sec>
      <sec id="sec-4-3">
        <title>Q2: How can data in diferent data models and struc</title>
        <p>tures be encoded using qubits?</p>
        <p>Comments on Q1: Previous work [15] uses a BPMN
workflow engine for enterprises to orchestrate a variety
of tasks. In addition, various other tools and
programming languages are used, which form a complex mesh
in the end. The framework of this thesis is intended to
reduce complexity. A uniform programming language
and alternative workflow options are to be evaluated for
this purpose. The service layer pattern1 can be considered
1
2</p>
        <p>Application
Coordinator
3</p>
        <p>Create </p>
        <p>Circuit
Data Management 
4
5</p>
        <p>State Preparation
(Loading Data by  Q</p>
        <p>Encoding) au</p>
        <p>n
|ψ⟩ tum
 </p>
        <p>C
Algorithm (Unitary  ir</p>
        <p>c
Transformations) itu</p>
        <p>M
Databases with different data 
models (document store, 
graph store, relational)</p>
        <p>Firstly we consider the classical system using the
example of a workflow. For example, an Application should
1Architecture Patterns with Python. https://www.cosmicpython. solve an optimization problem or classify data, to name
com/book/chapter_04_service_layer.html
just two examples. The Coordinator is responsible for 3.2. Encoding Approach using the
data exchange and communication between the compo- Example of Labeled Unranked Trees
nents of the classical system and the quantum computer.</p>
        <p>With the help of the Coordinator, the following proce- In this section, we sketch an idea of how labeled unranked
dure results: (1) An Application submits a request to the trees could be encoded. Figure 2 shows a tree that is to
Coordinator. The Coordinator initially verifies whether be encoded. The source tree is converted into a relational
a problem should be solved by means of a quantum al- form. The column y of the table represents the
neighborgorithm on a quantum computer in order to process the ing nodes, the column x represents the corresponding
request. The Coordinator notifies the Application of the level. For the purposes of illustration, we represent the
decision. We assume in the following that a quantum entries of the table in a coordinate system. There, the
computer will be used. Otherwise, the data is retrieved connections between the stages and neighboring nodes
from the Databases and made directly available to the per level can be seen directly. Based on this, tree-pattern
queries can be performed. David [19] describes other
Application. The problem will be solved classically. (b2)eletimde-UconnsurmainngkperodbleTmrseoen s(u1ch)trees. Suitable
quan</p>
        <p>Encoding La
The required data is extracted from the Databases and
pre-processed if necessary. (3) To solve a problem, a tum algorithms can achieve a quadratic speedup.
corresponding Quantum Circuit (see below) is generated.
(4) The generated circuit is transmitted to a quantum y x label
computer and execution is initiated. (5) The Coordinator 0 0 1 (≙ a)
fetches the achieved result of the algorithm and provides 0 -1 2 (≙ b)
it to the Application. The Application itself is then in 1 -1 3 (≙ c)
charge of post-processing. 1 -2 1 (≙ a)</p>
        <p>Next, we look at the structure of a Quantum Circuit. A 2 -2 5 (≙ e)</p>
      </sec>
      <sec id="sec-4-4">
        <title>Quantum Circuit can be roughly divided into the areas of</title>
        <p>
          State Preparation and Algorithm [
          <xref ref-type="bibr" rid="ref3">4</xref>
          ]. The State Preparation 3 -2 6 (≙ f)
block is responsible for encoding, which means that data 2 Left tree in tabular view
and, if necessary, parameters are loaded and encoded in a
a quantum state. This quantum state forms the starting
point for the actual algorithm in the Algorithm block, b c
which can manipulate the initial state. The execution
of an Algorithm ends with the measurement of the final
quantum state, which represents the result. 1 Labeled Unranked Tree a e f
        </p>
      </sec>
      <sec id="sec-4-5">
        <title>Finally, we would like to discuss some aspects of the realization of the data exchange in Figure 1.</title>
        <p>Event-driven workflows : Certain use cases assume 3 Left tree in coordinate system
that the relevant data is exchanged on demand. In this Figure 2: Various representations of a labeled unranked trees.
case, the Coordinator creFaotliees5and transm1i0t.0s5.t2h02e3 circuit 1) Source tree 2) The same tree in tabular representation 3)
on request. In other use cases, changes may occur to the Translation of the table into a coordinate system.
data in the Databases and new data may be added. In such
a case, the circuit should also be updated immediately.</p>
        <p>
          In this scenario, a quantum algorithm operates on data Using the coordinate system, we explain the concept
that is always up-to-date. Both variants are understood behind encoding the tree in a quantum state (Figure 3).
For encoding, each level is first encoded using the basic
taisveevaepnptrso.aFchores(oarreinbsetienagdteosft)etdhienCthoiosrdcionnatteoxrt,, aslutcehrnaas- encoding method [
          <xref ref-type="bibr" rid="ref4">17, 5</xref>
          ] (A). For this, each level must be
publish/subscribe messaging. represented as a bit string . This contains all the
information of a level (like labels and node links). The basic
arcDhaitteacteucroe nisocmruyc:iaClotonsqiudaenritnugmdcaotamrpeusttirnicgt.ioMnosreindtahtea encoding method encodes each level into a quantum state
requires more qubits and longer runtimes of state prepa- |⟩. To take advantage of a quantum computer, these
states are used to generate a so-called superposition [
          <xref ref-type="bibr" rid="ref4">5</xref>
          ]
(B), which encodes the tree in one state. A superposition
state is the starting point of a quantum search algorithm.
        </p>
      </sec>
      <sec id="sec-4-6">
        <title>The encoding approach can be regarded as general.</title>
        <p>First, logically related information is encoded via the
base encoding before a superposition is generated.
Intermediate formats (like a table in Figure 2) can be used to
compose related information.
ration routines. We propose to store data constraints in
profiles to define only a reasonable minimum amount
of data to be processed on a quantum computer. For a
use case, diferent profiles can be used to manage, for
example, diferent data value ranges or diferent node
sets (to partition graphs from graph databases). In the</p>
      </sec>
      <sec id="sec-4-7">
        <title>NISQ era, this is of particular interest since hardware limitations allow only quantum circuits of certain size.</title>
        <p>Fakul
Encoding Labeled Unranked Tree (2)
b
a
f
|bl=1⟩
|bl=3⟩</p>
        <p>N levels   =1
1

B
|bl⟩
6
10.05.2023
each level. B) The total tree encoded in superposition.</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>4. Conclusion</title>
      <sec id="sec-5-1">
        <title>In this paper, the research direction of the PhD thesis</title>
        <p>was presented. It covers two topics. Firstly, a hybrid data
management architecture that makes classical data
available to quantum computers using a suitable encoding.</p>
      </sec>
      <sec id="sec-5-2">
        <title>Secondly, the development of eficient encoding methods</title>
        <p>for classical data in diferent data models. The concept
of data management architecture was briefly presented.</p>
      </sec>
      <sec id="sec-5-3">
        <title>Also, a first encoding approach for tree structures was provided.</title>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>Acknowledgments</title>
      <sec id="sec-6-1">
        <title>This work has been funded by Deutsche Forschungsgemeinschaft (German Research Foundation) - 385808805.</title>
        <p>based quantum algorithms in the NISQ era,
Quantum Science and Technology 5 (2020) 044007.
in:
2021 IEEE International Electron Devices Meeting
(IEDM), 2021.</p>
      </sec>
      <sec id="sec-6-2">
        <title>Platform (SHM3P) Databases, in: Proceedings of</title>
        <p>the International Semantic Intelligence Conference
2021 (ISIC 2021), volume 2786 of CEUR Workshop</p>
      </sec>
      <sec id="sec-6-3">
        <title>Proceedings, CEUR-WS.org, 2021, pp. 16–26.</title>
        <p>2018.</p>
      </sec>
      <sec id="sec-6-4">
        <title>Processing Time in NoSQL Databases Based on</title>
      </sec>
      <sec id="sec-6-5">
        <title>Grover’s Algorithm, in: Proceedings of the 3rd In</title>
        <p>ternational Conference on Smart City Applications,</p>
      </sec>
      <sec id="sec-6-6">
        <title>SCA ’18, Association for Computing Machinery,</title>
      </sec>
      <sec id="sec-6-7">
        <title>Hybrid Quantum Applications Need Two Orches</title>
        <p>trations in Superposition: A Software Architecture</p>
      </sec>
      <sec id="sec-6-8">
        <title>Perspective, in: 2021 IEEE International Conference</title>
        <p>on Web Services (ICWS), 2021, pp. 1–13.
ence on Software Architecture Companion
(ICSAencoding patterns for quantum computing, in:
Proceedings of the 27th Conference on Pattern
Languages of Programs, PLoP ’20, The Hillside Group,
for industrial Data-driven Services, in:
Proceedings of the 2022 IEEE International Conference on</p>
      </sec>
      <sec id="sec-6-9">
        <title>Quantum Software (QSW), IEEE, 2022.</title>
        <p>2022.
289.</p>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>E. H.</given-names>
            <surname>Houssein</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Abohashima</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Elhoseny</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W. M.</given-names>
            <surname>Mohamed</surname>
          </string-name>
          ,
          <article-title>Machine learning in the quantum realm: The state-of-the-art, challenges, and future vision</article-title>
          ,
          <source>Expert Syst. Appl</source>
          .
          <volume>194</volume>
          (
          <year>2022</year>
          )
          <fpage>116512</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>V.</given-names>
            <surname>Hassija</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Chamola</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Goyal</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S. S.</given-names>
            <surname>Kanhere</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Guizani</surname>
          </string-name>
          ,
          <article-title>Forthcoming applications of quantum computing: peeking into the future</article-title>
          ,
          <source>IET Quantum Communication</source>
          <volume>1</volume>
          (
          <year>2020</year>
          )
          <fpage>35</fpage>
          -
          <lpage>41</lpage>
          . Springer International Publishing,
          <year>2021</year>
          , pp.
          <fpage>79</fpage>
          -
          <lpage>146</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>M.</given-names>
            <surname>Weigold</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Barzen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Leymann</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Salm</surname>
          </string-name>
          ,
          <article-title>Encoding patterns for quantum algorithms</article-title>
          ,
          <source>IET Quantum Communication</source>
          <volume>2</volume>
          (
          <year>2021</year>
          )
          <fpage>141</fpage>
          -
          <lpage>152</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>M.</given-names>
            <surname>Kieferová</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Sanders</surname>
          </string-name>
          ,
          <article-title>Assume a Quantum Data Set</article-title>
          ,
          <source>Harvard Data Science Review</source>
          <volume>4</volume>
          (
          <year>2022</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>S.</given-names>
            <surname>Herbert</surname>
          </string-name>
          ,
          <article-title>Quantum computing for data-centric engineering and science</article-title>
          ,
          <source>Data-Centric Engineering</source>
          <volume>3</volume>
          (
          <year>2022</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>N.</given-names>
            <surname>Gleinig</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Hoefler</surname>
          </string-name>
          ,
          <article-title>An eficient algorithm for sparse quantum state preparation</article-title>
          , in: DAC, IEEE, [9]
          <string-name>
            <given-names>M.</given-names>
            <surname>Weigold</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Barzen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Leymann</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Vietz</surname>
          </string-name>
          ,
          <article-title>Patterns for Hybrid Quantum Algorithms</article-title>
          , in: SummerSOC, volume
          <volume>1429</volume>
          of Communications in Computer and Information Science, Springer,
          <year>2021</year>
          , pp.
          <fpage>34</fpage>
          -
          <lpage>51</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>H.</given-names>
            <surname>Riel</surname>
          </string-name>
          , Quantum computing technology, [12]
          <string-name>
            <given-names>I.</given-names>
            <surname>Hamouda</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. M.</given-names>
            <surname>Bahaa-Eldin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Said</surname>
          </string-name>
          , Quantum databases:
          <article-title>Trends and challenges</article-title>
          ,
          <source>in: 2016 11th International Conference on Computer Engineering &amp; Systems (ICCES)</source>
          ,
          <year>2016</year>
          , pp.
          <fpage>275</fpage>
          -
          <lpage>280</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>S.</given-names>
            <surname>Jóczik</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Kiss</surname>
          </string-name>
          , Quantum Computation and
          <article-title>Its Efects in Database Systems</article-title>
          ,
          <source>in: New Trends in Databases and Information Systems</source>
          , volume
          <volume>1259</volume>
          of Communications in Computer and Information Science, Springer International Publishing,
          <year>2020</year>
          , pp. [16]
          <string-name>
            <given-names>M.</given-names>
            <surname>Weigold</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Barzen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Leymann</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Salm</surname>
          </string-name>
          , Ex-
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>