WorksPhysics and Astronomy
Circuit Design Problems in Binary Polynomial Quantum Optimization
Abstract
Solving combinatorial optimization problems on near-term quantum computers mainly relies on their quadratic unconstrained binary formulation. Lately, binary polynomial formulations start to take the center stage, having a better scaling with respect to the number of used qubits. However, while quadratic forms are straightforward to implement on quantum circuits, polynomial forms of degree incur in circuit depth overheads, due to the lack of -qubit gates, for , on current hardware. In this paper, we study the problem of designing the shallowest quantum circuit for a given polynomial form. We formulate it as a classical binary linear problem and we prove the \textsf{NP}-completeness of a variant of it. On the algorithmic side, we offer a scalable and performant heuristic method to tackle it, Tempura, as well as faster binary linear problem formulations, which offer computational feasibility while sacrificing optimality. Our performance evaluation shows that the algorithms yield far shorter circuits than the state-of-the-art approaches, and Tempura is mostly comparable with them in terms of runtime.
Introduction
The current state of the art in solving combinatorial optimization problems on near-term quantum computers favors their reformulation as quadratic unconstrained binary optimization (QUBO) problems. This is mainly due to a popular quantum variational algorithm, QAOA (Farhi et al. [9]; Zhou et al. [44]), which was initially thought for these problems, and for the ease in which quadratic forms map into a quantum circuit. Such quantum circuits can then be encoded into current hardware. The use of QUBO formulations is not very restrictive from a mathematical standpoint. We know that MAXCUT is NP-Hard and a QUBO. As such, we could polynomially reduce many interesting problems (i.e., all known NP-Hard problems) to it (Arora and Barak [3]). However, this way of doing hides critical complexities in how many additional variables we may need to consider, which maps directly into the number of used qubits. Quadratization has also been considered, with similar overheads (Mandal et al. [20]; Herrmann et al. (2021)). Qubits, the quantum equivalent to classical logical bits, as well as the number of operations we perform on them, i.e., the number of gates, represent the current bottleneck in implementing quantum optimization algorithms at scale. As such, compact formulations of optimization problems are to be preferred to loose ones, with many variables and redundancies.
In an effort to reduce the number of variables and qubits, binary polynomial problems have started to take a more central role. We often call these problems HUBOs, for higher-order unconstrained binary optimization. Several works have demonstrated how their formulation is more compact in terms of number of variables (Glos et al. [11]), and sometimes it even needs less gates when applied to multi-layer QAOA (Koch et al. [16]). See also interesting recent applications in (Utotila et al. (2025); Romero et al. [30]). In addition, while QUBOs have been solved classically up to thousands of variables (Rehfeldt et al. [29]) and a quantum advantage seems unlikely in the medium term, HUBOs are expected to offer a quicker path to quantum utility (Shaydulin et al. [33]).
The key disadvantage of using HUBO formulations is their quantum circuit depth. If QAOA can be used also for HUBOs, when applied to a polynomial of maximum degree , it generates quantum gates featuring -qubits, which cannot be easily encoded in current quantum hardware if . Typically, one would need to decompose such gates into one and two-qubit gates, yielding a circuit depth overhead [34]. As such, QUBOs and HUBOs typically stand at the opposite side of the trade-off: short circuits for many qubits, or long circuits for few qubits1.
Said so, HUBOs are still very interesting from their quantum utility potential. In this paper, we start from the HUBO polynomial form (with variables, max degree, and monomials) and we study how to use classical combinatorial optimization to map the resulting -qubit gates into parametrized rotation-Z and cnot gates. Specifically, we focus on how to minimize the depth of the resulting quantum circuit at most as possible. We start from our preliminary work [39] which formulated the HUBO circuit design problem as a binary linear optimization problem and proposed an heuristic method to tackle it. Here, we offer the following main contributions: (i) we shed light on the complexity of this problem, by proving a NP-completeness result of a variant of it; (ii) we formulate several binary linear problems that encode the problem with a various degree of optimality vs computational feasibility, which are computationally better than our preliminary work; (iii) we propose an efficient, scalable, and performant heuristic algorithm Tempura, which allows us to compile large circuits featuring thousands of monomials and has worst-case, but in practice better than , depth, going beyond the naive obtained in our preliminary work; (iv) we demonstrate practical performance with respect to two common state-of-the-art solvers (Qiskit and tket), showing far shorter circuits and similar runtimes (for Tempura).
Related work
The general problem of transferring a quantum algorithm into a quantum circuit goes under the name of compilation. In the most wholistic sense, we can think of a quantum algorithm featuring -qubits as a unitary matrix mapping input to output. Compilation is then the task of decomposing and transferring such matrix into operations (gates) that we can implement on a specific hardware. Typical constraints that we have are the gate set, how the qubits can be arranged (topology or connectivity), and the total number of operations (circuit length) limitations.
Since the celebrated Solovay-Kitaev theorem [28], quantum compiling has been a rich research area. Works have investigated how to efficiently map different gates into canonical (universal) gate sets up to an arbitrary accuracy, or how to “place” the target circuit onto the real connectivity-limited hardware. See for instance [19, 27] and the many references therein. More recently, machine learning techniques have also been used for this task [24, 42] (Theibinger et al. 2026). In fact, quantum compilation off-the-shelf softwares, such as tket [35], qiskit [43], and the full software stack Qiskit [14] encode most of the current research in proving a scalable, fast, general-purposes compilation procedure, often based on fast routines and sacrificing circuit depth.
The goal of compiling a circuit given a gate set and connectivity constraints can be thought in the lens of operations research. Mixed-integer linear formulations have then appeared to tackle specific instances of the compilation and mapping problem, e.g., [25, 27, 39, 26, 15], all featuring optimal solutions but unmanageable classical overheads after qubits. In particular, Nannicini et al. [27] present an integer linear program how to optimally place and route the gates on a quantum computer via limited connectivity, given a certain full-connectivity quantum circuit. The works of [25, 26, 15], they focus instead on decomposing and compiling a given unitary matrix in a given gate set with the goal of minimizing depth.
In this paper, we focus on a specific instance of the compilation problem: how to map diagonal multi-qubit gates (which are the -qubit gates stemming from the HUBO polynomial form) into parametrized rotation- and CNOT gates. Universal baselines for the length of the circuits are the lower bound in exact compilation and the in a -approximate one Zylberman et al. [45]. However, here we do not have a general unitary and we can compile shorter circuits if the degree of the polynomial is less than , as we will see.
Given the combinatorial nature of the compilation task, it seems natural to ask whether some instances of the compilation problem are NP-Complete. In general, the NP-completeness of quantum compilation is an open problem. Botea et al. [5] provides probably one of the first proofs in this direction for a particular instance. Close in spirit to our task is the work of Amy et al. [2] and the very recent Acuaviva et al. [1]. In this paper, we provide a NP-Complete result for a topologically-constrained version of compilation, close to our formulation.
Organization
The next section introduces the problem formulation, some useful notation, and definitions. In § 3, we prove the NP-completeness of an instance of our compilation problem under some conditions about the connectivity of the qubits. § 4 describes our efficient template and pruning algorithm to the compilation task, while § 5 presents the optimal binary linear formulation. Then, in § 7, we discuss performance evaluations of the different approaches, and we finish the paper with some concluding remarks.
Problem description
We are interested in binary combinatorial optimization problems of the form
where is a polynomial in the variables . To make the dependence explicit, we introduce the binary selection variables for variable , we stack them into the selection vector and consider the set of all possible ’s, of cardinality . In this way, we can write the polynomial as,
where is a real number for every . We denote with the maximum degree among all the monomials, , and by the number of monomials, i.e., , where is 1 if and only if . Typically . If , then the polynomial is quadratic.
To find an approximate minimizing over , one can resort to the quantum variational heuristic QAOA. To do so, we associate to each variable a qubit, we introduce the Pauli-Z gate, or operator, as,
and the problem Hamiltonian,
Here, we have defined the operator acting on the -th qubit. We have now to build the quantum circuit implementing the exponential of the matrix , where is a free rotation parameter that will be optimized over classically, and . In the following, we let without loss of generality, we define and load into the coefficient the angle information. The matrix is a diagonal matrix of dimension . Up to a global phase, we can implement this unitary with CNOT and rotation-Z gates Nielsen and Chuang [28], which are the typical ones available in hardware. We will indicate the 2-qubit CNOT gate as if it is controlled by qubit , targeting the qubit . We adopt the notation that a CNOT is downward if , and upward otherwise. The 1-qubit rotation-Z gates, will be indicated as (leaving the angle dependency hidden). Whenever the dependencies of the qubit is important, we will say . Often we will also say to stress that the rotation-Z gate is implementing the coefficient . In the quantum circuit, we will simply indicate . This notation is useful, since it allows us to present parametric circuits (that are valid for all the choices of non-zero coefficients), rather than fixing them to specified values.
Our aim is to design such circuits while minimizing their depth. We define here depth as the count of time steps needed to execute all the gates in the quantum circuit, when one time step is the time it takes to execute any gate. If gates can be executed in parallel, then only one time step is needed. Formally, we introduce the following problem.
Problem 1 (Poly-Z min-depth circuit synthesis problem (PZDCS)). Given a Pauli-Z polynomial
design a quantum circuit implementing of minimum depth, using only CNOT and rotation-Z gates.
The unitary can be compiled into a circuit featuring CNOT gates and rotation-Z gates in layers using standard rewriting rules. However, this is far from optimal for low degree polynomials.
Example 1. To fix the ideas, let us consider a simple Hamiltonian, . The corresponding operator is . A known decomposition (Glos et al. [11]; Seeley et al. [32]) of this operator using the allowed gates is depicted in Figure 1a.
Example 2. Next, we consider a slightly more complicated Hamiltonian of the following form:
Inspired by Gray code, in Glos et al. [11], the authors propose the circuit shown in Figure 1b. This circuit lets us encode a polynomial of degree three. However, it is not clear how one would do for more complex polynomials, for instance the sum of above with a second polynomial .
Compiling the first and then the second and subsequently putting them together one after the other would include twice all the monomials that are common to the two Ising Hamiltonians, in this case , , and .
From the discussion of the above examples, it seems reasonable that a better strategy to encode the Hamiltonian should be achievable. In this paper, we take the point of view of routing. In fact, from a more high-level abstraction, the circuit in Figure 1a can be seen as a form of routing of the singletons , in order to form the product on the third qubit, at which moment, the appropriate phase rotation gate is applied.
(a) Circuit for Example 1.
(b) Circuit for Example 2.
Figure 1. Quantum circuits for a few simple Ising Hamiltonians.
Following this point of view, at the start of the circuit, each qubit represents its corresponding singleton: is on qubit 1, on qubit 2, on qubit 3, and so forth. The first CNOT gate from qubit 1 to qubit 2 replaces the current monomial on qubit 2 by the product of the monomials on qubit 1 and 2, that is to say is replaced by . In this context, we say that qubit 1 is routed or sent to qubit 2 to form the product .
This interpretation is also valid for the circuits in Figure 1b, where we simply have to consider that the ancilla qubit starts by representing the constant 1.
This view leads the search for the shallowest circuit for a given Hamiltonian as a combinatorial optimization problem, where variables and constraints describe which gates are put on which qubits, and this routing process of the monomials through the circuit through the use of the CNOT gates.
An NP-complete result for topologically-constrained problems
We are now ready to provide an NP-completeness result. First of all, one may think that the circuit design problem is easier when the degree of the polynomial is lower or when we require a small circuit depth. In this section, we show that the complexity of PZDCS depends mainly on the number of qubits and monomials and not on the degree or the depth of the circuit. To do so, we give a proof of the NP-Completeness of a variant of PZDCS under a topology constraint of the qubit connectivity - that is we are not allowed to connect every pair of qubits. In the proof, the degree of the polynomial and the bound on the depth are constant values fixed respectively to 2 and 9.
To our knowledge, determining the complexity class of (the unconstrained version of) PZDCS is open. One variant was previously considered and shown NP-Complete in [2] where the cx gates must all target the same ancilla qubit. The connectivity is described by a directed topology graph associating each qubit with a vertex and defining the right to place a gate with the arc . For example in [2], the topology graph is a star where the arcs are directed toward the center.
The usual topology graph of PZDCS is the complete bidirectional graph, referred to as “all-to-all topology”. Here, we define the following decision variant of PZDCS where .
Problem 2 (()-PZDCS-Top). Given a Pauli-Z polynomial with degree , a 3-regular acyclic directed graph on vertices, is there a quantum circuit implementing of depth at most , using only CNOT and rotation-Z gates and satisfying the topology constraint defined by ?
Theorem 1. -PZDCS-Top is NP-Complete.
Proof. We offer the proof in Appendix § 9.
In the following sections, we focus on the unconstrained version of PZDCS, with no topology constraint. In the light of the proof for -PZDCS-Top (which is different from PZDCS), we conjecture that PZDCS is NP-Complete. The main obstacle for the proof consists mainly in constraining the CNOT gates without any topology constraint2, using only the bound on the depth, the limited number of qubits and the high number of rotation gates. On the other side, any polynomial algorithm for PZDCS, if such an algorithm exists, must be based on the fact that no topology is given: any generic algorithm that can be adapted to any given topology cannot be polynomial unless P = NP.
A template-pruning model
We present now an efficient approach to the compilation of . The method provides a template circuit for a polynomial of a given degree. The template is generated recursively (that is, the template of degree is based on the one of degree ) and it is then combined and simplified (or pruned) to obtain a circuit for a given polynomial.
Template generation
The original form of the template can be found in our preliminary work [39]. We present here a different implementation, to which we add a pruning technique to adapt to the polynomial under consideration. While the aforementioned authors apply the template on each monomial of a polynomial in variables, and then concatenate all the circuits thus obtained, we apply it to the whole polynomial in at once, avoiding duplicates.
The goal of this template is to be generated quickly, in a recursive manner. It generates a circuit for any binary polynomial instance of variables, degree containing monomials in layers, which is later reduced to , in the worst-case, but practically less than .
Since the template is recursive, we start with a polynomial of maximum degree . Let be a generic bivariate binary polynomial, written as . It is the base case for the template, corresponding to the Hamiltonian . The corresponding time-evolution unitary can be written as
thanks to the commutativity of the gates, and can be further simplified as
The circuit implementing this polynomial, denoted by for template of , is depicted in Figure 2a. The construction of the circuit from the circuit resembles the recursivity of the Gray code, a total ordering of binary words of the same size such that two consecutive words only differs by a bit flip. Because the Hamming distance between each word is minimal and all words belong to the sequence, the Gray code is an optimal way to sequentially visit all words while minimizing the total number of bit flips.

Figure 2. Template circuits for binary polynomials with 2 or 3 variables. We use the non-standard notation of superposing the rotation-Z gates and the CNOT gate to stress that they can be simultaneously performed.
In our context, the binary words represent the monomials, where a letter takes the value 1 when the corresponding variable is contained in the monomial. Hence, a bit flip is implemented by a CNOT gate. This is precisely what our simplification heuristic focus on, to rewrite the parts of the circuit in which only CNOT gate appears.
The Gray code on bits can be constructed from the Gray code on bits as follows. We take twice the Gray code on bits, and we reverse the order of the second copy of it. Then, we add the letter 0 in front of all words of the first copy (the one that is not reversed), and we add the letter 1 in front of all words of the second copy. Finally, we concatenate the two copies.
Example 3. The Gray code on two bits is . We take two copies, we flip the second one, and we get . Then, we add a 0 in front of the first four words, and a 1 to the last four, and concatenate: , which is indeed the Gray code on three bits.
Notice that, by construction, the leftmost bit of the Gray code is always 1 on the second half, and always 0 in the first half. Hence, when we add a new variable to the polynomial , we only have to deal with it in the second half of the Gray code, which is equivalent to the Gray code with one variable less. This corresponds to the partial factorization of our polynomial. More formally,
where and are two generic polynomials on variables.
If we implement the monomials of in the order given by the Gray code, all monomials of will come first. Furthermore, constraining the cx gates to point only downwards, every monomial of needs to be implemented on the last qubit. The template focuses then on implementing the time-evolution operators for monomials of on the last qubit using the Gray code, and then implements elsewhere in the circuit. Because this template is recursive, the configuration of the monomials of is already determined.
Formally, we have the algorithm presented in Algorithm 1, where we have indicated with . To illustrate this template, we also depicted the circuit in Figure 3.
| Algorithm 1 | Template generator |
| Input: | A template for in qubit and layers. |
| Output: | A template for in qubit and layers. |
| 1: | Initialize as an empty circuit |
| 2: | Add all the rotation-Z gates , on the first layer (layer 1) |
| 3: | Build from by removing its first and last layers |
| 4: | Add to , on qubits (layers ) |
| 5: | Build from by removing the gates not involving qubit |
| 6: | Add a cx gate to controlled by qubit acting on qubit (layer ) |
| 7: | Build from by removing the gates not involving the last qubit |
| 8: | Add to on the qubits (layers ) |
| 9: | Add to on in reverse order (layers ) |
| 10: | Add a cx gate to controlled by qubit acting on qubit (layer ) |
Table 1.
The circuit is built from three circuits, corresponding to the following decomposition:
where and are two generic polynomials on variables. The template starts by implementing the polynomial , formed of all non-singleton monomials containing but not . Once this is done, we apply a cx gate which bonds together with , because is the polynomial of all monomials containing . Because we no longer acts on the -th qubit, the template has the space for implementing at the same time as . Notice that the template, due to its similarity with the Gray code, alternate between cx gate and rz gate. So we can implement and at the same time, by simply delaying the implementation of by one layer.

Figure 3. Template circuit . Is useful to interpret Algorithm 1 as Gray code applied as considering the -th qubit as ancilla for the Gray code of the polynomial up to . The last qubit represent , while the first three qubits are , see Equation (5).
Once we have generated the circuit on the adequate number of qubits using this template, we feed into each rotation gate the coefficient of the corresponding monomial. If a monomial does not appear in the polynomial, we set the angle to zero and remove the rz gate. In general, doing so generate inefficient cx circuits between consecutive non-trivial rotation gates, and these cx circuits can be simplified using some rewriting rules, as we explain in the Section 4.2.
For Algorithm 1, we have the following theoretical result.
Proposition 1. For polynomial in variables, the Template generator in Algorithm 1 outputs a circuit given the preceding circuit that has all the rotation gates we need to represent a polynomial in of degree and contains all the products of ’s. It has exactly layers and unique rotation-Z gates.
Proof. We offer the proof in Appendix § 10.
Remark 1 (A walk on the hypercube and other techniques). It is useful to interpret Algorithm 1 as Gray code applied as considering the -th qubit as ancilla for the Gray code of the polynomial up to . The Gray code represents an Hamiltonian path on the hypercube formed by all the possible monomials. A way to reduce the depth of the circuit (in the case of less non-zero monomials) would then be to consider optimal paths on sparser graphs, e.g., Steiner trees/paths. This has been investigated in the quantum computing literature for other compilation tasks ([38, 10] (Meijer-van de Griend and Li 2022)), but has the disadvantage to be computationally costly. Since the optimal reduction seems out of reach in general ([1]), in the following, we give a heuristic yet effective and scalable pruning technique based on transvection operations.
The pruning method
In general, the binary polynomial to encode does not contain every monomial of its variables. Then, when using the template described above, around the rotation gates with a null angle, the layout of CNOT gates is not efficient. So, between each pair of consecutive non-trivial rotation gates, we want to rewrite the circuits made of CNOT gates. Given our template, we focus on circuits solely made of downward CNOT gates. We will use group theoretic concepts to facilitate our task.
Each circuit corresponds to an element of the group generated by the CNOT gates, represented by a given word of CNOTs determined by the template. One unique group element can be written using many different words, of different lengths. The point of the following discussion is to present a method that takes as an input a specific word of CNOT gates, for which the index of the control qubit is always smaller than the index of the target qubit, and that return another word of CNOT, corresponding to the same group element, in a canonical form, and with at most linear depth.
The methods presented in this part of the paper resemble standard methods used in the literature, in particular by [22], [21], as well as [10], even though the goals and the implementation differ3. In particular, we make express use of the downward nature of the CNOTs, yielding lower-triangular matrices.
The method contains two phases. Let be a given circuit only composed of CNOT gates, for instance, a subcircuit comprised between two consecutive rotation-Z gates. The first step is to translate into a matrix . This matrix encodes the action on the quantum states implemented by the circuit, hence, all the circuits of CNOT implementing the same unitary correspond to the same matrix (note, however, that the matrix has nothing to do with the unitary matrix that acts on quantum states, it is a much more compact representation of the CNOT gates). The second step is to transform back the matrix into a circuit , with several properties: is canonical, i.e., two different initial circuits being translated into the same matrix are transformed back as the exact same circuit; is of at most quadratic size and linear depth in the number of qubits, independently of the number of gates in the initial circuit; in general, the circuit is much shorter than the original circuit .
From the circuit to the matrix. We start by presenting the isomorphism4 allowing us to manipulate CNOT circuits using much more common objects. Denote by the field with two elements, by the group of invertible matrices whose entries belongs to , equipped with the usual matrix product. Denote by the transvection matrix associated with the pair satisfying , defined by
A transvection matrix is the sum of the identity matrix and a matrix composed of zeros everywhere except at the entry . Transvections generate as a group [31 Theorem 8.8].
Theorem 2 (Bataille [4]). The group generated by CNOT gates acting on qubits is isomorphic to . The group homomorphism5 sending the CNOT gate to the transvection is a group isomorphism.
So, the action of a CNOT circuit is represented as an invertible matrix over . From a given CNOT circuit, it is easy to construct this matrix: we simply take the product of all transvections of the CNOT gate of the circuit, in the reverse order.
Example 4. Consider the following circuit and its corresponding element of . We consider the CNOT gates from left to right, and we take the product of the corresponding transvection from right to left:

Figure 13.
The isomorphism described in Theorem 2 specializes conveniently when we consider circuits containing only downward CNOT gates. Indeed, the image of the group of circuits with downward CNOT gates is the group of lower-triangular invertible matrices over , a subgroup of . This subgroup is an example of a Borel subgroup of , that are well-studied and well-structured, and it is precisely this structure that we leverage in the following.
From the matrix to the circuit. The task now is to be able to read out a CNOT circuit from an element of . In general, this task is much more complicated than in the opposite direction. However, this can be done easily for triangular matrices (Laplace Mermoud et al. [17], Theorem 4). Let be the ordered set with , equipped with the anti-lexicographic order given by if and only if or . This is a total order on . Denote by the word obtained by multiplying, on the left, the transvections indexed by in the order of :
Theorem 3 (Laplace Mermoud et al. [17], Theorem 4). Any lower-triangular matrix in can be written as a subword of .
Let be an lower-triangular element of . Using the theorem above, we have that there exists a word that represents this element . Thanks to the specific ordering in , this subword is exactly the ordered product of the elements of the following set:
To get the corresponding circuit, we read the word from right to left, and for each transvection, we add the corresponding CNOT gate. The whole pruning procedure is described in Algorithm 2.
Algorithm 2 Pruning procedure
Input: A circuit C only containing cx and rz gates
Output: Another circuit C′ only containing cx and rz gates
1: function Simplify(C)
2: c ← empty circuit
3: for 0 ≤ ℓ ≤ depth of C do
4: if layer ℓ only contains cx gates then
5: add layer ℓ to c
6: else
7: add layer ℓ to c without the rz gate(s)
8: M ← the identity matrix
9: for 0 ≤ k ≤ depth of c do
10: for each cxij in layer k of c do
11: M ← T(ji)M
12: c′ ← empty circuit
13: for (i, j) in QM read in the order given by ≺ do ▷ see Equation (9)
14: add gate cxji to c′
15: concatenate c′ to the right of C′
16: add to C′ the rz gates of layer ℓ of C
17: c ← empty circuit
18: return C′
To summarize, we have seen for now that the group of cx circuits is isomorphic to , and the cx circuits extracted from the template circuits described previously form the subgroup of lower-triangular matrices. Then, each lower-triangular element of can be written as a linear depth, quadratic size circuit of CNOT gates (see Laplace Mermoud et al. [17]).
Putting things together: Tempura
The algorithm Tempura (the name comes from a letter shuffling based on the lengthy template-pruning algorithm), reported in Algorithm 3 describes the full template-pruning algorithm. in Appendix C, we offer some examples of how Tempura behaves in simple cases. For Tempura, we have the following depth worst-case result.
Proposition 2. For polynomial in variables, non-zero monomials, of degree , the algorithm defined as Tempura outputs a circuit that has all the rotation gates we need to represent . It has at most layers.
Algorithm 3 Tempura
Input: An instance of HUBO with variables, degree , with monomials. Output: A circuit of worst-case depth
Build the template using Algorithm 1 and remove from it the rotation gates corresponding to monomials not in . Obtain a circuit
▷ defined in Algorithm 2
Proof. We offer the proof in Appendix D.
Proposition 2 offers a worst-case depth bound for Tempura. The bound is really a worst-case in , but rather tight in , due to the Gray code construction. In fact, a naive implementation of a Gray code, we can achieve easily by arbitrarily ordering the monomials, and, for each monomial , add CNOT gates to it, put on the qbits having max degree and resetting the qbits with CNOT gates in the reversed order. We see that in practice, Tempura is better than the naive . These bounds are to be compared with the of Verchère et al. [39], which is rather tight in both and , giving us an important improvement. To further leverage parallelism and reduce the dependency, we turn now to binary linear programs.
An efficient diagonal ansatz and more
Tempura is an efficient template-pruning method to compile binary polynomials for the use in QAOA. But this is not all. The fact that the circuit is parametric in the ’s leaves us the opportunity to do a bit more. In particular, we highlight three complementary results.
First, Tempura offers an efficient ansatz for diagonal operators in the context of approximate compilation ([19, 45]). This means that ’s in the circuit can be optimized to match a given target diagonal unitary matrix. One can decide to use the full template (matching the depth bound of ) to obtain an exact compilation. Or decide to use monomials up to degree , obtaining an approximate compilation in the spirit of [41, 45].
Second, Tempura can be readily used in multi-angle QAOA ([12]), where all the angles are optimized, and not only a per layer.
Third, a Tempura truncated at depth (or higher) can be readily used in approximate quadratization QAOA ([8]), where the ansatz is fully optimized and it has a mismatch with the cost.
Binary Linear Programming models
We now formulate as a binary linear program. Let be the number of variables in the problem and be the set of monomials (). The maximum circuit depth considered is denoted by . This parameter is set as the minimum between the depth given by the template Tempura described above, and twice the sum of the degrees of the monomials minus , i.e., , which represents the naive implementation of all monomials sequentially. Crucially, in the worst-case, this depth is linear in both and . For handy notation we set and for any integers .
Then, we can formulate as the following binary linear program.
, , , , , \hfill binary variables
We have introduced the following supporting binary variables taking values in :
: 1 if and only if something happens in the circuit at layer ,
: 1 if and only if there is a cx gate from qubit to qubit on layer ,
: 1 if and only if there is a gate corresponding to monomial on qubit on layer ,
: 1 if and only if the -th variable is taken into account on qubit (via sequences of cx gates) between layer and , after applying the gates on layer . For notation convenience represents the rz applied at the beginning of the circuit.
The objective function (10a) aims to minimize the sum of active layers. Constraints (10b) are symmetry-breaking inequalities that will avoid empty layers unless all the monomials have been taken into account. Constraints (10c) and (10d) state the initial and final conditions of the circuit. On the first layer, each qubit carries only monomials of degree one, corresponding to the variable of the same index. On the last layer, uncomputing is required, as this circuit will be part of a larger circuit. Constraints (10e) model the fact that a layer is active if there is a cx or a rotation gate on that layer, and a qubit cannot be acted on by more than one gate per layer. The fact that a qubit cannot control itself through the use of a cx gate is enforced by Constraints (10f). With Constraints (10g) all the monomials are implemented exactly once. Constraints (10h) and (10i) enforce rotation validity. A rotation corresponding to a given monomial can only be implemented if that monomial is properly represented on a given qubit.
The following constraints (10j)-(10q) implement the propagation rule. This rule can be written as the nonlinear (27) in the initial variables. The behavior of CNOT gates, and the overall propagation of terms throughout the circuit, can be explained as a binary sum :
which has been translated in Verchère et al. [39] as the following equation:
In this paper, we adopt a different writing that will lead to a better computational behavior
Equation (29) is a quartic polynomial expression. In order to linearize it, we introduce the binary variables:
that will satisfy and this last equality is enforced through Constraints (10o)–(10q)
that will satisfy (23). Observe that, from Constraints (10e), at most one of the variables in this summation is equal to one so is also a binary variable.
Finally, Equation (29) is enforced by the linear equations (10j)–(10l).
Proposition 3. HUBO_BLP features binary variables and constraints. Since is at worst , both counts are polynomial in the input.
Proof. By direct computation.
As one can expect, the problem HUBO_BLP (depicted in the model (10)) is difficult to solve to optimality in reasonable amounts of time. To tackle this problem, we add some additional constraints to restrict the set of solutions to explore.
Downward cnot gates (HUBO_BLP_TB_H)
To simplify the routing of the variables throughout the circuit, we can ask for only having CNOT gates such that the index of the control qubit is smaller than the index of the target qubits:
Downward cnot gates with fixed rotation gates (HUBO_BLP_TBFM_H)
To further simplify, we set the rotation gates placement to be the same as in the template described at the previous section, while keeping the new constraints on downward CNOT gates (Equation (30)). The upper bound is set to be the depth of the circuit constructed by the template, and the constraint about empty layers (Equation (10b)) is dropped. We define a map as follows:
We have the additional new constraint:
Note that the objective is not affected by this change, since only active layers are considered there.
Performance evaluation
We evaluate the different compiling methods over random and low autocorrelation binary sequences (LABS) instances. In both cases, we compare the following algorithms: Qiskit transpilation algorithm (version 2.3.0), tket transpilation algorithm (version 2.18.1), Tempura, a version of Tempura to which we add a Qiskit pass after the algorithm and we call Q-Tempura, as well as the binary linear programs HUBO_BLP, HUBO_BLP_TB_H, HUBO_BLP_TBFM_H. We give a 10 minute time-out constraint, and if reached Gurobi was asked to yield the best solution found or nothing if it had not found one.
We use Gurobi 13.0.1 for solving the binary linear program. We report runtime when the code is run on a MacBook Pro 2020, 2GHz quad-core Intel Core i5 with 32GB RAM. The depth of our methods is computed by importing the resulting circuit in Qiskit.
Instance description
Random instances. We generated 130 random polynomials with variables, degree , and sparsity , for the expected number of monomials is (that is a fraction of the set of all possible monomials). To do so, for each possible monomial, that monomial is added with probability to the polynomial. In order to ensure the degree , at least one random monomial with variables is added to the polynomial if none was added during the process. The coefficients of the monomials are random integers uniformly selected from to .
LABS instances. We also generated a second set of 28 LABS polynomials6 with fixed degree 4 and monomials of degree 2 and 4.
Experimental results
All the numerical results are given as tables in Appendix § 13. Here we report summarizing figures.
Random instances. We start with the fraction of instances solved below a given depth as well as the runtime in seconds with the respect to the number of monomials (Figure 4). We also report the obtained depth with respect to the number of monomials (Figure 5).
Figure 4. Performance of each method (Random instances). [Left] The plots represent the fraction of instances (-axis) for which a specific algorithm synthesizes a circuit under a given depth (-axis). [Right] The plots represent the runtime in seconds for each algorithm versus the number of monomials in the polynomial (-axis).

Figure 5. Performance of each method (Random instances). The plots represent the depth (-axis) which a specific algorithm yield versus the number of monomials in the polynomial (-axis). The regression lines are only for display purpose.
As we notice from the figures and the accompanying tables, if we consider the returned depth, the binary linear programs offer the best solutions when they are solved at optimality. Tempura and Q-Tempura are in par with Qiskit and tket on small instances, but then they become very competitive in medium-to-large instances. In particular, Qiskit and then tket are deliver the longest circuits. As for runtime, Qiskit is globally the fastest, but Tempura and Q-Tempura become the methods of choice in large instances. Notice, in the tables, that the depth of Tempura is consistently lower than the naive , as discussed.
LABS instances. We report similar results for LABS (Figure 6–Figure 7), yielding globally the same conclusions.
Figure 6. Performance of each method (LABS instances). [Left] The plots represent the fraction of instances (-axis) for which a specific algorithm synthesizes a circuit under a given depth (-axis). [Right] The plots represent the runtime in seconds for each algorithm versus the number of monomials in the polynomial (-axis).
Figure 7. Performance of each method (LABS instances). The plots represent the depth (-axis) which a specific algorithm yield versus the number of monomials in the polynomial (-axis). The regression lines are only for display purpose.
with , where is the sequence and is its component. Here we consider the limited reach version where the reach limits the distance between components that interact. The objective function is named the energy function of the sequence . This optimization problem is by nature a quadratic polynomial in variables and is very well studied, see e.g. Clausen et al. [6].
Conclusions
We have formulated the circuit design problem for binary polynomial optimization as a binary linear program. We have proposed a fast and scalable heuristic solution to it, as well as some variants of the binary programs. We have argue the difficulty of solving such problem, by showing the NP-completeness of a variant of it. We have supported our algorithms by numerical evaluations with respect the state of the art, yielding far shorter circuits in comparable runtimes (for the heuristic). Given the obtained results, while our heuristic delivers shorter circuits with respect to the state of the art, there is still a considerable gap with the optimal solution, leaving plenty of room for future improvements.
Appendices
Proof of Theorem 1
We need a few intermediary results before tackling the main proof.
The core of the proof is a reduction from the 3-edge-coloring problem which consists, given a graph in determining whether it is possible to color the edges of with three colors in such a way that no two incident edges share the same color. This problem is NP-Complete even if is 3-regular [18]. The reduction will, given an instance of 3-edge-coloring builds an instance of (2, 9)-PZDCS-Top. We recall that we indicate with the polynomial in for a given graph , and with its representation with Pauli-Z operators.
We first do an intermediate reduction to transform into a 3-regular graph that will be close to our topology. In order to do so, we expand each edge into a bipartite graph with 8 vertices as represented in Figure 8. Note that any feasible coloring of that bipartite graph impose that the color of is the same as the color of , thus a feasible coloring of can be deduced from a 3-edge-coloring of where the color of is assigned to , and conversely. Consequently, is 3-edge-colorable if and only if is.
Figure 8. Reduction from to . That graph is then directed to obtain the topology .
Given , we now build the polynomial and the topology . Note that the order of is as is 3-regular, we then set the number of variables of the polynomials to . We define three sets , , and , respectively, hereinafter called source, intermediate, and sink vertices of . The source vertices contain each vertex originally in with the nodes and for each edge . The intermediate vertices are the set and the sink vertices contain , and for each . We now get the topology by directing every edge of from to , from to and from to . Observe first that the vertices in and are the same, secondly that , and are independent sets, thus is a 3-regular acyclic digraph.
Finally, we associate to each vertex an index from 1 to by numbering arbitrarily the source vertices with , then the intermediate vertices with and finally the sink vertices with . We get an ordered list of vertices of . Note that this is a topological ordering of the vertices of . Given the arcs of and , we have that . The polynomial is set to . The degree of is, as expected, 2.
The performed procedure is achieved in polynomial time. We now prove that there exists a feasible circuit for that instance if and only if is 3-colorable.
Lemma 1. If is 3-edge colorable, there exists a circuit of depth 9 encoding following the topology .
Proof. Let be the partition of the sets of edges of colored with each of the three colors. By definition, each such set is a matching of . The circuit contains, for each three successive layers:
(first layer) a CNOT gate for each
(second layer) an rotation-Z gate for each
(third layer) a CNOT gate for each
Note that, first, after the third layer, every qubit represents only itself. Secondly, each monomial is represented at the second, fifth or eighth layer depending if belongs to or . The circuit contains 9 layers and satisfies the topology constraint, therefore it is feasible.
The rest of the proof is dedicated to show that, given a feasible circuit encoding , we can deduce a 3-edge-coloring of . Due to the acyclic topology , a feasible circuit for that instance must satisfy the following constraint: the circuit contains only downward cx gates. An immediate consequence is that, if , then the former qubit cannot represent the latter. Therefore, the circuit cannot contain any SWAP circuit and any monomial must be represented on the qubit : there are three rotation-Z gates on each qubit associated with a sink vertex and one for the intermediate vertices. In the following lemmas we demonstrate that every rotation-Z gate is either at layer 2, 5 or 8. This partition of the rz gates allows us to build a 3-edge-coloring of . For convenience, hereinafter we call the rz gate that represents the phase associated to the monomial . We also say that a CNOT gate sends a variable if a monomial is routed through it to form another monomial . In the same way a CNOT gate can send multiple variables, if is routed through it.
Lemma 2. Assuming that there exists a feasible 9-depth circuit for , if the circuit contains a CNOT gate sending two variables or more, there is another feasible 9-depth circuit containing only CNOT gates sending one variable.
Proof. Let be a CNOT gate sending a variable (), then there exists a directed path in connecting to through the vertex . By construction, the only possible cases are the paths of size 3: and . In the two cases, the gate is the only way to send to . As does not represent after layer 9, there are an even number of such gates. Also, does not contain the monomial , so while the variable is represented on the qubit , no rotation-Z gate may be placed on that qubit. Thus the circuit where those gates are removed is still feasible.
:::
Lemma 3. Let be a sink vertex. Assuming that there exists a feasible 9-depth circuit for where every cx gate sends only one variable, there are three rotation-Z gates , and respectively placed at layers 2, 5 and 8 on qubit where , , are the three neighbors of in . In addition, two gates are placed at layers 1 and either 3 or 4, two gates are placed at layers either 3 or 4 and either 6 or 7, and two gates are placed at layers either 6 or 7 and 9.
Proof. By construction, the three neighbors of are in . Thus and the three gates , and are placed on the qubit . As represents only before the first layer, at least one cx gate sending on is placed before . As the circuit contains no SWAP gate, this CNOT gate is . Then one or more CNOT gates and are placed between and . Symmetrically, there are at least two CNOT gates and between and and one after . As the depth of the circuit is 9, we deduce that no additional CNOT gate may be placed: the layers 2, 5 and 8 contain the three rotation-Z gates and the six other layers contain a CNOT gate.
:::
Lemma 4. Let be an intermediate vertex. Assuming that there exists a feasible 9-depth circuit for where every CNOT gate sends only one variable, there is one rotation-Z gate placed at layers 2, 5 or 8 on qubit where is the neighbors of in . In addition, two gates are placed at layers 1 and 3 or 4 if is at layer 2, at layers 3 or 4 and 6 or 7 if is at layer 5, and at layers 6 or 7 and 9 if is at layer 8.
Proof. Let , be the two neighbors of in . The gate is placed on the qubit as . That gate is surrounded by two CNOT gates and is then not at layers 1 and 9. Let assume is placed at layer 3. According to Lemma 3, as is a sink vertex, there are two CNOT gates in the circuit sending only the variable on . As is represented by between the two gates , the gates cannot be placed between them, thus not at layer 2, 3 or 4. However, by Lemma 3, if the gate is placed at layer 2 or 5 of the qubit , there is one gate at layer 3 or 4, which is a contradiction. Thus, is at layer 8 and there is a gate at layer 9. The same demonstration can be made for . Hence there are two CNOT gates at layer 9 on qubit and this is a contradiction. Therefore, is not at layer 3. Symmetrically, it is not at layer 4, 6 or 7. Thus, it is either at layer 2, 5 or 8. A similar argument can be used to prove that the two gates are placed at the layer preceding and following the gate , otherwise there is no room for the two gates and the two gates .
Lemma 5. Assuming that there exists a feasible 9-depth circuit for where every CNOT gate sends only one variable, then is 3-edge-colorable.
Proof. As no source vertex has an entering arc, every rotation-Z gate is on a qubit associated with an intermediate vertex or a sink vertex. By Lemmas 3 and 4 all those gates are placed on layers 2, 5 or 8. We may now define a partition and of the edges of with those sets being respectively all the edges such that is at layer 2, 5 or 8. We finally prove that this partition defines a 3-edge-coloring of by showing that each set is a matching. By definition, two arcs and in , for any satisfy as the two gates and cannot be on the same qubit and at the same layer. If the first set is not a matching then it contains two arcs and . The two gates and are placed at layer 2. However, by Lemmas 3 and 4, this implies that there are two CNOT gates and at layer 1 which is a contradiction. Consequently is a matching. For the same reason, also a matching. Assuming that is not a matching, there are two gates and placed at layer 5. Hence, by Lemmas 3 and 4, there are four CNOT gates, and , each placed twice, at layers 3, 4, 6 and 7. However, let be the third neighbor of . Again, by Lemmas 3 and 4, if , there must be a gate at layer 3 or 4 or 6 or 7, depending if the gate is at layer 2, 5 or 8. Similarly if . There is then a contradiction with the four first CNOT gates: is a matching. Consequently, is 3-edge colorable.
We are now ready to prove Theorem 1
Proof. By Lemmas 1, 2 and 5, the described procedure is a polynomial reduction from the 3-edge-coloring problem to (2, 9)-PZDCS-Top, thus this problem is NP-Complete.
Proof of Proposition 1
To represent a polynomial of degree , we need all the unique combinations of indices up to degree , of which there are . With our construction, has rotations coming from plus one considering . To this, we add all the rotations on the second layers, i.e., all the rotations on qubit , as and all the ones on qubit , as . Adding up we obtain a total of unique rotation gates of , as required.
As for the layers: has firstly layers by construction, at which we add all the CNOTs plus rotation-Z gates of these first layers a second time, adding another layers, totalling at . Note that the circuit acting on qubit on the second half can happen in parallel with the one acting on qubit , so it is not counted here.
Simple examples of the application of Tempura
Example 5. Let us use our algorithm on the following polynomial:
First, we apply the template to it, by putting the coefficients of the missing monomials to 0. We obtain the following circuit, depicted in Figure 9.

Figure 9. Template circuit for . The subcircuits , and only contain CNOT gates.
In this circuit, because some rotation gates are missing, we observe that there are some sequences of CNOT that may contain some redundancy, meaning that we could rewrite this part of the circuit with possibly less gates. For the subcircuit , the corresponding matrix is
By looking at the numbers of non-zero off-diagonal term of , we know that we can rewrite the subcircuit , that originally contained 4 CNOT gates, with only 2 CNOT gates, namely followed by . The newly obtained circuit is depicted in Figure 10.

Figure 10. Final circuit.
To conclude the presentation of the template-pruning method, we describe two examples that exhibits some non-trivial behavior.
Example 6. Consider the following circuit, depicted in Figure 11 (left).
Figure 11. Initial (left) and final (right) circuits.
To translate this circuit into a matrix, we read it from right to left. The rightmost CNOT gate is controlled by the first qubit, targeting the third one. The matrix representing it is
The second rightmost CNOT gate is controlled by the second qubit, targeting the third one. So far, the matrix representing the part of the circuit we read is
The next and last CNOT gate is controlled by the first qubit, targeting the second one, so the whole circuit is represented by
We can already read from the matrix that the returned circuit will be of size 2, because there are two non-zero entries below the diagonal. The circuit will be composed of the CNOT gates and . We now determined in which order they should be added to the circuit. We start reading the matrix from the bottom right, we read the whole row from right to left, and we do the same on the row above, etc. So here the first non-zero entry we read this way is the one on the third row and second column, so comes first. Then, the final circuit is represented in Figure 11 (right).
This example is interesting because it shows how a circuit can be rewritten by dropping a CNOT gate, but it also swapped the two other CNOT gates. So the pruning does not simply detect redundant gates one by one, it takes the whole block into account.
Example 7. Consider the following circuit, depicted in Figure 12 (left).
Figure 12. Initial (left) and final (right) circuits.
Its matrix representation is given by
By applying our algorithm, we obtain a circuit of size 3, because of the three non-zero entries below the diagonal. The final circuit is depicted in Figure 12 (right).
This example shows that the transformation of a CNOT-only circuit into its canonical form can make it longer. However, we show in the results that in general the returned circuits are much shorter than the original ones.
Proof of Proposition 2
There are non-zero monomials, so Tempura outputs a circuit with rotation-Z gates. Note that, given the nature of the template (and owing to the Gray code), besides the first layer, each of these rotation-Z gates are not in parallel. Between each consecutive rotation-Z gates, we need at most layers of CNOT gates, due to the transvection construction and [17 Theorem 4]. So we need layers (the due to the rotation-Z gates).
It is interesting to now that even though the degree of the polynomial is , there may be multiple CNOT gates that belong to different qubits between consecutive rotation-Z gates. So we cannot reduce them in layers.
Tables of experimental results
All the depth below are reported considering also an initial Hadamard tower and a final rx tower for QAOA implementation. Note that we have also tried a different simplification (instead of our pruning), called greedy Gaussian elimination (GGE, adapted from the more general De Brugiére et al. [7]), with worse depth results than our pruning, and we have chosen not to include it in the tables.
Random instances
| Instances | Baselines | Ansatz | Binary linear programs | |||||||||||||
| Qiskit Depth | Qiskit CPU [s] | Tket Depth | Tket CPU [s] | Tempura Depth | Tempura CPU [s] | Q-Tempura Depth | Q-Tempura CPU [s] | HUBO_BLP Depth | HUBO_BLP CPU [s] | HUBO_BLP_TB_H Depth | HUBO_BLP_TB_H CPU [s] | HUBO_BLP_TBFM_H Depth | HUBO_BLP_TBFM_H CPU [s] | |||
| 3 | 2 | 2 | 8 | 0.01 | 8 | 0.07 | 11 | 0.00 | 9 | 0.01 | 6 | 0.07 | 6 | 0.03 | 6 | 0.03 |
| 3 | 2 | 3 | 11 | 0.02 | 11 | 0.09 | 10 | 0.00 | 10 | 0.01 | 8 | 0.15 | 8 | 0.06 | 8 | 0.04 |
| 5 | 2 | 2 | 5 | 0.01 | 5 | 0.03 | 10 | 0.01 | 10 | 0.01 | 5 | 0.26 | 5 | 0.14 | 5 | 0.12 |
| 5 | 2 | 5 | 14 | 0.01 | 14 | 0.11 | 19 | 0.01 | 19 | 0.02 | 9 | 35.56 | 9 | 0.55 | 10 | 0.30 |
| 5 | 2 | 6 | 14 | 0.02 | 14 | 0.22 | 19 | 0.01 | 19 | 0.01 | 9 | 31.01 | 10 | 1.66 | 13 | 0.38 |
| 5 | 2 | 8 | 20 | 0.01 | 20 | 0.24 | 22 | 0.01 | 20 | 0.02 | 11 | 600.00 | 11 | 1.33 | 15 | 0.47 |
| 5 | 2 | 10 | 23 | 0.01 | 23 | 0.31 | 25 | 0.01 | 23 | 0.02 | 13 | 600.00 | 12 | 6.41 | 17 | 0.50 |
| 5 | 4 | 4 | 15 | 0.01 | 13 | 0.16 | 13 | 0.01 | 13 | 0.01 | 8 | 3.27 | 9 | 0.38 | 9 | 0.19 |
| 5 | 4 | 7 | 21 | 0.01 | 17 | 0.21 | 17 | 0.01 | 16 | 0.02 | 9 | 70.01 | 10 | 1.16 | 12 | 0.29 |
| 5 | 4 | 15 | 46 | 0.02 | 41 | 0.63 | 28 | 0.01 | 27 | 0.02 | 21 | 600.00 | 16 | 4.83 | 18 | 0.58 |
| 5 | 4 | 20 | 53 | 0.02 | 47 | 0.70 | 31 | 0.01 | 31 | 0.03 | 27 | 600.00 | 20 | 27.80 | 22 | 0.77 |
| 5 | 5 | 3 | 21 | 0.01 | 13 | 0.21 | 15 | 0.01 | 15 | 0.02 | – | – | – | – | 10 | 0.22 |
| 5 | 5 | 12 | 30 | 0.02 | 29 | 0.43 | 24 | 0.01 | 22 | 0.02 | – | – | – | – | 18 | 0.52 |
| 5 | 5 | 16 | 53 | 0.02 | 50 | 0.83 | 25 | 0.01 | 25 | 0.02 | – | – | – | – | 21 | 0.64 |
| 5 | 5 | 23 | 67 | 0.02 | 64 | 1.06 | 33 | 0.01 | 31 | 0.02 | – | – | – | – | 29 | 0.91 |
| 5 | 5 | 26 | 72 | 0.02 | 67 | 1.16 | 33 | 0.01 | 33 | 0.02 | – | – | – | – | 32 | 0.93 |
| 8 | 2 | 2 | 8 | 0.01 | 8 | 0.08 | 10 | 0.01 | 10 | 0.02 | 6 | 2.12 | 6 | 0.34 | 6 | 0.56 |
| 8 | 2 | 9 | 20 | 0.02 | 20 | 0.32 | 29 | 0.01 | 22 | 0.03 | 12 | 600.00 | 11 | 26.88 | 18 | 1.99 |
| 8 | 2 | 15 | 26 | 0.02 | 26 | 0.51 | 43 | 0.02 | 35 | 0.03 | – | 600.00 | 13 | 112.91 | 26 | 5.78 |
| 8 | 2 | 22 | 38 | 0.02 | 38 | 0.72 | 54 | 0.03 | 42 | 0.04 | – | 600.00 | 18 | 600.00 | 35 | 5.28 |
| 8 | 2 | 28 | 41 | 0.02 | 41 | 0.96 | 65 | 0.04 | 52 | 0.05 | – | 600.00 | 20 | 600.00 | 43 | 7.84 |
| 8 | 4 | 9 | 46 | 0.02 | 34 | 0.73 | 39 | 0.02 | 32 | 0.03 | – | 600.00 | 15 | 45.22 | 17 | 3.24 |
| 8 | 4 | 48 | 234 | 0.03 | 167 | 3.58 | 116 | 0.06 | 106 | 0.07 | – | 600.00 | 111 | 600.00 | 69 | 21.39 |
| 8 | 4 | 54 | 227 | 0.03 | 168 | 4.03 | 120 | 0.08 | 105 | 0.07 | – | 600.00 | 123 | 600.00 | 71 | 600.00 |
| 8 | 4 | 85 | 399 | 0.03 | 243 | 5.76 | 153 | 0.09 | 148 | 0.09 | – | 600.00 | 172 | 600.00 | 102 | 43.02 |
| 8 | 4 | 106 | 472 | 0.04 | 269 | 6.88 | 176 | 0.17 | 176 | 0.16 | – | 600.00 | – | 600.00 | 123 | 49.83 |
| 8 | 5 | 30 | 156 | 0.02 | 122 | 2.84 | 88 | 0.04 | 83 | 0.05 | – | – | – | – | 47 | 65.00 |
| 8 | 5 | 62 | 322 | 0.03 | 211 | 4.38 | 136 | 0.06 | 131 | 0.08 | – | – | – | – | 92 | 48.44 |
| 8 | 5 | 88 | 413 | 0.03 | 302 | 6.28 | 164 | 0.08 | 154 | 0.12 | – | – | – | – | 120 | 48.04 |
| 8 | 5 | 125 | 586 | 0.04 | 391 | 8.24 | 201 | 0.11 | 195 | 0.13 | – | – | – | – | 158 | 58.30 |
| 8 | 5 | 148 | 712 | 0.05 | 448 | 9.56 | 212 | 0.12 | 210 | 0.14 | – | – | – | – | 172 | 66.71 |
| 8 | 6 | 45 | 227 | 0.02 | 176 | 4.25 | 109 | 0.05 | 97 | 0.08 | – | – | – | – | 66 | 34.52 |
| 8 | 6 | 79 | 333 | 0.03 | 274 | 6.12 | 150 | 0.07 | 132 | 0.10 | – | – | – | – | 105 | 36.57 |
| 8 | 6 | 111 | 575 | 0.04 | 402 | 9.29 | 195 | 0.09 | 184 | 0.12 | – | – | – | – | 152 | 55.54 |
| 8 | 6 | 154 | 796 | 0.06 | 507 | 11.45 | 235 | 0.15 | 230 | 0.21 | – | – | – | – | 191 | 72.55 |
| 8 | 6 | 190 | 951 | 0.06 | 589 | 13.30 | 252 | 0.14 | 252 | 0.20 | – | – | – | – | 214 | 86.65 |
| 8 | 7 | 52 | 250 | 0.04 | 201 | 4.81 | 121 | 0.06 | 110 | 0.11 | – | – | – | – | 76 | 600.00 |
| 8 | 7 | 83 | 456 | 0.05 | 304 | 7.15 | 170 | 0.08 | 155 | 0.13 | – | – | – | – | 118 | 41.69 |
| 8 | 7 | 131 | 690 | 0.08 | 469 | 11.22 | 213 | 0.11 | 204 | 0.19 | – | – | – | – | 170 | 102.25 |
| 8 | 7 | 174 | 896 | 0.16 | 589 | 13.40 | 254 | 0.13 | 251 | 0.20 | – | – | – | – | 212 | 79.66 |
| 8 | 7 | 226 | 1216 | 0.10 | 728 | 16.39 | 265 | 0.17 | 265 | 0.17 | – | – | – | – | 244 | 258.19 |
| 8 | 8 | 43 | 235 | 0.04 | 171 | 4.44 | 103 | 0.05 | 96 | 0.07 | – | – | – | – | 64 | 22.38 |
| 8 | 8 | 100 | 566 | 0.06 | 399 | 9.55 | 176 | 0.08 | 158 | 0.13 | – | – | – | – | 138 | 46.89 |
| 8 | 8 | 150 | 895 | 0.07 | 577 | 13.23 | 233 | 0.11 | 224 | 0.16 | – | – | – | – | 191 | 93.68 |
| 8 | 8 | 203 | 1153 | 0.09 | 721 | 16.44 | 263 | 0.12 | 262 | 0.21 | – | – | – | – | 227 | 92.61 |
| 8 | 8 | 247 | 1412 | 0.09 | 835 | 19.37 | 263 | 0.12 | 263 | 0.17 | – | – | – | – | 256 | 113.55 |
| 10 | 2 | 8 | 20 | 0.02 | 20 | 0.26 | 30 | 0.03 | 26 | 0.04 | 16 | 600.00 | 10 | 21.00 | 15 | 3.70 |
| 10 | 2 | 17 | 32 | 0.02 | 32 | 0.62 | 53 | 0.04 | 43 | 0.05 | – | 600.00 | 13 | 600.00 | 27 | 11.71 |
| 10 | 2 | 28 | 41 | 0.02 | 41 | 0.95 | 72 | 0.04 | 51 | 0.09 | – | 600.00 | 21 | 600.00 | 43 | 600.00 |
| 10 | 2 | 35 | 44 | 0.03 | 44 | 1.23 | 83 | 0.06 | 66 | 0.12 | – | 600.00 | 33 | 600.00 | 53 | 39.88 |
| 10 | 2 | 45 | 53 | 0.03 | 53 | 1.53 | 106 | 0.07 | 79 | 0.14 | – | 600.00 | 65 | 600.00 | 70 | 40.20 |
Table 2.
Tables of experimental results
| Instances | Baselines | Ansatz | Binary linear programs | |||||||||||||
| Qiskit Depth | Qiskit CPU [s] | Tket Depth | Tket CPU [s] | Tempura Depth | Tempura CPU [s] | Q-Tempura Depth | Q-Tempura CPU [s] | HUBO_BLP Depth | HUBO_BLP CPU [s] | HUBO_BLP_TB_H Depth | HUBO_BLP_TB_H CPU [s] | HUBO_BLP_TBFM_H Depth | HUBO_BLP_TBFM_H CPU [s] | |||
| 10 | 4 | 46 | 188 | 0.03 | 143 | 3.72 | 129 | 0.07 | 112 | 0.14 | – | 600.00 | 110 | 600.00 | 69 | 227.05 |
| 10 | 4 | 117 | 567 | 0.06 | 354 | 9.22 | 291 | 0.16 | 263 | 0.23 | – | 600.00 | – | 600.00 | 175 | 295.89 |
| 10 | 4 | 157 | 799 | 0.06 | 460 | 12.05 | 355 | 0.25 | 337 | 0.32 | – | 600.00 | – | 600.00 | 220 | 600.00 |
| 10 | 4 | 213 | 1066 | 0.08 | 549 | 14.50 | 434 | 0.25 | 429 | 0.42 | – | 600.00 | – | 600.00 | 293 | 446.20 |
| 10 | 4 | 265 | 1343 | 0.10 | 645 | 16.61 | 492 | 0.31 | 492 | 0.46 | – | 600.00 | – | 600.00 | 332 | 592.32 |
| 10 | 5 | 83 | 498 | 0.04 | 343 | 7.98 | 226 | 0.12 | 207 | 0.19 | – | – | – | – | 127 | 600.00 |
| 10 | 5 | 161 | 952 | 0.07 | 585 | 13.46 | 394 | 0.20 | 349 | 0.36 | – | – | – | – | 245 | 600.00 |
| 10 | 5 | 270 | 1618 | 0.10 | 888 | 20.95 | 550 | 0.30 | 511 | 0.41 | – | – | – | – | 374 | 600.00 |
| 10 | 5 | 348 | 2087 | 0.13 | 1096 | 25.49 | 653 | 0.36 | 623 | 0.52 | – | – | – | – | 487 | 600.00 |
| 10 | 5 | 427 | 2566 | 0.17 | 1300 | 29.25 | 721 | 0.41 | 699 | 0.65 | – | – | – | – | 590 | 600.00 |
| 10 | 6 | 133 | 853 | 0.06 | 577 | 14.85 | 319 | 0.21 | 275 | 0.23 | – | – | – | – | 187 | 600.00 |
| 10 | 6 | 233 | 1506 | 0.09 | 889 | 22.99 | 502 | 0.26 | 465 | 0.41 | – | – | – | – | 328 | 600.00 |
| 10 | 6 | 372 | 2425 | 0.15 | 1342 | 34.16 | 669 | 0.41 | 649 | 0.61 | – | – | – | – | 498 | 600.00 |
| 10 | 6 | 468 | 3071 | 0.20 | 1612 | 116.77 | 780 | 0.52 | 759 | 0.70 | – | – | – | – | 580 | 600.00 |
| 10 | 6 | 595 | 3911 | 0.27 | 1915 | 59.23 | 872 | 0.52 | 872 | 0.77 | – | – | – | – | 682 | 600.00 |
| 10 | 7 | 151 | 1038 | 0.06 | 679 | 18.28 | 349 | 0.21 | 313 | 0.25 | – | – | – | – | 219 | 600.00 |
| 10 | 7 | 302 | 2054 | 0.12 | 1232 | 30.63 | 594 | 0.33 | 571 | 0.58 | – | – | – | – | 418 | 600.00 |
| 10 | 7 | 473 | 3239 | 0.20 | 1748 | 44.42 | 798 | 0.46 | 765 | 0.59 | – | – | – | – | 610 | 600.00 |
| 10 | 7 | 588 | 4113 | 0.27 | 2105 | 50.92 | 919 | 0.52 | 900 | 0.78 | – | – | – | – | 725 | 600.00 |
| 10 | 7 | 757 | 5249 | 0.38 | 2557 | 62.11 | 987 | 0.59 | 985 | 0.81 | – | – | – | – | 838 | 600.00 |
| 10 | 8 | 168 | 1296 | 0.08 | 790 | 20.73 | 409 | 0.22 | 369 | 0.28 | – | – | – | – | 243 | 600.00 |
| 10 | 8 | 382 | 2750 | 0.17 | 1548 | 44.23 | 712 | 0.36 | 679 | 0.59 | – | – | – | – | 527 | 600.00 |
| 10 | 8 | 524 | 3797 | 0.32 | 1996 | 53.69 | 846 | 0.64 | 828 | 0.65 | – | – | – | – | 668 | 600.00 |
| 10 | 8 | 707 | 5118 | 0.49 | 2488 | 65.27 | 992 | 0.63 | 975 | 0.99 | – | – | – | – | 837 | 600.00 |
| 10 | 8 | 892 | 6530 | 0.76 | 3050 | 79.09 | 1039 | 0.77 | 1039 | 1.14 | – | – | – | – | 952 | 600.00 |
| 10 | 9 | 209 | 1573 | 0.12 | 991 | 29.59 | 475 | 0.26 | 434 | 0.41 | – | – | – | – | 311 | 600.00 |
| 10 | 9 | 394 | 2916 | 0.20 | 1642 | 45.38 | 700 | 0.40 | 657 | 0.62 | – | – | – | – | 502 | 600.00 |
| 10 | 9 | 570 | 4369 | 0.30 | 2281 | 58.59 | 903 | 0.51 | 870 | 0.75 | – | – | – | – | 721 | 600.00 |
| 10 | 9 | 771 | 5856 | 0.55 | 2977 | 75.63 | 1035 | 0.58 | 1029 | 0.87 | – | – | – | – | 885 | 600.00 |
| 10 | 9 | 977 | 7480 | 0.82 | 3537 | 86.11 | 1044 | 0.59 | 1044 | 1.00 | – | – | – | – | 1008 | 600.00 |
| 10 | 10 | 187 | 1383 | 0.10 | 871 | 24.82 | 439 | 0.26 | 395 | 0.34 | – | – | – | – | 267 | 600.00 |
| 10 | 10 | 387 | 2974 | 0.21 | 1675 | 44.43 | 696 | 0.41 | 668 | 0.47 | – | – | – | – | 522 | 600.00 |
| 10 | 10 | 589 | 4615 | 0.39 | 2379 | 62.01 | 893 | 0.48 | 862 | 0.68 | – | – | – | – | 735 | 600.00 |
| 10 | 10 | 807 | 6185 | 0.58 | 3054 | 79.46 | 1035 | 0.59 | 1029 | 0.91 | – | – | – | – | 911 | 600.00 |
| 10 | 10 | 1013 | 7931 | 0.85 | 3723 | 91.77 | 1033 | 0.58 | 1033 | 0.99 | – | – | – | – | 1024 | 600.00 |
| 13 | 2 | 9 | 17 | 0.02 | 17 | 0.26 | 34 | 0.09 | 24 | 0.15 | – | 600.00 | 10 | 106.59 | 16 | 14.55 |
| 13 | 2 | 32 | 47 | 0.03 | 47 | 1.06 | 94 | 0.12 | 59 | 0.17 | – | 600.00 | 25 | 600.00 | 55 | 54.28 |
| 13 | 2 | 46 | 62 | 0.03 | 62 | 1.56 | 114 | 0.19 | 92 | 0.16 | – | 600.00 | 56 | 600.00 | 69 | 600.00 |
| 13 | 2 | 61 | 65 | 0.03 | 65 | 2.15 | 144 | 0.16 | 102 | 0.28 | – | 600.00 | 75 | 600.00 | 91 | 600.00 |
| 13 | 2 | 78 | 71 | 0.04 | 71 | 3.48 | 178 | 0.18 | 133 | 0.22 | – | 600.00 | 79 | 600.00 | 124 | 176.19 |
| 13 | 4 | 166 | 847 | 0.07 | 528 | 14.64 | 498 | 0.41 | 448 | 0.48 | – | 600.00 | – | 600.00 | 299 | 600.00 |
| 13 | 4 | 312 | 1634 | 0.12 | 915 | 24.09 | 854 | 0.64 | 785 | 0.79 | – | 600.00 | – | 600.00 | 512 | 600.00 |
| 13 | 4 | 480 | 2659 | 0.21 | 1252 | 37.16 | 1198 | 0.86 | 1145 | 1.08 | – | 600.00 | – | 600.00 | 809 | 600.00 |
| 13 | 4 | 636 | 3540 | 0.27 | 1506 | 44.25 | 1434 | 1.06 | 1409 | 1.51 | – | 600.00 | – | 600.00 | – | 600.00 |
| 13 | 4 | 806 | 4537 | 0.33 | 1769 | 49.08 | 1686 | 1.27 | 1686 | 1.75 | – | 600.00 | – | 600.00 | – | 600.00 |
| 13 | 5 | 337 | 2148 | 0.18 | 1291 | 34.85 | 942 | 0.70 | 853 | 0.87 | – | – | – | – | 599 | 600.00 |
| 13 | 5 | 665 | 4634 | 0.37 | 2277 | 57.29 | 1665 | 1.24 | 1546 | 1.94 | – | – | – | – | – | 600.00 |
| 13 | 5 | 980 | 6788 | 0.54 | 3092 | 76.62 | 2288 | 1.71 | 2155 | 2.76 | – | – | – | – | – | – |
| 13 | 5 | 1336 | 9385 | 0.82 | 3989 | 99.73 | 2855 | 2.04 | 2743 | 3.42 | – | – | – | – | – | – |
| 13 | 5 | 1664 | 11802 | 1.12 | 4689 | 121.57 | 3385 | 2.52 | 3203 | 4.09 | – | – | – | – | – | – |
| 13 | 6 | 556 | 4404 | 0.25 | 2459 | 73.43 | 1527 | 1.19 | 1377 | 1.33 | – | – | – | – | – | – |
| 13 | 6 | 1160 | 9332 | 0.71 | 4385 | 120.31 | 2694 | 2.58 | 2521 | 2.94 | – | – | – | – | – | – |
| 13 | 6 | 1690 | 13728 | 1.28 | 5917 | 158.31 | 3539 | 2.92 | 3351 | 4.46 | – | – | – | – | – | – |
| 13 | 6 | 2228 | 18178 | 1.96 | 7371 | 201.98 | 4247 | 4.40 | 4151 | 6.04 | – | – | – | – | – | – |
| 13 | 6 | 2808 | 23141 | 3.16 | 8715 | 252.52 | 4773 | 4.46 | 4773 | 8.19 | – | – | – | – | – | – |
| 13 | 7 | 819 | 7121 | 0.47 | 3823 | 110.50 | 2137 | 1.71 | 1879 | 2.21 | – | – | – | – | – | – |
| 13 | 7 | 1643 | 14560 | 1.33 | 6798 | 194.67 | 3609 | 2.92 | 3301 | 4.54 | – | – | – | – | – | – |
| 13 | 7 | 2506 | 22613 | 2.63 | 9874 | 285.00 | 4833 | 4.18 | 4562 | 8.85 | – | – | – | – | – | – |
| 13 | 7 | 3251 | 29287 | 4.25 | 12180 | 380.19 | 5625 | 4.43 | 5438 | 10.42 | – | – | – | – | – | – |
| 13 | 7 | 4095 | 37038 | 5.69 | 14580 | 418.87 | 6384 | 5.71 | 6258 | 14.13 | – | – | – | – | – | – |
| 13 | 8 | 1072 | 9838 | 0.81 | 4835 | 144.58 | 2628 | 1.92 | 2359 | 3.09 | – | – | – | – | – | – |
| 13 | 8 | 2151 | 19880 | 3.03 | 8785 | 239.21 | 4347 | 3.22 | 4029 | 5.76 | – | – | – | – | – | – |
| 13 | 8 | 3227 | 30539 | 5.39 | 12339 | 362.78 | 5770 | 4.21 | 5520 | 9.97 | – | – | – | – | – | – |
| 13 | 8 | 4360 | 41707 | 9.37 | 15605 | 486.82 | 6772 | 5.21 | 6652 | 13.80 | – | – | – | – | – | – |
| 13 | 8 | 5382 | 51675 | 13.83 | 18288 | 523.48 | 7305 | 6.41 | 7305 | 17.53 | – | – | – | – | – | – |
| 13 | 9 | 1298 | 12613 | 1.16 | 6372 | 185.78 | 3114 | 2.25 | 2780 | 3.38 | – | – | – | – | – | – |
| 13 | 9 | 2579 | 25354 | 3.59 | 11409 | 338.76 | 4965 | 3.74 | 4626 | 7.47 | – | – | – | – | – | – |
| 13 | 9 | 3925 | 39100 | 5.86 | 16087 | 555.62 | 6503 | 5.25 | 6255 | 11.49 | – | – | – | – | – | – |
| 13 | 9 | 5205 | 52050 | 14.10 | 20235 | 600.00 | 7532 | 5.77 | 7381 | 15.44 | – | – | – | – | – | – |
| 13 | 9 | 6526 | 65624 | 27.11 | 24201 | 600.00 | 7992 | 6.63 | 7976 | 18.89 | – | – | – | – | – | – |
| 13 | 10 | 1537 | 15310 | 1.82 | 7586 | 227.87 | 3502 | 2.48 | 3146 | 4.54 | – | – | – | – | – | – |
| 13 | 10 | 2943 | 30050 | 5.12 | 13219 | 409.48 | 5478 | 3.99 | 5085 | 8.28 | – | – | – | – | – | – |
| 13 | 10 | 4465 | 46300 | 10.53 | 18668 | 600.00 | 7060 | 5.30 | 6835 | 13.55 | – | – | – | – | – | – |
| 13 | 10 | 5964 | 62006 | 24.85 | 23575 | 600.00 | 8080 | 6.64 | 7985 | 17.70 | – | – | – | – | – | – |
| 13 | 10 | 7384 | 77213 | 38.71 | 28044 | 600.00 | 8253 | 7.16 | 8253 | 19.30 | – | – | – | – | – | – |
Table 3.
Low Autocorrelation Binary Sequences (LABS) instances
| Instances | Baselines | Ansatz | Binary linear programs | |||||||||||||
| Qiskit Depth | Qiskit CPU [s] | Tket Depth | Tket CPU [s] | Tempura Depth | Tempura CPU [s] | Q-Tempura Depth | Q-Tempura CPU [s] | HUBO_BLP Depth | HUBO_BLP CPU [s] | HUBO_BLP_TB Depth | HUBO_BLP_TB CPU [s] | HUBO_BLP_TBFM Depth | HUBO_BLP_TBFM CPU [s] | |||
| 5 | 4 | 5 | 25 | 0.07 | 21 | 0.41 | 16 | 0.04 | 15 | 0.07 | 9 | 29.53 | 10 | 0.89 | 13 | 0.42 |
| 5 | 4 | 7 | 35 | 0.02 | 29 | 0.39 | 20 | 0.01 | 20 | 0.02 | 11 | 600.00 | 11 | 0.90 | 14 | 0.44 |
| 6 | 4 | 7 | 35 | 0.02 | 29 | 0.44 | 23 | 0.01 | 22 | 0.02 | 10 | 600.00 | 11 | 4.91 | 15 | 1.05 |
| 6 | 4 | 11 | 50 | 0.02 | 42 | 0.71 | 29 | 0.01 | 29 | 0.02 | – | 600.00 | 14 | 18.16 | 19 | 1.37 |
| 6 | 4 | 13 | 65 | 0.02 | 52 | 0.96 | 33 | 0.01 | 31 | 0.02 | 29 | 600.00 | 15 | 7.43 | 21 | 1.78 |
| 7 | 4 | 9 | 45 | 0.02 | 37 | 0.59 | 29 | 0.01 | 28 | 0.02 | – | 600.00 | 12 | 33.40 | 18 | 1.90 |
| 7 | 4 | 15 | 65 | 0.02 | 55 | 0.97 | 41 | 0.02 | 37 | 0.03 | – | 600.00 | 16 | 600.00 | 26 | 3.00 |
| 7 | 4 | 19 | 94 | 0.02 | 81 | 1.52 | 55 | 0.02 | 48 | 0.04 | – | 600.00 | 18 | 600.00 | 32 | 7.77 |
| 7 | 4 | 22 | 109 | 0.02 | 89 | 1.60 | 61 | 0.02 | 53 | 0.03 | – | 600.00 | 21 | 187.70 | 32 | 8.19 |
| 8 | 4 | 11 | 55 | 0.02 | 45 | 0.70 | 34 | 0.02 | 32 | 0.03 | – | 600.00 | 12 | 88.33 | 22 | 6.14 |
| 8 | 4 | 19 | 80 | 0.02 | 68 | 1.26 | 51 | 0.03 | 48 | 0.04 | – | 600.00 | 18 | 600.00 | 31 | 5.51 |
| 8 | 4 | 25 | 121 | 0.02 | 104 | 2.02 | 71 | 0.03 | 63 | 0.04 | – | 600.00 | 26 | 600.00 | 42 | 142.24 |
| 8 | 4 | 31 | 143 | 0.02 | 117 | 2.23 | 81 | 0.04 | 76 | 0.05 | – | 600.00 | 64 | 600.00 | 49 | 115.41 |
| 8 | 4 | 34 | 170 | 0.02 | 131 | 2.60 | 83 | 0.04 | 78 | 0.05 | – | 600.00 | 72 | 600.00 | 48 | 14.60 |
| 10 | 4 | 15 | 75 | 0.02 | 61 | 0.95 | 44 | 0.03 | 41 | 0.06 | – | 600.00 | 14 | 600.00 | 28 | 9.42 |
| 10 | 4 | 27 | 110 | 0.02 | 94 | 1.83 | 75 | 0.05 | 66 | 0.07 | – | 600.00 | 52 | 600.00 | 45 | 17.44 |
| 10 | 4 | 37 | 167 | 0.02 | 148 | 2.90 | 117 | 0.10 | 96 | 0.14 | – | 600.00 | 100 | 600.00 | 61 | 48.74 |
| 10 | 4 | 49 | 203 | 0.03 | 171 | 3.60 | 140 | 0.07 | 128 | 0.11 | – | 600.00 | 129 | 600.00 | 79 | 148.14 |
| 10 | 4 | 58 | 271 | 0.03 | 226 | 4.60 | 162 | 0.09 | 148 | 0.14 | – | 600.00 | 153 | 600.00 | 92 | 211.14 |
| 10 | 4 | 66 | 300 | 0.03 | 239 | 5.33 | 180 | 0.09 | 166 | 0.12 | – | 600.00 | 165 | 600.00 | 100 | 600.00 |
| 10 | 4 | 70 | 326 | 0.03 | 248 | 5.85 | 185 | 0.10 | 173 | 0.19 | – | 600.00 | 178 | 600.00 | 99 | 600.00 |
| 13 | 4 | 21 | 105 | 0.02 | 85 | 1.38 | 59 | 0.10 | 56 | 0.15 | – | 600.00 | 49 | 600.00 | 36 | 40.82 |
| 13 | 4 | 39 | 155 | 0.02 | 133 | 2.64 | 105 | 0.12 | 96 | 0.17 | – | 600.00 | 78 | 600.00 | 60 | 61.19 |
| 13 | 4 | 55 | 230 | 0.03 | 205 | 4.44 | 175 | 0.23 | 161 | 0.23 | – | 600.00 | 129 | 600.00 | 91 | 235.33 |
| 13 | 4 | 76 | 293 | 0.03 | 249 | 5.63 | 232 | 0.19 | 208 | 0.26 | – | 600.00 | 189 | 600.00 | 123 | 542.26 |
| 13 | 4 | 94 | 425 | 0.04 | 360 | 7.38 | 292 | 0.26 | 259 | 0.34 | – | 600.00 | – | 600.00 | 159 | 600.00 |
| 13 | 4 | 114 | 475 | 0.04 | 390 | 8.50 | 340 | 0.27 | 317 | 0.34 | – | 600.00 | – | 600.00 | 193 | 600.00 |
| 13 | 4 | 130 | 538 | 0.04 | 440 | 10.88 | 414 | 0.34 | 380 | 0.36 | – | 600.00 | – | 600.00 | 245 | 600.00 |
Table 1 (PDF p. 26).
References
- [1]Acuaviva A, Acuaviva A, Acuaviva P (2026) CNOT-Distance is NP-complete under all-to-all connectivity. URL https://arxiv.org/abs/2608.03825.
- [2]Amy M, Azimzadeh P, Mosca M (2018) On the controlled-not complexity of controlled-not–phase circuits. Quantum Science and Technology 4(1):015002, URL http://dx.doi.org/10.1088/2058-9565/aad8ca.
- [3]Arora S, Barak B (2009) Computational complexity: a modern approach (Cambridge University Press).
- [4]Bataille M (2022) Quantum circuits of cnot gates: optimization and entanglement. Quantum Information Processing 21(7):269.DOI
- [5]Botea A, Kishimoto A, Marinescu R (2018) On the complexity of quantum circuit compilation. Proceedings of the International Symposium on Combinatorial Search, volume 9, 138–142.
- [6]Clausen JV, Crama Y, Lusby R, Rodríguez-Heck E, Ropke S (2024) Solving unconstrained binary polynomial programs with limited reach: Application to low autocorrelation binary sequences. Computers & Operations Research 165:106586.
- [7]De Brugière TG, Baboulin M, Valiron B, Martiel S, Allouche C (2021) Gaussian elimination versus greedy methods for the synthesis of linear reversible circuits. ACM Transactions on Quantum Computing 2(3):1–26.DOI
- [8]Drăgoi S, Baiardi A, Egger DJ (2026) Approximate quadratization of high-order hamiltonians for combinatorial quantum optimization. Physical Review Research 8(2):023159.DOI
- [9]Farhi E, Goldstone J, Gutmann S (2014) A quantum approximate optimization algorithm. arXiv preprint arXiv:1411.4028 .arxiv.org/abs/1411.4028
- [10]Gavrielov N, Gutman S, Garion S (2024) Linear circuit synthesis using weighted steiner trees. Quantum Information and Computation 24(9&10):721–733.arxiv.org/abs/2408.04060
- [11]Glos A, Krawiec A, Zimborás Z (2022) Space-efficient binary optimization for variational quantum computing. npj Quantum Information 8(1):1–8.DOI
- [12]Herrman R, Lotshaw PC, Ostrowski J, Humble TS, Siopsis G (2022) Multi-angle quantum approximate optimization algorithm. Scientific Reports 12(1):6781.DOI
- [14]IBM Quantum (2019) Qiskit: An Open-source Framework for Quantum Computing.
- [15]Jung J, Choi IC (2025) A new multicommodity network flow model and branch and cut for optimal quantum boolean circuit synthesis. INFORMS Journal on Computing 37(1):42–62.DOI
- [16]Koch F, Panahiyan S, Mukherjee R, Doetsch J, Jaksch D (2026) Resource-efficient quantum optimization via higher-order encoding. EPJ Quantum Technology .DOI
- [17]Laplace Mermoud D, Simonetto A, Elloumi S (2026) Variational quantum algorithms for permutation-based combinatorial problems: Optimal ansatz generation with applications to quadratic assignment problems and beyond. Quantum 10:1998, ISSN 2521-327X, URL http://dx.doi.org/10.22331/q-2026-02-09-1998.
- [18]Leven D, Galil Z (1983) Np completeness of finding the chromatic index of regular graphs. Journal of Algorithms 4(1):35–44.DOI
- [19]Madden L, Simonetto A (2022) Best approximate quantum compiling problems. ACM Transactions on Quantum Computing 3(2):1–29.arxiv.org/abs/2106.05649
- [20]Mandal A, Roy A, Upadhyay S, Ushijima-Mwesigwa H (2020) Compressed quadratization of higher order binary optimization problems. Proceedings of the 17th ACM International Conference on Computing Frontiers, 126–131.arxiv.org/abs/2001.00658
- [21]Markov K, Patel I, Hayes J (2008) Optimal synthesis of linear reversible circuits. Quantum Information and Computation 8(3&4):0282–0294.
- [22]Maslov D (2007) Linear depth stabilizer and quantum fourier transformation circuits with no auxiliary qubits in finite-neighbor quantum architectures. Physical Review A – Atomic, Molecular, and Optical Physics 76(5):052310.DOI
- [24]Moro L, Paris MG, Restelli M, Prati E (2021) Quantum compiling by deep reinforcement learning. Communications Physics 4(1):178.DOI
- [25]Nagarajan H, Lockwood O, Coffrin C (2021) Quantumcircuitopt: An open-source framework for provably optimal quantum circuit design. 2021 IEEE/ACM Second International Workshop on Quantum Computing Software (QCS), 55–63 (IEEE).arxiv.org/abs/2111.11674
- [26]Nagarajan H, Szabo Z (2025) Provably optimal quantum circuits with mixed-integer programming. arXiv preprint arXiv:2510.00649 .arxiv.org/abs/2510.00649
- [27]Nannicini G, Bishop LS, Günlük O, Jurcevic P (2022) Optimal qubit assignment and routing via integer programming. ACM Transactions on Quantum Computing 4(1):1–31.arxiv.org/abs/2106.06446
- [28]Nielsen MA, Chuang I (2002) Quantum computation and quantum information (American Association of Physics Teachers).DOI
- [29]Rehfeldt D, Koch T, Shinano Y (2023) Faster exact solution of sparse MaxCut and QUBO problems. Mathematical Programming Computation 15(3):445–470, ISSN 1867-2957, URL http://dx.doi.org/10.1007/s12532-023-00236-6.
- [30]Romero SV, Visuri AM, Cadavid AG, Simen A, Solano E, Hegade NN (2025) Bias-field digitized counterdiabatic quantum algorithm for higher-order binary optimization. Communications Physics 8(1):348.DOI
- [31]Rotman JJ (1999) An Introduction to the Theory of Groups, volume 148 (Springer Science & Business Media).
- [32]Seeley JT, Richard MJ, Love PJ (2012) The Bravyi-Kitaev transformation for quantum computation of electronic structure. The Journal of chemical physics 137(22):224109.DOI
- [33]Shaydulin R, Li C, Chakrabarti S, DeCross M, Herman D, Kumar N, Larson J, Lykov D, Minssen P, Sun Y, Alexeev Y, Dreiling JM, Gaebler JP, Gatterman TM, Gerber JA, Gilmore K, Gresh D, Hewitt N, Horst CV, Hu S, Johansen J, Matheny M, Mengle T, Mills M, Moses SA, Neyenhuis B, Siegfried P, Yalovetzky R, Pistoia M (2024) Evidence of scaling advantage for the quantum approximate optimization algorithm on a classically intractable problem. Science Advances 10(22), ISSN 2375-2548, URL http://dx.doi.org/10.1126/sciadv.adm6761.
- [34]Shende VV, Markov IL, Bullock SS (2004) Minimal universal two-qubit controlled-NOT-based circuits. Phys. Rev. A 69:062321, URL http://dx.doi.org/10.1103/PhysRevA.69.062321.
- [35]Sivarajah S, Dilkes S, Cowtan A, Simmons W, Edgington A, Duncan R (2020) t|ket⟩: a retargetable compiler for NISQ devices. Quantum Science and Technology 6(1):014003.DOI
- [38]Vandaele V, Martiel S, Goubault de Brugière T (2022) Phase polynomials synthesis algorithms for nisq architectures and beyond. Quantum Science & Technology 7(4):045027.DOI
- [39]Verchère Z, Elloumi S, Simonetto A (2023) Optimizing Variational Circuits for Higher-Order Binary Optimization. IEEE International Conference on Quantum Computing and Engineering (QCE) (Seattle (WA), United States), URL https://hal.science/hal-04174561, 6 pages plus references. Conference: IEEE QCE 2023.arxiv.org/abs/2307.16756
- [40]Webster M, Koutsoumpas S, Browne DE (2026) Heuristic and Optimal Synthesis of CNOT and Clifford Circuits. Quantum 10.DOI
- [41]Welch J, Greenbaum D, Mostame S, Aspuru-Guzik A (2014) Efficient quantum circuits for diagonal unitaries without ancillas. New Journal of Physics 16(3):033040.
- [42]Yan G, Wu W, Chen Y, Pan K, Lu X, Zhou Z, Wang Y, Wang R, Yan J (2024) Quantum circuit synthesis and compilation optimization: Overview and prospects. arXiv preprint arXiv:2407.00736.arxiv.org/abs/2407.00736
- [43]Younis E, Iancu CC, Lavrijsen W, Davis M, Smith E (2021) Berkeley quantum synthesis toolkit (bqskit) v1. [Computer Software] https://doi.org/10.11578/dc.20210603.2, URL http://dx.doi.org/10.11578/dc.20210603.2.
- [44]Zhou L, Wang ST, Choi S, Pichler H, Lukin MD (2020) Quantum approximate optimization algorithm: Performance, mechanism, and implementation on near-term devices. Physical Review X 10(2):021067.
- [45]Zylberman J, Nzongani U, Simonetto A, Debbasch F (2025) Efficient quantum circuits for non-unitary and unitary diagonal operators with space-time-accuracy trade-offs. ACM Transactions on Quantum Computing 6(2):1–43.arxiv.org/abs/2404.02819







