80 lines
2.9 KiB
Plaintext
80 lines
2.9 KiB
Plaintext
---
|
||
title: ShorResult
|
||
description: API reference for qiskit.algorithms.ShorResult
|
||
in_page_toc_min_heading_level: 1
|
||
python_api_type: class
|
||
python_api_name: qiskit.algorithms.ShorResult
|
||
---
|
||
|
||
# qiskit.algorithms.ShorResult
|
||
|
||
<Class id="qiskit.algorithms.ShorResult" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.17/qiskit/algorithms/factorizers/shor.py" signature="ShorResult" modifiers="class">
|
||
Shor Result.
|
||
|
||
### \_\_init\_\_
|
||
|
||
<Function id="qiskit.algorithms.ShorResult.__init__" signature="__init__()">
|
||
Initialize self. See help(type(self)) for accurate signature.
|
||
</Function>
|
||
|
||
## Methods
|
||
|
||
| | |
|
||
| ------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------- |
|
||
| [`__init__`](#qiskit.algorithms.ShorResult.__init__ "qiskit.algorithms.ShorResult.__init__")() | Initialize self. |
|
||
| [`combine`](#qiskit.algorithms.ShorResult.combine "qiskit.algorithms.ShorResult.combine")(result) | Any property from the argument that exists in the receiver is updated. |
|
||
|
||
## Attributes
|
||
|
||
| | |
|
||
| ----------------------------------------------------------------------------------------------------------------------- | ------------------------- |
|
||
| [`factors`](#qiskit.algorithms.ShorResult.factors "qiskit.algorithms.ShorResult.factors") | returns factors |
|
||
| [`successful_counts`](#qiskit.algorithms.ShorResult.successful_counts "qiskit.algorithms.ShorResult.successful_counts") | returns successful counts |
|
||
| [`total_counts`](#qiskit.algorithms.ShorResult.total_counts "qiskit.algorithms.ShorResult.total_counts") | returns total counts |
|
||
|
||
### combine
|
||
|
||
<Function id="qiskit.algorithms.ShorResult.combine" signature="combine(result)">
|
||
Any property from the argument that exists in the receiver is updated. :type result: `AlgorithmResult` :param result: Argument result with properties to be set.
|
||
|
||
**Raises**
|
||
|
||
**TypeError** – Argument is None
|
||
|
||
**Return type**
|
||
|
||
`None`
|
||
</Function>
|
||
|
||
### factors
|
||
|
||
<Attribute id="qiskit.algorithms.ShorResult.factors">
|
||
returns factors
|
||
|
||
**Return type**
|
||
|
||
`List`\[`List`\[`int`]]
|
||
</Attribute>
|
||
|
||
### successful\_counts
|
||
|
||
<Attribute id="qiskit.algorithms.ShorResult.successful_counts">
|
||
returns successful counts
|
||
|
||
**Return type**
|
||
|
||
`int`
|
||
</Attribute>
|
||
|
||
### total\_counts
|
||
|
||
<Attribute id="qiskit.algorithms.ShorResult.total_counts">
|
||
returns total counts
|
||
|
||
**Return type**
|
||
|
||
`int`
|
||
</Attribute>
|
||
</Class>
|
||
|