Skip to content

Commit

Permalink
Fix VQE unit test (#509) (#534)
Browse files Browse the repository at this point in the history
(cherry picked from commit aea6e6c)

Co-authored-by: Manoel Marques <[email protected]>
  • Loading branch information
mergify[bot] and manoelmarques authored Feb 2, 2022
1 parent a7e590b commit 3a3fb2a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/algorithms/pes_samplers/test_bopes_sampler.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2020, 2021.
# (C) Copyright IBM 2020, 2022.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
Expand Down Expand Up @@ -145,10 +145,10 @@ def test_vqe_bootstrap(self):
result = bopes.sample(es_problem, points)
ref_points = [0.6, 0.6666666666666666, 0.7333333333333334, 0.8]
ref_energies = [
-1.1162853926251162,
-1.1327033478688526,
-1.137302817836066,
-1.1341458916990401,
-1.1162738,
-1.1326904,
-1.1372876,
-1.1341292,
]
np.testing.assert_almost_equal(result.points, ref_points)
np.testing.assert_almost_equal(result.energies, ref_energies)
Expand Down

0 comments on commit 3a3fb2a

Please sign in to comment.