qiskit.aqua.algorithms.NumPyLSsolver
class NumPyLSsolver(matrix, vector)
The Numpy LinearSystem algorithm (classical).
This linear system solver computes the eigenvalues of a complex-valued square matrix of dimension and the solution to the systems of linear equations defined by with input vector .
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
__init__
__init__(matrix, vector)
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
Methods
__init__ (matrix, vector) | type matrixUnion [List [List [float ]], ndarray ] |
run () | Execute the classical algorithm. |
Attributes
random | Return a numpy random. |
random
Return a numpy random.
run
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.