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 DAGCircuit.draw() docstring with current requirements (backport #11337) #11338

Merged
merged 1 commit into from
Nov 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions qiskit/dagcircuit/dagcircuit.py
Original file line number Diff line number Diff line change
Expand Up @@ -2099,8 +2099,12 @@ def draw(self, scale=0.7, filename=None, style="color"):
"""
Draws the dag circuit.

This function needs `pydot <https://github.com/erocarrera/pydot>`_, which in turn needs
`Graphviz <https://www.graphviz.org/>`_ to be installed.
This function needs `Graphviz <https://www.graphviz.org/>`_ to be
installed. Graphviz is not a python package and can't be pip installed
(the ``graphviz`` package on PyPI is a Python interface library for
Graphviz and does not actually install Graphviz). You can refer to
`the Graphviz documentation <https://www.graphviz.org/download/>`__ on
how to install it.

Args:
scale (float): scaling factor
Expand Down