PauliEngine: High-Performant Symbolic Arithmetic for Quantum Operations
Leon Müller, Adelina Bärligea, Alexander Knapp, Jakob S. Kottmann
TL;DR
PauliEngine addresses the need for fast classical manipulation of Pauli strings in quantum software by introducing a compact C++ backend that uses binary symplectic representation and bitwise operations for arithmetic, phase tracking, and commutator evaluation. It supports both numeric and symbolic coefficients through integration with a symbolic engine and exposes a Python interface for easy integration into quantum workflows. The key innovations include XOR-based multiplication with efficient phase reconstruction via counts of local phase contributions, fast O($N$) commutator evaluation, and operator folding to accelerate expectation-value computations in parametrized circuits. Benchmark results show orders-of-magnitude speedups over established tools like PennyLane and OpenFermion, with favorable scaling for large Hamiltonians or long Pauli strings, confirming PauliEngine as a scalable backend for Pauli-based quantum-simulation and analysis. The work also demonstrates practical applications to dynamical Lie algebras and VQA-related tasks, indicating strong potential for integration into SDKs supporting parametrized and differentiable quantum workflows.
Abstract
Quantum computation is inherently hybrid, and fast classical manipulation of qubit operators is necessary to ensure scalability in quantum software. We introduce PauliEngine, a high-performance C++ framework that provides efficient primitives for Pauli string multiplication, commutators, symbolic phase tracking, and structural transformations. Built on a binary symplectic representation and optimized bit-wise operations, PauliEngine supports both numerical and symbolic coefficients and is accessible through a Python interface. Runtime benchmarks demonstrate substantial speedups over state-of-the-art implementations. PauliEngine provides a scalable backend for operator-based quantum software tools and simulations.
