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

Adding classical control #1

Closed
willzeng opened this issue Jan 12, 2019 · 6 comments
Closed

Adding classical control #1

willzeng opened this issue Jan 12, 2019 · 6 comments

Comments

@willzeng
Copy link

Any chance of adding classical control to circuits in the editor? This is often a great way of comparing QASM and Quil and takes some of the most effort to convert.

@perak
Copy link
Collaborator

perak commented Jan 12, 2019

@willzeng it is coming soon:

currently you can add only condition (QASM’s “if” translates to QUIL’s “jump”).

Other control constructs will be added soon - QUIL parser is next thing to be added to “quantum-circuit”.

@perak
Copy link
Collaborator

perak commented Jan 12, 2019

Later today I will publish video with instructions how to add classical control (condition) to circuit in GUI.

By the way, I found a bug related to exporting conditions to pyQuil and QUIL, will fix that later today and deploy fixed version of the GUI.

@perak
Copy link
Collaborator

perak commented Jan 12, 2019

@willzeng

OK, I fixed some bugs and published latest "quantum-circuit" npm module and latest "Quantum Programming Studio".

P.S. in the video you can see that I am simulating using Rigetti QCS (running on QVM inside QMI), but that feature is not available yet (qps-client which connects QMI to "Quantum Programming Studio") is not published yet.

@willzeng
Copy link
Author

That's great! I was able to finish the teleportation example: https://quantum-circuit.com/app_details/about/YpHEBY4QEJyB5G5i5

@perak
Copy link
Collaborator

perak commented Jan 24, 2019

@willzeng OK, but it doesn't work correctly due to bug: #5

currently, it teleports only "binary" values - qubit 2 will have resulting value of 0 or 1 whatever is "message" on qubit 0.

Bug is fixed now but not deployed yet. I will deploy in 1-2 hours.

@perak
Copy link
Collaborator

perak commented Jan 25, 2019

@willzeng fixed and deployed - works perfectly. I will close this issue now.

@perak perak closed this as completed Jan 25, 2019
perak pushed a commit that referenced this issue Jun 15, 2024
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

No branches or pull requests

2 participants