CQCL / lambeq

A high-level Python library for Quantum Natural Language Processing
https://cqcl.github.io/lambeq-docs
Apache License 2.0
451 stars 108 forks source link

Initialize a GPU backend with TketModel #59

Closed hwazni closed 1 year ago

hwazni commented 1 year ago

How to use a GPU AerBackend (or any other simulator) with TketModel ?

Thommy257 commented 1 year ago

Hey @hwazni

Uninstalling qiskit-aer and installing qiskit-aer-gpu should do the trick:

pip uninstall qiskit-aer
pip install qiskit-aer-gpu

The tket backend should now use the GPU automatically. Let me know if this works!

dimkart commented 1 year ago

@hwazni This issue will be closed due to inactivity, feel free to re-open if you have any further questions.