Skip to content

Commit

Permalink
[feature/CI_setup] more CI tinkering
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesETsmith committed Jun 10, 2024
1 parent ade644d commit 4e19467
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/test_pauli_op.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,11 @@ TEST_CASE("test apply multistate multistring identity") {
for (size_t t = 0; t < n_states; ++t) {
for (size_t i = 0; i < dims; ++i) {
CHECK(abs(new_states(i, t) - states(i, t)) < 1e-6);
if (abs(new_states(i, t) - states(i, t)) > 1e-6)
fmt::println("new_states(i, t): {}, states(i, t): {}", new_states(i, t),
states(i, t));
if (abs(new_states(i, t) - states(i, t)) > 1e-6) {
fmt::print("new_states(i, t): {}, states(i, t): {}", new_states(i, t),
states(i, t));
fmt::println(" ratio {}", new_states(i, t) / states(i, t));
}
}
}
}

0 comments on commit 4e19467

Please sign in to comment.