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で行ってください。