From bb6f3a959b777ec9e39fd21bc0df5dc5f1d2f7cb Mon Sep 17 00:00:00 2001 From: Jake Lishman Date: Mon, 6 Dec 2021 17:14:12 +0000 Subject: [PATCH] Revert default import of rzx_templates This was made in order to simplify some import paths, but as a side effect it caused ten `QuantumCircuit`s to be created on import of `qiskit`, which spoiled the QPY backwards compatibility tests and likely had import performance implications. The import of this likely should not need to create circuits, but for now, we revert its import rather than making a change this close to release. --- qiskit/transpiler/passes/calibration/__init__.py | 1 - .../notes/0.19/add-pulse-gate-pass-dc347177ed541bcc.yaml | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/qiskit/transpiler/passes/calibration/__init__.py b/qiskit/transpiler/passes/calibration/__init__.py index 1fc9f92498c3..3b80fbb26530 100644 --- a/qiskit/transpiler/passes/calibration/__init__.py +++ b/qiskit/transpiler/passes/calibration/__init__.py @@ -13,4 +13,3 @@ """Module containing transpiler calibration passes.""" from .builders import RZXCalibrationBuilder, RZXCalibrationBuilderNoEcho, PulseGates -from .rzx_templates import rzx_templates diff --git a/releasenotes/notes/0.19/add-pulse-gate-pass-dc347177ed541bcc.yaml b/releasenotes/notes/0.19/add-pulse-gate-pass-dc347177ed541bcc.yaml index d05ab6b50d8c..d1fea80e3f94 100644 --- a/releasenotes/notes/0.19/add-pulse-gate-pass-dc347177ed541bcc.yaml +++ b/releasenotes/notes/0.19/add-pulse-gate-pass-dc347177ed541bcc.yaml @@ -82,11 +82,11 @@ deprecations: are deprecated, and will be removed in a future release. The import path:: - from qiskit.transpiler.passes.scheduling.rzx_templates.rzx_templates import rzx_templates + from qiskit.transpiler.passes.scheduling.rzx_templates import rzx_templates is also deprecated, and will be removed in a future release. You should use the new import paths:: from qiskit.transpiler.passes import RZXCalibrationBuilder from qiskit.transpiler.passes import RZXCalibrationBuilderNoEcho - from qiskit.transpiler.passes.calibration import rzx_templates + from qiskit.transpiler.passes.calibration.rzx_templates import rzx_templates