qiskit-documentation/docs/api/qiskit/0.31/qiskit.algorithms.ShorResul...

67 lines
1.4 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: ShorResult (v0.31)
description: API reference for qiskit.algorithms.ShorResult in qiskit v0.31
in_page_toc_min_heading_level: 1
python_api_type: class
python_api_name: qiskit.algorithms.ShorResult
---
# ShorResult
<Class id="qiskit.algorithms.ShorResult" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.18/qiskit/algorithms/factorizers/shor.py" signature="ShorResult" modifiers="class">
Bases: `qiskit.algorithms.algorithm_result.AlgorithmResult`
Shor Result.
## Methods
<span id="qiskit-algorithms-shorresult-combine" />
### combine
<Function id="qiskit.algorithms.ShorResult.combine" signature="ShorResult.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>
## Attributes
### 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>