Commit 77c50bc7 authored by Mccaskey, Alex's avatar Mccaskey, Alex
Browse files

Merge branch 'master' of https://github.com/ornl-qci/qcor

parents 5966fd95 76d812b5
Pipeline #164435 passed with stage
in 22 minutes and 47 seconds
......@@ -1135,7 +1135,7 @@ template <typename... Args>
std::string openqasm(KernelSignature<Args...> &kernelCallable, Args... args) {
auto tempKernel = qcor::__internal__::create_composite("temp_as_openqasm");
kernelCallable(tempKernel, args...);
xacc::internal_compiler::execute_pass_manager();
xacc::internal_compiler::execute_pass_manager(tempKernel);
return __internal__::translate("staq", tempKernel);
}
......@@ -1144,7 +1144,7 @@ void print_kernel(KernelSignature<Args...> &kernelCallable, std::ostream &os,
Args... args) {
auto tempKernel = qcor::__internal__::create_composite("temp_print");
kernelCallable(tempKernel, args...);
xacc::internal_compiler::execute_pass_manager();
xacc::internal_compiler::execute_pass_manager(tempKernel);
os << tempKernel->toString() << "\n";
}
......
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