diff --git a/runtime/cudaq/platform/default/rest/helpers/ionq/IonQServerHelper.cpp b/runtime/cudaq/platform/default/rest/helpers/ionq/IonQServerHelper.cpp index 0225b6fe769..ec906b2f940 100644 --- a/runtime/cudaq/platform/default/rest/helpers/ionq/IonQServerHelper.cpp +++ b/runtime/cudaq/platform/default/rest/helpers/ionq/IonQServerHelper.cpp @@ -22,7 +22,7 @@ namespace cudaq { /// computation jobs. class IonQServerHelper : public ServerHelper { static constexpr const char *DEFAULT_URL = "https://api.ionq.co"; - static constexpr const char *DEFAULT_VERSION = "v0.3"; + static constexpr const char *DEFAULT_VERSION = "v0.4"; public: /// @brief Returns the name of the server helper. @@ -120,8 +120,8 @@ void IonQServerHelper::initialize(BackendConfig config) { parseConfigForCommonParams(config); // Enable debiasing - if (config.find("debias") != config.end()) - backendConfig["debias"] = config["debias"]; + if (config.find("debiasing") != config.end()) + backendConfig["debiasing"] = config["debiasing"]; if (config.find("sharpen") != config.end()) backendConfig["sharpen"] = config["sharpen"]; if (config.find("format") != config.end()) @@ -204,14 +204,14 @@ IonQServerHelper::createJob(std::vector &circuitCodes) { job["input"]["format"] = "qir"; job["input"]["data"] = circuitCode.code; // Include error mitigation configuration if set in backendConfig - if (keyExists("debias")) { + if (keyExists("debiasing")) { try { - bool debiasValue = - nlohmann::json::parse(backendConfig["debias"]).get(); - job["error_mitigation"]["debias"] = debiasValue; + bool debiasingValue = + nlohmann::json::parse(backendConfig["debiasing"]).get(); + job["error_mitigation"]["debiasing"] = debiasingValue; } catch (const nlohmann::json::exception &e) { throw std::runtime_error( - "Invalid value for 'debias'. It should be a boolean (true/false)."); + "Invalid value for 'debiasing'. It should be a boolean (true/false)."); } } diff --git a/utils/mock_qpu/ionq/__init__.py b/utils/mock_qpu/ionq/__init__.py index 616e37b78fc..a5bfd256909 100644 --- a/utils/mock_qpu/ionq/__init__.py +++ b/utils/mock_qpu/ionq/__init__.py @@ -87,7 +87,7 @@ async def login(token: Union[str, None] = Header(alias="Authorization", # Here we expose a way to post jobs, # Must have a Access Token, Job Program must be Adaptive Profile # with entry_point tag -@app.post("/v0.3/jobs") +@app.post("/v0.4/jobs") async def postJob(job: Job, token: Union[str, None] = Header(alias="Authorization", default=None)): @@ -138,7 +138,7 @@ async def postJob(job: Job, # Retrieve the job, simulate having to wait by counting to 3 # until we return the job results -@app.get("/v0.3/jobs") +@app.get("/v0.4/jobs") async def getJob(id: str): global countJobGetRequests, createdJobs, numQubitsRequired @@ -152,13 +152,13 @@ async def getJob(id: str): "jobs": [{ "status": "completed", "qubits": numQubitsRequired, - "results_url": "/v0.3/jobs/{}/results".format(id) + "results_url": "/v0.4/jobs/{}/results".format(id) }] } return res -@app.get("/v0.3/jobs/{jobId}/results") +@app.get("/v0.4/jobs/{jobId}/results") async def getResults(jobId: str): global countJobGetRequests, createdJobs