Skip to content

Commit

Permalink
Improve unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
woodsp-ibm committed Oct 9, 2023
1 parent 57d21b9 commit 70938fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/minimum_eigensolvers/test_vqe.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ def setUp(self):
self.ry_wavefunction = TwoLocal(rotation_blocks="ry", entanglement_blocks="cz")

@data(L_BFGS_B(), COBYLA())
def test_basic_aer_statevector(self, estimator):
def test_using_ref_estimator(self, optimizer):
"""Test VQE using reference Estimator."""
vqe = VQE(Estimator(), self.ryrz_wavefunction, estimator)
vqe = VQE(Estimator(), self.ryrz_wavefunction, optimizer)

result = vqe.compute_minimum_eigenvalue(operator=self.h2_op)

Expand Down

0 comments on commit 70938fe

Please sign in to comment.