Loading compiler/qcor-driver.in.cpp +3 −1 Original line number Diff line number Diff line Loading @@ -163,7 +163,9 @@ int main(int argc, char **argv) { } } if (!accName.empty()) { xacc::setAccelerator(accName); } if (!tooling::runToolOnCodeWithArgs(action, src, args)) { xacc::error("Error running qcor compiler."); } Loading runtime/tests/CMakeLists.txt +1 −1 Original line number Diff line number Diff line set(CMAKE_CXX_COMPILER qcor) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -a local-ibm") message(STATUS "LINKING ${XACC_ROOT}/lib") link_directories(${XACC_ROOT}/lib) Loading runtime/tests/test_bell_state.cpp +5 −1 Original line number Diff line number Diff line Loading @@ -14,6 +14,8 @@ TEST(bell_state_tester, check_bell_state) { bell(q); q->print(); EXPECT_TRUE(q->getMeasurementCounts().count("00")); EXPECT_TRUE(q->getMeasurementCounts().count("11")); auto handle = qcor::submit([&](qcor::qpu_handler& qh) { qh.execute(bell); Loading @@ -21,6 +23,8 @@ TEST(bell_state_tester, check_bell_state) { auto results = qcor::sync(handle); results->print(); EXPECT_TRUE(results->getMeasurementCounts().count("00")); EXPECT_TRUE(results->getMeasurementCounts().count("11")); } Loading scripts/qcor.in +8 −8 File changed.Contains only whitespace changes. Show changes Loading
compiler/qcor-driver.in.cpp +3 −1 Original line number Diff line number Diff line Loading @@ -163,7 +163,9 @@ int main(int argc, char **argv) { } } if (!accName.empty()) { xacc::setAccelerator(accName); } if (!tooling::runToolOnCodeWithArgs(action, src, args)) { xacc::error("Error running qcor compiler."); } Loading
runtime/tests/CMakeLists.txt +1 −1 Original line number Diff line number Diff line set(CMAKE_CXX_COMPILER qcor) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -a local-ibm") message(STATUS "LINKING ${XACC_ROOT}/lib") link_directories(${XACC_ROOT}/lib) Loading
runtime/tests/test_bell_state.cpp +5 −1 Original line number Diff line number Diff line Loading @@ -14,6 +14,8 @@ TEST(bell_state_tester, check_bell_state) { bell(q); q->print(); EXPECT_TRUE(q->getMeasurementCounts().count("00")); EXPECT_TRUE(q->getMeasurementCounts().count("11")); auto handle = qcor::submit([&](qcor::qpu_handler& qh) { qh.execute(bell); Loading @@ -21,6 +23,8 @@ TEST(bell_state_tester, check_bell_state) { auto results = qcor::sync(handle); results->print(); EXPECT_TRUE(results->getMeasurementCounts().count("00")); EXPECT_TRUE(results->getMeasurementCounts().count("11")); } Loading