add with quantum backend setup HHL unittest
@@ -19,12 +19,13 @@ import unittest
import numpy as np
from numpy.random import rand
+from qiskit import Aer
from test.common import QiskitAquaTestCase
from qiskit_aqua import run_algorithm
from qiskit_aqua.input import LinearSystemInput
from qiskit_aqua.utils import random_matrix_generator as rmg
-
+from qiskit_aqua.algorithms.single_sample import HHL
class TestHHL(QiskitAquaTestCase):
"""HHL tests."""
@@ -63,6 +64,10 @@ class TestHHL(QiskitAquaTestCase):
"skip_transpiler": "false"
}
}
+ backend = Aer.get_backend('statevector_simulator_py')
+ hhl = HHL(mode='state_tomography')
+ hhl.setup_quantum_backend(backend=backend, shots=1,
+ skip_transpiler=True)
def test_hhl_diagonal(self):
self.log.debug('Testing HHL simple test')
