Skip to content
Preprint

Towards Datalog on Quantum Annealers: Compiling Recursive Logic Programs with Bottom-up Semantics to 2-local Ising Models

Aug 2026 · 0 citations · 38 references
Computer Science

TL;DR

This work contributes both in theory and in practice with per-stage correctness lemmas and a correspondence theorem, verified in Lean 4, establishing that the ground state of the compiled model projects onto the program's minimal Herbrand model.

Abstract

Quantum annealers solve problems by finding the lowest-energy (ground) state of a programmable physical system, a 2-local Ising model, whose energy function is the Hamiltonian. We compile recursive Datalog programs into such models so that the ground state projects onto the program's minimal Herbrand model. The compiler has four stages: binarization, grounding, reduction to a Min-Ones SAT formula, and Ising encoding. Each rule becomes an energy penalty on the one assignment that violates it, and a small uniform cost on every true atom selects the minimal model. We contribute both in theory and in practice with per-stage correctness lemmas and a correspondence theorem, verified in Lean 4, establishing that the ground state of the compiled model projects onto the program's minimal Herbrand model. We map the compiled models onto the topologies of commercial annealers and characterize, under classical and simulated-quantum annealing, whether and when that certified ground state is attained.

View source

Similar papers

Preprint Oct 2026

Decompiling Quantum Assembly into Structured Programs

Quantum compilers translate programs into native gates, insert SWAP gates to route interactions onto a device, and optimize the result. The output is quantum assembly, a flat gate list that hides the algorithm's structure (QFT, Grover iteration, QAOA layers). Understanding, auditing, porting, or reusing such assembly r...

Pingchuan Ma, Zhan-Tong Xue, Zong-Jie Li et al. · 0 citations
Preprint Sep 2026

Why Are We Unrolling? The Importance of Structured Quantum Programs for Compilation

This work presents important patterns and algorithms from fault-tolerant quantum applications which admit a structured representation that it is argued is crucial to preserve, and sets a challenge to the community to compile such representations without unrolling them into straight-line quantum circuits.

Damian Rovara, Daniel Haag, Mark Koch et al. · 0 citations
Preprint Aug 2026

CircLS: Compiling Lattice Surgery to Physical Circuits with Dynamic Allocation

CircLS is a full-stack lattice surgery compiler that allocates data patches dynamically: each patch is allocated at its first use and freed at its last use, and the freed tiles can be reused as ancilla paths.

John Zhang · 1 citation
Book Open access Oct 2026

Quantum Computing and Static Analysis: State of the Art and Research Opportunities

Due to its fast evolution, quantum computing is increasingly becoming a software problem, one that requires particular care because of the intrinsic peculiarities of quantum programs. Static analysis for quantum programs is still in its infancy. It has produced both principled semantic techniques and practical pattern-...

Greta Dolcetti, Giulio Zizzo, V. Arceri et al. · 0 citations
Preprint Aug 2026

QisMC: A Model Checker for QISKIT Program Debugging

QisMC is presented, the first quantum model checker dedicated to debugging Qiskit programs, and provides an end-to-end framework encompassing transition system generation, logical formula representation, and model checking algorithms, and it efficiently performs image computation based on decision diagrams.

Ao-Chu Dai, Ming-Sheng Ying · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.