Skip to content

Commit

Permalink
Update src/qibolab/backends.py
Browse files Browse the repository at this point in the history
Co-authored-by: Alessandro Candido <[email protected]>
  • Loading branch information
csookim and alecandido authored Oct 20, 2024
1 parent 0c61acf commit 78b40ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qibolab/backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def connectivity(self) -> list[tuple[Union[str, int], Union[str, int]]]:
def natives(self) -> list[str]:
native_gates = set()
for _, q in self.platform.qubits.items():
native_gates |= {k for k, v in q.native_gates.__dict__.items() if v is not None}
native_gates |= {k for k, v in asdict(q.native_gates).items() if v is not None}

for _, p in self.platform.pairs.items():
native_gates |= {k for k, v in p.native_gates.__dict__.items() if v is not None}
Expand Down

0 comments on commit 78b40ad

Please sign in to comment.