Skip to content

Commit

Permalink
Bug fix in vqe expectation and removing graph part
Browse files Browse the repository at this point in the history
Fixed bug in expectation when calling wavefunction.  New forest.wavefunction
API returns a tuple.  Removed graph partitioning examples because program for
doing state prep in a particular subspace is not complete.
  • Loading branch information
ncrubin committed Jan 15, 2017
1 parent 4891331 commit 9c52354
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 752 deletions.
25 changes: 3 additions & 22 deletions docs/qaoa.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ Cost Functions

* ``numpartition_qaoa.py`` implements the cost function for bipartitioning a list of numbers.

* ``graphpartition_qaoa.py`` implements the cost function for graph partitioning--i.e. minimial cut between two subgraphs of equal size

* ``graphpartitioning_jaynescummingsdriver.py`` implements the graph partitioning problem with the constraint that the magnetization equals some constant `m`.

Quickstart Examples
-------------------
Expand Down Expand Up @@ -415,18 +412,10 @@ Source Code Docs

Here you can find documentation for the different submodules in pyQAOA.

grove.pyqaoa.graphpartition_jcdriver
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. automodule:: grove.pyqaoa.graphpartition_jcdriver
:members:
:undoc-members:
:show-inheritance:

grove.pyqaoa.graphpartition_qaoa
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
grove.pyqaoa.qaoa
~~~~~~~~~~~~~~~~~

.. automodule:: grove.pyqaoa.graphpartition_qaoa
.. automodule:: grove.pyqaoa.qaoa
:members:
:undoc-members:
:show-inheritance:
Expand All @@ -446,11 +435,3 @@ grove.pyqaoa.numpartition_qaoa
:members:
:undoc-members:
:show-inheritance:

grove.pyqaoa.qaoa
~~~~~~~~~~~~~~~~~

.. automodule:: grove.pyqaoa.qaoa
:members:
:undoc-members:
:show-inheritance:

0 comments on commit 9c52354

Please sign in to comment.