# Pennylane-qulacs gpu

**URL:** <https://discuss.pennylane.ai/t/pennylane-qulacs-gpu/320>\
**Category:** PennyLane Plugins\
**Created:** [January 20, 2020, 11:44am UTC](https://discuss.pennylane.ai/t/pennylane-qulacs-gpu/320 "2020-01-20T11:44:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kareem\_essafty](https://yyz2.discourse-cdn.com/flex012/user_avatar/discuss.pennylane.ai/kareem_essafty/32/401_2.png) [@kareem\_essafty](https://discuss.pennylane.ai/u/kareem_essafty)\
**Post date:** [January 20, 2020, 11:44am UTC](https://discuss.pennylane.ai/t/pennylane-qulacs-gpu/320/1 "2020-01-20T11:44:27Z")

</div>

hey,  
I first installed qulacs-gpu and then pennylane-qulacs. after that when I wanted to use the gpu version of qualcs I couldn’t. so, what type of backend does the plugin provide  
thanks in advance

---

<div class="post-metadata">

**Author:** ![kareem\_essafty](https://yyz2.discourse-cdn.com/flex012/user_avatar/discuss.pennylane.ai/kareem_essafty/32/401_2.png) [@kareem\_essafty](https://discuss.pennylane.ai/u/kareem_essafty)\
**Post date:** [January 20, 2020, 1:08pm UTC](https://discuss.pennylane.ai/t/pennylane-qulacs-gpu/320/2 "2020-01-20T13:08:45Z")

</div>

hi again, I made a simple solution to this:  
first i forked the repo from Xanadu’s repository, second I just updated the setup file to include the gpu package if cuda is detected in the environment. I tested this on my device which is pure CPU and it worked perfectly and also tested it on google colab and it worked fine. but please after running this command line on colab:

```auto
pip install git+https://github.com/kareem1925/pennylane-qulacs@GPU_support

```

[new fork](https://github.com/kareem1925/pennylane-qulacs/tree/GPU_support)  
just restart the environment because pennylane requires semantic version 2.6 and colab has 2.8  
if I’m allowed to do a pull request, it will be great

thanks in advance

---

<div class="post-metadata">

**Author:** ![antalszava](https://yyz2.discourse-cdn.com/flex012/user_avatar/discuss.pennylane.ai/antalszava/32/171_2.png) [@antalszava](https://discuss.pennylane.ai/u/antalszava)\
**Post date:** [January 20, 2020, 3:54pm UTC](https://discuss.pennylane.ai/t/pennylane-qulacs-gpu/320/3 "2020-01-20T15:54:04Z")

</div>

Hi @kareem_essafty ,

Thanks so much for reaching out! Yes, you would indeed need the `qulacs-gpu` package to have the option of running your code on a GPU when using `pip install`.

Great job, nice that you went for the solution! We’ll be getting back to you on how to make a PR soon.

Cheers,  
Antal

---

<div class="post-metadata">

**Author:** ![antalszava](https://yyz2.discourse-cdn.com/flex012/user_avatar/discuss.pennylane.ai/antalszava/32/171_2.png) [@antalszava](https://discuss.pennylane.ai/u/antalszava)\
**Post date:** [January 20, 2020, 4:12pm UTC](https://discuss.pennylane.ai/t/pennylane-qulacs-gpu/320/4 "2020-01-20T16:12:29Z")

</div>

Hi @kareem_essafty,

Feel free to make a PR in the [pennylane-qulacs](https://github.com/XanaduAI/pennylane-qulacs) repository as described at [Research and contribution](https://pennylane.readthedocs.io/en/stable/development/research.html).

It is worth noting, however, that the `pennylane-qulacs` plugin is for now still in an experimental phase and therefore results obtained using it might not correspond to the expected outcomes.

Let me know if you have further questions or if there is anything we could help out with!

Cheers,  
Antal

---

<div class="post-metadata">

**Author:** ![kareem\_essafty](https://yyz2.discourse-cdn.com/flex012/user_avatar/discuss.pennylane.ai/kareem_essafty/32/401_2.png) [@kareem\_essafty](https://discuss.pennylane.ai/u/kareem_essafty)\
**Post date:** [January 20, 2020, 9:24pm UTC](https://discuss.pennylane.ai/t/pennylane-qulacs-gpu/320/5 "2020-01-20T21:24:34Z")

</div>

thanks a lot for allowing me to create a pull request.  
here is the [pull](https://github.com/XanaduAI/pennylane-qulacs/pull/1)  
and i’ll consider it as a temp solution for now  
thanks again
