Manuscript Offprint

arXiv:2609.05737

SAQC: A SAT-Aware Compilation Framework for QAOA-Based Quantum Optimization

Till Schnittka, Julie Maria Raju, Abhoy Kole, Rolf Drechsler

Till Schnittka Cyber-Physical Systems DFKI GmbH Bremen, Germany till.schnittka@dfki.de

Julie Maria Raju Institute of Computer Science University of Bremen Bremen, Germany jraju@uni-bremen.de

Abhoy Kole Cyber-Physical Systems DFKI GmbH Bremen, Germany abhoy.kole@dfki.de

Rolf Drechsler Institute of Computer Science University of Bremen / DFKI GmbH Bremen, Germany drechsler@uni-bremen.de

Abstract—The Quantum Approximate Optimization Algorithm (QAOA) is a promising variational approach for solving Boolean satisfiability (SAT) problems. Existing SAT-to-QAOA workflows first translate Boolean formulas into penalty Hamiltonians before applying generic quantum compilation, thereby discarding SAT-specific information such as clause structure, logical operators, and variable dependencies. Consequently, subsequent compiler optimizations cannot exploit the underlying Boolean formulation. This paper presents SAQC, a SAT-aware compilation framework that introduces a SAT Intermediate Representation (SIR) to preserve Boolean structure during compilation. The proposed framework supports both CNF and XOR-extended CNF (eCNF) formulations and performs SAT-aware optimizations including clause rewriting, dependency analysis, and clause scheduling prior to quantum lowering. Building on the optimized SIR, SAQC provides a unified framework for both penalty Hamiltonian generation and direct clause-to-ansatz synthesis, together with ansatz optimizations based on relative-phase decomposition, ancilla-assisted synthesis, and dynamic uncomputation. Experimental results demonstrate significant reductions in circuit depth, two-qubit gate count, and compilation time compared with conventional Hamiltonian-based workflows while remaining compatible with existing quantum compilation frameworks.

Index Terms—Quantum Computing, QAOA, Quantum Compilation, Boolean Satisfiability (SAT), Intermediate Representation

I. INTRODUCTION

Boolean satisfiability (SAT) is one of the most fundamental NP-complete problems [1] and forms the computational backbone of numerous Electronic Design Automation (EDA) tasks, including formal verification, equivalence checking, automatic test generation, logic synthesis, and optimization [2], [3]. While modern classical SAT solvers have achieved remarkable performance on many practical instances [4], [5], the exponential worst-case complexity of SAT continues to motivate the exploration of alternative computational paradigms [6], [7].

Among emerging quantum approaches, the Quantum Approximate Optimization Algorithm (QAOA) [6] has attracted considerable attention as a promising variational algorithm for solving combinatorial optimization problems on noisy intermediate-scale quantum (NISQ) devices [8]. Recent works have demonstrated QAOA formulations for SAT and more general constraint satisfaction problems by mapping Boolean formulas into cost Hamiltonians whose ground states correspond to satisfying assignments [9]–[11]. These studies pri-

Figure

Fig. 1: Existing SAT-QAOA Compilation Flow.

marily focus on Hamiltonian construction, parameter optimization, mixer design, or theoretical performance analysis [12], [13]. However, comparatively little attention has been devoted to the compilation of SAT-derived QAOA circuits. Existing SAT-QAOA workflows (see Fig. 1) translate Boolean formulas into cost Hamiltonians, from which quantum circuits are synthesized and optimized using generic quantum compilers such as Qiskit [14]. Although mathematically equivalent, the Hamiltonian representation no longer explicitly preserves the Boolean semantics of the original SAT instance. Consequently, compiler optimizations operate solely at the quantum gate level and cannot exploit SAT-specific structural information.

To address this limitation, we propose SAQC, a SAT-aware compilation framework that introduces a SAT Intermediate Representation (SIR) to preserve Boolean semantics prior to Hamiltonian generation. Following the compiler design philosophy exemplified by intermediate representations such as MLIR [15], the proposed SIR enables SAT-aware analyses and transformations before lowering Boolean formulas to Hamiltonians, thereby exposing optimization opportunities that are unavailable in conventional SAT-to-QAOA workflows. Specifically, SAQC provides:

  1. a unified SIR for both CNF and XOR-extended CNF (eCNF) formulations;

  2. SAT-aware analysis, including clause rewriting and dependency analysis;

  3. optimized Hamiltonian generation and gate synthesis;

  4. SAT-aware scheduling for generating depth-efficient QAOA circuits; and

  5. a comprehensive experimental evaluation assessing the scalability of the proposed framework and the quality of the generated Hamiltonians and QAOA ansätze.

The remainder of this paper is organized as follows. Section II provides the necessary background. Section III presents the proposed SAQC framework. Section IV reports the experimental evaluation. Finally, Section V concludes the paper.

II. BACKGROUND

References (20)