1
$\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
    Aug 9 at 12:44
  • $\begingroup$ @Mauricio Python/Qiskit $\endgroup$
    – Milica G.
    Aug 9 at 12:59
0
$\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, privacy policy and cookie policy

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