Quantum Modeler · Traveling Salesperson (TSP)
Traveling Salesperson (TSP)
Visit every city once and return to fixed start 0. Inspect a symmetric distance tour, its QUBO encoding, and an independent exact reference.
Execute at most 8 total qubits using an ideal classical statevector simulator. Symbolic scaling does not execute or solve a larger instance.
Build your problem
Presets replace problem inputs. Your execution and projection settings stay as entered. Edit any input, then build to calculate new results.
This position encoding executes 2–3 cities: (cities − 1)² decision qubits. In a symmetric three-city problem both tours have equal distance; this demonstrates feasibility and encoding, not a meaningful optimization choice.
Ready to validate a small instance.
Open the simulator to purchase more runs, then return here.
Results describe the last completed build.
Explain this model
Small-instance simulation
Independent classical reference
Encoded input resources
Sampled states
| Bits | Count | Probability | Penalized energy | Feasible objective | Penalty constraints | Assignment |
|---|
Full probability distribution
| Bits | Count | Probability | Penalized energy | Feasible objective | Penalty constraints | Assignment |
|---|
Circuit artifacts
x0 is the leftmost assignment bit. Measurements map xi → q[i] → c[i]; tools displaying c[N−1]…c[0] require register-order conversion.
Variable mapping
QUBO and Ising coefficients
Generated DSL
OpenQASM 2.0
Routing and scheduling models
TSP · Job Scheduling · Vehicle Routing. Tiny validated examples execute within eight total qubits; larger inputs use the Problem Compiler.
No quantum advantage, real-QPU performance, physical-qubit requirement, or production-scale solution quality is claimed.