Commit 94a19598 authored by Nguyen, Thien Minh's avatar Nguyen, Thien Minh
Browse files

Realized that the ring graph example is not fully connected



Signed-off-by: default avatarThien Nguyen <nguyentm@ornl.gov>
parent 405406c7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@ __qpu__ void qaoa_maxcut(qreg q, std::vector<double> gamma,
int main(int argc, char **argv) {
  auto q = qalloc(5);
  // Ring graph
  std::vector<std::pair<int, int>> graph{{0, 1}, {1, 2}, {2, 3}, {3, 4}};
  std::vector<std::pair<int, int>> graph{{0, 1}, {1, 2}, {2, 3}, {3, 4}, {4, 0}};
  // One step
  int p = 1;
  std::vector<double> gammas{1.0};