Skip to content
Current section
The Quantum Computing Enthusiast’s Hub
Saved
All sections

All sections

Saved
Skip Learn navigation
Encyclopedia
Topic

Quantum routing and logistics models

Quantum routing proposals encode route choices, scheduling or allocation as mathematical optimization problems and apply a quantum subroutine to part of that model.

Edition released Coverage: Overview · Technical · Research
On this page

Definition and practical meaning

A route model specifies locations, vehicles, travel costs, capacity, time windows and feasibility rules. A quantum encoding is a representation of that model, not a replacement for accurate travel data or operational judgment. Real logistics often changes while a solution is being computed, making update cost and robustness relevant alongside objective value.

An explicit encoding

For a small traveling-salesperson formulation, x_i,t can indicate that location i occupies position t in the route. Constraints require each location once and each position once. Travel cost couples successive positions. This direct encoding can require a number of variables quadratic in the number of locations before reductions. A statement that n locations require only log2 n qubits usually omits the representation of an entire route and its constraints.

Solved three-location example

Let symmetric distances be dAB=2, dBC=3 and dAC=4. Starting at A, route A-B-C-A costs 2+3+4=9; A-C-B-A also costs 4+3+2=9. A candidate A-B-A has cost 4 but is infeasible because it omits C. A measured low cost must therefore be accompanied by a feasibility check. This tiny instance has two equivalent feasible tours and is solved classically by inspection; it establishes no quantum advantage.

Evaluation and alternatives

Compare with exact mixed-integer optimization, constraint programming, local search and domain-specific heuristics at a stated quality and time budget. Include data conversion, penalty selection, hardware embedding, repeated sampling and repair. A solution method trained on one distribution of instances may not work equally well after demand or topology changes.

Derivation: a route as an assignment subject to two different constraints

A position encoding for a tour uses binary variables x(i,t), where x(i,t)=1 means location i occupies position t. A valid tour needs exactly one location at each position and exactly one position for each location. The first condition is sum_i x(i,t)=1 for every t; the second is sum_t x(i,t)=1 for every i. Neither condition implies the other. Assigning the same location to every position satisfies the first set and violates the second. Assigning every location to the same position satisfies the second set and violates the first. These two counterexamples explain why both families of penalties occur in a quadratic formulation.

For a cyclic route with n positions, the travel term is C=sum_t sum_i,j d(i,j)x(i,t)x(j,t+1), with position t+1 interpreted modulo n. Each selected transition contributes exactly its distance. Squared assignment penalties A sum_t(1-sum_i x(i,t))^2 and A sum_i(1-sum_t x(i,t))^2 are quadratic because binary variables satisfy x^2=x. The model contains n^2 binary variables before fixed positions and other reductions. This count describes this encoding, not a theorem that every route representation requires n^2 qubits.

Fixing one city at position zero removes cyclic copies of the same route. For symmetric distances, traversing the route in the opposite direction has the same cost, creating another symmetry. A symmetry reduction must preserve at least one representative of every physically different feasible solution. Removing all strings with a particular bit value without proving this property can eliminate the optimum.

A four-location example with an explicit classical answer

Consider an undirected graph with distances d(A,B)=1, d(B,C)=2, d(C,D)=1, d(D,A)=2, d(A,C)=4 and d(B,D)=4. Fix A first. The route A-B-C-D-A has cost 1+2+1+2=6. Its reverse A-D-C-B-A also costs 6. Route A-B-D-C-A costs 1+4+1+4=10. Route A-C-B-D-A costs 4+2+4+2=12. The other two permutations reverse these last two routes and have the same costs. Thus six fixed-start permutations represent three undirected tours, with distinct costs 6, 10 and 12.

This example gives an exact reference against which an approximate solver can be interpreted. If a method returns costs 6, 10 and 12 with probabilities 0.2, 0.5 and 0.3, its mean feasible cost is 9.8, its optimal-tour probability is 0.2 and its probability of returning a route of cost at most 10 is 0.7. Those statistics answer different questions. An expectation-value objective does not determine either success probability. A solver that always returns cost 10 has a slightly worse mean than 9.8 but no chance of returning cost 12.

Capacity, time and representation costs

Adding vehicles changes the scientific problem. A capacity constraint limits the total demand assigned to a vehicle, while a time-window constraint connects arrival time to route order and travel time. A distance-only traveling-salesperson encoding does not establish that these extra conditions are handled. Slack variables can express inequalities as equalities, but their bit length, numerical scale and interaction terms become part of the resource estimate.

An operational comparison should state whether time includes construction of the cost matrix, encoding, parameter selection, sampling, rejection of infeasible strings and decoding. A claimed improvement in the energy of a penalized Hamiltonian is useful only if the decoded routes meet the original constraints. Suitable classical comparators depend on instance structure: exact enumeration is sufficient here; larger routing instances may need integer optimization, constraint programming or specialized heuristics. No conclusion about asymptotic advantage follows from this four-location illustration.

Expected cost and risk of a poor route describe different outcomes

The solved tour distribution has costs 6,10,12 with probabilities 0.2,0.5,0.3. Its second moment is 0.2(36)+0.5(100)+0.3(144)=100.4. Subtracting the squared mean 9.8^2=96.04 gives variance 4.36 and standard deviation approximately 2.088061. A deterministic solver returning cost 10 has zero output variance but a slightly larger mean cost. Neither comparison alone declares which solver is useful for every operational decision.

If independently repeated samples are allowed and the best route is retained, the probability of seeing the cost-six optimum after n attempts is 1-0.8^n. Fourteen attempts give approximately 0.956020, whereas thirteen give approximately 0.945024. This is an exact sampling statement for the stipulated distribution. Correlated samples, changing parameters or a preparation overhead shared across attempts require a different time-to-solution account. A route benchmark should specify whether it compares one draw, the best of a fixed number of draws, or the best result under a complete elapsed-time budget.

Sources

  • Edward Farhi; Jeffrey Goldstone; Sam Gutmann · · Research paper · Publication status unspecified · arXiv
    Verification scope

    A Quantum Approximate Optimization Algorithm
    Edward Farhi; Jeffrey Goldstone; Sam Gutmann · Research paper · Preprint recorded · arXiv

    Metadata and abstract checked ·

    Problem- and depth-specific approximation results; no general efficient solution of NP-hard problems follows.

  • Roman Orus; Samuel Mugel; Enrique Lizaso · Review article · Preprint recorded · arXiv
    Verification scope

    Available excerpt checked ·

    Historical prospective survey. Commercial forecasts are not adopted as established results; examples are mathematical, not financial advice.