QU-TRAX is a production-ready, quantum-inspired logistics optimization engine designed to solve complex problems in supply chain management, such as:
- Route optimization (TSP, VRP)
- Dynamic scheduling and resource allocation
- Intelligent warehouse and traffic load management
Leveraging quantum-inspired algorithms like Simulated Annealing and Quantum Collapse techniques, Q-TRAX aims to provide efficient, scalable, and flexible solutions to logistics challenges.
- Modular backend architecture built with Python FastAPI and async workers
- Dynamic traffic generator module simulating logistics loads and scenarios
- Redis-based job queue with RQ workers for asynchronous task execution
- WebSocket support for real-time progress updates on optimization jobs
- Configurable quantum-inspired simulation algorithm core
- Support for multiple environment setups (Mac, Windows, Linux) with detailed installation scripts
- Logging and debugging facilities to trace optimization workflow and worker statuses
| Component | Technology / Tool |
|---|---|
| Backend Framework | FastAPI (Python) |
| Task Queue & Workers | Redis + RQ |
| Algorithm Core | Custom Quantum-inspired Simulation (Python) |
| Real-time Updates | WebSockets |
| Database (planned) | PostgreSQL (pgvector for embeddings) |
| Containerization | Docker (planned) |
| Development OS | MacOS, Windows, Linux |
- Python 3.10+
- Redis server
- Git
- (Optional) Docker
git clone https://github.com/BUILDING-ADOCY/Q-TRAX-ALGORITHM.git
cd q-traxpython3 -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txtpython -m venv venv
.\venv\Scripts\Activate.ps1
pip install --upgrade pip
pip install -r requirements.txtbrew install redis
brew services start redisVerify Redis is running:
redis-cli ping
# Should respond with PONG- Download Redis for Windows from https://github.com/tporadowski/redis/releases
- Extract and run
redis-server.exemanually or install as a service. - To start manually (in Command Prompt or PowerShell):
redis-serverVerify Redis is running in another terminal:
redis-cli ping
# Should respond with PONGsudo apt update
sudo apt install redis-server
sudo systemctl start redis
sudo systemctl enable redisVerify Redis is running:
redis-cli ping
# Should respond with PONGIn a new terminal window, activate your virtual environment and run:
rq worker qtraxYou should see the worker waiting for jobs.
Run:
uvicorn main:app --reloadThe API will be available at: http://localhost:8000
- Submit optimization jobs via the API endpoint
/enqueue_dynamic - Track job status and progress in real-time using WebSocket
/ws/results/{job_id} - The backend asynchronously executes the quantum-inspired simulation algorithm and streams updates until completion
Scenario: A logistics company wants to optimize delivery routes for a fleet of vehicles, minimizing total travel distance while factoring in traffic and warehouse constraints.
How Q-TRAX Works:
- The client submits delivery points and constraints to Q-TRAX backend.
- Q-TRAX’s quantum-inspired algorithm uses simulated annealing and quantum collapse heuristics to explore the solution space.
- The process runs asynchronously, providing real-time progress updates.
- The optimized routing solution is returned for execution, improving logistics efficiency.
- Integrate PostgreSQL database with pgvector for embedding-based search
- Dockerize components for container-based deployment
- Build a frontend dashboard with interactive visualizations
- Add machine learning-based traffic and demand forecasting
- Extend support for multimodal transport and advanced resource scheduling
- FastAPI Documentation
- Redis & RQ Documentation
- Quantum-inspired optimization algorithms research papers (available on request)
Feel free to contribute or raise issues! Contact: [surajmahapatra2003@gmail.com] GitHub: (https://github.com/BUILDING-ADOCY/Q-TRAX-ALGORITHM.git)
