Skip to content

QPic used as default circuit drawer when IPython is not available #419

Description

@MDeiml

When calling tq.draw, the default circuit drawer is qpic, as long as qpic itself is installed. This is problematic, because it throws an error when IPython is not available (i.e. the current console is not a jupyter notebook).

if system_has_qpic:
backend = "qpic"

The function should either check whether IPython is installed before using the qpic backend, or even better, there should be a fallback, like matplotlib, for displaying the circuit, when IPython is not available.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions