Skip to content
Quantum.world

Research

Quantisation of Abstract Data Types

Overview Research area: Quantum programming languages and quantum software theory, specifically data abstraction formalised with universal algebra. Technical level: Advanced. The paper assumes familia

Quantisation of Abstract Data Types
arXiv
2609.03778
Published
2026-09-03
Authors
Mingsheng Ying, Zhicheng Zhang, Kean Chen

AI summary

Overview

Research area: Quantum programming languages and quantum software theory, specifically data abstraction formalised with universal algebra. Technical level: Advanced. The paper assumes familiarity with algebraic specification (signatures, algebras, terms, equations) and with Hilbert-space quantum mechanics (tensor products, unitaries, partial trace). Scope (one sentence): The paper introduces abstract quantum data types as quantum algebras and defines a general "quantisation" construction that lifts classical abstract data types and their equational specifications into the quantum setting, with bit oracles, phase oracles, quantum arrays, and quantum error-correcting codes as instances.

What This Paper Is About

Classical programming relies on abstract data types (ADTs), which describe what data does through operations and equations while hiding how it is represented. Quantum programming has instead concentrated on algorithms and on concrete data types or data structures, so there is no accepted algebraic account of data abstraction for quantum software. The paper asks how to define abstract quantum data types and whether there is a principled way to turn a classical data type into a quantum one while keeping its equational laws true.

Key Contributions

  1. A formal notion of abstract quantum data type. The authors define quantum signatures (sorts, quantum state symbols, quantum gate symbols), quantum algebras whose domains are Hilbert spaces and whose symbols denote pure states and unitary gates, quantum circuit formulas and quantum terms, and quantum equations whose validity is checked on designated principal variables via reduced density operators.
  2. A quantisation of classical ADTs with sound lifting of equations. The paper defines a quantisation of classical data types and shows that equational specifications can be soundly lifted to the quantum setting. Two standard quantisation methods for classical functions, the bit oracle and the phase oracle, arise as special cases of the construction, and their relationship is explained through phase kickback.
  3. Preservation results for structural relationships. The paper establishes conditions under which quantisation preserves embeddings, isomorphisms, and products of classical data types. Because embeddings correspond to algebraic inheritance, this shows certain inheritance relationships can be transferred to quantum counterparts.
  4. Illustrative applications. The framework is applied to quantum arrays (Section 5) and to quantum error-correcting codes (Section 6), showing how both can be read as instances of data-type quantisation.

Main Findings

  • Quantum signatures differ structurally from classical ones. A quantum state symbol may carry a sort that is a string of several sorts, because it may denote an entangled state of several subsystems that cannot be decomposed into individual subsystem states. A quantum gate symbol must have identical input and output sorts, since it denotes a unitary operator.
  • Equations need principal variables. A quantum equation is written with a set of principal variables, and it is valid in an algebra when, for every input state of the free variables, the reduced density operators of the two sides on the principal variables coincide. Input states may be entangled, which has no classical analogue.
  • Classical equations lift soundly. The paper's central technical claim is that equational specifications of classical ADTs can be soundly lifted to the quantum setting under the defined quantisation.
  • Bit and phase oracles are one construction in two guises. Both standard oracle methods are special cases of the general quantisation, and phase kickback explains their relationship.
  • A concrete quantum specification is given. The QBIT example specifies states |0>, |1>, |+>, |->, the four Bell states, and gates NOT, H, and CNOT, with equations such as NOT[q]|0> = |1>, H[q]|0> = |+>, and CNOT[q1,q2]|+>|0> = |β00>. A QBIT-algebra is built from the 2-dimensional Hilbert space with Pauli X, Hadamard, and CNOT.
  • Oracles can be treated as ADTs. In a quantum query algorithm with work qubits and output qubits and a circuit alternating fixed gates with an oracle, the oracle can be specified by equations rather than by an implementation, mirroring classical data abstraction.
  • Structural preservation is conditional. Quantisation preserves embeddings, isomorphisms, and products only under stated conditions; the proofs of the main theorems and propositions are deferred to Appendix A and are not part of the provided text.
  • No empirical results are reported. The provided content contains no experiments, datasets, benchmark names, model names, or performance numbers; the work is mathematical and illustrative.

Methodology in Plain English

The authors first review the standard algebraic account of classical ADTs: a signature lists sorts and operations, an algebra gives each sort a domain and each operation a function, terms are built from variables and operations, and equations state which terms must evaluate equally. They then rebuild each of these notions for quantum computing: each sort becomes a Hilbert space, each constant becomes a pure quantum state (possibly entangled across several sorts), each operation becomes a unitary gate, a term becomes a circuit applied to initialised quantum states, and an equation becomes an equality that must hold for every possible input state, compared only on the variables the programmer cares about. With this vocabulary in place, they define what it means to quantise a classical data type, prove that the classical equations remain valid after quantisation, and check that the bit-oracle and phase-oracle constructions are instances of the definition. They then work through quantum arrays and quantum error-correcting codes as case studies, and finally isolate the conditions under which the quantisation of one classical type sits inside, coincides with, or combines with the quantisation of another. Proofs are collected in an appendix; the provided excerpt stops partway through the formal definition in Section 4, so the detailed theorem statements are outside the visible text.

Why This Matters

Impact on research: The paper supplies an algebraic foundation for data abstraction in quantum programming, a layer above the existing work on quantum data structures (Tower, which programs lists, stacks, queues, strings, and sets in superposition) and on concrete quantum data types (Rhyme, which extends floats, characters, arrays, and strings). It also connects quantum data-type design to inheritance, a central mechanism of object-oriented programming.

Real-world applications (as discussed in the paper):

  • Quantum arrays, presented as an instance of data-type quantisation.
  • Quantum error-correcting codes, likewise reconstructed through the quantisation lens.
  • Oracle-based quantum query algorithms, where the oracle is specified abstractly and its implementation hidden, matching oracle synthesis already available in Qiskit and Q#.
  • Hardware-independent quantum software, where high-level abstractions are compiled down to device-specific gate sets, noise models, and connectivity constraints.

Industry relevance: The paper names Qiskit, Q#, Cirq, Quipper, Guppy, Silq, Qrisp, and isQ as languages with basic qubit and register types, and identifies Qiskit and Q# as already offering oracle synthesis. A principled account of abstract quantum data types speaks directly to language and compiler designers who need reusable, verifiable abstractions rather than ad hoc concrete types.

Future Directions

  • Beyond equational specifications. The paper restricts attention to equational specifications and notes that more sophisticated classes such as Horn specifications exist, leaving their quantum treatment open.
  • Mixed states and noisy gates. The definition of quantum algebra treats state symbols as pure states and gate symbols as unitaries; the authors explicitly note it can be generalised so state symbols denote density operators and gate symbols denote quantum channels for applications.
  • Wider catalogue of quantised data types. Only quantum arrays and quantum error-correcting codes are developed as case studies, so quantisations of further classical ADTs and their equation lifting remain to be worked out.
  • Open problems from the conclusion. The paper closes with a summary and a discussion of further research topics; that discussion lies in the truncated portion of the text and is not available here.

Target Audience

Researchers in quantum programming languages and quantum software engineering, programming-language theorists and formal-methods researchers comfortable with algebraic specification, and mathematically inclined quantum computing scientists. It is also relevant to compiler and language designers in industry who need abstract, reusable data abstractions for quantum hardware, and to graduate students who already know both universal algebra and the basics of quantum computation. Readers without that dual background will find Sections 2 and 3 demanding, though the motivating discussion in Section 1 and the oracle example are accessible on their own.

Authors’ abstract

In this paper, we introduce a notion of abstract quantum data type within the framework of universal algebra. This notion provides an algebraic foundation for describing data abstraction in quantum programming. We formally define a quantisation of classical data types and show that their equational specifications can be soundly lifted to the quantum setting. Two standard quantisation methods for classical functions, namely the bit oracle and the phase oracle, arise as special cases of this general construction. We illustrate the framework with applications to quantum arrays and quantum error-correcting codes, showing how they can be understood through the lens of data-type quantisation. We further establish conditions under which quantisation preserves structural relationships and constructions of classical data types, including embeddings, isomorphisms, and products.

Read the original paper