0
$\begingroup$

I want to use historical data for 5 stocks from YahooFinance and then calculate mean vector and covariance matrice, so I can optimize them with QAOA. Anyone know what is wrong with this code: enter image description here

$\endgroup$
2
  • $\begingroup$ Which language/SDK are you using? $\endgroup$
    – Mauricio
    Commented Aug 9, 2021 at 12:44
  • $\begingroup$ @Mauricio Python/Qiskit $\endgroup$
    – Milica G.
    Commented Aug 9, 2021 at 12:59

1 Answer 1

-1
$\begingroup$

I overcome the problem with this code: enter image description here

It might be helpfull for someone.

$\endgroup$
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.