Skip to main content
IBM Quantum Platform
번역 정보

이 페이지의 추가 언어 번역이 곧 제공될 예정입니다.

get_annotation

samplomatic.utils.get_annotation(box: BoxOp, annotation_type: type[Annotation] | tuple[type[Annotation], ...]) → Annotation | None

GitHub

Return a box’s first annotation of the given type(s).

Parameters

  • box – The box to return the annotation for.
  • annotation_type – The type of the desired annotation.

Returns

The box’s first annotation of the given type(s), or None if it does not contain an annotation of the given type(s).

이 페이지가 도움이 되었습니까?
GitHub에서 버그, 오타를 보고하거나 컨텐츠를 요청하십시오.