LinearSolverResult¶
-
class
LinearSolverResult
[source]¶ Bases:
qiskit.algorithms.algorithm_result.AlgorithmResult
A base class for linear systems results.
The linear systems algorithms return an object of the type
LinearSystemsResult
with the information about the solution obtained.Methods
Any property from the argument that exists in the receiver is updated.
Attributes
-
circuit_results
¶ return the results from the circuits
- Return type
Union
[List
[float
],List
[Result
]]
-
euclidean_norm
¶ return the euclidean norm if the algorithm knows how to calculate it
- Return type
float
-
observable
¶ return the (list of) calculated observable(s)
- Return type
Union
[float
,List
[float
]]
-
state
¶ return either the circuit that prepares the solution or the solution as a vector
- Return type
Union
[QuantumCircuit
,ndarray
]
-