Skip to content

Commit

Permalink
Update tutorials for primitive based algos & optimization (#241)
Browse files Browse the repository at this point in the history
* updated tutorial 0.

* updated tutorial 01

* fix tutorial 0, 1, 2

* update tutorials

* fix lint and unittests

* fix copyright

* updated

* fix style
  • Loading branch information
a-matsuo committed Feb 17, 2023
1 parent 73f2130 commit 78bb2e6
Show file tree
Hide file tree
Showing 13 changed files with 468 additions and 542 deletions.
60 changes: 31 additions & 29 deletions docs/tutorials/00_amplitude_estimation.ipynb

Large diffs are not rendered by default.

153 changes: 63 additions & 90 deletions docs/tutorials/01_portfolio_optimization.ipynb

Large diffs are not rendered by default.

73 changes: 31 additions & 42 deletions docs/tutorials/02_portfolio_diversification.ipynb

Large diffs are not rendered by default.

59 changes: 31 additions & 28 deletions docs/tutorials/03_european_call_option_pricing.ipynb

Large diffs are not rendered by default.

86 changes: 39 additions & 47 deletions docs/tutorials/04_european_put_option_pricing.ipynb

Large diffs are not rendered by default.

50 changes: 26 additions & 24 deletions docs/tutorials/05_bull_spread_pricing.ipynb

Large diffs are not rendered by default.

74 changes: 34 additions & 40 deletions docs/tutorials/06_basket_option_pricing.ipynb

Large diffs are not rendered by default.

73 changes: 34 additions & 39 deletions docs/tutorials/07_asian_barrier_spread_pricing.ipynb

Large diffs are not rendered by default.

82 changes: 34 additions & 48 deletions docs/tutorials/08_fixed_income_pricing.ipynb

Large diffs are not rendered by default.

190 changes: 89 additions & 101 deletions docs/tutorials/09_credit_risk_analysis.ipynb

Large diffs are not rendered by default.

51 changes: 29 additions & 22 deletions docs/tutorials/10_qgan_option_pricing.ipynb

Large diffs are not rendered by default.

53 changes: 24 additions & 29 deletions docs/tutorials/11_time_series.ipynb

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions test/data_providers/test_data_providers.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2019, 2022.
# (C) Copyright IBM 2019, 2023.
#
# 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 @@ -200,8 +200,8 @@ def test_exchangedata(self):
self.fail(f"Test of ExchangeDataProvider failed: {str(ex)}")

@data(
[["MSFT", "AAPL"], [[1367.0, 481.0], [481.0, 213.0]], [[1.0, 2.99e-05], [2.99e-05, 1.0]]],
["MSFT", 1367.0, [[1.0]]],
[["MSFT", "AAPL"], [[1360.0, 479.0], [479.0, 212.0]], [[1.0, 2.99e-05], [2.99e-05, 1.0]]],
["MSFT", 1360.0, [[1.0]]],
)
@unpack
def test_yahoo(self, tickers, covariance, similarity):
Expand Down

0 comments on commit 78bb2e6

Please sign in to comment.