Skip to content

Commit

Permalink
Integrate QRAO into Qiskit Optimization (#487)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
Co-authored-by: Bryce Fuller <[email protected]>
Co-authored-by: Jennifer Glick <[email protected]>
Co-authored-by: Caleb Johnson <[email protected]>
Co-authored-by: Takashi Imamichi <[email protected]>
Co-authored-by: Toshinari Itoko <[email protected]>
Co-authored-by: Areeq Hasan <[email protected]>

* 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 <[email protected]>

* Update qiskit_optimization/algorithms/qrao/magic_rounding.py

Co-authored-by: Takashi Imamichi <[email protected]>

* Update releasenotes/notes/qrao-89d5ff1d2927de64.yaml

Co-authored-by: Steve Wood <[email protected]>

* update the code

* add explanations and reflect comments

* update codes

* fix

Co-authored-by: Steve Wood <[email protected]>

* 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 <[email protected]>

* Update docs/tutorials/13_quantum_random_access_optimizer.ipynb

Co-authored-by: Takashi Imamichi <[email protected]>

* Update docs/tutorials/13_quantum_random_access_optimizer.ipynb

Co-authored-by: Takashi Imamichi <[email protected]>

* 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 <[email protected]>

* Update docs/tutorials/13_quantum_random_access_optimizer.ipynb

Co-authored-by: Steve Wood <[email protected]>

* fix

* Update qiskit_optimization/algorithms/qrao/__init__.py

Co-authored-by: Steve Wood <[email protected]>

* Update releasenotes/notes/qrao-89d5ff1d2927de64.yaml

Co-authored-by: Steve Wood <[email protected]>

* Update test/algorithms/qrao/test_magic_rounding.py

Co-authored-by: Steve Wood <[email protected]>

* Update test/algorithms/qrao/test_quantum_random_access_optimizer.py

Co-authored-by: Steve Wood <[email protected]>

* fix mypy

* fix

* fix

* change the index number

---------

Co-authored-by: Jim Garrison <[email protected]>
Co-authored-by: Bryce Fuller <[email protected]>
Co-authored-by: Jennifer Glick <[email protected]>
Co-authored-by: Caleb Johnson <[email protected]>
Co-authored-by: Takashi Imamichi <[email protected]>
Co-authored-by: Toshinari Itoko <[email protected]>
Co-authored-by: Areeq Hasan <[email protected]>
Co-authored-by: Steve Wood <[email protected]>
Co-authored-by: woodsp-ibm <[email protected]>
Co-authored-by: Takashi Imamichi <[email protected]>
  • Loading branch information
11 people authored Sep 8, 2023
1 parent b6d0041 commit d7b9ddb
Show file tree
Hide file tree
Showing 22 changed files with 4,697 additions and 14 deletions.
13 changes: 13 additions & 0 deletions .pylintdict
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ apidocs
applegate
args
arxiv
atol
autosummary
backend
backends
Expand Down Expand Up @@ -54,6 +55,7 @@ eigen
eigensolver
eigensolvers
eigenstate
embeddings
entangler
enum
eq
Expand Down Expand Up @@ -83,6 +85,7 @@ hamilton
hamiltonian
hamiltonians
hastings
hayashi
hoyer
https
ibm
Expand Down Expand Up @@ -111,6 +114,7 @@ lp
lucas
macos
makefile
masahito
matplotlib
maxcut
maxfun
Expand All @@ -119,6 +123,8 @@ mdl
milp
minimizer
minimumeigenoptimizer
mmp
mpm
multiset
mypy
nannicini
Expand All @@ -133,6 +139,7 @@ np
num
numpy
numpyminimumeigensolver
observables
october
opflow
optimality
Expand All @@ -146,8 +153,10 @@ parikh
pauli
paulis
peleato
pmm
pooya
pos
ppp
pre
preprint
prepend
Expand All @@ -163,6 +172,8 @@ qiskit
qiskit's
qn
qp
qrac
qrao
quadratically
quadraticconstraint
quadraticobjective
Expand Down Expand Up @@ -197,6 +208,7 @@ spsa
src
statevector
stdout
stephen
str
subcollection
subgraph
Expand Down Expand Up @@ -232,6 +244,7 @@ xixj
wavefunction
wecker
whitespace
wiesner
williamson
xs
ys
Expand Down
6 changes: 6 additions & 0 deletions docs/apidocs/qiskit_optimization.algorithms.qrao.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. _qiskit_optimization-algorithms-qrao:

.. automodule:: qiskit_optimization.algorithms.qrao
:no-members:
:no-inherited-members:
:no-special-members:
658 changes: 658 additions & 0 deletions docs/explanations/aux_files/magic_state_rounding.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions docs/explanations/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
################################
Qiskit Optimization Explanations
################################

This section of the documentation provides background and explanation around techniques, methods
etc. both useful with and used by in Qiskit Optimization.

Explanations...
---------------

.. toctree::
:maxdepth: 1
:glob:

*

|
.. Hiding - Indices and tables
:ref:`genindex`
:ref:`modindex`
:ref:`search`
Loading

0 comments on commit d7b9ddb

Please sign in to comment.