Skip to content

Commit

Permalink
reno
Browse files Browse the repository at this point in the history
  • Loading branch information
1ucian0 committed Nov 12, 2024
1 parent e6cad75 commit 96fcf25
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
5 changes: 2 additions & 3 deletions qiskit/transpiler/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,10 @@
import numpy as np
from qiskit.providers.fake_provider import GenericBackendV2
from qiskit.circuit.library import HGate, PhaseGate, RXGate, TdgGate, TGate, XGate
from qiskit.circuit.library import HGate, PhaseGate, RXGate, TdgGate, TGate, XGate, CXGate
from qiskit.transpiler import PassManager, generate_preset_pass_manager
from qiskit.transpiler.passes import (
ALAPScheduleAnalysis,
CXCancellation,
InverseCancellation,
PadDynamicalDecoupling,
)
Expand All @@ -132,7 +131,7 @@
]
logical_opt = PassManager(
[
CXCancellation(),
InverseCancellation([CXGate()]),
InverseCancellation(inverse_gate_list),
]
)
Expand Down
1 change: 0 additions & 1 deletion qiskit/transpiler/passes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@
CollectLinearFunctions
CollectCliffords
ConsolidateBlocks
CXCancellation
InverseCancellation
CommutationAnalysis
CommutativeCancellation
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
upgrade_transpiler:
- |
The pass ``qiskit.transpiler.passes.CXCancellation`` was removed. It was deprecated in favor of
class:`.InverseCancellation`, which is more generic.
``CXCancellation`` is fully semantically equivalent to ``InverseCancellation([CXGate()])``.

0 comments on commit 96fcf25

Please sign in to comment.