Commit db16933d authored by Mccaskey, Alex's avatar Mccaskey, Alex
Browse files

Fixing py xacc compiler tester bug


Signed-off-by: Mccaskey, Alex's avatarAlex McCaskey <mccaskeyaj@ornl.gov>
parent 187238d8
Pipeline #66330 passed with stage
in 7 minutes and 2 seconds
......@@ -102,7 +102,7 @@ TEST(PyXACCCompilerTester, checkIRGen) {
if (xacc::hasService<IRGenerator>("uccsd")) {
const std::string uccsdSrc = R"uccsdSrc(def foo(buffer, *args):
uccsd(n_qubits=4, n_electrons=2)
uccsd(nqubits=4, nelectrons=2)
)uccsdSrc";
auto compiler = xacc::getService<xacc::Compiler>("xacc-py");
......@@ -110,9 +110,9 @@ TEST(PyXACCCompilerTester, checkIRGen) {
auto acc = std::make_shared<FakePyAcc>();
auto ir = compiler->compile(R"(def foo(buffer, *args):
uccsd(n_qubits=4, n_electrons=2)
uccsd(nqubits=4, nelectrons=2)
)", acc);
auto f = ir->getKernel("foo");
EXPECT_EQ("foo", f->name());
EXPECT_EQ(f->nParameters(), 2);
......
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