French
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.algorithms.linear_solvers.HHL.construct_circuit

HHL.construct_circuit(matrix, vector, neg_vals=True)[source]

Construct the HHL circuit.

Paramètres
  • matrix (Union[List, ndarray, QuantumCircuit]) – The matrix specifying the system, i.e. A in Ax=b.

  • vector (Union[List, ndarray, QuantumCircuit]) – The vector specifying the right hand side of the equation in Ax=b.

  • neg_vals (Optional[bool]) – States whether the matrix has negative eigenvalues. If False the

  • cheaper. (computation becomes) –

Type renvoyé

QuantumCircuit

Renvoie

The HHL circuit.

Lève
  • ValueError – If the input is not in the correct format.

  • ValueError – If the type of the input matrix is not supported.