Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How would one work with CommandPrinter() #345

Open
jason-jk-kang opened this issue Nov 7, 2019 · 4 comments · May be fixed by #381
Open

How would one work with CommandPrinter() #345

jason-jk-kang opened this issue Nov 7, 2019 · 4 comments · May be fixed by #381

Comments

@jason-jk-kang
Copy link

Hi!

I am working with the CommandPrinter() backend, and am interested in saving my readout as a qiskit quantum circuit object. How would one go about doing this? My intuition right now is to just string parse the printed commands, but I was hoping there would be a cleaner way to do this.

@Takishima
Copy link
Collaborator

I have an implementation of a OpenQASMEngine somewhere on my computer that I could add to ProjectQ as a PR. I will probably not have the time to prepare it until next week, but I'll try to do so as soon as possible.

@jason-jk-kang
Copy link
Author

Hi, bumping this to see whether there is any progress on the OpenQASMEngine

@Takishima
Copy link
Collaborator

Takishima commented Nov 20, 2019

Sorry it took a while. I do have a pseudo-finished implementation of the OpenQASMEngine.

Right now, the other ProjectQ reviewer seems quite busy so if you want to have this accepted quickly into ProjectQ, what we could do is have you open a PR and I either contribute the commits for the new engine to it or you get them from my fork [1]

[1] https://github.com/Takishima/ProjectQ/tree/openqasm

@dbretaud
Copy link
Contributor

As the IBMQ backend doesn't seem to work anymore (Issue #347) and as there is apparently an OpenQASMEngine ready to work, should we also write a new ibmq backend for ProjectQ? It would just require the openqasm engine and then a call to the qiskit ibmq provider.

@Takishima Takishima linked a pull request Nov 10, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants