Qymera: Simulating Quantum Circuits using RDBMS Conference: Companion of the 2025 International Conference on Management of Data; June 22–27, 2025; Berlin, Germany Companion of the 2025 International Conference on Management of Data (SIGMOD-Companion ’25), June 22–27, 2025, Berlin, Germany DOI: 10.1

Tim Littau, Rihan Hai · 2025

Read Qymera: Simulating Quantum Circuits using RDBMS Conference: Companion of the 2025 International Conference on Management of Data; June 22–27, 2025; Berlin, Germany Companion of the 2025 International Conference on Management of Data (SIGMOD-Companion ’25), June 22–27, 2025, Berlin, Germany DOI: 10.1 by Tim Littau, Rihan Hai (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2506-08759.txt.

Introduction

Tim Littau and Rihan Hai present Qymera, a system that simulates quantum circuits inside a relational database. Simulating circuits is essential for checking quantum algorithms before hardware runs them. Qymera translates each circuit into database queries, so the operations run natively in the database engine.

The system accepts a wide range of circuits through a visual builder and code based inputs. A built in benchmark frame compares database simulation with leading dedicated simulators. The demonstration walks through full query based execution and shows how it plugs into classical data workflows. The authors pitch the tool for development, benchmarking, and teaching at the meeting point of quantum computing and data management.

Catalog record

CREATORTim Littau, Rihan Hai
YEAR2025
COLLECTIONPAPERS
FORMATTXT
FILE SIZE18 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2506-08759

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

Qymera: Simulating Quantum Circuits using RDBMS Conference: Companion of the 2025 International Conference on Management of Data; June 22–27, 2025; Berlin, Germany Companion of the 2025 International Conference on Management of Data (SIGMOD-Companion ’25), June 22–27, 2025, Berlin, Germany DOI: 10.1145/3722212.3725126 ISBN: 979-8-4007-1564-8/2025/06 CCS: Computing methodologies Simulation tools CCS: Computing methodologies Quantum mechanic simulation CCS: Information systems Relational database model Tim Littau, Rihan Hai Abstract . Quantum circuit simulation is crucial for quantum computing such as validating quantum algorithms. We present Qymera, a system that repurposes relational database management systems (RDBMSs) for simulation by translating circuits into SQL queries, allowing quantum operations to run natively within an RDBMS. Qymera supports a wide range of quantum circuits, offering a graphical circuit builder and code-based interfaces to input circuits. With a benchmarking framework, Qymera facilitates comparison of RDBMS-based simulation against state-of-the-art simulation methods. Our demonstration showcases Qymera’s end-to-end SQL-based execution, seamless integration with classical workflows, and its utility for development, benchmarking, and education in quantum computing and data management. A video demonstrating Qymera’s key features can be found at https://youtu.be/j_fTKnVIV6c . † † cc-license: by 1. Introduction Quantum computing, heralded as the next frontier of computational science, promises revolutionary processing power beyond classical hardware. However, quantum computing remains in its early stages, known as the Noisy Intermediate-Scale Quantum (NISQ) era, where quantum hardware is limited by small numbers of qubits and noise. For instance, Heron 1 1 1 https://docs.quantum.ibm.com/guides/processor-types , one of IBM’s most performant quantum processors, has only 156 qubits and lacks full error correction. In this landscape, simulation serves as a core mechanism for exploring and validating quantum technologies, such as advancing quantum algorithm design, hardware development, and error correction ( Xiaosi et al. 2023 ) . Simulation refers to the use of classical computers to numerically reproduce the behavior of quantum circuits, tracking the evolution of quantum states and operations. Figure 1 . Overview of Qymera Existing simulation frameworks such as Qiskit 2 2 2 Aer: https://qiskit.github.io/qiskit-aer/ , PyQuil 3 3 3 https://pyquil-docs.rigetti.com/en/stable/ , Cirq 4 4 4 qsim: https://quantumai.google/qsim/cirq_interface , typically access data relying on programming languages, e.g., Python. They require users to specify the simulation methods. To improve performance, low-level optimizations are needed, such as parallelization and Single-Instruction, Multiple-Data (SIMD) ( Young et al. 2023 ) . This approach can be cumbersome, especially for large-scale simulations, and places a high burden on developers to fine-tune performance. Figure 2 . Running example of the SQL translation flow: (a) the input circuit transforming initial state \left|\psi\right\rangle_{0} into final state \left|\psi\right\rangle_{3} , where horizontal wires represent qubits, and boxes indicate initial, intermediate, and final states; (b) tables for the initial state \left|\psi\right\rangle_{0} , the H gate, and the CNOT gate; and (c) SQL queries \{q_{1},q_{2},q_{3}\} generated for each gate operation in the input circuit, along with the resulting intermediate tables T_{1},T_{2} and final output table T_{3} . Our proposal. We introduce a novel method that utilizes relational database management systems (RDBMSs) for simulating quantum circuits . In this approach, quantum circuits—comprising a series of quantum gates applied to qubits—are represented by storing qubit and gate information in tables. The simulation process is then driven by SQL queries that specify the required computations. By leveraging the declarative nature of RDBMSs, simulation engineers and database researchers can concentrate on defining the desired outcomes without delving into the underlying execution details. RDBMSs then handle the complexity by automatically optimizing and executing these queries through techniques such as logical and physical query planning, caching, and hardware-aware techniques such as parallelism ( Schmidt et al. 2025 ) . However, using RDBMSs as an out-of-the-box solution for simulation poses quantum-specific challenges. First, quantum circuits often involve bit-level operations (e.g., manipulating specific qubits), which SQL does not natively support. Second, although RDBMS-based simulation can outperform existing simulation methods for certain circuits, they are not universally optimal ( Hai et al. 2025a ) . In our preliminary experiments with a 2.0 GB memory limit, RDBMS approach simulated up to 3,118× more qubits than a conventional simulation method for sparse circuits but performed 14% worse on dense circuits (see appendix B4, Fig. 10 in ( Hai et al. 2025b ) ). Consequently, it is critical to identify scenarios where RDBMSs excel by benchmarking them against existing simulation methods, rather than applying them blindly. We present Qymera , a novel system for simulating quantum circuits using RDBMSs. Qymera translates quantum circuits into SQL queries, enabling RDBMS-based simulations. Its key features include: 1) a graphical circuit builder for intuitive design and parameterized circuits via Qiskit- or PyQuil-like syntax, 2) a unique feature of supporting RDBMS-based simulation, alongside state-of-the-art simulation methods such as state-vector, tensor networks, e.g., MPS, and LIMDD. 5 5 5 These simulation methods (also known as data representations) are a complex and active research area in quantum computing. We provide detailed definitions, explanations and examples in Appendix A and B1 of our online technical report ( Hai et al. 2025b ) . and 3) a benchmarking suite for systematically comparing RDBMS performance against alternative simulators on a wide range of circuit inputs. 2. Transforming Quantum Circuits into SQL A quantum circuit consists of a sequence of gates, which operate on quantum states. Simulating quantum circuits involves translating the abstract mathematical representation of quantum states and gates into computational operations. In this section, we explain how Qymera maps quantum states and gates to tables and translates circuit operations into SQL queries while addressing quantum-specific challenges. We walk through the SQL translation process using a running example in Fig. 2 . 2.1. From Quantum States and Gates to Tables An n -qubit quantum state is represented as \vskip-2.84544pt\left|\psi\right\rangle=\sum_{j=0}^{2^{n}-1}\bigl(a_{j}+i\,b_{j}\bigr)\left|j\right\rangle, where j is an integer index ranging from 0 to 2^{n}-1 , \left|j\right\rangle is the computational basis state (binary strings of length n , such as \left|0\cdots 0\right\rangle to \left|1\cdots 1\right\rangle ). Each basis state \left|j\right\rangle has a complex amplitude a_{j}+ib_{j} , where a_{j} and b_{j} are the real and imaginary parts, respectively. We define the relational schema for a state \left|\psi\right\rangle as T(s, r, i) , where s is the computational basis state \left|j\right\rangle encoded as an integer, and r and i represent the real and imaginary parts of its complex amplitude, both being real-valued. Only nonzero basis states are stored. A quantum gate transforms an input quantum state into an output state. We represent this transformation in a relational table that captures the integer indices of the input and output states, along with their transition amplitudes. We define the relational schema for a gate as T(in_s, out_s, r, i) , where in_s and out_s denote input and output state indices, and r and i represent the real and imaginary parts of the transition amplitude. Example 2.1 (Quantum states and gates as tables). Consider the circuit shown in Fig. 2 a), generating a 3-qubit GHZ state. Initially, the state is \left|000\right\rangle , represented as (0, 1.0, 0) . A Hadamard gate mapping input indices to outputs, each with amplitude \tfrac{1}{\sqrt{2}} applied to the first qubit transforms it into the superposition \frac{1}{\sqrt{2}}(\left|000\right\rangle+\left|100\right\rangle) , stored in the relational form as tuples (0, \frac{1}{\sqrt{2}} , 0) and (1, \frac{1}{\sqrt{2}} , 0) . Subsequent CX gates manipulate the state further by updating the table to represent

Read the complete text