diff options
| author | ottjk <joshott16@gmail.com> | 2023-12-05 23:41:11 -0500 |
|---|---|---|
| committer | ottjk <joshott16@gmail.com> | 2023-12-05 23:41:11 -0500 |
| commit | 47c210dc99b36de033d0722d4bcb810a7bd075ce (patch) | |
| tree | 4fdb2b69d5956b2e3ee2f8bbbd225ed1caea34bf | |
| parent | cbd5da1ba1524e1a50376f50d2867482fed10383 (diff) | |
| download | graph-coloring-47c210dc99b36de033d0722d4bcb810a7bd075ce.tar.gz graph-coloring-47c210dc99b36de033d0722d4bcb810a7bd075ce.zip | |
| -rw-r--r-- | README.md | 6 | ||||
| -rw-r--r-- | prob_plots.py | 1 |
2 files changed, 6 insertions, 1 deletions
@@ -1,2 +1,6 @@ # csc591_proj -Using quantum computers and VQE/QAOA to solve a graph coloring problem. +Using quantum computers and QAOA to solve a graph coloring problem. + +* `main.py` - definition of QC class for creating a quantum circuit from a graph +* `prob_plots.py` - script used for finding ground states and generating probability distributions +* `graphviz.py` - generate graphs from outputted states diff --git a/prob_plots.py b/prob_plots.py index 741eaec..e2696eb 100644 --- a/prob_plots.py +++ b/prob_plots.py @@ -23,5 +23,6 @@ n_vertices = 6 graph = [(0,1),(0,2),(0,3),(0,4),(0,5),(1,2),(2,3),(3,4),(4,5),(5,1)] qc_6 = QC(graph, n_vertices, n_layers) +# uncomment which one you want # get_probs(qc_5) get_probs(qc_6) |