30 lines
1.3 KiB
Plaintext
30 lines
1.3 KiB
Plaintext
---
|
||
title: PrimitiveResult (latest version)
|
||
description: API reference for qiskit.primitives.PrimitiveResult in the latest version of qiskit
|
||
in_page_toc_min_heading_level: 1
|
||
python_api_type: class
|
||
python_api_name: qiskit.primitives.PrimitiveResult
|
||
---
|
||
|
||
# PrimitiveResult
|
||
|
||
<Class id="qiskit.primitives.PrimitiveResult" isDedicatedPage={true} github="https://github.com/Qiskit/qiskit/tree/stable/1.2/qiskit/primitives/containers/primitive_result.py#L25-L53" signature="qiskit.primitives.PrimitiveResult(pub_results, metadata=None)" modifiers="class">
|
||
Bases: [`Generic`](https://docs.python.org/3/library/typing.html#typing.Generic "(in Python v3.13)")\[`T`]
|
||
|
||
A container for multiple pub results and global metadata.
|
||
|
||
**Parameters**
|
||
|
||
* **pub\_results** (*Iterable\[T]*) – Pub results.
|
||
* **metadata** ([*dict*](https://docs.python.org/3/library/stdtypes.html#dict "(in Python v3.13)")*\[*[*str*](https://docs.python.org/3/library/stdtypes.html#str "(in Python v3.13)")*, 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
|
||
|
||
<Attribute id="qiskit.primitives.PrimitiveResult.metadata">
|
||
The metadata of this primitive result.
|
||
</Attribute>
|
||
</Class>
|
||
|