Skip to content

Commit

Permalink
fix: minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
changsookim committed Oct 25, 2024
1 parent 6f7a720 commit 4e3f0c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/qibolab/platform/platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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
Expand Down

0 comments on commit 4e3f0c7

Please sign in to comment.