Korean
언어
English
Japanese
German
Korean
Portuguese, Brazilian
French
Shortcuts

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)[소스]

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=None)[소스]

Generate random model (mu, sigma) for portfolio optimization problem.

매개변수
  • n (int) – number of assets.

  • seed (int or None) – random seed - if None, will not initialize.

반환값

expected return vector numpy.ndarray: covariance matrix

반환 형식

numpy.narray