QuantumLibraries icon indicating copy to clipboard operation
QuantumLibraries copied to clipboard

Adding circuit images for better understanding

Open J1990 opened this issue 5 years ago • 4 comments

It would be nice to have an overview of inner working of each of the APIs in Microsoft Quantum Machine Learning library. Also for better intuition building, these articles can include images of example circuits.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

J1990 avatar Jul 27 '20 06:07 J1990

Thanks for raising this, @J1990! We'll look at how to add more examples of using those QML library functions in API documentation.

As a side note, you may also be interested in the feature at https://github.com/microsoft/iqsharp/pull/231.

cgranade avatar Aug 05 '20 22:08 cgranade

@cgranade @KittyYeungQ , I think this is a great suggestion. Will it be possible to include circuit diagrams in some parts of the documentation?

guenp avatar Dec 07 '20 17:12 guenp

Part of the problem is that Q# operations really aren't circuits; while tools like %trace provided with IQ# can show execution paths when running Q# programs, I think it would be very confusing to equate circuit diagrams with those programs themselves. That aside, though, I don't believe we currently have a pipeline in place for deploying images used in API documentation at all, especially since API documentation can be consumed in a variety of different places (e.g.: docs.microsoft.com, IQ#'s ? commands, VS Code or VS 2019 hover information), not all of which support richer features like images.

cgranade avatar Dec 07 '20 18:12 cgranade

That makes sense. There are, however, some Q# operations for which having an example circuit diagram to explain the concept can be helpful. Like you said; Q# programs aren't circuits, but circuits can be helpful to explain some parts of the program. My suggestion would be to have an internal discussion about this and see how we can use circuits to our advantage whilst still making a clear distinction between circuits and Q# programs. Then we can see if we can implement a feature to deploy images in API documentation (which would be platform-dependent as you noted). Would something like that work?

guenp avatar Dec 07 '20 20:12 guenp