Skip to content

Commit

Permalink
test: Switch from topology to pairs
Browse files Browse the repository at this point in the history
  • Loading branch information
alecandido committed Aug 17, 2024
1 parent 4f4e6fc commit caa8da7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def test_platform_basics():
qubits={},
)
assert str(platform) == "ciao"
assert platform.topology == []
assert platform.pairs == []

qs = {q: SingleQubitNatives() for q in range(10)}
ts = {(q1, q2): TwoQubitNatives() for q1 in range(3) for q2 in range(4, 8)}
Expand All @@ -79,7 +79,7 @@ def test_platform_basics():
qubits=qs,
)
assert str(platform2) == "come va?"
assert (1, 6) in platform2.topology
assert (1, 6) in platform2.pairs


def test_create_platform_multipath(tmp_path: Path):
Expand Down

0 comments on commit caa8da7

Please sign in to comment.