quil-lang / qvm

The high-performance and featureful Quil simulator.
Other
411 stars 57 forks source link

API unavailable #247

Closed am610 closed 4 years ago

am610 commented 4 years ago

I am trying to get the API, for my config file setup, but even though I have successfully downloaded the forest-sdk and installed it and ran, but the API hasn't been received in my email. with which I have signed up in the website (twice I have done so) , and I have been waiting for 2 days now, still no response. I have followed http://docs.rigetti.com/en/1.9/start.html#connecting-to-rigetti-forest this instructions, firstly the page link given there is outdated and doesnt work, I navigated to this page, https://qcs.rigetti.com/sdk-downloads . and there used the sign in(up) , got nothing. NO resources online has helped me still, please suggest.

appleby commented 4 years ago

Hi @am610. Sorry for the trouble.

The link you are referencing is for an older version of pyquil / forest sdk. The current docs can be found here: http://docs.rigetti.com/en/stable/index.html

I will forward your question internally to see if your QCS cloud services sign-up request was received.

In the mean time, if you already have the latest version of the forest SDK installed, you actually don't need a QCS account to start working with QVM or the forest SDK locally. Just follow the instructions here to get started with a local environment: http://docs.rigetti.com/en/stable/start.html#getting-started

If you like docker, we also provide an unofficial docker image pre-installed with quilc, qvm, and pyQuil. You can find instructions on using the docker image here: https://github.com/rigetti/pyquil/blob/master/CONTRIBUTING.md#using-the-docker-image

Finally, we also provide a set of tutorial notebooks that might be useful for getting started: https://github.com/rigetti/forest-tutorials

Let us know if you have any further questions.

am610 commented 4 years ago

HI, Thanks for the detailed reply. Basically I am trying to run groove, however when I run this line :

from grove.tomography.state_tomography import do_state_tomography

I get the following error :

ModuleNotFoundError: No module named 'pyquil.api.errors'

Searching the internet, I see, I need to place the pyquil.api.errors file in

/Users/home/

location and inside it, should have the format :

[Rigetti Forest]

url: https://api.rigetti.com/qvm

key:

user_id:

it is here, that I dont have the sufficient informations.

Please correct me, if I am wrong in any of the previous steps.

thanks,

Ayan

Le jeu. 19 mars 2020 à 21:42, appleby notifications@github.com a écrit :

Hi @am610 https://github.com/am610. Sorry for the trouble.

The link you are referencing is for an older version of pyquil / forest sdk. The current docs can be found here: http://docs.rigetti.com/en/stable/index.html

I will forward your question internally to see if your QCS cloud services sign-up request was received.

In the mean time, if you already have the latest version of the forest SDK installed, you actually don't need a QCS account to start working with QVM or the forest SDK locally. Just follow the instructions here to get started with a local environment: http://docs.rigetti.com/en/stable/start.html#getting-started

If you like docker, we also provide an unofficial docker image pre-installed with quilc, qvm, and pyQuil. You can find instructions on using the docker image here: https://github.com/rigetti/pyquil/blob/master/CONTRIBUTING.md#using-the-docker-image

Finally, we also provide a set of tutorial notebooks that might be useful for getting started: https://github.com/rigetti/forest-tutorials

Let us know if you have any further questions.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/rigetti/qvm/issues/247#issuecomment-601251382, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABRU55U5NI67B2MUIV7SZ6LRII4OPANCNFSM4LPGCXDQ .

-- Dr. Ayan Mitra Post Doctoral Research Fellow

Energetic Cosmic Laboratory (ECL), Nazarbayev University 53, Kabanbay Batyr Avenue Astana,010000 Republic of Kazakhstan

Mob : +7 7761531866

appleby commented 4 years ago

Hi @am610, I raised the issue about your not receiving a QCS email internally. If you don't mind posting your email address here, I can pass it along to the relevant people and they will send you an invitation email directly.

Regarding the above error: unfortunately, it looks like the version of quantum-grove on PyPI (1.7.0) is not compatible with the latest version of pyQuil. You will need to install the quantum-grove package from source by cloning the repository here: https://github.com/rigetti/grove

and then, from inside the grove repository, run pip install -e . to install from source.

See the second option in the Install section of the README here: https://github.com/rigetti/grove#installation

Alternatively, you might consider instead using forest-benchmarking, which also includes tomography-related code and is more regularly updated.

See for example the BellStateTomography notebook in the forest-tutorials repo.

am610 commented 4 years ago

HI, Thanks again for the quick reply. Either one of my email address is valid : ayanmitra375@gmail.com or ayan.mitra@nu.edu.kz

thanks Ayan

Le ven. 20 mars 2020 à 05:26, appleby notifications@github.com a écrit :

Hi @am610 https://github.com/am610, I raised the issue about your not receiving a QCS email internally. If you don't mind posting your email address here, I can pass it along to the relevant people and they will send you an invitation email directly.

Regarding the above error: unfortunately, it looks like the version of quantum-grove on PyPI (1.7.0) is not compatible with the latest version of pyQuil. You will need to install the quantum-grove package from source by cloning the repository here: https://github.com/rigetti/grove

and then, from inside the grove repository, run pip install -e . to install from source.

See the second option in the Install section of the README here: https://github.com/rigetti/grove#installation

Alternatively, you might consider instead using forest-benchmarking https://github.com/rigetti/forest-benchmarking, which also includes tomography-related code and is more regularly updated.

See for example the BellStateTomography https://github.com/rigetti/forest-tutorials/blob/master/notebooks/BellStateTomography.ipynb notebook in the forest-tutorials repo.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/rigetti/qvm/issues/247#issuecomment-601461987, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABRU55RCSLRWAN5XKAOCSWLRIKSZ3ANCNFSM4LPGCXDQ .

-- Dr. Ayan Mitra Post Doctoral Research Fellow

Energetic Cosmic Laboratory (ECL), Nazarbayev University 53, Kabanbay Batyr Avenue Astana,010000 Republic of Kazakhstan

Mob : +7 7761531866

appleby commented 4 years ago

Perfect. I will pass these along and you should receive an email sometime tomorrow.

On Thu, Mar 19, 2020, 7:46 PM Ayan Mitra notifications@github.com wrote:

HI, Thanks again for the quick reply. Either one of my email address is valid : ayanmitra375@gmail.com or ayan.mitra@nu.edu.kz

thanks Ayan

Le ven. 20 mars 2020 à 05:26, appleby notifications@github.com a écrit :

Hi @am610 https://github.com/am610, I raised the issue about your not receiving a QCS email internally. If you don't mind posting your email address here, I can pass it along to the relevant people and they will send you an invitation email directly.

Regarding the above error: unfortunately, it looks like the version of quantum-grove on PyPI (1.7.0) is not compatible with the latest version of pyQuil. You will need to install the quantum-grove package from source by cloning the repository here: https://github.com/rigetti/grove

and then, from inside the grove repository, run pip install -e . to install from source.

See the second option in the Install section of the README here: https://github.com/rigetti/grove#installation

Alternatively, you might consider instead using forest-benchmarking https://github.com/rigetti/forest-benchmarking, which also includes tomography-related code and is more regularly updated.

See for example the BellStateTomography < https://github.com/rigetti/forest-tutorials/blob/master/notebooks/BellStateTomography.ipynb

notebook in the forest-tutorials repo.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/rigetti/qvm/issues/247#issuecomment-601461987, or unsubscribe < https://github.com/notifications/unsubscribe-auth/ABRU55RCSLRWAN5XKAOCSWLRIKSZ3ANCNFSM4LPGCXDQ

.

-- Dr. Ayan Mitra Post Doctoral Research Fellow

Energetic Cosmic Laboratory (ECL), Nazarbayev University 53, Kabanbay Batyr Avenue Astana,010000 Republic of Kazakhstan

Mob : +7 7761531866

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rigetti/qvm/issues/247#issuecomment-601492222, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAVAPB43NLSIIQVEGR3PXDRILDFRANCNFSM4LPGCXDQ .

appleby commented 4 years ago

Hi @am610, your QCS invite email has been sent. Let me know if it doesn't arrive.

am610 commented 4 years ago

HI, Many thanks for the invite. I have received it and I am going to complete the process now. thanks Ayan

Le ven. 20 mars 2020 à 23:17, appleby notifications@github.com a écrit :

Hi @am610 https://github.com/am610, your QCS invite email has been sent. Let me know if it doesn't arrive.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/rigetti/qvm/issues/247#issuecomment-601816470, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABRU55RAITNSTJRN4SRN7NLRIOQKBANCNFSM4LPGCXDQ .

-- Dr. Ayan Mitra Post Doctoral Research Fellow

Energetic Cosmic Laboratory (ECL), Nazarbayev University 53, Kabanbay Batyr Avenue Astana,010000 Republic of Kazakhstan

Mob : +7 7761531866

am610 commented 4 years ago

Hi, I thank you again for the prompt response and help. Now I have been trying with the notebooks : I have a new problem , which I am unable to resolve, from resources in the internet, maybe you can shed some light, thanks again. I get this error message :

ImportError Traceback (most recent call last)

in * 12* * 13* from pyquil.gates import CZ, RY ---> 14 from pyquil.api import QVMConnection, QPUConnection, get_devices * 15* from pyquil.quil import Program * 16* ImportError: cannot import name 'get_devices' from 'pyquil.api' (/usr/local/lib/python3.7/site-packages/pyquil/api/__init__.py) so pyquil.api can import the other modules, but the get_devices is not working, can you please give some idea how to fix this . thanks, Ayan Le lun. 23 mars 2020 à 11:24, Ayan Mitra a écrit : > HI, > Many thanks for the invite. I have received it and I am going to complete > the process now. > thanks > Ayan > > Le ven. 20 mars 2020 à 23:17, appleby a écrit : > >> Hi @am610 , your QCS invite email has been >> sent. Let me know if it doesn't arrive. >> >> — >> You are receiving this because you were mentioned. >> Reply to this email directly, view it on GitHub >> , or >> unsubscribe >> >> . >> > > > -- > Dr. Ayan Mitra > Post Doctoral Research Fellow > ---------------------------------------------------------------- > Energetic Cosmic Laboratory (ECL), > Nazarbayev University > 53, Kabanbay Batyr Avenue > Astana,010000 > Republic of Kazakhstan > ----------------------------------------------------- > Mob : +7 7761531866 > ----------------------------------------------------------------- > -- Dr. Ayan Mitra Post Doctoral Research Fellow ---------------------------------------------------------------- Energetic Cosmic Laboratory (ECL), Nazarbayev University 53, Kabanbay Batyr Avenue Astana,010000 Republic of Kazakhstan ----------------------------------------------------- Mob : +7 7761531866 -----------------------------------------------------------------
appleby commented 4 years ago

Hi @am610,

As @jmbr mentioned in the grove issue, it looks that notebook is using a pyquil API that has been removed.

In general, the rigetti/grove repo has not seen much activity in the last year or so. PRs are always welcome, but you might also consider trying the notebooks in forest-benchmarking or forest-tutorials, which are more actively maintained.

For example, here are a couple of process / state tomography notebooks from forest-benchmarking that have some overlap with grove's Tomography.ipynb.

https://github.com/rigetti/forest-benchmarking/blob/master/docs/examples/tomography_process.ipynb

https://github.com/rigetti/forest-benchmarking/blob/master/docs/examples/tomography_state.ipynb

appleby commented 4 years ago

HI, Many thanks for the invite. I have received it and I am going to complete the process now. thanks Ayan Le ven. 20 mars 2020 à 23:17, appleby notifications@github.com a écrit :

Great! I will close this issue out, then. If you have any further questions about using pyquil / grove / forest-benchmarking, feel free to open another issue.

Thanks again for reporting this @am610