Skip to content
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

Update tutorials to avoid deprecated messages #574

Closed
woodsp-ibm opened this issue Dec 4, 2023 · 0 comments · Fixed by #575
Closed

Update tutorials to avoid deprecated messages #574

woodsp-ibm opened this issue Dec 4, 2023 · 0 comments · Fixed by #575

Comments

@woodsp-ibm
Copy link
Member

Some tutorials have deprecation warnings where the code needs updating appropriately

  • 10_warm_start_qaoa

qc.draw("mpl")

/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/qiskit/visualization/circuit/matplotlib.py:266: FutureWarning: The default matplotlib drawer scheme will be changed to "iqp" in a following release. To silence this warning, specify the current default explicitly as style="clifford", or the new default as style="iqp".
self._style, def_font_ratio = load_style(self._style)

  • 11_using_classical_optimization_solvers_and_models.

/tmp/ipykernel_20623/3830934741.py:10: DeprecationWarning: Model.display() is deprecated
gurobipy_model.display()

@mergify mergify bot closed this as completed in #575 Dec 8, 2023
mergify bot pushed a commit that referenced this issue Dec 8, 2023
* Fixes deprecation warnings in tutorials 10, 11.

* Docstring for Gurobi Helper Function.

* Fix style.

---------

Co-authored-by: Steve Wood <40241007+woodsp-ibm@users.noreply.github.com>
mergify bot pushed a commit that referenced this issue Dec 8, 2023
* Fixes deprecation warnings in tutorials 10, 11.

* Docstring for Gurobi Helper Function.

* Fix style.

---------

Co-authored-by: Steve Wood <40241007+woodsp-ibm@users.noreply.github.com>
(cherry picked from commit 36ad1a1)
mergify bot added a commit that referenced this issue Dec 8, 2023
…579)

* Fixes deprecation warnings in tutorials 10, 11.

* Docstring for Gurobi Helper Function.

* Fix style.

---------

Co-authored-by: Steve Wood <40241007+woodsp-ibm@users.noreply.github.com>
(cherry picked from commit 36ad1a1)

Co-authored-by: Daniel Thuerck <dthuerck@users.noreply.github.com>
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 a pull request may close this issue.

1 participant