Symbolic Hamiltonian Compiler for Hybrid Qubit-Boson Processors

Ethan Decker, Erik Gustafson, Evan McKinney, Alex K. Jones, Lucas Goetz, Ang Li, Alexander Schuckert, Samuel Stein, Gushu Li, Eleanor Crane · DOI

Abstract

Quantum simulation of the interactions of fermions and bosons -- the fundamental particles of nature -- is essential for modeling complex quantum systems in material science, chemistry and high-energy physics and has been proposed as a promising application of fermion-boson quantum computers, which overcome the overhead encountered in mapping fermions and bosons to qubits. However, compiling the simulation of specific fermion-boson Hamiltonians into the natively available fermion-boson gate set is challenging. In particular, the large local dimension of bosons renders matrix-based compilation methods, as used for qubits and in existing tools such as Bosonic Qiskit or OpenFermion, challenging. We overcome this issue by introducing a novel symbolic compiler based on matrix-free symbolic manipulation of second quantised Hamiltonians, which automates the decomposition of fermion-boson second quantized problems into qubit-boson instruction set architectures. This integration establishes a comprehensive pipeline for simulating quantum systems on emerging qubit-boson and fermion-boson hardware, paving the way for their large-scale usage.

Introduction

Simulating fundamental interactions—critical for breakthroughs in materials science, chemistry, and high-energy physics—requires modeling fermions (e.g., electrons) and bosons (e.g., photons or phonons). While fermions map relatively efficiently to qubits (2-level systems), bosons possess an infinite state space. Mapping a single bosonic site to a traditional qubit-based quantum computer requires at least $\log_2(n)$ qubits, where $n$ is the boson state cutoff, leading to significant gate overhead.

To address this, "qubit-boson" hardware has emerged, allowing direct manipulation of bosonic modes alongside qubits. However, programming these devices remains difficult. Existing software development kits (SDKs) like Qiskit or OpenFermion rely on matrix-based compilation, which becomes computationally intractable for bosons due to their large local dimensions. This often forces researchers to manually compile Hamiltonians into low-level gate sequences, a process requiring deep hardware expertise and limiting the accessibility of hybrid quantum processors.

Methodology: A Matrix-Free Symbolic Compiler

The proposed solution is a matrix-free, symbolic compiler that bypasses the construction of massive Hamiltonian matrices by manipulating the algebraic symbols of second-quantized operators. The compilation pipeline is divided into three primary stages:

  1. Parse: The compiler takes a high-level Hamiltonian as input. It maps fermionic operators to qubits via transformations like Jordan-Wigner and applies a specialized normal ordering algorithm. This ordering arranges operators (number, qubit, then ladder operators) to simplify subsequent steps.
  2. Transform: The time-evolution operator is decomposed using Trotterization. The compiler then applies exact mathematical identities for Density and Pauli factorization to isolate operator types. Finally, the Baker-Campbell-Hausdorff (BCH) formula is used with an ancilla qubit to decompose complex products of creation and annihilation operators.
  3. Generate: The resulting symbolic representation is mapped to a universal qubit-boson Instruction Set Architecture (ISA), producing machine-ready code.
The symbolic compiler pipeline, illustrating the Parse, Transform, and Generate stages.

Experimental Evaluation

The compiler was evaluated using two foundational quantum many-body physics models:

  • Bose-Hubbard Model: A standard representation of interacting bosonic matter.
  • Hubbard-Holstein Model: Describes interactions between electrons (fermions) and vibrational phonons (bosons).

Benchmarks were conducted by generating Hamiltonians for these models across system sizes ranging from 2 to 100 sites.

Results and Discussion

The symbolic approach offers several key advantages:

  • Linear Gate Scaling: The number of gates per Trotter step scales linearly ($O(N_s)$) with the number of sites. This ensures that the gate overhead per site remains constant as the system size increases.
  • Efficient Compilation: Compilation time scales polynomially with system size—approximately $O(N_s^{2.09})$ for the Hubbard-Holstein model and $O(N_s^{1.98})$ for the Bose-Hubbard model—making it feasible for large-scale simulations on classical hardware.
  • Cutoff Independence: For models without density-density interactions, the gate count is independent of the boson cutoff limit. This is a significant improvement over qubit-only compilers, which typically exhibit quadratic scaling with the cutoff.
Scaling of gate counts and compilation time for the Hubbard-Holstein and Bose-Hubbard models.

While the compiler significantly reduces overhead, models with density-density interactions still exhibit a logarithmic dependence on the boson cutoff. Future work aims to target platforms like neutral atom systems that can natively implement these interactions, potentially removing this remaining dependence. By automating the transition from high-level physics equations to low-level hardware instructions, this symbolic compiler paves the way for broader adoption of hybrid qubit-boson quantum processors.

Summary updated

BibTeX
@misc{decker2025symbolic,
  author = {Ethan Decker and Erik Gustafson and Evan McKinney and Alex K. Jones and Lucas Goetz and Ang Li and Alexander Schuckert and Samuel Stein and Gushu Li and Eleanor Crane},
  title = {{Symbolic Hamiltonian Compiler for Hybrid Qubit-Boson Processors}},
  year = {2025},
  eprint = {2506.00215},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.00215},
  howpublished = {arXiv},
}
Figure