|
20 | 20 | from qiskit.transpiler.passmanager import PassManager
|
21 | 21 | from qiskit.transpiler.exceptions import TranspilerError
|
22 | 22 |
|
23 |
| -try: |
24 |
| - from qiskit.providers.fake_provider import Fake7QPulseV1 |
25 |
| -except ImportError: |
26 |
| - from qiskit.providers.fake_provider import FakeJakarta as Fake7QPulseV1 |
| 23 | +from qiskit_ibm_runtime.fake_provider import FakeJakarta |
27 | 24 |
|
28 | 25 | from qiskit_ibm_provider.transpiler.passes.scheduling.pad_delay import PadDelay
|
29 | 26 | from qiskit_ibm_provider.transpiler.passes.scheduling.scheduler import (
|
@@ -850,12 +847,12 @@ def test_c_if_plugin_conversion_with_transpile(self):
|
850 | 847 | after transpilation with the plugin."""
|
851 | 848 | # Patch the test backend with the plugin
|
852 | 849 | with patch.object(
|
853 |
| - Fake7QPulseV1, |
| 850 | + FakeJakarta, |
854 | 851 | "get_translation_stage_plugin",
|
855 | 852 | return_value="ibm_dynamic_circuits",
|
856 | 853 | create=True,
|
857 | 854 | ):
|
858 |
| - backend = Fake7QPulseV1() |
| 855 | + backend = FakeJakarta() |
859 | 856 | # Temporary workaround for mock backends. For real backends this is not required.
|
860 | 857 | backend.configuration().basis_gates.append("if_else")
|
861 | 858 |
|
@@ -1867,7 +1864,7 @@ def test_for_loop(self):
|
1867 | 1864 |
|
1868 | 1865 | def test_transpile_mock_backend(self):
|
1869 | 1866 | """Test scheduling works with transpilation."""
|
1870 |
| - backend = Fake7QPulseV1() |
| 1867 | + backend = FakeJakarta() |
1871 | 1868 | # Temporary workaround for mock backends. For real backends this is not required.
|
1872 | 1869 | backend.configuration().basis_gates.append("if_else")
|
1873 | 1870 | backend.configuration().basis_gates.append("while_loop")
|
@@ -1915,7 +1912,7 @@ def test_transpile_mock_backend(self):
|
1915 | 1912 |
|
1916 | 1913 | def test_transpile_both_paths(self):
|
1917 | 1914 | """Test scheduling works with both fast- and standard path after transpiling."""
|
1918 |
| - backend = Fake7QPulseV1() |
| 1915 | + backend = FakeJakarta() |
1919 | 1916 | # Temporary workaround for mock backends. For real backends this is not required.
|
1920 | 1917 | backend.configuration().basis_gates.append("if_else")
|
1921 | 1918 |
|
@@ -1957,12 +1954,12 @@ def test_c_if_plugin_conversion_with_transpile(self):
|
1957 | 1954 | transpilation with the plugin."""
|
1958 | 1955 | # Patch the test backend with the plugin
|
1959 | 1956 | with patch.object(
|
1960 |
| - Fake7QPulseV1, |
| 1957 | + FakeJakarta, |
1961 | 1958 | "get_translation_stage_plugin",
|
1962 | 1959 | return_value="ibm_dynamic_circuits",
|
1963 | 1960 | create=True,
|
1964 | 1961 | ):
|
1965 |
| - backend = Fake7QPulseV1() |
| 1962 | + backend = FakeJakarta() |
1966 | 1963 | # Temporary workaround for mock backends. For real backends this is not required.
|
1967 | 1964 | backend.configuration().basis_gates.append("if_else")
|
1968 | 1965 |
|
|
0 commit comments