Skip to content

Commit

Permalink
Change input to backend to kwargs
Browse files Browse the repository at this point in the history
  • Loading branch information
Tankya2 authored and alecandido committed Feb 29, 2024
1 parent 33bd541 commit 20fb7cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/qibo/backends/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ def construct_backend(backend, **kwargs):
from qibotn.backends import CuTensorNet, QuimbBackend # pylint: disable=E0401

if platform == "cutensornet": # pragma: no cover
return CuTensorNet(runcard)
return CuTensorNet(kwargs["runcard"])
elif platform == "qutensornet": # pragma: no cover
return QuimbBackend(runcard)
return QuimbBackend(kwargs["runcard"])

return QibolabBackend(**kwargs)
elif backend == "clifford":
Expand Down

0 comments on commit 20fb7cc

Please sign in to comment.