Adding the portfolio optimization problem to the set of openqaoa problems. This class method comes with the classical solution method and the plot_solution method to visualize specific solutions.
Description
New portfolio optimization class in problems.
Test for the problem, random problem generation, classical solution, and plot solution.
Checklist
[x] I have performed a self-review of my code.
[x] I have commented my code and used numpy-style docstrings
[ ] I have made corresponding updates to the documentation.
[x] My changes generate no new warnings
[x] I have added/updated tests to make sure bugfix/feature works.
[ ] New and existing unit tests pass locally with my changes.
Type of change
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
Adding the portfolio optimization problem to the set of openqaoa problems. This class method comes with the classical solution method and the plot_solution method to visualize specific solutions.
Description
New portfolio optimization class in problems. Test for the problem, random problem generation, classical solution, and plot solution.
Checklist
Type of change
How Has This Been Tested?
./tests/test_problems.py