qiskit.finance.applications.ising.portfolio
Convert portfolio optimization instances into Pauli list
Functions
get_operator (mu, sigma, q, budget, penalty)
|
get qubit op |
portfolio_expected_value (x, mu)
|
returns portfolio expected value |
portfolio_value (x, mu, sigma, q, budget, penalty)
|
returns portfolio value |
portfolio_variance (x, sigma)
|
returns portfolio variance |
random_model (n[, seed])
|
Generate random model (mu, sigma) for portfolio optimization problem. |
-
get_operator
(mu, sigma, q, budget, penalty)[source]
get qubit op
-
portfolio_expected_value
(x, mu)[source]
returns portfolio expected value
-
portfolio_value
(x, mu, sigma, q, budget, penalty)[source]
returns portfolio value
-
portfolio_variance
(x, sigma)[source]
returns portfolio variance
-
random_model
(n, seed=None)[source]
Generate random model (mu, sigma) for portfolio optimization problem.
- Parameters
-
- Returns
expected return vector
numpy.ndarray: covariance matrix
- Return type
numpy.narray