HHL.matrix_resize

static HHL.matrix_resize(matrix, vector)[source]

Resizes matrix if necessary

Parameters
  • matrix (np.array) – the input matrix of linear system of equations

  • vector (np.array) – the input vector of linear system of equations

Returns

new matrix, vector, truncate_powerdim, truncate_hermitian

Return type

tuple

Raises

ValueError – invalid input