Commit c0d98372 authored by Nguyen, Thien Minh's avatar Nguyen, Thien Minh
Browse files

Updated PyXASM expected for loop codegen in unit tests



Signed-off-by: Nguyen, Thien Minh's avatarThien Nguyen <nguyentm@ornl.gov>
parent 3e62f823
......@@ -31,7 +31,7 @@ TEST(PyXASMTokenCollectorTester, checkSimple) {
EXPECT_EQ(R"#(quantum::h(qb[0]);
quantum::cnot(qb[0], qb[1]);
for (int i = 0; i < qb.size(); ++i ) {
for (auto &i : range(qb.size())) {
quantum::x(qb[i]);
quantum::x(qb[i]);
quantum::mz(qb[i]);
......
......@@ -154,9 +154,9 @@ TEST(TokenCollectorTester, checkPyXasm) {
auto results =
qcor::run_token_collector(*PP, cached, {"qb"});
std::cout << results << "\n";
EXPECT_EQ(R"#(quantum::h(qb[0]);
EXPECT_EQ(R"#(quantum::h(qb[0]);
quantum::cnot(qb[0], qb[1]);
for (int i = 0; i < qb.size(); ++i ) {
for (auto &i : range(qb.size())) {
quantum::x(qb[i]);
quantum::x(qb[i]);
quantum::mz(qb[i]);
......
Supports Markdown
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