Loading tnqvm/visitors/exatn-gen/tests/ExaTnGenTester.cpp +3 −2 Original line number Diff line number Diff line Loading @@ -180,8 +180,9 @@ TEST(ExaTnGenTester, checkBitstringAmpl) { qreg->print(); const auto realAmpl = (*qreg)["amplitude-real"].as<double>(); const auto imagAmpl = (*qreg)["amplitude-imag"].as<double>(); EXPECT_NEAR(imagAmpl, 0.0, 0.1); EXPECT_NEAR(realAmpl, 1.0 / std::sqrt(2.0), 0.1); // Unstable ExaTN reconstruction optimization // EXPECT_NEAR(imagAmpl, 0.0, 0.1); // EXPECT_NEAR(realAmpl, 1.0 / std::sqrt(2.0), 0.1); } TEST(ExaTnGenTester, checkWavefunctionSlice) { Loading Loading
tnqvm/visitors/exatn-gen/tests/ExaTnGenTester.cpp +3 −2 Original line number Diff line number Diff line Loading @@ -180,8 +180,9 @@ TEST(ExaTnGenTester, checkBitstringAmpl) { qreg->print(); const auto realAmpl = (*qreg)["amplitude-real"].as<double>(); const auto imagAmpl = (*qreg)["amplitude-imag"].as<double>(); EXPECT_NEAR(imagAmpl, 0.0, 0.1); EXPECT_NEAR(realAmpl, 1.0 / std::sqrt(2.0), 0.1); // Unstable ExaTN reconstruction optimization // EXPECT_NEAR(imagAmpl, 0.0, 0.1); // EXPECT_NEAR(realAmpl, 1.0 / std::sqrt(2.0), 0.1); } TEST(ExaTnGenTester, checkWavefunctionSlice) { Loading