195 lines
10 KiB
Plaintext
195 lines
10 KiB
Plaintext
---
|
||
title: HHLResult
|
||
description: API reference for qiskit.aqua.algorithms.HHLResult
|
||
in_page_toc_min_heading_level: 1
|
||
python_api_type: class
|
||
python_api_name: qiskit.aqua.algorithms.HHLResult
|
||
---
|
||
|
||
<span id="qiskit-aqua-algorithms-hhlresult" />
|
||
|
||
# qiskit.aqua.algorithms.HHLResult
|
||
|
||
<Class id="qiskit.aqua.algorithms.HHLResult" isDedicatedPage={true} github="https://github.com/qiskit-community/qiskit-aqua/tree/stable/0.8/qiskit/aqua/algorithms/linear_solvers/hhl.py" signature="HHLResult(a_dict=None)" modifiers="class">
|
||
HHL Result.
|
||
|
||
### \_\_init\_\_
|
||
|
||
<Function id="qiskit.aqua.algorithms.HHLResult.__init__" signature="__init__(a_dict=None)">
|
||
Initialize self. See help(type(self)) for accurate signature.
|
||
</Function>
|
||
|
||
## Methods
|
||
|
||
| | |
|
||
| ------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||
| [`__init__`](#qiskit.aqua.algorithms.HHLResult.__init__ "qiskit.aqua.algorithms.HHLResult.__init__")(\[a\_dict]) | Initialize self. |
|
||
| [`clear`](#qiskit.aqua.algorithms.HHLResult.clear "qiskit.aqua.algorithms.HHLResult.clear")() | **rtype**`None` |
|
||
| [`combine`](#qiskit.aqua.algorithms.HHLResult.combine "qiskit.aqua.algorithms.HHLResult.combine")(result) | Any property from the argument that exists in the receiver is updated. |
|
||
| `copy`() | |
|
||
| [`from_dict`](#qiskit.aqua.algorithms.HHLResult.from_dict "qiskit.aqua.algorithms.HHLResult.from_dict")(a\_dict) | create new object from a dictionary |
|
||
| `fromkeys`(iterable\[, value]) | |
|
||
| [`get`](#qiskit.aqua.algorithms.HHLResult.get "qiskit.aqua.algorithms.HHLResult.get")(k\[,d]) | |
|
||
| [`items`](#qiskit.aqua.algorithms.HHLResult.items "qiskit.aqua.algorithms.HHLResult.items")() | |
|
||
| [`keys`](#qiskit.aqua.algorithms.HHLResult.keys "qiskit.aqua.algorithms.HHLResult.keys")() | |
|
||
| [`pop`](#qiskit.aqua.algorithms.HHLResult.pop "qiskit.aqua.algorithms.HHLResult.pop")(key\[, default]) | If key is not found, d is returned if given, otherwise KeyError is raised. |
|
||
| [`popitem`](#qiskit.aqua.algorithms.HHLResult.popitem "qiskit.aqua.algorithms.HHLResult.popitem")() | as a 2-tuple; but raise KeyError if D is empty. |
|
||
| [`setdefault`](#qiskit.aqua.algorithms.HHLResult.setdefault "qiskit.aqua.algorithms.HHLResult.setdefault")(k\[,d]) | |
|
||
| [`update`](#qiskit.aqua.algorithms.HHLResult.update "qiskit.aqua.algorithms.HHLResult.update")(\*args, \*\*kwargs) | If E present and has a .keys() method, does: for k in E: D\[k] = E\[k] If E present and lacks .keys() method, does: for (k, v) in E: D\[k] = v In either case, this is followed by: for k, v in F.items(): D\[k] = v |
|
||
| [`values`](#qiskit.aqua.algorithms.HHLResult.values "qiskit.aqua.algorithms.HHLResult.values")() | |
|
||
|
||
## Attributes
|
||
|
||
| | |
|
||
| ---------------------------------------------------------------------------------------------------------------------------------- | ------------------------- |
|
||
| [`circuit_info`](#qiskit.aqua.algorithms.HHLResult.circuit_info "qiskit.aqua.algorithms.HHLResult.circuit_info") | return circuit info |
|
||
| [`matrix`](#qiskit.aqua.algorithms.HHLResult.matrix "qiskit.aqua.algorithms.HHLResult.matrix") | return matrix |
|
||
| [`output`](#qiskit.aqua.algorithms.HHLResult.output "qiskit.aqua.algorithms.HHLResult.output") | return output |
|
||
| [`probability_result`](#qiskit.aqua.algorithms.HHLResult.probability_result "qiskit.aqua.algorithms.HHLResult.probability_result") | return probability result |
|
||
| [`solution`](#qiskit.aqua.algorithms.HHLResult.solution "qiskit.aqua.algorithms.HHLResult.solution") | return solution |
|
||
| [`vector`](#qiskit.aqua.algorithms.HHLResult.vector "qiskit.aqua.algorithms.HHLResult.vector") | return vector |
|
||
|
||
### circuit\_info
|
||
|
||
<Attribute id="qiskit.aqua.algorithms.HHLResult.circuit_info">
|
||
return circuit info
|
||
|
||
**Return type**
|
||
|
||
`DAGCircuit`
|
||
</Attribute>
|
||
|
||
### clear
|
||
|
||
<Function id="qiskit.aqua.algorithms.HHLResult.clear" signature="clear()">
|
||
**Return type**
|
||
|
||
`None`
|
||
</Function>
|
||
|
||
### combine
|
||
|
||
<Function id="qiskit.aqua.algorithms.HHLResult.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>
|
||
|
||
### from\_dict
|
||
|
||
<Function id="qiskit.aqua.algorithms.HHLResult.from_dict" signature="from_dict(a_dict)" modifiers="static">
|
||
create new object from a dictionary
|
||
|
||
**Return type**
|
||
|
||
`HHLResult`
|
||
</Function>
|
||
|
||
### get
|
||
|
||
<Function id="qiskit.aqua.algorithms.HHLResult.get" signature="get(k[, d]) → D[k] if k in D, else d. d defaults to None." />
|
||
|
||
### items
|
||
|
||
<Function id="qiskit.aqua.algorithms.HHLResult.items" signature="items() → a set-like object providing a view on D’s items" />
|
||
|
||
### keys
|
||
|
||
<Function id="qiskit.aqua.algorithms.HHLResult.keys" signature="keys() → a set-like object providing a view on D’s keys" />
|
||
|
||
### matrix
|
||
|
||
<Attribute id="qiskit.aqua.algorithms.HHLResult.matrix">
|
||
return matrix
|
||
|
||
**Return type**
|
||
|
||
`ndarray`
|
||
</Attribute>
|
||
|
||
### output
|
||
|
||
<Attribute id="qiskit.aqua.algorithms.HHLResult.output">
|
||
return output
|
||
|
||
**Return type**
|
||
|
||
`ndarray`
|
||
</Attribute>
|
||
|
||
### pop
|
||
|
||
<Function id="qiskit.aqua.algorithms.HHLResult.pop" signature="pop(key, default=None)">
|
||
If key is not found, d is returned if given, otherwise KeyError is raised.
|
||
|
||
**Return type**
|
||
|
||
`object`
|
||
</Function>
|
||
|
||
### popitem
|
||
|
||
<Function id="qiskit.aqua.algorithms.HHLResult.popitem" signature="popitem()">
|
||
as a 2-tuple; but raise KeyError if D is empty.
|
||
|
||
**Return type**
|
||
|
||
`Tuple`\[`object`, `object`]
|
||
</Function>
|
||
|
||
### probability\_result
|
||
|
||
<Attribute id="qiskit.aqua.algorithms.HHLResult.probability_result">
|
||
return probability result
|
||
|
||
**Return type**
|
||
|
||
`Union`\[`ndarray`, `float`]
|
||
</Attribute>
|
||
|
||
### setdefault
|
||
|
||
<Function id="qiskit.aqua.algorithms.HHLResult.setdefault" signature="setdefault(k[, d]) → D.get(k,d), also set D[k]=d if k not in D" />
|
||
|
||
### solution
|
||
|
||
<Attribute id="qiskit.aqua.algorithms.HHLResult.solution">
|
||
return solution
|
||
|
||
**Return type**
|
||
|
||
`ndarray`
|
||
</Attribute>
|
||
|
||
### update
|
||
|
||
<Function id="qiskit.aqua.algorithms.HHLResult.update" signature="update(*args, **kwargs)">
|
||
If E present and has a .keys() method, does: for k in E: D\[k] = E\[k] If E present and lacks .keys() method, does: for (k, v) in E: D\[k] = v In either case, this is followed by: for k, v in F.items(): D\[k] = v
|
||
|
||
**Return type**
|
||
|
||
`None`
|
||
</Function>
|
||
|
||
### values
|
||
|
||
<Function id="qiskit.aqua.algorithms.HHLResult.values" signature="values() → an object providing a view on D’s values" />
|
||
|
||
### vector
|
||
|
||
<Attribute id="qiskit.aqua.algorithms.HHLResult.vector">
|
||
return vector
|
||
|
||
**Return type**
|
||
|
||
`ndarray`
|
||
</Attribute>
|
||
</Class>
|
||
|