From 4e3f0c71f9533aea8b0a6291aa7d70bcac333fed Mon Sep 17 00:00:00 2001 From: changsookim <> Date: Fri, 25 Oct 2024 13:29:08 +0400 Subject: [PATCH] fix: minor updates --- src/qibolab/platform/platform.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qibolab/platform/platform.py b/src/qibolab/platform/platform.py index e68d1dba0..74f957462 100644 --- a/src/qibolab/platform/platform.py +++ b/src/qibolab/platform/platform.py @@ -109,7 +109,7 @@ class Platform: topology: nx.Graph = field(default_factory=nx.Graph) """Graph representing the qubit connectivity in the quantum chip.""" - wire_names: List[Union[int | str]] = None + wire_names: List[Union[int, str]] = None """List of physical qubit (wire) names.""" def __post_init__(self): @@ -121,7 +121,7 @@ def __post_init__(self): self.topology.add_edges_from( [(pair.qubit1.name, pair.qubit2.name) for pair in self.pairs.values()] ) - self.wire_names = list(self.qubits.keys()) + self.wire_names = list(self.qubits) def __str__(self): return self.name