Qunity: A Unified Language for Quantum and Classical Computing (Extended Version)

Finn Voichick, Liyi Li, Robert Rand, Michael Hicks
4/26/2022
cs.PLcs.LOquant-ph

No confident code implementation found for this paper.

Abstract

We introduce Qunity, a new quantum programming language designed to treat quantum computing as a natural generalization of classical computing. Qunity presents a unified syntax where familiar programming constructs can have both quantum and classical effects.

Show full abstract

For example, one can use sum types to implement the direct sum of linear operators, exception-handling syntax to implement projective measurements, and aliasing to induce entanglement. Further, Qunity takes advantage of the overlooked BQP subroutine theorem, allowing one to construct reversible subroutines from irreversible quantum algorithms through the uncomputation of "garbage" outputs. Unlike existing languages that enable quantum aspects with separate add-ons (like a classical language with quantum gates bolted on), Qunity provides a unified syntax and a novel denotational semantics that guarantees that programs are quantum mechanically valid. We present Qunity's syntax, type system, and denotational semantics, showing how it can cleanly express several quantum algorithms. We also detail how Qunity can be compiled into a low-level qubit circuit language like OpenQASM, proving the realizability of our design.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{voichick2022qunity,
  title  = {Qunity: A Unified Language for Quantum and Classical Computing (Extended Version)},
  author = {Finn Voichick and Liyi Li and Robert Rand and Michael Hicks},
  year   = {2022},
  eprint = {2204.12384},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2204.12384}
}

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/2204.12384.svg)](https://codeofpaper.com/paper/2204.12384)

Discussion