Skip to content

Commit

Permalink
Merge pull request #728 from qiboteam/fix_backend_property
Browse files Browse the repository at this point in the history
Fixing platform and backend assignment through CLI
  • Loading branch information
andrea-pasquale authored Feb 27, 2024
2 parents f62ccab + 2d393bc commit 300685c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/qibocal/auto/runcard.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"""Specify runcard layout, handles (de)serialization."""

import os
from functools import cached_property
from typing import Any, NewType, Optional, Union

from pydantic.dataclasses import dataclass
Expand Down Expand Up @@ -71,7 +70,7 @@ def __post_init__(self):
if self.targets is None and self.platform_obj is not None:
self.targets = list(self.platform_obj.qubits)

@cached_property
@property
def backend_obj(self) -> Backend:
"""Allocate backend."""
GlobalBackend.set_backend(self.backend, self.platform)
Expand Down

0 comments on commit 300685c

Please sign in to comment.