In the logistics industry, optimizing distribution is crucial, especially when it comes to routing a fleet of vehicles to deliver goods from central depots to various clients. For vaccine distribution, the challenge becomes even more critical due to the need for timely and efficient delivery to save lives. This project aims to address this challenge by applying quantum computing to find optimal routes for vaccine distribution in rural Nepal.
We propose a solution that leverages quantum approaches:
- Quantum Travelling Salesman Problem (TSP) algorithm will be used to find the shortest paths within each cluster to efficiently distribute vaccines.
By solving this problem with a quantum solution, we hope to optimize vehicle routing, leading to more timely vaccine delivery and reduced distribution costs.
The frontend provides an interactive map where users can select various locations in Nepal. Once the locations are selected, the backend processes the data and returns the optimal route for distributing vaccines.
- HTML, CSS, JavaScript
- Mapbox for map integration
- Map Integration: Use a static image of a map or an interactive map service like Mapbox.
- User Input: Users click on the map to select locations, which are then passed to the backend for processing.
- API Communication: The frontend sends the selected locations to the backend API, receives the optimal route, and displays it on the map.
The backend handles requests from the frontend, processes the data, and interfaces with the quantum component. It is responsible for converting location names into indices and ensuring compatibility between the frontend and quantum algorithm.
- Python
- FastAPI or any lightweight web framework
- API Endpoints: Create endpoints to receive points data from the frontend and send responses with the optimal path.
- Data Mapping: Map location names to indices for quantum algorithm input.
- Quantum Integration: Pass the graph representation of the problem to the quantum component and return the solution to the frontend.
The quantum algorithm is the core of this project. We will implement the Travelling Salesman Problem (TSP) using Qiskit, simulating quantum behavior to solve the problem.
- Qiskit (IBM’s quantum computing framework)
- Input Graph Representation: Define how the locations will be represented as a graph.
- Quantum TSP Algorithm: Implement the algorithm using Qiskit.
- Simulator: Use a quantum simulator for demonstration purposes due to queue times on real quantum computers. The algorithm can handle up to 4 nodes (16 qubits) for our demonstration.
- The quantum simulation can only handle up to 4 nodes, so users will be limited to selecting up to 4 locations from a possible pool of 10.
- Quantum TSP Using PyQuil Tutorial
- Qiskit TSP Tutorial
- Quantum Optimization Solutions
- Travelling Salesman Problem on Quantum Computer
-
Clone the Repository:
git clone https://github.com/your-repo-url cd your-repo
-
Frontend Setup:
- Implement the frontend using HTML, CSS, and JavaScript.
- Optionally integrate Mapbox for the interactive map.
-
Backend Setup:
- Install FastAPI:
pip install fastapi pip install uvicorn
- Set up API endpoints to communicate with the frontend.
- Install FastAPI:
-
Quantum Algorithm:
- Install Qiskit:
pip install qiskit
- Implement the quantum TSP algorithm and test it with different datasets.
- Install Qiskit:
-
Running the Server:
- Start the FastAPI server:
uvicorn main:app --reload
- Start the FastAPI server:
-
Testing:
- Use the frontend to select locations and check the optimal path returned by the quantum algorithm.
We would like to thank IBM for their excellent quantum computing resources and tutorials. Special thanks to the authors of the articles and GitHub repositories referenced in this project.