arXiv:2609.01771quant-phSep 2026

Manuscript Offprint

arXiv:2609.01771

GadIR: A Spatial-Topology Preserving Compiler for Quantum Many-Body Systems Simulation

Xiangyu Ren, Yuexun Huang, Zhaohui Yang, Yuchen Zhu, Tsung-Wei Huang, Tsung-Yi Ho, Zhiding Liang, Antonio Barbalace

Abstract

Simulating quantum many-body systems has been one of the most important applications of quantum computation. For simulation, the Hamiltonian of a physical system is compiled into quantum programs with native instructions for quantum hardware. In previous works, the Hamiltonian is represented as Pauli strings, then compiled and optimized based on the quantum circuit model. Such representation paradigm neglects the spatial topology of original physical models, which is vital information to reducing the overhead of compiling many-body systems Hamiltonians.

To address such neglect, we introduce a spatial-topology preserving compiler for quantum many-body simulation. Using Pauli gadgets as the representations of the Hamiltonian, we introduce our intermediate representation – GadIR, to preserve the spatial-topology information of original physical models. Our compiler frontend performs the group reduction algorithm based on Pauli gadget model, which is a hardware-independent optimization. Our compiler backend performs trotterization and scheduling on Pauli gadgets, then synthesizes the Pauli gadgets into hardware-native quantum programs. We evaluate our compiler on all the canonical quantum many-body system models, while achieving a significant reduction on compilation overhead regarding four major quantum architectures. Overall, our spatial-topology preserving IR exploits the compilation optimization space for quantum many-body systems Hamiltonian.

1 Introduction

Among the various applications of quantum computing, simulating physical systems has long stood out as a primary motivation [30]. Among various physical systems, the simulations of physical many-body systems are gaining prevalence, especially after their utility has been demonstrated on IBM quantum computers [61]. The quantum many-body simulation formulates a physical system on specific spatial topology, such as an n-dimensional lattice. Taking the Bose-Hubbard model [28] as an example, the bosons are positioned at the sites of a 2D lattice, while they only interact with their neighboring bosons (box (1) of Figure 1). This topology is applicable to physical models of bosons and fermions – two fundamental classes of particles. The core target of quantum many-body simulation is to simulate above physical models on quantum computers.

Problem Definition. In a physical model, the interactions between particles are formulated as Hamiltonian evolution, then the Hamiltonian can be approximated by quantum gates. Specifically, when a physical model is encoded as the Hamiltonian H, its evolution over time t can be simulated by the operator U=e−iHtU = e^{-iHt}. A compiler takes in the operator U and compiles it into a hardware-native quantum program to be executed on the target hardware. In this work, our main problem is compiling the Hamiltonians of physical many-body models into hardware-native programs, for different quantum hardware architectures.

Prior Works. A series of research projects have been working on similar problems. Paulihedral [76] and 2QAN [68] leverage the permutation of Hamiltonian terms, to explore gate cancellation or SWAP reduction by reordering the Pauli strings. Tetris [58] improves gate cancellation technique and reduces hardware mapping cost. QuCLEAR [81] introduces a Clifford extraction method to reduce Pauli operators, based on the weak commutation of Clifford gates. Generally, these compilers use flattened Pauli strings as their intermediate representation (IR), optimizing mainly for circuit-level metrics such as two-qubit-gate count, circuit depth, or routing overhead.

Challenge 1: Preserving topology of physical model. As the Hamiltonian H derives from a physical model with specific topology of particles, it contains spatial-topology information about the model structure. Such information assists in reducing compilation overhead, which will be elaborated in Section 4. However, prior works neglect the spatial-topology information in the Hamiltonian when they represent it with Pauli strings. When represented as Pauli strings, the Hamiltonian H is flattened into a linear sequence of Pauli operators, losing the spatial positional information of Pauli operators from original physical model. This process is illustrated with examples in the box (2) of Figure 1.

Challenge 2: Hardware-independent optimization. Prior works reduce circuit compilation overhead – mainly based on superconducting (SC) hardware settings [58, 68, 76, 81]. This process is illustrated in the box (4) of Figure 1. Despite the efforts, those strategies they proposed are often incompatible with other quantum computing hardware, e.g., measurement-based quantum computation (MBQC), because it has a naturally different computation

MICRO 2026, Athens, Greece

  1. ACM ISBN 978-X-XXXX-XXXX-X/XX/XX

https://doi.org/XXXXXXX.XXXXXXX

Xiangyu Ren ∗1,7^{*1,7}, Yuexun Huang 2^{2}, Zhaohui Yang 3^{3}, Yuchen Zhu 4^{4}, Tsung-Wei Huang 5^{5}, Tsung-Yi Ho 6^{6}, Zhiding Liang ∗6^{*6}, Antonio Barbalace 1^{1}

Figure

Figure 1: Comparison between our proposed framework and the frameworks in previous research [58, 68, 76, 81].

model. Hence, a hardware-independent optimization that can be applied to diverse hardware architectures is highly desirable.

Solution: Spatial-topology preserving IR. To address the challenges mentioned above, we introduce a Pauli gadget-based intermediate representation – GadIR, and implement the compiler based on GadIR. The structure of GadIR is designed to preserve the spatial topology of Hamiltonians derived from physical models, while preserving such information throughout the compilation pipeline. The Pauli gadgets in GadIR have a graph structure corresponding to the physical model (shown in box (5) of Figure 1), inspired by graph-based IR in classical compiler techniques [9, 18, 73]. The compiler frontend performs Pauli gadget group reduction on GadIR. The compiler backend performs hardware-independent trotterization and scheduling optimization, then synthesizes GadIR into hardware-native programs. Both frontend and backend contribute to reducing compilation overhead, with the following designs:

Frontend. GadIR represents the Hamiltonian operator as Pauli gadget [21], which is a special graph structure of ZX-diagram [27]. Specifically, compared to Pauli strings that linearly index the qubits, GadIR constructs a graph retaining the original topology of physical many-body models, while Pauli gadgets are anchored on this topology. Based on the topology information, our frontend optimizer performs Pauli gadget reduction, by eliminating certain patterns on the gadgets to reduce Hamiltonian operators. In contrast to previous works [58, 76] that apply gate cancellation to a pair of Pauli strings each time, our method can perform reduction on a large set of gadgets simultaneously, extending the optimization space.

Backend. The backend performs Trotterization and scheduling directly on GadIR in ZX-diagram form, while the optimizations are all hardware-independent. Then, the backend synthesizes GadIR into hardware-native programs, while the preserved topology information guides the compiler to find an appropriate qubit initial placement. Compared to prior works that generate a gate-based logical circuit and synthesize it into a physical circuit for SC hardware, our backend supports multiple hardware architectures.

Although Pauli gadgets have been used to synthesize quantum chemistry circuits [21, 22], we are the first to use them for designing an IR and preserving model topology. Our major contributions can be summarized as follows:

(1) For quantum many-body systems simulation, we propose a Pauli gadget-based IR to represent Hamiltonian terms, while preserving the spatial-topology information of original physical model. To the best of our knowledge, it is the first quantum compiler preserving Hamiltonian topology.

(2) In compiler frontend, we introduce a novel optimization strategy, which is the Pauli gadget group reduction, based on our uniquely designed IR. The strategy explores more chances for compilation overhead reduction than gate canceling [58, 76] and Clifford extraction [81]. Furthermore, GadIR is hardware-agnostic and can be directly reused for multiple architectures, moving beyond conventional gate-based NISQ synthesis.

(3) In compiler backend, we perform hardware-independent scheduling using ZX-diagrams, reducing circuit depth. Then we integrate hardware-specific optimizations in synthesis, utilizing preserved topology information.

We evaluate our compiler framework on a wide range of benchmarks covering all canonical many-body models: spin, bosonic, fermionic and lattice-gauge. The evaluations are conducted on multiple hardware architectures, including SC architectures from IBM and Google devices, zoned-architecture neutral-atom, photonic MBQC on silicon quantum dots, and FTQC with lattice surgery scheme. The results show that our compiler achieves significant reduction of dominant compilation overheads for each architecture. Compared to the state-of-the-art QuCLEAR, we reduce the overheads to 0.56×0.56\times (#2Q gate for SC), 0.87×0.87\times (infidelity for neutral-atom), 0.85×0.85\times (#non-Clifford for FTQC), and 0.75×0.75\times (#emitter-entanglement for MBQC) of QuCLEAR on average. While our compiler is primarily designed for quantum many-body simulation, results show that it also works well on other quantum simulation problems, e.g., quantum chemistry. Furthermore, it is orthogonal to particle-to-qubit encoding techniques, e.g. Fermihedral [82] and HATT [83].

References (27)