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

Errors when using quilc #33

Open
lauracaune opened this issue Apr 8, 2022 · 5 comments
Open

Errors when using quilc #33

lauracaune opened this issue Apr 8, 2022 · 5 comments

Comments

@lauracaune
Copy link

I was trying to use quilc with Rigetti's Qiskit provider and got the error as in the first screenshot. As suggested by Rigetti, I fixed it following the instructions from this page - https://qiskit-rigetti.readthedocs.io/en/latest/.
However, now I get a new error as in the second screenshot. I'm not sure if this is an error in my code or on your side. Could you please help with this?
Thank you!
issue_1
issue_2

@nilslice
Copy link

nilslice commented Apr 8, 2022

Hi @lauracaune -

Would you be able to also share:

  • the program you are trying to compile
  • the commands you ran which resulted in these error outputs
  • how you installed quilc

Thanks!

@lauracaune
Copy link
Author

Hi @nilslice,

My apologies for the late reply. This is the program I am trying to run:
OPENQASM 2.0; include "qelib1.inc"; qreg q[1]; creg c[1]; x q[0]; measure q[0] -> c[0];

I'm using Aspen-11-qvm as the backend and doing the command run on it.
I don't remember anymore as this was a while ago, but I think I isntalled quilc using this - https://qcs.rigetti.com/sdk-downloads.
Weirdly, this is only an issue from my local machine. When I run the same code on the Jupyterlab provided by Rigetti everything runs smoothly.

Thank you :)

@dbanty
Copy link
Contributor

dbanty commented Apr 20, 2022

@lauracaune I'm able to run that program through quilc version 1.26.0 locally. Can you check what version you're using? If you're using a quilc binary from the downloads page, can you instead try running it via Docker as indicated here?

@lauracaune
Copy link
Author

Hi @dbanty,
I've been running quilc via Docker. I thought this means it's the latest version? If not, I'm not sure how to check the version via Docker?
I also tried using a different program and got the same error.

@dbanty
Copy link
Contributor

dbanty commented Apr 20, 2022

I don't think the image will be automatically updated, so if you pulled it a while ago it could be stale? You can do a docker pull rigetti/quilc to see if there are updates. A docker run rigetti/quilc --version will print out the current version.

When you say "another program" do you mean another OPENQASM 2.0 program? Can you try compiling a simple Quil program like DECLARE ro BIT; MEASURE 0 ro to see if it can handle that? That will at least tell us if the quilc image is completely broken.

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

3 participants