Commit 82cffc1a authored by Mccaskey, Alex's avatar Mccaskey, Alex
Browse files

fixing build fail, switching new adapt pr to use qpp and not tnqvm


Signed-off-by: Mccaskey, Alex's avatarAlex McCaskey <mccaskeyaj@ornl.gov>
parent c739e32c
Pipeline #106689 failed with stage
in 16 minutes and 55 seconds
......@@ -27,7 +27,7 @@ using namespace xacc::quantum;
TEST(AdaptVQETester, checkSimple) {
xacc::set_verbose(true);
auto acc = xacc::getAccelerator("tnqvm");
auto acc = xacc::getAccelerator("qpp");
auto buffer = xacc::qalloc(4);
auto optimizer = xacc::getOptimizer("nlopt", {std::make_pair("nlopt-optimizer","l-bfgs")});
auto adapt_vqe = xacc::getService<Algorithm>("adapt-vqe");
......
......@@ -25,7 +25,7 @@ using namespace xacc::quantum;
TEST(GradientStrategiesTester, checkParameterShift)
{
auto accelerator = xacc::getAccelerator("tnqvm");
auto accelerator = xacc::getAccelerator("qpp");
auto buffer = xacc::qalloc(2);
std::shared_ptr<Observable> observable = std::make_shared<xacc::quantum::PauliOperator>();
......@@ -45,7 +45,7 @@ TEST(GradientStrategiesTester, checkParameterShift)
std::vector<double> dx(1);
parameterShift->compute(dx, buffer->getChildren());
EXPECT_EQ(dx[0], -1.0);
EXPECT_NEAR(dx[0], -1.0, 1e-4);
}
int main(int argc, char **argv)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment