Korean
언어
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.providers.ibmq.job.IBMQJob.update_tags

IBMQJob.update_tags(replacement_tags=None, additional_tags=None, removal_tags=None)[소스]

Update the tags associated with this job.

When multiple parameters are specified, the parameters are processed in the following order:

  1. replacement_tags

  2. additional_tags

  3. removal_tags

For example, if 〈new_tag〉 is specified for both additional_tags and removal_tags, then it is added and subsequently removed from the tags list, making it a 《do nothing》 operation.

참고

  • Some tags, such as those starting with ibmq_jobset, are used internally by ibmq-provider and therefore cannot be modified.

  • When removing tags, if the job does not have a specified tag, it will be ignored.

매개변수
  • replacement_tags (Optional[List[str]]) – The tags that should replace the current tags associated with this job.

  • additional_tags (Optional[List[str]]) – The new tags that should be added to the current tags associated with this job.

  • removal_tags (Optional[List[str]]) – The tags that should be removed from the current tags associated with this job.

반환 형식

List[str]

반환

The new tags associated with this job.

예외 발생
  • IBMQJobApiError – If an unexpected error occurred when communicating with the server or updating the job tags.

  • IBMQJobInvalidStateError – If none of the input parameters are specified or if any of the input parameters are invalid.