Table of Contents
Fetching ...

A feasible and unitary quantum programming language

Alejandro Díaz-Caro, Emmanuel Hainry, Romain Péchoux, Mário Silva

TL;DR

PUNQ introduces a higher-order quantum programming language with quantum control that guarantees both unitarity and polynomial-time normalization. By intertwining a DLAL-inspired polytime type discipline with a Lambda-$\mathcal{S}_1$-style unitarity framework, the language enforces linear use of qubits, orthogonality of superpositions, and controlled duplication to satisfy the no-cloning theorem, while ensuring that all typable programs normalize in polynomial time and produce polynomial-size outputs. Core results include subject reduction, progress, realizability-based unitarity, completeness for isometries, and a PTIME-type-checking landscape across orthogonality-fragmented sublanguages; Grover, teleportation, and quantum-walk examples illustrate practical feasibility. The work advances quantum programming by delivering a single, coherent framework that combines higher-order quantum control with rigorous resource and complexity guarantees, potentially enabling reliable compilation to quantum circuits within practical bounds.

Abstract

We introduce a novel quantum programming language featuring higher-order programs and quantum controlflow which ensures that all qubit transformations are unitary. Our language boasts a type system guaranteeingboth unitarity and polynomial-time normalization. Unitarity is achieved by using a special modality forsuperpositions while requiring orthogonality among superposed terms. Polynomial-time normalization isachieved using a linear-logic-based type discipline employing Barber and Plotkin duality along with a specificmodality to account for potential duplications. This type discipline also guarantees that derived values havepolynomial size. Our language seamlessly combines the two modalities: quantum circuit programs upholdunitarity, and all programs are evaluated in polynomial time, ensuring their feasibility.

A feasible and unitary quantum programming language

TL;DR

PUNQ introduces a higher-order quantum programming language with quantum control that guarantees both unitarity and polynomial-time normalization. By intertwining a DLAL-inspired polytime type discipline with a Lambda--style unitarity framework, the language enforces linear use of qubits, orthogonality of superpositions, and controlled duplication to satisfy the no-cloning theorem, while ensuring that all typable programs normalize in polynomial time and produce polynomial-size outputs. Core results include subject reduction, progress, realizability-based unitarity, completeness for isometries, and a PTIME-type-checking landscape across orthogonality-fragmented sublanguages; Grover, teleportation, and quantum-walk examples illustrate practical feasibility. The work advances quantum programming by delivering a single, coherent framework that combines higher-order quantum control with rigorous resource and complexity guarantees, potentially enabling reliable compilation to quantum circuits within practical bounds.

Abstract

We introduce a novel quantum programming language featuring higher-order programs and quantum controlflow which ensures that all qubit transformations are unitary. Our language boasts a type system guaranteeingboth unitarity and polynomial-time normalization. Unitarity is achieved by using a special modality forsuperpositions while requiring orthogonality among superposed terms. Polynomial-time normalization isachieved using a linear-logic-based type discipline employing Barber and Plotkin duality along with a specificmodality to account for potential duplications. This type discipline also guarantees that derived values havepolynomial size. Our language seamlessly combines the two modalities: quantum circuit programs upholdunitarity, and all programs are evaluated in polynomial time, ensuring their feasibility.
Paper Structure (36 sections, 41 theorems, 60 equations, 12 figures)

This paper contains 36 sections, 41 theorems, 60 equations, 12 figures.

Key Result

theorem 1

If $;\vdash\vec{t}:A$ and $\vec{t}\rightsquigarrow\vec{r}$, then $;\vdash\vec{r}:A$.

Figures (12)

  • Figure 1: Quantum search algorithm.
  • Figure 2: Syntax of $\textnormal{PUNQ}$ programs.
  • Figure 3: Syntactic sugar on $\textnormal{PUNQ}$ syntax.
  • Figure 4: Semantics of $\textnormal{PUNQ}$ programs.
  • Figure 5: Subtyping relation.
  • ...and 7 more figures

Theorems & Definitions (49)

  • definition 1: Orthogonality
  • definition 2: Bang function
  • theorem 1: Subject reduction
  • theorem 2: Progress
  • lemma 1
  • lemma 2
  • theorem 3
  • definition 3: Isometry and unitarity
  • lemma 3
  • theorem 4: Soundness
  • ...and 39 more