English

Traq: Estimating the Quantum Cost of Classical Programs

Quantum Physics 2026-04-02 v2 Logic in Computer Science Programming Languages Software Engineering

Abstract

Predicting practical speedups offered by future quantum computers has become a major focus of the quantum community. Typically, such predictions involve numerical simulations supported by lengthy manual analyses and are carried out for one specific algorithm at a time. In this work, we present Traq, a principled approach towards estimating the quantum speedup of classical programs fully automatically. It consists of a classical language that includes high-level primitives amenable to quantum speedups, a compilation to low-level quantum programs, and a source-level cost analysis with provable guarantees. Our cost analysis upper bounds the complexity of the resulting quantum program and is sensitive to the input data of the program (in addition to providing worst-case costs). Traq is implemented as a Haskell package with an extensive evaluation.

Keywords

Cite

@article{arxiv.2509.01508,
  title  = {Traq: Estimating the Quantum Cost of Classical Programs},
  author = {Anurudh Peduri and Jam Kabeer Ali Khan and Gilles Barthe and Michael Walter},
  journal= {arXiv preprint arXiv:2509.01508},
  year   = {2026}
}

Comments

57 pages; v2: significantly revised paper

R2 v1 2026-07-01T05:15:29.846Z