quboResult2tsp
Installation Required: This functionality requires MATLAB Support Package for Quantum Computing.
Description
converts the result of solving a traveling
salesperson QUBO formulation to a solution for the corresponding problem, returned
as a numeric index vector of the order the cities are visited. Use this function after
solving a QUBO formulation created using the order = quboResult2tsp(result)tsp2qubo
function.
[
converts the traveling salesperson QUBO formulation result to a solution for the
corresponding problem specified by the graph order,tourGraph] = quboResult2tsp(result,G)G. In addition to the
city-order vector, the function returns a graph of the optimal tour. If
G has node names, the order is a cell array of names. Otherwise, it
is a numeric vector.
Examples
Input Arguments
Output Arguments
More About
Version History
Introduced in R2025b

