diff options
Diffstat (limited to 'hadamard_test.cpp')
-rw-r--r-- | hadamard_test.cpp | 21 |
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); + } +} |