Steps to run
1 . Create env
$ conda create -n qiskit-new python=3.9
- Install Dependencies
$ pip install -r requirements.txt
-
Three approaches to solve the TSP
-
Brute Force
$ python brute.py
-
Djikstras Algorithm
$ python djikstras.py
-
QAQO with qasm_simulator
$ python qaoa.pyfor 3 nodes$ python qaoa-4nodes.pyfor 4 nodes$ python qaoa-5nodes.pyfor 5 nodes
-
License
Contributions by Anshuk Kumar, including compare.py, are licensed under the Apache License 2.0. See NOTICE for the attribution to retain and the scope. Contributions by other authors remain under their own terms.