aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorottjk <joshott16@gmail.com>2023-12-05 23:41:11 -0500
committerottjk <joshott16@gmail.com>2023-12-05 23:41:11 -0500
commit47c210dc99b36de033d0722d4bcb810a7bd075ce (patch)
tree4fdb2b69d5956b2e3ee2f8bbbd225ed1caea34bf
parentcbd5da1ba1524e1a50376f50d2867482fed10383 (diff)
downloadgraph-coloring-main.tar.gz
graph-coloring-main.zip
updateHEADmain
-rw-r--r--README.md6
-rw-r--r--prob_plots.py1
2 files changed, 6 insertions, 1 deletions
diff --git a/README.md b/README.md
index 41c5651..ea3e314 100644
--- a/README.md
+++ b/README.md
@@ -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)