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 (np.array) – the input matrix
vector (np.array) – the input vector
- Returns
the expanded matrix, the expanded vector
- Return type
tuple(np.array, np.array)