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
Unable to install Pennylane-Qulacs GPU: follow-up #63
Comments
Hey @JustinS6626, are you installing pennylane-qulacs into the same Python environment as the run that already had Qulacs GPU installed? |
Thanks for getting back to me again! Yes, that's what I did. Should I do something else instead? |
Just posting this for the paper trail: https://discuss.pennylane.ai/t/unable-to-install-pennylane-qulacs-gpu-verson/4319/2 |
It looks like it could be an issue in the installation script. Is there anything you can do about that? |
Indeed, I tried installing this on Collab and got this:
However, as the traceback suggests, this doesn't seem to be a |
Thanks again for getting back to me! Using the workaround mentioned on the qulacs github, I managed to install |
Hey @JustinS6626, I recommend cloning the pennylane-qulacs repo and modifying the requirements to something like this (see here for more details about installing from github: https://stackoverflow.com/questions/16584552/how-to-state-in-requirements-txt-a-direct-github-source):
Then you can pip install your local clone like this (make sure you're in the root directory of your pennylane-qulacs clone, and have a dedicated virtual environment!):
Let me know if this works :) |
The workaround was actually not a fix to one of the branches itself, but rather a manual installation command mentioned in the related issue https://github.com/qulacs/qulacs/issues/623. The solution given is to run |
On a related note, I was wondering, is qulacs the fastest simulator supported by Pennylane for use with machine learning, or would I be better off using |
When you pip install |
Between the qulacs plugin and lightning, we definitely put more points into supporting lightning ⚡. I would expect it to be faster, but let us know otherwise! You can also try out Catalyst (our quantum-flavoured JIT compiler): https://docs.pennylane.ai/projects/catalyst/en/stable/index.html |
Thank you very much for getting back to me! I tried running
and got
However, when I tried
I got
What else do I need to do to make sure the plugin is recognized? I will look into Catalyst as well, however, my overall model is written in Pytorch and not JAX. Is there an efficient way to integrate compatibility without having to overhaul my code? |
Interesting... I'm not sure how to fix this 😅. I will probably need to hand this off to someone more knowledgeable than myself. If your code is written in PyTorch, is there a reason why the qulacs plugin is more appealing than what standard pennylane has to offer? |
This is related to my previous post on this topic : https://github.com/PennyLaneAI/pennylane-qulacs/issues/62#issue-2197685954
I forgot to mention before that I had succeeded in installing Qulacs-GPU on its own, so I am wondering, when I am installing pennylane-qulacs-gpu, is there a way to get the installation process to recognize the existing installation of Qulacs-GPU so that it doen't try to install it over again?
The text was updated successfully, but these errors were encountered: