microsoft / qsharp

Azure Quantum Development Kit, including the Q# programming language, resource estimator, and Quantum Katas
https://microsoft.github.io/qsharp/
MIT License
465 stars 93 forks source link

Circuit visualization #1085

Open minestarks opened 10 months ago

minestarks commented 10 months ago

We'd like to add the ability to generate circuit diagrams from a Q# program.

These can appear in:

Small programs without classical constructs (e.g. the Bell State sample) are fairly easy to generate diagrams for, but we'll have to figure how best to visualize more complex cases.

Design considerations:

For reference, Q# notebooks in the classic QDK had the ability to generate diagrams using the %trace magic and the quantum_viz Python package.

minestarks commented 6 months ago

More bells and whistles after v1: