qsharp icon indicating copy to clipboard operation
qsharp copied to clipboard

Add DumpOperation to Q# library M.Q.Diagnostics

Open tcNickolas opened this issue 4 months ago • 3 comments

Is your feature request related to a problem? Please describe. It is very useful to be able to print the matrix of the operation directly from Q#, like we could in Classic QDK. This would enable me to provide better feedback on learner's solutions in the katas on quantum.microsoft.com, as well as allow users of VS Code and VS Code Online see the matrices of their code without having to go through Python (and all the setup for multi-file Q# project required for that).

Describe the solution you'd like DumpOperation operation, similar to the one we had in Classic QDK.

Describe alternatives you've considered In some scenarios, I can use Python dump_operation API. However, it is not available on quantum.microsoft.com or on VS Code online, and it is somewhat painful to set up all the moving pieces required for Python-Q# integration just to print an operation matrix.

tcNickolas avatar Mar 13 '24 18:03 tcNickolas