diff options
Diffstat (limited to 'hadamard.cpp')
-rw-r--r-- | hadamard.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/hadamard.cpp b/hadamard.cpp index 5154677..2f45dcc 100644 --- a/hadamard.cpp +++ b/hadamard.cpp @@ -116,7 +116,7 @@ int main(int argc, char* argv[]) { std::cout << "Beginning simulation of " << n << ".\n"; std::cout << "Beginning " << n_tuning << " tuning tempering updates of " << M << " sweeps each.\n"; - p.tune(n_tuning, M, ε, ε2); + std::vector<double> f = p.tune(n_tuning, M, ε, ε2); std::cout << "Finished tuning, beginning " << m << " measurement tempering updates of " << M << " sweeps each.\n"; p.run(m, M); @@ -133,6 +133,11 @@ int main(int argc, char* argv[]) { } file << std::endl; + for (double ff : f) { + file << ff << " "; + } + file << std::endl; + for (unsigned i = 0; i < B.nAccepted.size(); i++) { file << std::fixed << B.nAccepted[i] / (double)B.total_steps << " "; } |