Sized Types for low-level Quantum Metaprogramming

08/07/2019
by   Matthew Amy, et al.
0

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.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
05/17/2020

A tutorial introduction to quantum circuit programming in dependently typed Proto-Quipper

We introduce dependently typed Proto-Quipper, or Proto-Quipper-D for sho...
research
03/02/2018

QWIRE Practice: Formal Verification of Quantum Circuits in Coq

We describe an embedding of the QWIRE quantum circuit language in the Co...
research
06/08/2017

A categorical model for a quantum circuit description language

Quipper is a practical programming language for describing families of q...
research
09/15/2018

QPCF: higher order languages and quantum circuits

qPCF is a paradigmatic quantum programming language that ex- tends PCF w...
research
06/29/2017

Constrained Type Families

We present an approach to support partiality in type-level computation w...
research
05/24/2022

VWSIM: A Circuit Simulator

VWSIM is a circuit simulator for rapid, single-flux, quantum (RSFQ) circ...
research
06/02/2023

Type-based Qubit Allocation for a First-Order Quantum Programming Language

Qubit allocation is a process to assign physical qubits to logical qubit...

Please sign up or login with your details

Forgot password? Click here to reset