diff --git a/qiskit_ibm/api/rest/runtime.py b/qiskit_ibm/api/rest/runtime.py index da8cf3487..41e14765a 100644 --- a/qiskit_ibm/api/rest/runtime.py +++ b/qiskit_ibm/api/rest/runtime.py @@ -96,7 +96,7 @@ def create_program( 'cost': str(max_execution_time), 'description': description.encode(), 'max_execution_time': max_execution_time, - 'isPublic': is_public} + 'is_public': is_public} if backend_requirements: data['backendRequirements'] = json.dumps(backend_requirements) if parameters: diff --git a/qiskit_ibm/runtime/ibm_runtime_service.py b/qiskit_ibm/runtime/ibm_runtime_service.py index febe967f6..776b8347d 100644 --- a/qiskit_ibm/runtime/ibm_runtime_service.py +++ b/qiskit_ibm/runtime/ibm_runtime_service.py @@ -196,7 +196,7 @@ def _to_program(self, response: Dict) -> RuntimeProgram: max_execution_time=response.get('cost', 0), creation_date=response.get('creationDate', ""), backend_requirements=backend_req, - is_public=response.get('isPublic', False)) + is_public=response.get('is_public', False)) def run( self, diff --git a/test/ibm/runtime/fake_runtime_client.py b/test/ibm/runtime/fake_runtime_client.py index a041c718a..1243fbb9a 100644 --- a/test/ibm/runtime/fake_runtime_client.py +++ b/test/ibm/runtime/fake_runtime_client.py @@ -47,7 +47,7 @@ def to_dict(self, include_data=False): 'name': self._name, 'cost': self._cost, 'description': self._description, - 'isPublic': self._is_public} + 'is_public': self._is_public} if include_data: out['data'] = self._data if self._backend_requirements: