Skip to main content
QUICK REVIEW

[Paper Review] Compiling Quantum Regular Language States

Armando Bellante, Reinis Irmejs|arXiv (Cornell University)|Feb 2, 2026
Quantum Computing Algorithms and ArchitectureComputer Science0 citations
TL;DR

The paper presents a quantum state-preparation compiler for regular language states (RLS) that uses a DFA-to-MPS intermediate representation and provides hardware-aware backends SeqRLSP and TreeRLSP to realize efficient state preparation.

ABSTRACT

State preparation compilers for quantum computers typically sit at two extremes: general-purpose routines that treat the target as an opaque amplitude vector, and bespoke constructions for a handful of well-known state families. We ask whether a compiler can instead accept simple, structure-aware specifications while providing predictable resource guarantees. We answer this by designing and implementing a quantum state-preparation compiler for regular language states (RLS): uniform superpositions over bitstrings accepted by a regular description, and their complements. Users describe the target state via (i) a finite set of bitstrings, (ii) a regular expression, or (iii) a deterministic finite automaton (DFA), optionally with a complement flag. By translating the input to a DFA, minimizing it, and mapping it to an optimal matrix product state (MPS), the compiler obtains an intermediate representation (IR) that exposes and compresses hidden structure. The efficient DFA representation and minimization offloads expensive linear algebra computation in exchange of simpler automata manipulations. The combination of the regular-language frontend and this IR gives concise specifications not only for RLS but also for their complements that might otherwise require exponentially large state descriptions. This enables state preparation of an RLS or its complement with the same asymptotic resources and compile time. We outline two hardware-aware backends: SeqRLSP, which yields linear-depth, ancilla-free circuits for linear nearest-neighbor architectures via sequential generation, and TreeRLSP, which achieves logarithmic depth on all-to-all connectivity via a tree tensor network. We prove depth and gate-count bounds scaling with the system size and the state's maximal Schmidt rank, and we give explicit compile-time bounds that expose the benefit of our approach. We implement and evaluate the pipeline.

Motivation & Objective

  • Introduce a regular description for quantum state preparation (regex, DFA, or finite set) with an optional complement flag.
  • Develop an end-to-end compiler pipeline that maps regular descriptions to a DFA/MPS intermediate representation (IR).
  • Provide hardware-aware backends (SeqRLSP and TreeRLSP) to realize MPS-derived circuits on different connectivity graphs.
  • Prove resource bounds for circuit depth and gate counts that depend on system size and Schmidt rank, and analyze compile-time complexity.

Proposed method

  • Canonicalize user input to a minimal DFA.
  • Translate the DFA into an MPS to expose and compress structure.
  • Refine MPS tensors to optimize quantum operations and derive circuit realizations.
  • Implement two backends: SeqRLSP for linear nearest-neighbor architectures and TreeRLSP for all-to-all connectivity.
  • Prove bounds on depth and gates in terms of N and maximal Schmidt rank chi, and relate complements to base descriptions.
Figure 1 : (a) A schematic illustration of the general setting. It starts with a user, possibly without prior knowledge of the state’s name or structure, providing a description of the desired state—such as a set of strings, a regex, or a DFA, and (optionally) a complement flag—to the classical comp
Figure 1 : (a) A schematic illustration of the general setting. It starts with a user, possibly without prior knowledge of the state’s name or structure, providing a description of the desired state—such as a set of strings, a regex, or a DFA, and (optionally) a complement flag—to the classical comp

Experimental results

Research questions

  • RQ1Can a structure-aware, regular-language-based description of target quantum states be compiled with predictable resource guarantees?
  • RQ2How can DFA minimization and MPS representations be leveraged to efficiently synthesize circuits for RLS and their complements?
  • RQ3What are the hardware-aware resource implications (depth, gate count, ancillae) for SeqRLSP and TreeRLSP backends?
  • RQ4Do complements incur at most a constant increase in entanglement (Schmidt rank) and hence same asymptotic quantum cost as base descriptions?
  • RQ5How does the DFA/MPS IR compare to general-purpose and specialized compilers in practice?

Key findings

  • A DFA-minimized, regular-language frontend can expose structure that enables compact MPS representations.
  • The compiler provides analogous resources for RLS and their complements, keeping asymptotic costs comparable.
  • Two backends yield different depth trade-offs: SeqRLSP achieves linear depth, TreeRLSP achieves logarithmic depth.
  • Resource bounds scale with system size and maximal Schmidt rank, with compile-time bounds demonstrated.
  • Evaluation benchmarks include Dicke, W states, random uniform superpositions, and complements, against baseline methods.
Figure 2 : Illustration of the left-to-right sequential SVD procedure. A right-to-left SVD sweep is performed analogously, by mirroring the procedure from the opposite boundary. Each resulting tensor $A_{[n]}^{L}$ is an isometry of size $\chi_{n-1}\times\chi_{n}$ , with $\chi_{n}\leq\min\{\chi,2^{n}
Figure 2 : Illustration of the left-to-right sequential SVD procedure. A right-to-left SVD sweep is performed analogously, by mirroring the procedure from the opposite boundary. Each resulting tensor $A_{[n]}^{L}$ is an isometry of size $\chi_{n-1}\times\chi_{n}$ , with $\chi_{n}\leq\min\{\chi,2^{n}

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.