summaryrefslogtreecommitdiff
path: root/hadamard_test.cpp
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2019-12-18 18:41:44 -0500
committerJaron Kent-Dobias <jaron@kent-dobias.com>2019-12-18 18:41:44 -0500
commit870753b8aa184a7f4bed5d29a527e38cdfe2f5b8 (patch)
treeb53498d3b1633804a99dd3a7ee613a04e97a41b0 /hadamard_test.cpp
parentb80e90d1ed702877f905875be3e416ca599a62a3 (diff)
downloadcode-870753b8aa184a7f4bed5d29a527e38cdfe2f5b8.tar.gz
code-870753b8aa184a7f4bed5d29a527e38cdfe2f5b8.tar.bz2
code-870753b8aa184a7f4bed5d29a527e38cdfe2f5b8.zip
half implemented new tuning for pt
Diffstat (limited to 'hadamard_test.cpp')
-rw-r--r--hadamard_test.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/hadamard_test.cpp b/hadamard_test.cpp
new file mode 100644
index 0000000..c1dd8cd
--- /dev/null
+++ b/hadamard_test.cpp
@@ -0,0 +1,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);
+ }
+}