Qiskit / qiskit

Qiskit is an open-source SDK for working with quantum computers at the level of extended quantum circuits, operators, and primitives.
https://www.ibm.com/quantum/qiskit
Apache License 2.0
4.9k stars 2.3k forks source link

plugin support for circuit drawer #11900

Open 1ucian0 opened 5 months ago

1ucian0 commented 5 months ago

What should we add?

Inspired by https://github.com/Qiskit/qiskit/pull/11827, it would be great to extend the Qiskit plugin interface to circuit drawer interface.

Something like:

entry_points = {
    'qiskit.circuit.drawer': [
        'my_drawer = qiskit_plugin_pkg:MyDrawer',
    ]
},
circuit.draw("my_drawer")

This is the similar structure we have for other plugins, such as transpiler stage plugins, unitary synthesis plugins, and high-level synthesis plugins

SamD-1998 commented 1 month ago

Hi, can you assign this issue to me?