Quantum Computing, Quantum Annealing, Optimization, Wave Function, Artificial Intelligence.
as minimizing the portfolio’s variance (risk). The ‘constraints’ and ‘bounds’ denote the constraints and boundary conditions (e.g., the sum of weights = 1 and weights ≥ 0). In Step 2, the @ symbol is the matrix multiplication operator. It performs matrix multiplication between the arrays. The line,