fix expected value after MLAE fix
@@ -32,6 +32,7 @@ from qiskit.aqua.algorithms import AmplitudeEstimation, MaximumLikelihoodAmplitu
class TestEuropeanCallOption(QiskitFinanceTestCase):
""" Test European Call Option """
+
def setUp(self):
super().setUp()
@@ -110,7 +111,7 @@ class TestEuropeanCallOption(QiskitFinanceTestCase):
['statevector', MaximumLikelihoodAmplitudeEstimation(5),
{'estimation': 0.16330976193204114}],
['qasm', MaximumLikelihoodAmplitudeEstimation(3),
- {'estimation': 0.1027255930905642}],
+ {'estimation': 0.09808188840384949}],
])
def test_expected_value(self, simulator, a_e, expect):
""" expected value test """
@@ -151,6 +152,7 @@ class TestEuropeanCallOption(QiskitFinanceTestCase):
class TestFixedIncomeAssets(QiskitFinanceTestCase):
""" Test Fixed Income Assets """
+
def setUp(self):
super().setUp()
@@ -170,7 +172,7 @@ class TestFixedIncomeAssets(QiskitFinanceTestCase):
['statevector', MaximumLikelihoodAmplitudeEstimation(5),
{'estimation': 2.340361798381051}],
['qasm', MaximumLikelihoodAmplitudeEstimation(5),
- {'estimation': 2.317921060790118}]
+ {'estimation': 2.3175136132411103}]
])
def test_expected_value(self, simulator, a_e, expect):
""" expected value test """
