mqt.bench.benchmarks.hhl¶
HHL Benchmark Circuit Generation.
Module Contents¶
- create_circuit(num_qubits: int) QuantumCircuit[source]¶
HHL algorithm for a fixed 2x2 Hermitian matrix A using scalable QPE precision.
This implementation simulates a more accurate model of the HHL algorithm for the matrix A = [[1, 1], [1, 3]] with known eigenvalues.
- Parameters:
num_qubits – Total number of qubits (1 system + phase-estimation register + 1 ancilla). Must be at least 3.
- Returns:
QuantumCircuit – Qiskit circuit implementing HHL