Skip to main contentIBM Quantum Documentation

PrimitiveResult

qiskit.primitives.PrimitiveResult(pub_results, metadata=None)

GitHub(opens in a new tab)

Bases: Generic(opens in a new tab)[T]

A container for multiple pub results and global metadata.

Parameters

  • pub_results (Iterable[T]) – Pub results.
  • metadata (dict(opens in a new tab)[str(opens in a new tab), Any] | None) – Metadata that is common to all pub results; metadata specific to particular pubs should be placed in their metadata fields. Keys are expected to be strings.

Attributes

metadata

The metadata of this primitive result.

Was this page helpful?
Report a bug or request content on GitHub.