Skip to main contentIBM Quantum Documentation
This page is from an old version of Qiskit SDK and does not exist in the latest version. We recommend you migrate to the latest version. See the release notes for more information.
Important

IBM Quantum Platform is moving and this version will be sunset on July 1. To get started on the new platform, read the migration guide.

qiskit.algorithms.LinearSolverResult

class LinearSolverResult

GitHub

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.

__init__

__init__()

Initialize self. See help(type(self)) for accurate signature.


Methods

__init__()Initialize self.
combine(result)Any property from the argument that exists in the receiver is updated.

Attributes

circuit_resultsreturn the results from the circuits
euclidean_normreturn the euclidean norm if the algorithm knows how to calculate it
observablereturn the (list of) calculated observable(s)
statereturn either the circuit that prepares the solution or the solution as a vector

circuit_results

return the results from the circuits

Return type

Union[List[float], List[Result]]

combine

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

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]

Was this page helpful?
Report a bug or request content on GitHub.