The connectivity graph of a device is with its physical qubits and when a native two-qubit gate can be applied to and . It may be time-dependent: in devices that move qubits, is the set of pairs that can be brought together in a given step.
A stabilizer code can be measured by a constant-depth circuit of native gates, one ancilla per check, when every check's qubits are adjacent to its ancilla in . Typical cases:
- Planar nearest-neighbour graphs (square grid): sufficient for the surface code, whose checks have weight at most four (Fowler and co-authors). If the device's qubits sit in the plane with bounded-length couplers, the code's checks are geometrically local in two dimensions and the Bravyi–Poulin–Terhal bound limits its parameters.
- Bounded-degree graphs with some long edges: the bivariate-bicycle memory of Bravyi and co-authors needs a degree-6 graph made of two edge-disjoint planar subgraphs, and in exchange keeps 12 logical qubits with 288 physical qubits.
- Reconfigurable connectivity: in neutral-atom arrays the edges are created by moving atoms (Bluvstein and co-authors), and in trapped-ion charge-coupled devices by shuttling ions between zones (Kielpinski, Monroe and Wineland); both trade time for connectivity.
Gates between qubits that are not adjacent must be routed, through SWAP chains, moving qubits, ancilla paths or teleportation, and the routing cost is part of every resource estimate.