qiskit.aqua.algorithms.HHL.matrix_resize¶
-
static
HHL.
matrix_resize
(matrix, vector)[source]¶ Resizes matrix if necessary
- Parameters
matrix (
ndarray
) – the input matrix of linear system of equationsvector (
ndarray
) – the input vector of linear system of equations
- Return type
Tuple
[ndarray
,ndarray
,bool
,bool
]- Returns
new matrix, vector, truncate_powerdim, truncate_hermitian
- Raises
ValueError – invalid input