summaryrefslogtreecommitdiff
path: root/hadamard_test.cpp
blob: c1dd8cdbafc885d095fee530b23d50bcab1f5702 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "hadamard_pt.hpp"

int main() {
  double β0 = 1.0;
  double β1 = 10.0;
  unsigned N = 8;
  unsigned n = 4;

  ParallelMeasurement m1;
  std::vector<Measurement> m2(N);
  std::vector<Measurement*> m3;
  for (Measurement& m : m2) {
    m3.push_back(&m);
  }

  PT a(β0, β1, N, n, m1, m3);

  while (true) {
    a.tune(1000, 10, 0.1);
  }
}