Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Ability to generate a quantum circuit from a Q# opertaion. #31

Closed
anpaz opened this issue Jul 24, 2019 · 3 comments
Closed

Ability to generate a quantum circuit from a Q# opertaion. #31

anpaz opened this issue Jul 24, 2019 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@anpaz
Copy link
Member

anpaz commented Jul 24, 2019

Please describe what you would like the feature to accomplish.
It would be great to be able to generate the quantum circuit diagram from a Q# operation.

Describe the solution you'd like
From the command line, provide the name of a Q# operation (define in a .qs file in the local folder) and generate a file that can be used to generate a the circuit diagram in ascii, png, pdf, or some other graphical format.

Extra points if this is integrated into IQ# so we can see the circuit inside a Jupyter Notebook.

Additional context
LiQUid used to be able to do this by generating the circuit into LaTeX. Another possibility is to generate this into qpic format.

@anpaz anpaz added the enhancement New feature or request label Jul 24, 2019
@bromeg bromeg self-assigned this Aug 29, 2019
@bromeg bromeg added this to the On Deck milestone Aug 29, 2019
@bromeg bromeg assigned anpaz and unassigned bromeg Aug 29, 2019
@bamarsha bamarsha removed this from the On Deck milestone Oct 2, 2020
@bettinaheim
Copy link
Contributor

"Extra points if this is integrated into IQ# so we can see the circuit inside a Jupyter Notebook."
I think this should be largely addressed by the new iqsharp functionality, so I'll close this one here. There are definitively further work that could be interesting (like LaTeX output), but I suggest to file a new concrete issue for these.

@msoeken
Copy link
Member

msoeken commented Nov 2, 2020

Leaving a pointer to this blog post that illustrates how to generate qpic output from Q# execution traces.

@fvirdia
Copy link

fvirdia commented Feb 1, 2021

Hi, the blog post was very useful. In reference to it, I opened a new issue asking if it's possible to add new features to it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants