BQSKit compiles quantum circuits to any gate set, on any topology — without manual rules. Scalable from research prototype to production workloads on DOE supercomputers.
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")
BQSKit is modular — use the full pipeline or drop individual passes into your own compiler.
bqskit-ft extension. Supports full
fault-tolerant compilation pipelines via
CliffordTModel.
BQSKit integrates with the tools you already use — import from any format, export to any backend.