summaryrefslogtreecommitdiff
path: root/hadamard.cpp
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2019-12-20 17:37:01 -0500
committerJaron Kent-Dobias <jaron@kent-dobias.com>2019-12-20 17:37:01 -0500
commit2cc44d8981e42bfe663e8e7dee8dbb7914a9482f (patch)
treecd62dc9831b9cbb515e6639482cab8490b91929d /hadamard.cpp
parent714140771d28f1d1ca43f23cb7b84fe5f95ddcf2 (diff)
downloadcode-2cc44d8981e42bfe663e8e7dee8dbb7914a9482f.tar.gz
code-2cc44d8981e42bfe663e8e7dee8dbb7914a9482f.tar.bz2
code-2cc44d8981e42bfe663e8e7dee8dbb7914a9482f.zip
fixed it
Diffstat (limited to 'hadamard.cpp')
-rw-r--r--hadamard.cpp7
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 << " ";
}