Qunity: A Unified Language for Quantum and Classical Computing (Extended
Version)
- URL: http://arxiv.org/abs/2204.12384v3
- Date: Tue, 15 Nov 2022 02:44:37 GMT
- Title: Qunity: A Unified Language for Quantum and Classical Computing (Extended
Version)
- Authors: Finn Voichick, Liyi Li, Robert Rand, Michael Hicks
- Abstract summary: We introduce Qunity, a new quantum programming language.
Qunity treats quantum computing as a natural generalization of classical computing.
We show how Qunity can cleanly express several quantum algorithms.
- Score: 3.5348690973777006
- License: http://creativecommons.org/licenses/by/4.0/
- 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. 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.
Related papers
- Quantum Algorithms for Compositional Text Processing [1.3654846342364308]
We focus on the recently proposed DisCoCirc framework for natural language, and propose a quantum adaptation, QDisCoCirc.
This is motivated by a compositional approach to rendering AI interpretable.
For the model-native primitive operation of text similarity, we derive quantum algorithms for fault-tolerant quantum computers.
arXiv Detail & Related papers (2024-08-12T11:21:40Z) - Qwerty: A Basis-Oriented Quantum Programming Language [0.4999814847776098]
We present Qwerty, a new quantum programming language that allows programmers to manipulate qubits more expressively than gates.
Qwerty is a powerful framework for high-level quantum-classical computation.
arXiv Detail & Related papers (2024-04-19T03:13:43Z) - TeD-Q: a tensor network enhanced distributed hybrid quantum machine
learning framework [59.07246314484875]
TeD-Q is an open-source software framework for quantum machine learning.
It seamlessly integrates classical machine learning libraries with quantum simulators.
It provides a graphical mode in which the quantum circuit and the training progress can be visualized in real-time.
arXiv Detail & Related papers (2023-01-13T09:35:05Z) - Quantum Machine Learning: from physics to software engineering [58.720142291102135]
We show how classical machine learning approach can help improve the facilities of quantum computers.
We discuss how quantum algorithms and quantum computers may be useful for solving classical machine learning tasks.
arXiv Detail & Related papers (2023-01-04T23:37:45Z) - Recent Advances for Quantum Neural Networks in Generative Learning [98.88205308106778]
Quantum generative learning models (QGLMs) may surpass their classical counterparts.
We review the current progress of QGLMs from the perspective of machine learning.
We discuss the potential applications of QGLMs in both conventional machine learning tasks and quantum physics.
arXiv Detail & Related papers (2022-06-07T07:32:57Z) - LQP: The Dynamic Logic of Quantum Information [77.34726150561087]
This paper introduces a dynamic logic formalism for reasoning about information flow in composite quantum systems.
We present a finitary syntax, a relational semantics and a sound proof system for this logic.
As applications, we use our system to give formal correctness for the Teleportation protocol and for a standard Quantum Secret Sharing protocol.
arXiv Detail & Related papers (2021-10-04T12:20:23Z) - Depth-efficient proofs of quantumness [77.34726150561087]
A proof of quantumness is a type of challenge-response protocol in which a classical verifier can efficiently certify quantum advantage of an untrusted prover.
In this paper, we give two proof of quantumness constructions in which the prover need only perform constant-depth quantum circuits.
arXiv Detail & Related papers (2021-07-05T17:45:41Z) - Foundations for Near-Term Quantum Natural Language Processing [0.17205106391379021]
We provide conceptual and mathematical foundations for near-term quantum natural language processing (QNLP)
We recall how the quantum model for natural language that we employ canonically combines linguistic meanings with rich linguistic structure.
We provide references for supporting empirical evidence and formal statements concerning mathematical generality.
arXiv Detail & Related papers (2020-12-07T14:49:33Z) - Compiling quantamorphisms for the IBM Q Experience [0.0]
This paper contributes to extending the laws of classical program algebra to quantum programming.
It aims at building correct-by-construction quantum circuits to be deployed on quantum devices such as those available at the IBM Q Experience.
arXiv Detail & Related papers (2020-10-21T13:32:24Z) - Extending C++ for Heterogeneous Quantum-Classical Computing [56.782064931823015]
qcor is a language extension to C++ and compiler implementation that enables heterogeneous quantum-classical programming, compilation, and execution in a single-source context.
Our work provides a first-of-its-kind C++ compiler enabling high-level quantum kernel (function) expression in a quantum-language manner.
arXiv Detail & Related papers (2020-10-08T12:49:07Z) - On the Principles of Differentiable Quantum Programming Languages [13.070557640180004]
Variational Quantum Circuits (VQCs) are predicted to be one of the most important near-term quantum applications.
We propose the first formalization of auto-differentiation techniques for quantum circuits.
arXiv Detail & Related papers (2020-04-02T16:46:13Z)
This list is automatically generated from the titles and abstracts of the papers in this site.
This site does not guarantee the quality of this site (including all information) and is not responsible for any consequences.