diff --git a/qiskit/transpiler/passes/__init__.py b/qiskit/transpiler/passes/__init__.py index ba1e39796755..f9fb19f63498 100644 --- a/qiskit/transpiler/passes/__init__.py +++ b/qiskit/transpiler/passes/__init__.py @@ -88,7 +88,10 @@ DynamicalDecoupling AlignMeasures ValidatePulseGates - RZXCalibrationBuilder + +Transformation +================= +RZXCalibrationBuilder Circuit Analysis ================ @@ -193,7 +196,9 @@ from .scheduling import DynamicalDecoupling from .scheduling import AlignMeasures from .scheduling import ValidatePulseGates -from .scheduling import RZXCalibrationBuilder + +# circuit transformation +from .transformation import RZXCalibrationBuilder # additional utility passes from .utils import CheckMap diff --git a/qiskit/transpiler/passes/scheduling/__init__.py b/qiskit/transpiler/passes/scheduling/__init__.py index ea8f8e3456a1..f8270d23da54 100644 --- a/qiskit/transpiler/passes/scheduling/__init__.py +++ b/qiskit/transpiler/passes/scheduling/__init__.py @@ -16,6 +16,4 @@ from .asap import ASAPSchedule from .time_unit_conversion import TimeUnitConversion from .dynamical_decoupling import DynamicalDecoupling -from .calibration_creators import CalibrationCreator, RZXCalibrationBuilder -from .rzx_templates import rzx_templates from .instruction_alignment import AlignMeasures, ValidatePulseGates diff --git a/qiskit/transpiler/passes/transformation/__init__.py b/qiskit/transpiler/passes/transformation/__init__.py new file mode 100644 index 000000000000..d5103a4e4483 --- /dev/null +++ b/qiskit/transpiler/passes/transformation/__init__.py @@ -0,0 +1,16 @@ +# This code is part of Qiskit. +# +# (C) Copyright IBM 2020. +# +# This code is licensed under the Apache License, Version 2.0. You may +# obtain a copy of this license in the LICENSE.txt file in the root directory +# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. +# +# Any modifications or derivative works of this code must retain this +# copyright notice, and modified files need to carry a notice indicating +# that they have been altered from the originals. + +"""Module containing circuit transformation passes.""" + +from .calibration_creators import CalibrationCreator, RZXCalibrationBuilder +from .rzx_templates import rzx_templates diff --git a/qiskit/transpiler/passes/scheduling/calibration_creators.py b/qiskit/transpiler/passes/transformation/calibration_creators.py similarity index 100% rename from qiskit/transpiler/passes/scheduling/calibration_creators.py rename to qiskit/transpiler/passes/transformation/calibration_creators.py diff --git a/qiskit/transpiler/passes/scheduling/rzx_templates.py b/qiskit/transpiler/passes/transformation/rzx_templates.py similarity index 100% rename from qiskit/transpiler/passes/scheduling/rzx_templates.py rename to qiskit/transpiler/passes/transformation/rzx_templates.py diff --git a/test/python/pulse/test_calibrationbuilder.py b/test/python/pulse/test_calibrationbuilder.py index 0579d8c1d10a..f6e08cbc26f0 100644 --- a/test/python/pulse/test_calibrationbuilder.py +++ b/test/python/pulse/test_calibrationbuilder.py @@ -27,7 +27,7 @@ DriveChannel, GaussianSquare, ) -from qiskit.transpiler.passes.scheduling.calibration_creators import ( +from qiskit.transpiler.passes.transformation.calibration_creators import ( RZXCalibrationBuilderNoEcho, ) from qiskit.test.mock import FakeAthens