arXiv:2610.25138quant-phOct 2026

Manuscript Offprint

arXiv:2610.25138

On the Complexity of Level-Synchronized Tree Automata for Quantum Circuit Verification

Michael Blondin, Samy Chady Khoumsi-Kasmi, Guillermo A. Pérez, Marnix Suilen

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

Michael Blondin 1^{1}, Samy Chady Khoumsi-Kasmi 1^{1}, Guillermo A. Pérez 2^{2}, and Marnix Suilen 2^{2}

1^{1} Université de Sherbrooke, Canada

2^{2} University of Antwerp, Belgium

Abstract. Reliable quantum computation requires methods for verifying quantum circuits. Level-synchronized tree automata (LSTAs) were recently introduced to represent sets of quantum states for this purpose. We study LSTAs along two axes relevant to verification: the complexity of their decision problems and the size of their representations under circuit operations. We prove that acyclic LSTAs have NP-complete nonemptiness and Π2P\Pi_{2}^{P}-complete language inclusion, and that general language inclusion is EXPSPACE-complete. We further prove inherent quadratic representation growth under individual quantum gates in a fixed qubit order, and give an adjacent-qubit reordering construction that preserves level synchronization. These results clarify the scope of applicability of the automata-theoretic toolbox for quantum circuit verification.

Keywords: Tree automata, quantum computing, formal verification

1 Introduction

Verifying a quantum circuit requires reasoning about the states it can produce from its allowed inputs. An n-qubit state has 2n2^n amplitudes, and a specification may describe many such states at once. Figure 1 illustrates how one such quantum state can be represented as a perfect binary tree. Level-synchronized tree automata (LSTAs) represent sets of quantum states by sharing subtrees and coordinating choices across each tree level [1]. Synchronization encodes dependencies between distant branches that ordinary tree automata can represent only at an exponential cost (see, e.g., [1, Ex. 3]).

Figure

Fig. 1: The quantum state ∣++⟩=12(∣00⟩+∣01⟩+∣10⟩+∣11⟩)|++\rangle = \frac{1}{2}(|00\rangle + |01\rangle + |10\rangle + |11\rangle) as a perfect binary tree. Dashed and solid edges encode 0 and 1 values.

These representations underlie AUTOQ, an LSTA-based tool for quantum-circuit verification, which supports single-qubit and controlled-gate transformations with at most quadratic representation growth [1].

M. Blondin et al.

Computing a specified output amplitude of a circuit, known as exact strong simulation, is a closely related problem. For example, de Colnet et al. [6] express amplitudes as weighted sums over Boolean path variables and exploit the structure of the resulting interaction graph. Instead, LSTA-based verification symbolically simulates the circuit: starting from an LSTA representing the allowed inputs, it transforms the automaton for each successive gate. It then checks whether the resulting language is included in that of an LSTA representing the postcondition. In this setting, representation size determines the cost of each gate transformation and of the final inclusion check. Tsai et al. [18] use qubit reordering to compile pre- and postconditions into LSTAs whose size is linear in the number of qubits for fixed specification parameters. The resulting smaller automata also reduce verification time. This motivates our study of representation growth under gates, the cost of reordering, and the complexity of inclusion.

The automata used for quantum verification have also developed beyond the original LSTA model. AUTOQ 2.0 uses symbolic amplitudes to handle measurement and classical control flow with supplied loop invariants [5]. More recently, synchronized weighted tree automata (SWTAs) combine level synchronization with weighted transitions and associate quantum states with sequences of colors (called choices here) [2]. Their functional-inclusion test compares the outputs associated with the same color sequence.

Contributions. Language inclusion for LSTAs is known to be PSPACE-hard and in EXPSPACE [1]. For circuit verification with a fixed number of qubits, all state trees have the same height, so acyclic LSTAs suffice to represent the relevant sets of quantum states. We settle the complexity of nonemptiness and inclusion for acyclic LSTAs and of inclusion for general LSTAs. We also establish lower bounds on representation growth under quantum gates, and give an efficient construction for swapping adjacent qubits in the qubit order. Specifically:

  1. For acyclic LSTAs, nonemptiness is NP-complete (Theorem 6) and inclusion is Π2P\Pi_2^P-complete (Theorem 11). By contrast, nonemptiness for general LSTAs was already known to be PSPACE-complete [1].

  2. Language inclusion for LSTAs is EXPSPACE-complete (Theorem 12). Hardness already holds with one initial state and singleton choice sets.

  3. In a fixed qubit order, a Hadamard gate or a controlled-NOT gate whose control follows its target can force every LSTA accepting the output tree to have quadratically many states relative to the input representation size (Propositions 15 and 16). The latter extends to controlled-U gates, for every fixed non-diagonal one-qubit unitary U (Corollary 17).

  4. We show that swapping two adjacent qubits in the qubit order of a layered LSTA is efficient, as with adjacent-variable swaps in binary decision diagrams (BDDs) [16]. The construction takes linear time in the automaton size for a fixed number of available choices (Proposition 18).

We work throughout with perfect binary trees, as required to represent fixed-length quantum state vectors. Section 2.4 also gives a self-contained nonclosure proof for this tree domain. Classical variable-order sensitivity transfers from

BDDs to LSTAs through residual counting [4,11], as explained in Section 5.2. Together with the gate lower bounds, it motivates careful selection of qubit orders and transformation sequences. In the conclusion (Section 6), we identify blocks that could be applied in linear time and discuss how a verifier may combine them with dynamic reordering and evaluation from either end of a circuit. Due to space constraints, some proofs and examples are deferred to the appendix.