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

Setting qibolab backend #1261

Closed
andrea-pasquale opened this issue Mar 13, 2024 · 0 comments · Fixed by #1262
Closed

Setting qibolab backend #1261

andrea-pasquale opened this issue Mar 13, 2024 · 0 comments · Fixed by #1262
Labels
bug Something isn't working

Comments

@andrea-pasquale
Copy link
Contributor

I'm having a hard time try to set qibolab as a backend in the latest release 0.2.5.

from qibo import set_backend

set_backend("qibolab", platform="dummy")

The following error is raised:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/andreapasquale/test_env/lib/python3.11/site-packages/qibo/backends/__init__.py", line 152, in set_backend
    GlobalBackend.set_backend(backend, **kwargs)
  File "/home/andreapasquale/test_env/lib/python3.11/site-packages/qibo/backends/__init__.py", line 112, in set_backend
    log.info(f"Using {cls._instance} backend on {cls._instance.device}")
                                                 ^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'device'
@andrea-pasquale andrea-pasquale added the bug Something isn't working label Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant