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 $$A$$ of dimension $$n \times n$$ and the solution to the systems of linear equations defined by $$A\overrightarrow{x}=\overrightarrow{b}$$ with input vector $$\overrightarrow{b}$$.

This is a classical counterpart to the HHL algorithm.

매개변수
• 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__(matrix, vector)[소스]
매개변수
• 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 matrix Union[List[List[float]], ndarray] Execute the classical algorithm.

Attributes

 random Return a numpy random.
property random

Return a numpy random.

run()

Execute the classical algorithm.

반환값

results of an algorithm.

반환 형식

dict