Skip to content

Commit

Permalink
Revert default import of rzx_templates
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jakelishman committed Dec 6, 2021
1 parent 925a9c3 commit bb6f3a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion qiskit/transpiler/passes/calibration/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,3 @@
"""Module containing transpiler calibration passes."""

from .builders import RZXCalibrationBuilder, RZXCalibrationBuilderNoEcho, PulseGates
from .rzx_templates import rzx_templates
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit bb6f3a9

Please sign in to comment.