Tower: Data Structures in Quantum Superposition

Charles Yuan, Michael Carbin
5/20/2022
cs.PLquant-ph

Official code: psg-mit/tower-oopsla22 (18 stars, OCaml, MIT, last commit 2024-02-07).

Abstract

Emerging quantum algorithms for problems such as element distinctness, subset sum, and closest pair demonstrate computational advantages by relying on abstract data structures. Practically realizing such an algorithm as a program for a quantum computer requires an efficient implementation of the data structure whose operations correspond to unitary operators that manipulate quantum superpositions of data.

Show full abstract

To correctly operate in superposition, an implementation must satisfy three properties -- reversibility, history independence, and bounded-time execution. Standard implementations, such as the representation of an abstract set as a hash table, fail these properties, calling for tools to develop specialized implementations. In this work, we present Core Tower, the first language for quantum programming with random-access memory. Core Tower enables the developer to implement data structures as pointer-based, linked data. It features a reversible semantics enabling every valid program to be translated to a unitary quantum circuit. We present Boson, the first memory allocator that supports reversible, history-independent, and constant-time dynamic memory allocation in quantum superposition. We also present Tower, a language for quantum programming with recursively defined data structures. Tower features a type system that bounds all recursion using classical parameters as is necessary for a program to execute on a quantum computer. Using Tower, we implement Ground, the first quantum library of data structures, including lists, stacks, queues, strings, and sets. We provide the first executable implementation of sets that satisfies all three mandated properties of reversibility, history independence, and bounded-time execution.

View on arXivView PDF

Code Implementations(1)

MIT

OOPSLA'22 Artifact for "Tower: Data Structures in Quantum Superposition".

181OCaml, ShellJun 14, 20222 years agoMIT

Similar Papers

Cite this paper

@article{yuan2022tower,
  title  = {Tower: Data Structures in Quantum Superposition},
  author = {Charles Yuan and Michael Carbin},
  year   = {2022},
  eprint = {2205.10255},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.10255}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2205.10255.svg)](https://codeofpaper.com/paper/2205.10255)

Discussion