Skip to main contentIBM Quantum Documentation Mirror

PrimitiveResult

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

GitHub

Bases: Generic[T]

A container for multiple pub results and global metadata.

Parameters

  • pub_results (Iterable[T]) – Pub results.
  • metadata (dict[str, 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.