- 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
Noneif no image was generated or Pillow is not installed.
- রিটার্ন টাইপ
ImportError -- when nxpd or pydot not installed.