qiskit-documentation/docs/api/qiskit/qiskit.primitives.PubResult...

38 lines
1.3 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: PubResult (latest version)
description: API reference for qiskit.primitives.PubResult in the latest version of qiskit
in_page_toc_min_heading_level: 1
python_api_type: class
python_api_name: qiskit.primitives.PubResult
---
# PubResult
<Class id="qiskit.primitives.PubResult" isDedicatedPage={true} github="https://github.com/Qiskit/qiskit/tree/stable/1.2/qiskit/primitives/containers/pub_result.py#L24-L51" signature="qiskit.primitives.PubResult(data, metadata=None)" modifiers="class">
Bases: [`object`](https://docs.python.org/3/library/functions.html#object "(in Python v3.13)")
Result of Primitive Unified Bloc.
Initialize a pub result.
**Parameters**
* **data** ([*DataBin*](qiskit.primitives.DataBin "qiskit.primitives.DataBin")) Result data.
* **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 specific to this pub. Keys are expected to be strings.
## Attributes
### data
<Attribute id="qiskit.primitives.PubResult.data">
Result data for the pub.
</Attribute>
### metadata
<Attribute id="qiskit.primitives.PubResult.metadata">
Metadata for the pub.
</Attribute>
</Class>