Skip to content

Concepts

The vocabulary the API uses. Read top to bottom once, or jump here when a parameter name is opaque.

The network

QPU

A quantum processing unit — one chip. It holds three kinds of qubit, and the distinction matters because they are allocated separately:

Qubit type Purpose
comp Computation. Circuit qubits get mapped onto these.
comm Communication. One end of an entangled pair lives here while a cross-QPU gate runs.
magic Magic states, on factory QPUs only.
ancilla Mediates lattice-surgery operations on the fault-tolerant path.

A QPU's connectivity says how its own qubits are wired to each other:

  • grid4 — nearest-neighbour on a 2D grid. Realistic. A two-qubit gate between non-adjacent qubits needs SWAPs, and the simulator charges for them. Requires a perfect-square QPUSpec.comp_qubits.
  • all2all — any qubit can interact with any other. Optimistic, and the right choice when you want to isolate network effects from internal routing.

Switches: NIR and TEL

Two switching layers, distinguished by wavelength band:

  • NIR (near-infrared) — intra-rack. Short reach, low loss.
  • TEL (telecom band) — inter-rack. Longer reach, needed to get between racks, with correspondingly different loss and latency.

A path between two QPUs in different racks traverses both. Which one a path used is visible in the simulation log, and matters because they contend for different resources.

BSM — Bell-state measurement

The operation a switch performs to join two half-pairs into one entangled pair spanning a longer distance. Each switch has a finite bsm_count, and every entanglement attempt routed through it spends one for the duration.

This is the SDK's main contention resource. When several cross-QPU gates want entanglement through the same switch simultaneously, they queue, and that queueing is most of the latency in a busy run. bsm_usage_per_step() on a result shows it over time.

EPR pair / Bell pair

A shared entangled state spanning two QPUs, and the currency of distributed quantum computing. Every gate between qubits on different QPUs consumes one. Both names appear in the literature and in this API; they mean the same thing.

EPR cost

How many entangled pairs a run consumed, via result.epr_cost(). It is the proxy for communication cost that partitioners minimize, and the cleanest single number for comparing two ways of splitting the same circuit.

Communication qubits

Each QPU has a finite pool. A Bell pair occupies one at each endpoint from the moment generation starts until the gate using it completes. Run out and cross-QPU gates stall even when switches are free — which is why provisioning them is a real architectural decision, not a detail.

Splitting a circuit

Partitioning

Deciding which circuit qubit runs on which QPU. Gates between qubits in the same partition are local and cheap; gates across partitions are remote and consume entanglement. Minimizing cross-partition gates is a graph partitioning problem over the circuit's qubit interaction graph — an undirected graph whose nodes are circuit qubits and whose edge weights count two-qubit gates between them.

Windowed partitioning

A single fixed mapping is not always best. A circuit's interaction pattern changes as it executes, so a qubit assignment that is good early can be poor later. Windowed partitioning splits the circuit into consecutive windows and re-partitions each, paying state-teleportation cost to move qubits between windows in exchange for cheaper gates within them. This is what WindowBasedCircuitPartitioner does.

Partition events

The three things a partitioner can decide to do about a cross-QPU gate, recorded as PartitionEvent objects:

Event Meaning
gate-pack Batch several remote gates onto one entangled pair
gate-teleport Teleport the operation to where the data is
state-teleport Move the qubit to where the operation will run

Timing

Makespan

Total wall-clock time to finish, in milliseconds — result.final_timestep. Includes every stall: waiting for entanglement, waiting for a switch, waiting for a magic state.

Wastage

Scheduler metric for qubits held but idle: the average idle time per qubit, in the same units as the makespan — not a fraction. High wastage means the schedule is reserving hardware it is not using, which matters when many jobs share one topology. See batchscheduler.

Lookahead

The DQCScheduler does not wait until a cross-QPU gate is ready before asking for entanglement. It looks two DAG layers past the current execution frontier, works out which QPU pairs are about to need pairs, and starts generating early. Prefetching, for entanglement.

Error correction

Only relevant on the fault-tolerant path.

Logical vs physical qubit

A physical qubit is hardware, and gets an operation wrong about one time in a thousand. A logical qubit is many physical qubits behaving as one reliable qubit. The exchange rate is roughly a thousand to one.

Surface code, and code distance d

The workhorse scheme. A logical qubit is a d × d patch of physical qubits: some hold data, the rest are ancillas that repeatedly measure their neighbours and report that something nearby flipped. Nothing measures the data qubits directly — that would destroy the state.

d is the code distance. More distance, more redundancy, lower logical error rate.

Threshold, p_th

The break-even physical error rate. Below it, each increase in d lowers the logical error rate exponentially. Above it, a larger code is worse — more physical qubits means more places for an error to start, faster than the extra redundancy corrects them.

This is the single most consequential number in fault tolerance, and the reason the SDK ships measured threshold tables rather than an analytic formula.

Seam

When a logical qubit's patch is split across two QPUs, the ancillas sitting on the cut cannot be measured locally — half of what they need is in the other machine. Reading one out requires the network to deliver a Bell pair across the gap, every error-correction round, for every seam ancilla.

The seam is where the network enters the error model rather than just the timing model.

lam_seam

Seam noise multiplier: p_seam = lam_seam * p. Bell pairs delivered over fibre through switches have lower fidelity than local two-qubit gates, so the seam is permanently noisier than the bulk of the patch. Written λ in the literature.

k_idle

Idle noise multiplier, standing in for time spent waiting on entanglement. Used by FixedIdleEpr: the wait is charged as extra idling and the circuit is otherwise untouched. Not standard notation — in QEC a bare k means the number of logical qubits in an [[n, k, d]] code, which this is not.

mu

Bell-pair arrival rate, in pairs per syndrome round. Used by PoissonEpr, which models arrivals as a genuine Poisson process, so some rounds simply cannot measure the seam at all. More faithful than k_idle, because the circuit's behaviour changes rather than just its noise level.

Magic state

A surface-code patch cannot perform a T gate directly, and useful algorithms are full of T gates. The workaround: prepare a disposable qubit called a magic state on a dedicated factory QPU, and consume one per T gate.

Fresh magic states are far too noisy, so the factory distills them — feed in 15 poor ones, get back 1 whose error rate is roughly the cube of the input's. distill_rounds on a MagicFactorySpec sets how many times. Each round cubes the error again, and costs time on the factory.

TLER — Total Logical Error Rate

The probability the computation's answer is wrong, after error correction, as four additive terms:

Term Source
LER_local Gates that ran inside one QPU
LER_remote Gates that crossed the network, carrying the seam penalty
LER_mem Qubits idling and decohering, including all waiting
LER_magic A faulty magic state

They scale differently, which is the whole reason for splitting them — see quantum_error_correction.

Symbol summary

Symbol Meaning Standard notation?
p Physical error rate — chance one hardware operation goes wrong yes
d Code distance; a logical qubit is a d × d patch yes
p_th Threshold — where more distance stops helping yes
alpha Fitted exponent in pL = A (p/p_th)^(alpha*d); should land near 0.5 yes
A Fitted prefactor yes
mu Bell-pair arrival rate, pairs per syndrome round yes
lam_seam Seam noise multiplier written λ
k_idle Idle noise multiplier for entanglement waits no — SDK-specific