qiskit-optimization
qiskit-optimization copied to clipboard
added some code and explanation for how solutions are interpreted using the interpret method, in the tutorial of converters
Summary
Details and comments
Thanks. I take a look at it.
Pull Request Test Coverage Report for Build 2580502392
- 0 of 0 changed or added relevant lines in 0 files are covered.
- No unchanged relevant lines lost coverage.
- Overall coverage remained the same at 91.432%
| Totals | |
|---|---|
| Change from base Build 2579728355: | 0.0% |
| Covered Lines: | 4290 |
| Relevant Lines: | 4692 |
💛 - Coveralls
Hi @t-imamichi and @t-imamichi , thanks a lot! I am just a little confused. Are my additions visible? I guess I see the additions in this commit : 7e4b909 above. Do let me know how it is and if I need to do anything.
Sorry for taking so long to review this PR. I will take over it and update your PR based on the current code.
I updated this PR as follows.
- replaced the cells that manually interpret solutions with simply applies
interpretbecause we don't have to show the internal code ofinterpret. - modified the coeffs of the objective function so that the optimal solution is unique so that the result of the original problem and that of the converted problem are the same.
- Fixed the description of the penalty factor of
LinearEqualityToPenaltyfrom 1e5 to a value provided by qiskit-optimization. It actually automatically calculate an appropriate value for the penalty term.
As this is being updated, I see that this talks about VQE and QAOA in a couple of places, one at the start and one near to the end. Do we want to change this to SamplingVQE ? I know VQE is more known and maybe you want to leave it more generic like that - but of course the qiskit algorithms VQE can no longer used as since the change to primitives.
We refer to VQE as a general algorithm name. So, I think it's fine to leave it. We describe SamplingVQE in 03_minimum_eigen_optimizer.ipynb.
We refer to VQE as a general algorithm name. So, I think it's fine to leave it.
Ok, since it docs, if it we do get any feedback its easy enough to adjust at any time.