# qiskit.algorithms.LinearSolverResult¶

class LinearSolverResult[código fonte]

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__()[código fonte]

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

Methods

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

Attributes

 circuit_results return the results from the circuits euclidean_norm return the euclidean norm if the algorithm knows how to calculate it observable return the (list of) calculated observable(s) state return either the circuit that prepares the solution or the solution as a vector
property circuit_results

return the results from the circuits

Tipo de retorno

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

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.

Levanta

TypeError – Argument is None

Tipo de retorno

None

property euclidean_norm

return the euclidean norm if the algorithm knows how to calculate it

Tipo de retorno

float

property observable

return the (list of) calculated observable(s)

Tipo de retorno

Union[float, List[float]]

property state

return either the circuit that prepares the solution or the solution as a vector

Tipo de retorno

Union[QuantumCircuit, ndarray]