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 for deprecated circuit draw style #725

Closed
8 tasks done
woodsp-ibm opened this issue Dec 4, 2023 · 1 comment
Closed
8 tasks done

Update tutorials for deprecated circuit draw style #725

woodsp-ibm opened this issue Dec 4, 2023 · 1 comment
Assignees

Comments

@woodsp-ibm
Copy link
Member

woodsp-ibm commented Dec 4, 2023

A number of Tutorials have this deprecation warning message. The drawing should be updated to avoid this.

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)

These are the tutorials - I just put the number not the full name. There can be multiple places within each that needs fixing.

woodsp-ibm added a commit to woodsp-ibm/qiskit-machine-learning that referenced this issue Dec 14, 2023
mergify bot added a commit that referenced this issue Jan 8, 2024
* Fix QNN for input and weights ordering

* Black

* Lint

* Update QCNN tutorial

* Add reno

* Fix draw style per #725

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
mergify bot pushed a commit that referenced this issue Jan 8, 2024
* Fix QNN for input and weights ordering

* Black

* Lint

* Update QCNN tutorial

* Add reno

* Fix draw style per #725

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
(cherry picked from commit e9a7540)
woodsp-ibm added a commit that referenced this issue Jan 8, 2024
* Fix QNN for input and weights ordering

* Black

* Lint

* Update QCNN tutorial

* Add reno

* Fix draw style per #725

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
(cherry picked from commit e9a7540)

Co-authored-by: Steve Wood <40241007+woodsp-ibm@users.noreply.github.com>
oscar-wallis pushed a commit that referenced this issue Feb 16, 2024
* Fix QNN for input and weights ordering

* Black

* Lint

* Update QCNN tutorial

* Add reno

* Fix draw style per #725

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
@edoaltamura
Copy link
Collaborator

Fixed by 30aa648 for all tutorials: qc.draw("mpl") -> qc.draw("mpl", style="clifford"). This closes also OkuyanBoga#11 and the update is available there after syncing the fork.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants