Skip to content

Commit

Permalink
Merge pull request #752 from qiboteam/upgrade_dep
Browse files Browse the repository at this point in the history
Update qibo and qibolab dependencies
  • Loading branch information
andrea-pasquale authored Mar 21, 2024
2 parents 2c65af9 + c3439ee commit 2244726
Show file tree
Hide file tree
Showing 4 changed files with 132 additions and 83 deletions.
166 changes: 107 additions & 59 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ classifiers = [

[tool.poetry.dependencies]
python = ">=3.9,<3.12"
qibolab = "^0.1.5"
qibo = "^0.2.1"
numpy = "^1.24.0"
qibolab = {git = "https://github.com/qiboteam/qibolab.git", branch = "main" }
qibo ="^0.2.6"
numpy = "^1.26.4"
scipy = "^1.10.1"
pandas = "^1.4.3"
pydantic = "^1.10.5"
Expand Down
9 changes: 7 additions & 2 deletions src/qibocal/auto/runcard.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

from pydantic.dataclasses import dataclass
from qibo.backends import Backend, GlobalBackend
from qibo.transpiler.pipeline import Passes
from qibolab.platform import Platform
from qibolab.qubits import QubitId, QubitPairId

Expand Down Expand Up @@ -64,8 +65,12 @@ def __post_init__(self):
@property
def backend_obj(self) -> Backend:
"""Allocate backend."""
GlobalBackend.set_backend(self.backend, self.platform)
return GlobalBackend()
GlobalBackend.set_backend(self.backend, platform=self.platform)
backend = GlobalBackend()
# FIXME: remove this latin abomination
backend.transpiler = Passes(connectivity=backend.platform.topology)
backend.transpiler.passes = backend.transpiler.passes[-1:]
return backend

@property
def platform_obj(self) -> Platform:
Expand Down
Loading

0 comments on commit 2244726

Please sign in to comment.