@@ -22,7 +22,7 @@ namespace cudaq {
2222// / computation jobs.
2323class IonQServerHelper : public ServerHelper {
2424 static constexpr const char *DEFAULT_URL = " https://api.ionq.co" ;
25- static constexpr const char *DEFAULT_VERSION = " v0.3 " ;
25+ static constexpr const char *DEFAULT_VERSION = " v0.4 " ;
2626
2727public:
2828 // / @brief Returns the name of the server helper.
@@ -120,8 +120,8 @@ void IonQServerHelper::initialize(BackendConfig config) {
120120 parseConfigForCommonParams (config);
121121
122122 // Enable debiasing
123- if (config.find (" debias " ) != config.end ())
124- backendConfig[" debias " ] = config[" debias " ];
123+ if (config.find (" debiasing " ) != config.end ())
124+ backendConfig[" debiasing " ] = config[" debiasing " ];
125125 if (config.find (" sharpen" ) != config.end ())
126126 backendConfig[" sharpen" ] = config[" sharpen" ];
127127 if (config.find (" format" ) != config.end ())
@@ -204,14 +204,14 @@ IonQServerHelper::createJob(std::vector<KernelExecution> &circuitCodes) {
204204 job[" input" ][" format" ] = " qir" ;
205205 job[" input" ][" data" ] = circuitCode.code ;
206206 // Include error mitigation configuration if set in backendConfig
207- if (keyExists (" debias " )) {
207+ if (keyExists (" debiasing " )) {
208208 try {
209- bool debiasValue =
210- nlohmann::json::parse (backendConfig[" debias " ]).get <bool >();
211- job[" error_mitigation" ][" debias " ] = debiasValue ;
209+ bool debiasingValue =
210+ nlohmann::json::parse (backendConfig[" debiasing " ]).get <bool >();
211+ job[" error_mitigation" ][" debiasing " ] = debiasingValue ;
212212 } catch (const nlohmann::json::exception &e) {
213213 throw std::runtime_error (
214- " Invalid value for 'debias '. It should be a boolean (true/false)." );
214+ " Invalid value for 'debiasing '. It should be a boolean (true/false)." );
215215 }
216216 }
217217
0 commit comments