← Atlas

Basic circuits · Routing benchmark

Linear SWAP-network benchmark · 16 qubits

A forward-and-reverse nearest-neighbor SWAP network for testing routing and qubit-order preservation.

Strong empiricalUpdated

View frozen graph

q0q1q2q3q4q5q6q7q8q9q10q11q12q13q14q15Step 1 of 31 · X · on q0XStep 2 of 31 · SWAP · on q0, q1SWAPStep 3 of 31 · SWAP · on q1, q2SWAPStep 4 of 31 · SWAP · on q2, q3SWAPStep 5 of 31 · SWAP · on q3, q4SWAPStep 6 of 31 · SWAP · on q4, q5SWAPStep 7 of 31 · SWAP · on q5, q6SWAPStep 8 of 31 · SWAP · on q6, q7SWAPStep 9 of 31 · SWAP · on q7, q8SWAPStep 10 of 31 · SWAP · on q8, q9SWAPStep 11 of 31 · SWAP · on q9, q10SWAPStep 12 of 31 · SWAP · on q10, q11SWAPStep 13 of 31 · SWAP · on q11, q12SWAPStep 14 of 31 · SWAP · on q12, q13SWAPStep 15 of 31 · SWAP · on q13, q14SWAPStep 16 of 31 · SWAP · on q14, q15SWAPStep 17 of 31 · SWAP · on q14, q15SWAPStep 18 of 31 · SWAP · on q13, q14SWAPStep 19 of 31 · SWAP · on q12, q13SWAPStep 20 of 31 · SWAP · on q11, q12SWAPStep 21 of 31 · SWAP · on q10, q11SWAPStep 22 of 31 · SWAP · on q9, q10SWAPStep 23 of 31 · SWAP · on q8, q9SWAPStep 24 of 31 · SWAP · on q7, q8SWAPStep 25 of 31 · SWAP · on q6, q7SWAPStep 26 of 31 · SWAP · on q5, q6SWAPStep 27 of 31 · SWAP · on q4, q5SWAPStep 28 of 31 · SWAP · on q3, q4SWAPStep 29 of 31 · SWAP · on q2, q3SWAPStep 30 of 31 · SWAP · on q1, q2SWAPStep 31 of 31 · SWAP · on q0, q1SWAP

31 steps across 16 wires. Hover a step, or press play to go through them in order.

  • Steps31
  • Wires16
  • Qubits16
  • Operations31
  • Framework exports7
  • Papers1
Native
benchmark-swap-network-16q.py
from qiskit import QuantumCircuit

qc = QuantumCircuit(16)
qc.x(0)
qc.swap(0, 1)
qc.swap(1, 2)
qc.swap(2, 3)
qc.swap(3, 4)
qc.swap(4, 5)
qc.swap(5, 6)
qc.swap(6, 7)
qc.swap(7, 8)
qc.swap(8, 9)
qc.swap(9, 10)
qc.swap(10, 11)
qc.swap(11, 12)
qc.swap(12, 13)
qc.swap(13, 14)
qc.swap(14, 15)
qc.swap(14, 15)
qc.swap(13, 14)
qc.swap(12, 13)
qc.swap(11, 12)
qc.swap(10, 11)
qc.swap(9, 10)
qc.swap(8, 9)
qc.swap(7, 8)
qc.swap(6, 7)
qc.swap(5, 6)
qc.swap(4, 5)
qc.swap(3, 4)
qc.swap(2, 3)
qc.swap(1, 2)
qc.swap(0, 1)
qc.measure_all()

FINAL_CIRCUIT = qc

References

Strong empirical
  • Verified by construction
  • Peer-reviewed paper
Method
Deterministic portable-gate construction plus catalog schema validation
Result
Pass · 16 qubits and 31 pre-measurement operations emit non-empty Qiskit, PennyLane, Cirq, CUDA-Q, Amazon Braket, OpenQASM 3.0, and PyQuil source.
Caveat
This is a parameterized Leona Quantum benchmark scaffold informed by the cited suite, not an upstream benchmark file or a hardware result.
MQT Bench: Benchmarking Software and Design Automation Tools for Quantum Computing ↗
Kind
curated reference
Reviewed by
Leona Quantum curation pass
License
Citation metadata; Leona Quantum-authored scaffold
SWAProutingcompiler benchmark16 qubitsseven-framework export

Atlas stars stay in the public catalog. Saving this entry to your workspace starts an unstarred private copy.