qiskit.aqua.algorithms.HHL.expand_to_hermitian¶
-
static
HHL.
expand_to_hermitian
(matrix, vector)[source]¶ Expand a non-hermitian matrix A to a hermitian matrix by [[0, A.H], [A, 0]] and expand vector b to [b.conj, b].
- Parameters
matrix (
ndarray
) – the input matrixvector (
ndarray
) – the input vector
- Return type
Tuple
[ndarray
,ndarray
]- Returns
the expanded matrix, the expanded vector