Lawrence Berkeley National Laboratory · DOE Office of Science

A quantum compiler
built for any hardware.

BQSKit compiles quantum circuits to any gate set, on any topology — without manual rules. Scalable from research prototype to production workloads on DOE supercomputers.

$ pip install bqskit
from bqskit import compile, Circuit, MachineModel
from bqskit.ir.gates import RZGate, CZGate, SXGate

circuit = Circuit.from_file("input.qasm")

# Define target
model = MachineModel(
    num_qudits=27,
    gate_set={RZGate(), SXGate(), CZGate()}
)
# ...and compile!
compiled = compile(circuit, model=model)
compiled.save("output.qasm")
Recognition
QCE Best Paper Award Funded by DOE ASCR Free & open-source (BSD) PyPI downloads
Capabilities

Everything the compilation stack needs.

BQSKit is modular — use the full pipeline or drop individual passes into your own compiler.

Core
Gate-Set Portable Compilation
The only fully portable quantum compiler. Transpile any circuit to any gate set — including multi-qudit and mixed entangling gates — without writing hardware-specific rules.
Docs
Synthesis
Scalable Circuit Synthesis
QSearch (optimal, ≤4 qubits), LEAP (best-quality, ≤6 qubits), and QFAST (good-quality, ≤8 qubits) provide scalable synthesis. QGO combines partitioning + synthesis for global optimization on 60+ qubit circuits.
Docs
Routing
Routing & Qubit Mapping
Permutation-aware synthesis integrates routing into the synthesis pass — no separate SWAP-insertion required. Also supports topology-aware partitioning for wide circuits.
Docs
Fault-Tolerant
Clifford+T Synthesis
High-precision multi-qubit Clifford+T synthesis via the bqskit-ft extension. Supports full fault-tolerant compilation pipelines via CliffordTModel.
Docs
QEC
Lattice Surgery Compilation
TopoLS compiles to lattice surgery schedules via topological program transformations. AlphaSyndrome (ASPLOS 2026) handles syndrome measurement scheduling.
Research →
AI-Assisted
ML-Guided Instantiation
QFactor uses a tensor network formulation with analytic methods to directly optimize circuits with 12+ qubits, achieving exponential memory savings over general-purpose optimizers. Enables 100+ qubit circuit optimization in BQSKit's gate deletion pipeline.
Research →
Integrations

Works with your stack.

BQSKit integrates with the tools you already use — import from any format, export to any backend.

Qiskit
Import and export Qiskit circuits. Use BQSKit as a drop-in compilation backend.
Mitiq
Combine BQSKit compilation with Mitiq error mitigation via QASM interchange. Example notebook
Superstaq
Hardware-specific compilation pipelines powered by BQSKit synthesis.
Perlmutter / NERSC
HPC-optimized. Scales across CPU nodes for large circuit batches on DOE systems.
AQT
Real-time circuit optimization for AQT hybrid algorithms. BQSKit significantly reduces circuit depth for near-term hardware targets.
News

Latest updates.

2026
Award OpenQudit receives Distinguished Artifact Award at CGO 2026
Ed Younis's OpenQudit — a JIT-compiled DSL for extensible numerical quantum compilation — recognized for outstanding artifact quality at CGO 2026.
2026
Conference AlphaSyndrome accepted to ASPLOS 2026
Syndrome measurement circuit scheduling for fault-tolerant quantum computing.
2026
Conference QTurbo accepted to ASPLOS 2026
Scalable circuit optimization for wide circuits accepted at ASPLOS 2026.
2025
Publication HATT at HPCA 2025
Hamiltonian Adaptive Ternary Tree for optimizing fermion-to-qubit mapping.