← Back to section · Open Source Projects

Open Source Quantum Compilers and Transpilers: From High-Level Circuits to Hardware Instructions

Quantum compilers translate abstract circuits into instruction sequences that specific hardware can execute, while optimizing and controlling error-correction overhead along the way. This article surveys the representative open source projects at this layer and the contest over intermediate representations.

Published 22 November 2026 · 5 min read · PQ Frontier

Open Source Quantum Compilers and Transpilers: From High-Level Circuits to Hardware Instructions
AI-generated site artwork
Video explainer · Quantum Open Source Projects: lattices and circuits, in the open

Where compilers sit in the quantum software stack

Between a researcher writing a quantum program and its execution on a chip lies a translation chain of considerable length. The circuit in the researcher’s mind is abstract: any two qubits seem able to interact directly, and gates are idealized mathematical operations. A real chip, however, supports only a few native gates, qubits can entangle directly only with physical neighbors, and each carries a different error rate. The compiler’s job is to bridge this gap: decompose abstract gates into combinations of native gates, assign logical qubits to physical ones, insert swap operations where long-range entanglement is needed, and finally schedule the execution order while compressing overall depth as much as possible.

Unlike classical compilation, the optimization goals of quantum compilation have a strongly physical flavor. Classical compilers mainly optimize time and space, whereas in quantum compilation every extra gate and every increment of depth concretely raises the probability that noise destroys the result. “Compilation quality” in the quantum world is therefore almost synonymous with experimental success: the same circuit, compiled well, can yield usable results on current hardware; compiled poorly, it outputs pure noise. This makes compilers one of the most research-dense components of the quantum software stack, and an area where open source projects appear in dense clusters.

Representative projects and the division of labor

The most common compiler components are built into the major frameworks — Qiskit’s transpiler, Cirq’s compilation tools — deeply integrated with their own frameworks and hardware backends, winning on out-of-the-box convenience. Among standalone projects, tket from the Cambridge ecosystem is frequently mentioned: it positions itself as framework-neutral, accepting circuits from multiple sources, optimizing them for different hardware backends, and emitting them for execution on different platforms — a “middle layer” position that makes it a common choice for cross-platform workflows. Catalyst, from the PennyLane ecosystem, aims at whole-program compilation of hybrid quantum-classical programs, compiling classical control flow together with quantum circuits, serving scenarios such as variational algorithms that require extensive classical-quantum interaction.

Academia has contributed many more specialized open source compiler research projects: some focus on qubit mapping and routing algorithms, some on compilation for specific error-correcting codes, some on pulse-level optimization. These projects are usually small, but the algorithms they propose are often absorbed into the big frameworks. Watching this absorption chain is a good way to understand how quantum compilation progresses: the frontier is produced in papers and small open source projects, then, once validated, enters mainstream toolchains and finally becomes a capability all users enjoy by default.

Beyond translation and optimization, the compilation experience itself is becoming a point of competition. Circuits in the research phase are modified and recompiled repeatedly, and slow compilation directly slows the pace of exploration; accordingly, some compiler projects have introduced incremental compilation, compilation caching and just-in-time techniques, bringing mature practices from classical software engineering into the quantum toolchain. Another dimension of experience is explainability: when compilation results are unsatisfying, users need to know at which pass the optimizer gave up and why, rather than facing a black box. Compilers that offer staged logs, intermediate-result exports and optimization reports are clearly more welcome in teaching and debugging scenarios. These “soft” capabilities lack hard metrics like gate-count optimization, but they genuinely determine whether a compiler project enters researchers’ daily workflows.

Intermediate representations: the contested hub

Whether a compiler ecosystem can be assembled depends on intermediate representations — the common language in which circuits are passed between tools, analogous to bytecode and assembly in the classical software world. The two most important open standards at this layer are OpenQASM and QIR. OpenQASM began as an assembly-style textual language, and its newer versions add the ability to express classical control flow and real-time computation; it is currently the most widely supported circuit exchange format, importable and exportable by nearly all mainstream frameworks. QIR is built on the LLVM classical compiler infrastructure, aiming to let quantum programs reuse the optimization and tooling ecosystem of classical compilers, and is better suited to expressing large hybrid programs with complex classical logic.

The two are not in a simple replacement relationship: OpenQASM stays closer to the circuit itself, simple and direct; QIR stays closer to complete programs, with stronger expressiveness but a heavier toolchain. In practice they will likely coexist for a long time, each serving a different level of compilation needs. What truly deserves attention is that, whichever representation prevails, open standards have already changed the power structure of the ecosystem: when circuits can flow freely in a standard format, no single framework can lock users in through formats, and competition is forced back onto compilation quality and usability themselves. That is the deeper effect of open standards on the industry.

Compilation for fault tolerance: the next battleground

As error correction research heats up, the target of compilation is rising from the physical level to the logical level. Fault-tolerant compilation addresses a different problem: translating an algorithm written in logical qubits into a long sequence of error-correction operations and resource-hungry primitives such as magic state distillation, while precisely accounting for the physical qubit counts and runtimes required. Resource estimation tools of this kind — some open sourced by large company research labs, some from academic teams — are becoming key infrastructure for assessing how large a fault-tolerant quantum computer actually needs to be, and their outputs directly influence hardware roadmaps and investment judgments.

Projects in this direction are still young, with interfaces and representations not yet converged, but their importance is hard to overstate: physical-level compilation decides whether today’s experiments succeed, while logical-level compilation decides whether tomorrow’s fault-tolerant machines are buildable at all. The role of open source here remains the same: establishing a common language and reproducible comparison baselines. The remaining articles in this series leave specific technical components aside and discuss the questions all these projects face together: how they collaborate, and how they survive.

Tags: Quantum CompilationTranspilerOpenQASMIntermediate Representation