



@article {3186,
	title = {Qunity: A Unified Language for Quantum and Classical Computing (Extended Version)},
	year = {2022},
	month = {4/26/2022},
	abstract = {<p>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. 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 \&quot;garbage\&quot; 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\&$\#$39;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.</p>},
	keywords = {FOS: Computer and information sciences, FOS: Physical sciences, Logic in Computer Science (cs.LO), Programming Languages (cs.PL), Quantum Physics (quant-ph)},
	doi = {https://doi.org/10.48550/arXiv.2204.12384},
	url = {https://arxiv.org/abs/2204.12384},
	author = {Voichick, Finn and Li, Liyi and Rand, Robert and Hicks, Michael}
}
