We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1efa22d commit dcf7b84Copy full SHA for dcf7b84
test/python/test_subarchitectures.py
@@ -1,19 +1,28 @@
1
"""Test subarchitecture generation."""
2
3
+from __future__ import annotations
4
+
5
+import contextlib
6
from pathlib import Path
7
+from typing import TYPE_CHECKING, Optional
8
9
import pytest
10
import rustworkx as rx
11
from qiskit.providers.fake_provider import FakeLondon
12
13
from mqt.qmap import Architecture
14
from mqt.qmap.subarchitectures import (
- Graph,
15
SubarchitectureOrder,
16
ibm_guadalupe_subarchitectures,
17
rigetti_16_subarchitectures,
18
)
19
20
+if TYPE_CHECKING:
21
+ from typing_extensions import TypeAlias
22
23
+with contextlib.suppress(TypeError):
24
+ Graph: TypeAlias = rx.PyGraph[int, Optional[int]]
25
26
27
@pytest.fixture()
28
def ibm_guadalupe() -> SubarchitectureOrder:
0 commit comments