qiskit icon indicating copy to clipboard operation
qiskit copied to clipboard

Documentation of `dag_drawer` is unclear on allowed types

Open jakelishman opened this issue 1 year ago • 0 comments

Talking about qiskit.visualization.dag_visualization:

          What's the reason to have a `not isinstance(dag, DAGCircuit)` path in this function?

Originally posted by @jakelishman in https://github.com/Qiskit/qiskit/pull/12550#discussion_r1713726314

The documentation of dag_drawer implies that only DAGCircuit is allowable, but actually the function is intended to work with DAGDependency as well. We should update the documentation to be accurate.

jakelishman avatar Aug 23 '24 12:08 jakelishman