We gratefully acknowledge support from
the Simons Foundation and member institutions.
Full-text links:

Download:

Current browse context:

quant-ph

Change to browse by:

References & Citations

Bookmark

(what is this?)
CiteULike logo BibSonomy logo Mendeley logo del.icio.us logo Digg logo Reddit logo

Quantum Physics

Title: Sized Types for low-level Quantum Metaprogramming

Authors: Matthew Amy
Abstract: One of the most fundamental aspects of quantum circuit design is the concept of families of circuits parametrized by an instance size. As in classical programming, metaprogramming allows the programmer to write entire families of circuits simultaneously, an ability which is of particular importance in the context of quantum computing as algorithms frequently use arithmetic over non-standard word lengths. In this work, we introduce metaQASM, a typed extension of the openQASM language supporting the metaprogramming of circuit families. Our language and type system, built around a lightweight implementation of sized types, supports subtyping over register sizes and is moreover type-safe. In particular, we prove that our system is strongly normalizing, and as such any well-typed metaQASM program can be statically unrolled into a finite circuit.
Comments: Presented at Reversible Computation 2019. Final authenticated publication is available online at this https URL
Subjects: Quantum Physics (quant-ph); Programming Languages (cs.PL)
Journal reference: Thomsen M., Soeken M. (eds) Reversible Computation. RC 2019. Lecture Notes in Computer Science, vol 11497. Springer, Cham
DOI: 10.1007/978-3-030-21500-2_6
Cite as: arXiv:1908.02644 [quant-ph]
  (or arXiv:1908.02644v1 [quant-ph] for this version)

Submission history

From: Matthew Amy [view email]
[v1] Wed, 7 Aug 2019 14:02:37 GMT (30kb)

Link back to: arXiv, form interface, contact.