fix lint and revert the setting of test
@@ -315,7 +315,7 @@ class TestVQC(QiskitAquaTestCase):
'algorithm': {'name': 'VQC'},
'backend': {'provider': 'qiskit.BasicAer', 'name': 'statevector_simulator'},
'optimizer': {'name': 'COBYLA', 'maxiter': 100},
- 'variational_form': {'name': 'RYRZ', 'depth': 1},
+ 'variational_form': {'name': 'RYRZ', 'depth': 3},
'feature_map': {'name': 'RawFeatureVector', 'feature_dimension': feature_dim}
}
@@ -416,8 +416,8 @@ def _ad_hoc_data(training_size, test_size, n, gap):
elif n == 3:
d_v = np.diag(maj)
- basis = aqua_globals.random.random_sample((2 ** n, 2 ** n))
- basis += 1j * aqua_globals.random.random_sample((2 ** n, 2 ** n))
+ basis = aqua_globals.random.random_sample((2 ** n, 2 ** n)) + \
+ 1j * aqua_globals.random.random_sample((2 ** n, 2 ** n))
basis = np.asmatrix(basis).getH() * np.asmatrix(basis)
[s_v, u_v] = np.linalg.eig(basis)
