Skip to content
Preprint

Qaiji IR: An Eight-Layer Intermediate Representation Family for Hybrid Quantum-Classical Compilation

Sep 2026 · 0 citations · 16 references
Physics

TL;DR

QaiJi IR, an eight-layer family organized by a five-axis semantic contract, is presented, an eight-layer family organized by a \emph{five-axis semantic contract} for data, semantics, lowering, runtime, and verification.

Abstract

Hybrid quantum-classical compilation relates ideal operations and measurement outcomes to control pulses and device instructions. Existing formats each describe part of this process, and their preservation checks are often specific to one tool rather than to a common intermediate representation (IR). I present Qaiji-IR, an eight-layer IR family organized by a five-axis semantic contract for data, semantics, lowering, runtime, and verification. Its implementation provides typed circuits, an operation-semantics layer (L4) that records operation structure and checks a bounded set of equivalence rules, and a native-scheduling layer (L2) with separate validation. Nine circuit pairs are compared with ideal reference calculations. An aggregate baseline, which compares operation categories and measurement counts, accepts four behavior-changing transformations: gate reordering and changes of rotation angle, operand, or measurement destination. The L4 checker passes none of them. It distinguishes strict equality from equality up to global phase and returns unsupported when its rules cannot decide, as for valid rotation fusion. L2 validation checks native schedules against their source circuits, decomposition rules, local matrices, and configured timing. A single-qubit active-reset program is compiled through the Qaiji-IR frontend, a syntax adapter, and the EmuPlat backend into pulses and device instructions for a virtual pulse processing unit (VPPU). Injected binary outcomes select the conditional drive. Backend predicate tests reveal incorrect execution for equality to zero and for a nonbinary feedback value. This backend path does not use the validated L2 schedule. Physical measurement feedback, calibrated pulse fidelity, and feedback latency require further work.

View source

Similar papers

Preprint Sep 2026

A Dynamic Intermediate Representation for Hybrid Quantum-Classical Programs

Quantum compilers typically follow the circuit model, representing programs as fixed sequences of gates. This static view breaks down in hybrid quantum-classical applications, where gate choices depend on runtime data or measurement results. We introduce a new Intermediate Representation (IR) that elevates gates to fir...

Alex Rice, C. Heunen, T. Grosser · 0 citations
Book Open access Oct 2026

Toward Declarative Platform-Independent Modeling of Hybrid Quantum--Classical Software

H-hat is presented, a rule system and language family that applies this separation inside the language: classical and quantum code coexist in one program, and quantum is a first-class, lazily evaluated, linear entity under ownership rules and declarative paradigm, with no quantum-physics constructs exposed to the user.

Eduardo Henrique Matos Maschio, Moharram Challenger · 0 citations
Preprint Sep 2026

When Does a Quantum Speedup Survive End-to-End?

A transcript-level admissibility relation is introduced, defined relative to the declared implementation package of the quantum interface, that identifies which adaptive classical access transcripts that same package licenses, with all setup, transcript-generation, and precision overheads charged.

Pablo Herrero Gómez, A. Morenilla, David M. Hernandez et al. · 0 citations
Preprint Oct 2026

When Equivalent Quantum Circuits Lose Synthesis Choices

Results show that preserving functional equivalence alone is insufficient when later synthesis choices depend on retained high-level structure, and introduces Verified, which records high-level operations before a representation change and reconstructs them only when a check confirms that the record still matches the d...

Bo-Shuai Ye, Peng Liang, A. Khan · 0 citations
Open access Aug 2026

Granthi: Higher-Order Quantum Programming via Unitary Wiring

Granthi is a purely unitary higher-order quantum programming language built on three design commitments: quantum programs are first-class values that may be passed, returned, and coherently composed; additive structure is tag-preserving routing rather than observational branching, so control may remain in superposition...

Samson Abramsky, R. Jagadeesan · 0 citations
Preprint Sep 2026

Irene: Equivalence Checking of Hybrid Quantum Programs via Structure-Preserving Symbolic Reduction

Equivalence checking is essential for validating compiler transformations of hybrid quantum programs, which combine quantum operations, measurements, and classical control. Measurement-dependent control limits unitary reasoning, while dependencies between classical outcomes and quantum operations can enlarge intermedia...

Jing-Yu Ke, Jing-Yang Li, Guo-Qiang Li · 0 citations

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