From 89bfbb709a57abcd8e2ab5004f16ae591402cc43 Mon Sep 17 00:00:00 2001 From: Kevin Tian Date: Tue, 30 Nov 2021 22:27:19 -0500 Subject: [PATCH 1/2] optional program description --- qiskit_ibm_runtime/ibm_runtime_service.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/qiskit_ibm_runtime/ibm_runtime_service.py b/qiskit_ibm_runtime/ibm_runtime_service.py index c0eebd4ca..3db6e7a0b 100644 --- a/qiskit_ibm_runtime/ibm_runtime_service.py +++ b/qiskit_ibm_runtime/ibm_runtime_service.py @@ -1034,7 +1034,6 @@ def upload_program( - name - max_execution_time - - description Program metadata can be specified using the `metadata` parameter or individual parameter (for example, `name` and `description`). If the @@ -1055,7 +1054,7 @@ def upload_program( * name: Name of the program. Required. * max_execution_time: Maximum execution time in seconds. Required. - * description: Program description. Required. + * description: Program description. * is_public: Whether the runtime program should be visible to the public. The default is ``False``. * spec: Specifications for backend characteristics and input parameters @@ -1077,7 +1076,7 @@ def upload_program( """ program_metadata = self._read_metadata(metadata=metadata) - for req in ["name", "description", "max_execution_time"]: + for req in ["name", "max_execution_time"]: if req not in program_metadata or not program_metadata[req]: raise IBMInputValueError(f"{req} is a required metadata field.") From 9d56cb74b3440743ae5d1cd6e0ec587e321ee592 Mon Sep 17 00:00:00 2001 From: Kevin Tian Date: Wed, 1 Dec 2021 19:14:34 -0500 Subject: [PATCH 2/2] add reno --- .../notes/optional-program-description-f6e3aceca8223af7.yaml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 releasenotes/notes/optional-program-description-f6e3aceca8223af7.yaml diff --git a/releasenotes/notes/optional-program-description-f6e3aceca8223af7.yaml b/releasenotes/notes/optional-program-description-f6e3aceca8223af7.yaml new file mode 100644 index 000000000..900810157 --- /dev/null +++ b/releasenotes/notes/optional-program-description-f6e3aceca8223af7.yaml @@ -0,0 +1,5 @@ +--- +upgrade: + - | + When uploading a program with :meth:`qiskit_ibm_runtime.IBMRuntimeService.upload_program`, + the program description is now optional. \ No newline at end of file