Skip to main contentIBM Quantum Documentation
You are viewing the API reference for an old version of Qiskit SDK. Switch to latest version

NumPyLSsolver

NumPyLSsolver(matrix, vector)

GitHub(opens in a new tab)

The Numpy LinearSystem algorithm (classical).

This linear system solver computes the eigenvalues of a complex-valued square matrix AA of dimension n×nn \times n and the solution to the systems of linear equations defined by Ax=bA\overrightarrow{x}=\overrightarrow{b} with input vector b\overrightarrow{b}.

This is a classical counterpart to the HHL algorithm.

Parameters

  • matrix (Union[List[List[float]], ndarray]) – The input matrix of linear system of equations
  • vector (Union[List[float], ndarray]) – The input vector of linear system of equations

Attributes

random

Return a numpy random.


Methods

run

NumPyLSsolver.run()

Execute the classical algorithm.

Returns

results of an algorithm.

Return type

dict

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