Introduction¶
The problem¶
Quantum algorithms with real commercial value — simulating a catalyst, modelling nuclear matter, breaking public-key cryptography — need somewhere between tens of thousands and millions of physical qubits. The largest processors available today hold a few hundred.
Vertically scaling a single chip runs into yield, wiring density, cryogenics and cross-talk, all of which get worse as the device grows. So the field is doing what classical computing did decades ago: when one machine is not big enough, connect several of them. Many modest QPUs, wired together with a photonic network, standing in for one enormous processor.
That substitution is not free, and the cost is not obvious. It is the cost this SDK exists to measure.
Why distribution is hard¶
A two-qubit gate between qubits on the same chip is a local operation. A two-qubit gate between qubits on different chips is a network operation: it consumes a shared entangled pair — a Bell pair, also called an EPR pair — which has to be generated, routed across switches, and delivered before the gate can run.
That changes the shape of the problem in four ways.
Entanglement is a consumable. Every cross-QPU gate spends a Bell pair. How many the whole circuit spends depends entirely on how you split it, so the partitioning decision is a resource-allocation decision.
The network is finite and shared. Bell pairs need communication qubits at both endpoints, a Bell-state measurement at every switch along the path, and bandwidth on every link. When several gates want entanglement at once they contend, and contention shows up as latency.
Quantum states decohere while they wait. A Bell pair that arrives too late is worse than useless — it consumed resources and delivered nothing. A qubit that sits idle waiting for one accumulates error the whole time.
Error correction does not respect rack boundaries. This is the one that v0.2.0 added, and the one that changes conclusions. A logical qubit is not one physical qubit; it is a patch of hundreds, held together by constant parity measurements. Split that patch across two QPUs and the qubits on the cut cannot be measured locally at all — every round of error correction needs fresh Bell pairs delivered across the gap.
What the SDK does¶
It models all four at once, in one pipeline, and reports what came out.
flowchart LR
subgraph inputs
A["quantum circuit"]
B["network model"]
end
A --> C["compile<br/>+ partition"]
B --> C
C --> D["simulate<br/>execution"]
D --> E["latency<br/>EPR cost<br/>BSM usage"]
D --> F["logical<br/>error rate"]
The two inputs are a circuit and a network. The circuit comes from Qiskit or
from the built-in library. The network is a QuantumNetwork — a graph of
QPUs, switches, links and individual qubits, with hardware characteristics
attached to each: coherence times, gate fidelities, link loss, switch
reconfiguration delay, Bell-state measurement counts.
Everything downstream is measured against that one network object. The partitioner sees the same network the simulator runs on, which is what stops the two disagreeing.
The stages¶
| Stage | Package | What it contributes |
|---|---|---|
| Load | circuit |
A Qiskit circuit, hand-built or from the benchmark library |
| Prepare | transpile |
Gate normalization, plus the DAG and qubit-interaction graph every later stage reads |
| Model | quantum_network |
The datacenter: QPUs, switches, links, qubits, hardware specs |
| Encode | quantum_error_correction |
Optional. Surface-code patches, magic-state rewriting, seam identification |
| Split | partition |
Which circuit qubit runs on which QPU, minimizing cross-QPU traffic |
| Execute | simulator |
Steps the circuit through the network, producing a timed event log |
| Measure | analysis |
Metrics, dataframes, plots, multi-run comparison |
Three more packages sit off to the side:
batchscheduler runs many jobs on one
shared topology, compile emits a runnable
distributed circuit rather than stopping at metrics, and
extras covers ILP placement, learned embeddings,
and the HTTP service.
What it is not¶
- Not a state-vector simulator. It does not compute amplitudes for your
circuit. It models execution — timing, resource contention, error rates.
(
qndk.compilecan hand a compiled circuit to Qiskit Aer if you do want amplitudes; see compile.) - Not a hardware control plane. Nothing here talks to a real device.
- Not a single-QPU transpiler. Qiskit already does that well, and the SDK uses it for exactly that.
Grounded in published research¶
The models are implementations of published work, not invention. Timing, noise, resource contention and error budgets each follow a specific paper, and where a model has no published backing the documentation says so rather than presenting a guess as settled physics. See Background reading.
The fault-tolerant path in particular follows Impact of Network Constraints on Fault-Tolerant Distributed Quantum Computing (arXiv:2606.17495), which co-models surface-code lattice surgery, each QPU's internal connectivity, and network-level contention as one system.
Next: Installation.