qat.core.printer.plot_in_notebook

Function plot_in_notebook() can be used to display a circuit inside a Jupyter notebook

qat.core.printer.plot_in_notebook(circuit, fmt=None, depth=0, filename=None, hardware_model=None, renaming_dict=None)

Plots a circuit directly into a notebook cell.

Parameters
  • shell – a IPython shell, as returned by get_ipython function

  • circuit – the circuit to plot

  • fmt – the format (svg or pdf)

  • depth – the inlining depth

  • filename – the filename in which to save a copy of the plot (or None)

  • hardware_model – some hardware model to display a timeplot of the circuit

  • renaming_dict – an aliases dictionary to display gates with custom names