Skip to content

fetch from origin #123

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jun 22, 2020
Merged

Conversation

stefan-woerner
Copy link
Owner

Summary

Details and comments

woodsp-ibm and others added 9 commits June 15, 2020 12:28
* VQE default expectation selection
* use compose instead of combine

* add test

* add reno
* compute eigenvalues more efficiently, if possible

* remove note

* fix spell

* use qubo to compute eigenvalue, not operator

* remove deprecation warning

* remove eval_operator_at_bitstring

* Update qiskit/optimization/algorithms/minimum_eigen_optimizer.py
* matrixop should return an instruction

* add test for matop.to_instruction

* add reno

* fix typo

* multiply operator by coeff before conversion

* ignore type

* cast type instead of ignore

* Revert "cast type instead of ignore"

This reverts commit 3e3e4bc.
* Fix hash function of PauliOp class

This change replaces the use of the `id()` function in the `PauliOp`
hash function with the hash of its string representation. This is inline
with the hash function of the `Pauli` class.

This fix is necessary, since prior to this change, a set comparison
including instances of identical `PauliOp`s would fail, because sets
rely on hash tables.

A regression test to ensure the working state after this commit is
included, too.

Credits for spotting and collaborating in fixing the bug go to @Cryoris

* Add releasenote

Co-authored-by: Julien Gacon <[email protected]>
* Make cvxpy an optional dependency

This commit makes the cvxpy dependency optional because many users have
trouble installing it because on many environments it requires that a
compiler be present to build the package from sdist and there are no
precompiled binary wheels present for many environments. Users of the
svm classifier will have to install cvxpy manually or with the extra
now, but it should remove the barrier for most users.

Related to #1053

* Fix lint and requirements list

* Update requirements list

* add cvxpy install to travis, remove from requirements-dev.txt

* Update error message

* Update releasenotes/notes/cvx-optional-e44920f87cff5e8d.yaml

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

Co-authored-by: Manoel Marques <[email protected]>
Co-authored-by: Steve Wood <[email protected]>
* 1) __str__ method implemented as export_as_lp_string()
2) methods pprint_as_string and prettyprint removed
3) unittest changed to use only export_as_lp_string()

* Update qiskit/optimization/problems/quadratic_program.py

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

Co-authored-by: Manoel Marques <[email protected]>
Co-authored-by: Julien Gacon <[email protected]>
Co-authored-by: Julien Gacon <[email protected]>
Co-authored-by: Steve Wood <[email protected]>
* qubo enhancement

* linting

* more linting

* docstring

* spelling, styling

* weird spell checker
@stefan-woerner stefan-woerner merged commit 86e2dc3 into stefan-woerner:master Jun 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants