microsoft / qsharp

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

Circuit visualization #1085

Open minestarks opened 9 months ago

minestarks commented 9 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 5 months ago

More bells and whistles after v1: