Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrate QRAO into Qiskit Optimization (#487)
* add qrao files * support primitives and remove opflow * update qrao * update qrao * add expecation_values getter * inherit OptimizationAlgorithm * add unittests for encoding * add unittests for optimizer * add unittests for optimizer Co-authored-by: Jim Garrison <garrison@ibm.com> Co-authored-by: Bryce Fuller <Bryce.Fuller@ibm.com> Co-authored-by: Jennifer Glick <Jennifer.R.Glick@ibm.com> Co-authored-by: Caleb Johnson <calebj1524@outlook.com> Co-authored-by: Takashi Imamichi <31178928+t-imamichi@users.noreply.github.com> Co-authored-by: Toshinari Itoko <itoko@jp.ibm.com> Co-authored-by: Areeq Hasan <areeq.i.hasan@gmail.com> * add reno and unittests for magic rounding * clean up * remove a unnecessary file * update the code * add tutorial and update the code * update pylintdict * fix lint * Update docs/tutorials/13_quantum_random_access_optimizer.ipynb Co-authored-by: Takashi Imamichi <31178928+t-imamichi@users.noreply.github.com> * Update qiskit_optimization/algorithms/qrao/magic_rounding.py Co-authored-by: Takashi Imamichi <31178928+t-imamichi@users.noreply.github.com> * Update releasenotes/notes/qrao-89d5ff1d2927de64.yaml Co-authored-by: Steve Wood <40241007+woodsp-ibm@users.noreply.github.com> * update the code * add explanations and reflect comments * update codes * fix Co-authored-by: Steve Wood <40241007+woodsp-ibm@users.noreply.github.com> * update the code * fix lint * Fix docs so they build * fix lint * fix spell * fix spell * fix spell * test * test * update * fix lint * use assertalmost equal in unittest * update * fix * rerun tutorial * add unittests for max per qubit= 2 and 1 * Update docs/tutorials/13_quantum_random_access_optimizer.ipynb Co-authored-by: Takashi Imamichi <31178928+t-imamichi@users.noreply.github.com> * Update docs/tutorials/13_quantum_random_access_optimizer.ipynb Co-authored-by: Takashi Imamichi <31178928+t-imamichi@users.noreply.github.com> * Update docs/tutorials/13_quantum_random_access_optimizer.ipynb Co-authored-by: Takashi Imamichi <31178928+t-imamichi@users.noreply.github.com> * fix docs * lint * add unittest quadratic objective * update optimizer unittest * replaces rustworkx with networkx - updates type cast * minor updates of explanation * fix docstrings * update an error message * update error messages * fix lint * update tutorial and qiskit_algorithms * update * fix lint * fix * Update docs/tutorials/13_quantum_random_access_optimizer.ipynb Co-authored-by: Steve Wood <40241007+woodsp-ibm@users.noreply.github.com> * Update docs/tutorials/13_quantum_random_access_optimizer.ipynb Co-authored-by: Steve Wood <40241007+woodsp-ibm@users.noreply.github.com> * fix * Update qiskit_optimization/algorithms/qrao/__init__.py Co-authored-by: Steve Wood <40241007+woodsp-ibm@users.noreply.github.com> * Update releasenotes/notes/qrao-89d5ff1d2927de64.yaml Co-authored-by: Steve Wood <40241007+woodsp-ibm@users.noreply.github.com> * Update test/algorithms/qrao/test_magic_rounding.py Co-authored-by: Steve Wood <40241007+woodsp-ibm@users.noreply.github.com> * Update test/algorithms/qrao/test_quantum_random_access_optimizer.py Co-authored-by: Steve Wood <40241007+woodsp-ibm@users.noreply.github.com> * fix mypy * fix * fix * change the index number --------- Co-authored-by: Jim Garrison <garrison@ibm.com> Co-authored-by: Bryce Fuller <Bryce.Fuller@ibm.com> Co-authored-by: Jennifer Glick <Jennifer.R.Glick@ibm.com> Co-authored-by: Caleb Johnson <calebj1524@outlook.com> Co-authored-by: Takashi Imamichi <31178928+t-imamichi@users.noreply.github.com> Co-authored-by: Toshinari Itoko <itoko@jp.ibm.com> Co-authored-by: Areeq Hasan <areeq.i.hasan@gmail.com> Co-authored-by: Steve Wood <40241007+woodsp-ibm@users.noreply.github.com> Co-authored-by: woodsp-ibm <woodsp@us.ibm.com> Co-authored-by: Takashi Imamichi <imamichi@jp.ibm.com>
- Loading branch information