Cisco's Network-Aware Quantum Compiler¶
A Python SDK for compiling and simulating quantum algorithms distributed across a datacenter network of QPUs.
Load a circuit, split it across QPUs, simulate its execution against finite network resources, and find out what the network cost you — in latency, in entanglement, and in logical error rate.
from qndk.circuit.qiskit_circuits import QiskitCircuit
from qndk.quantum_network import build_clos, QPUSpec
from qndk.partition.wbcp import WindowBasedCircuitPartitioner
from qndk.simulator.static import StaticScheduler
circuit = QiskitCircuit("qft", num_qubits=6)
network = build_clos(
ports_per_switch=4,
qpus_per_rack=1,
qpu_spec=QPUSpec(comp_qubits=3, connectivity="all2all"),
)
partition = WindowBasedCircuitPartitioner(circuit, network).partition()
result = StaticScheduler(partition).run_simulation()
print("EPR cost:", result.epr_cost())
This is not a replacement for a single-QPU compiler. It is a networked multi-QPU compiler, for exploring how shared network resources change the execution of a quantum algorithm — and, as of v0.2.0, how they change the error correction that algorithm depends on.
Simulation only
The SDK runs local simulations. It does not execute circuits on real quantum hardware.
Request access
The SDK is distributed as a wheel, not published on PyPI. Request one at outshift.cisco.com/quantum/quantum-compiler-app, then head to Installation.
Where to go¶
-
Start here. What the SDK is for, how to install it, and a first end-to-end run — plus the concepts, worked examples, FAQs and troubleshooting.
-
One page per package, in pipeline order. What each stage does, the types it hands the next stage, and the decisions it makes for you.
-
Every public class and function, with full signatures, types, defaults and exceptions. Generated from the code, and written to be read by an AI coding agent as much as by a person.
The pipeline¶
Every workflow in the SDK is some path through the same six stages.
flowchart TB
C["<b>circuit</b><br/>load a Qiskit circuit"]
T["<b>transpile</b><br/>normalize gates, build the DAG"]
QEC["<b>quantum_error_correction</b><br/>surface-code patches, magic states"]
P["<b>partition</b><br/>assign qubits to QPUs"]
S["<b>simulator</b><br/>step through the network"]
A["<b>analysis</b><br/>metrics, plots, error budget"]
C --> T --> P --> S --> A
T -.->|fault-tolerant path| QEC
QEC -.-> P
S -.->|"tler()"| QEC
The network model (quantum_network) is not a stage — it is the thing every
stage is measured against. You build it once and hand the same object to the
partitioner, the simulator and the error budget.
Two ways to run a circuit¶
| NISQ path | Fault-tolerant path | |
|---|---|---|
| Entry point | a Partitioner subclass |
fault_tolerant_encode() |
| Qubits are | logical qubits, mapped 1:1 | surface-code patches of code distance d |
| T gates are | ordinary gates | magic states, consumed from a factory QPU |
| Simulator | StaticScheduler, DynamicScheduler, DQCScheduler |
DQCScheduler |
| Output metric | latency, EPR cost, BSM usage | all of that, plus Total Logical Error Rate |
The NISQ path answers how long does this take and what does it consume. The fault-tolerant path answers and can I trust the answer it produces. Both are covered in Getting Started.