English

On Circuit Description Languages, Indexed Monads, and Resource Analysis

Programming Languages 2025-12-01 v1

Abstract

In this paper, a monad-based denotational model is introduced and shown adequate for the Proto-Quipper family of calculi, themselves being idealized versions of the Quipper programming language. The use of a monadic approach allows us to separate the value to which a term reduces from the circuit that the term itself produces as a side effect. In turn, this enables the denotational interpretation and validation of rich type systems in which the size of the produced circuit can be controlled. Notably, the proposed semantic framework, through the novel concept of circuit algebra, suggests forms of effect typing guaranteeing quantitative properties about the resulting circuit, even in presence of optimizations.

Keywords

Cite

@article{arxiv.2511.22419,
  title  = {On Circuit Description Languages, Indexed Monads, and Resource Analysis},
  author = {Ken Sakayori and Andrea Colledan and Ugo Dal Lago},
  journal= {arXiv preprint arXiv:2511.22419},
  year   = {2025}
}

Comments

Extended version of a paper to be published at POPL 2026

R2 v1 2026-07-01T07:58:00.305Z