From 3b1f47b0ee79dccb5418d2a2aba4532a54c5eeeb Mon Sep 17 00:00:00 2001 From: Daniel Claudino Date: Fri, 25 Oct 2024 20:09:15 +0000 Subject: [PATCH] IBMAccelerator::execute() prints job id Signed-off-by: Daniel Claudino --- quantum/plugins/ibm/accelerator/IBMAccelerator.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/quantum/plugins/ibm/accelerator/IBMAccelerator.cpp b/quantum/plugins/ibm/accelerator/IBMAccelerator.cpp index 0d26499cf..5e4b764a5 100644 --- a/quantum/plugins/ibm/accelerator/IBMAccelerator.cpp +++ b/quantum/plugins/ibm/accelerator/IBMAccelerator.cpp @@ -322,13 +322,14 @@ auto transpiled = json::parse(get(IBM_TRANSPILER_URL, "/transpile/" + task_id, h }; for (const auto & c : transpiled["result"]) { - std::cout << c["qasm"] << "\n"; body["params"]["pubs"].push_back( {c["qasm"], json::array(), shots} ); } -auto reserve_response = post(IBM_API_URL, "/runtime/jobs", body.dump(), headers); + auto reserve_response = post(IBM_API_URL, "/runtime/jobs", body.dump(), headers); + + xacc::info("Current job ID: " + json::parse(reserve_response)["id"].get()); }