qiskit.transpiler.PassManager.draw¶
- PassManager.draw(filename=None, style=None, raw=False)[source]¶
Draw the pass manager.
This function needs pydot, which in turn needs Graphviz to be installed.
- প্যারামিটার
filename (str) -- file path to save image to.
style (dict) -- keys are the pass classes and the values are the colors to make them. An example can be seen in the DEFAULT_STYLE. An ordered dict can be used to ensure a priority coloring when pass falls into multiple categories. Any values not included in the provided dict will be filled in from the default dict.
raw (bool) -- If
True
, save the raw Dot output instead of the image.
- রিটার্নস
an in-memory representation of the pass manager, or
None
if no image was generated or Pillow is not installed.- রিটার্ন টাইপ
Optional[PassManager]
- রেইজেস
ImportError -- when nxpd or pydot not installed.