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

Added the bitstring test for the QPE test case now that the optimization is fixed



The optimization on this was producing the wrong circuit due to the call:
ctrl @ pow(repetitions) @ oracle counting[i], state;

now producing the correct IR after optimization.

Signed-off-by: default avatarThien Nguyen <nguyentm@ornl.gov>
parent 1be720c9
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -96,6 +96,9 @@ measure counting -> c;
// Backend is QPP which is lsb, 
// so return should be 100
print(c);
QCOR_EXPECT_TRUE(c[0] == 1);
QCOR_EXPECT_TRUE(c[1] == 0);
QCOR_EXPECT_TRUE(c[2] == 0);
)#";
  auto mlir = qcor::mlir_compile(qpe_test, "qpe_test",
                                 qcor::OutputType::MLIR, false);