Skip to main content
IBM Quantum Platform
This page is from an old version of Qiskit SDK and does not exist in the latest version. We recommend you migrate to the latest version. See the release notes for more information.

qiskit.optimization.applications.ising.vehicle_routing

Converts vehicle routing instances into a list of Paulis, and provides some related routines (extracting a solution, checking its objective function value).

Functions

get_operator(instance, n, K)Converts an instance of a vehicle routing problem into a list of Paulis.
get_vehiclerouting_cost(instance, n, K, x_sol)Computes the cost of a solution to an instance of a vehicle routing problem.
get_vehiclerouting_matrices(instance, n, K)Constructs auxiliary matrices from a vehicle routing instance,
get_vehiclerouting_solution(instance, n, K, …)Tries to obtain a feasible solution (in vector form) of an instance
Was this page helpful?
Report a bug or request content on GitHub.