arXiv:2608.27087cs.LOAug 2026

Manuscript Offprint

arXiv:2608.27087

Challenging Benchmarks for Diagrammatic Equivalence of Circuits in TPTP and SMT-LIB

Julie Cailler, Noé Delorme, Sophie Tourret

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

We introduce a new family of benchmarks for the problem of diagrammatic equivalence between circuits. Three variants of this problem are considered, ranging from basic to challenging, and benchmarks are generated for each variant. We provide first-order encodings in both TPTP and SMT-LIB formats, together with scripts that automatically generate benchmark instances, and evaluate these benchmarks on state-of-the-art automated theorem provers and SMT solvers.

1 Introduction

A recurrent complaint from benchmark repository maintainers and competition organizers is the lack of new contributions to their repositories. 1^{1} It is already a time-consuming task to prepare an archive for reproducibility on an open repository such as Zenodo [16]. The extra effort of curating and documenting a selection of benchmarks for addition in a dedicated repository such as SMT-LIB or the TPTP library is important to the research community, but not well rewarded and thus not often undertaken. This paper goes against that trend. It describes a family of benchmarks for first-order automated theorem provers (ATPs) with arithmetic, as well as the tools to use to produce more of them.

The benchmarks and tools presented in this paper originate from an ongoing effort to produce certificates for proofs of diagrammatic equivalence between quantum circuits [6]. In recent years, graphical languages for quantum circuits have been extensively studied, leading to complete equational theories that enable circuits to be manipulated and rewritten while preserving their semantics [9–11,14]. More broadly, quantum circuits are instances of the well-established framework of diagrammatic reasoning, which represents processes as string diagrams and captures their interactions in space and time through sequential and parallel composition [25]. These developments open the way to automated tasks such as circuit optimization, simplification, and formal verification.

In this paper, string diagrams are often referred to as circuits. Roughly speaking, circuits consist of generators—corresponding to elementary primitives—depicted as boxes connected by wires, and there are many diagrammatic representations of a given evolution. For instance, the two following circuits are equivalent.

Figure

Formally, circuits are expressed as terms freely generated from a set of generators under sequential and parallel composition. As a consequence, syntactically different terms may express the same circuit, depending on the order and structure in which compositions are formed.

1^{1}It is discussions on this very topic at the Dagstuhl seminar 25441 that motivated the existence of this paper.

J. Cailler, N. Delorme and S. Tourret

Therefore, the intuitive notion of diagrammatic equivalence is fully captured by a collection of coherence equations [25], which can be used to rewrite equivalent terms. This naturally leads to the problem of diagrammatic equivalence: deciding, given two terms, whether they can be rewritten into one another using the coherence equations.

We provide tools for generating diagrammatically equivalent terms, which produced the benchmarks studied in this work. In the context of our original motivation—namely, the certification of quantum circuit equivalences—the modest performance of ATPs on these benchmarks, together with the lack of maturity of the associated certificate production techniques, highlights both the difficulty of the problem and the need for further progress in arithmetic and equational reasoning. For these reasons, we believe that the benchmarks themselves are of independent interest to the ATP community, as a challenge.

We consider three variants of the diagrammatic equivalence problem. The first one is the most general and corresponds exactly to the settings described above. In the second one, we consider circuits with no generators (i.e., no boxes) that allow the expression of any permutation. Finally, the last one is a restriction of the second one to a simpler configuration.

In this paper, we describe the three variants of the problems (Section 2) and explain the encoding built for them (Section 3). We also discuss the tools used to create the benchmarks (Section 4) and the evaluation of these benchmarks on state-of-the-art ATPs (Section 5). The tools and benchmarks used to run the experiments are available on Zenodo [7,8].

References (29)