diff --git a/tests/test_pauli_op.cpp b/tests/test_pauli_op.cpp index 8df6d60..9752d97 100644 --- a/tests/test_pauli_op.cpp +++ b/tests/test_pauli_op.cpp @@ -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)); + } } } }