-
Notifications
You must be signed in to change notification settings - Fork 575
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
move draw
and draw_mpl
to drawer
module
#2396
Changes from 7 commits
d5e1a94
e6dc003
b5895c3
d09ebba
542beb4
252dff7
1da417e
3ee1c38
6fc9402
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -203,6 +203,10 @@ | |
* Circuit cutting now performs expansion to search for wire cuts in contained operations or tapes. | ||
[(#2340)](https://github.com/PennyLaneAI/pennylane/pull/2340) | ||
|
||
* The `qml.draw` and `qml.draw_mpl` transforms are now located in the `drawer` module. They can still be | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should this be considered a breaking change? It shouldn't have any user facing ramifications. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What comes to mind is that it could be breaking if there were occurrences of |
||
accessed via the top-level `qml` namespace. | ||
[(#2396)](https://github.com/PennyLaneAI/pennylane/pull/2396) | ||
|
||
<h3>Deprecations</h3> | ||
|
||
<h3>Breaking changes</h3> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,15 +14,14 @@ | |
""" | ||
This module provides the circuit drawing functionality used to display circuits visually. | ||
|
||
.. currentmodule:: pennylane.circuit_drawer | ||
.. currentmodule:: pennylane.drawer | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How come this name changed? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This name changed happened a few months ago. Seems like this line just slipped through that PR. |
||
.. autosummary:: | ||
:toctree: api | ||
|
||
""" | ||
|
||
from .draw import draw, draw_mpl | ||
from .tape_text import tape_text | ||
from .tape_mpl import tape_mpl | ||
from .mpldrawer import MPLDrawer | ||
from .drawable_layers import drawable_layers | ||
from .utils import convert_wire_order | ||
Comment on lines
-26
to
-27
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These two methods are only accessed internally by |
||
from .style import available_styles, use_style |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How come this was changed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
draw
anddraw_mpl
are not developer methods. In fact, they're the most important methods of the module, so I thought it would be important to move them to the top.I think
tape_text
andtape_mpl
are on the boundary between user-facing and developer-only. They have quite a bit of use for anyone working primarily with tapes instead of just qnodes.