qiskit.algorithms.linear_solvers.HHL.construct_circuit¶
- HHL.construct_circuit(matrix, vector, neg_vals=True)[ソース]¶
Construct the HHL circuit.
- パラメータ
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 thecheaper. (computation becomes) –
- 戻り値の型
- 戻り値
The HHL circuit.
- 例外
ValueError – If the input is not in the correct format.
ValueError – If the type of the input matrix is not supported.