Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Elena Peña Tapia <57907331+ElePT@users.noreply.github.com>
  • Loading branch information
mtreinish and ElePT authored Sep 26, 2024
1 parent ecd2976 commit 576b523
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion qiskit/circuit/instruction.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def to_mutable(self):
return self.copy()

@property
@deprecate_func(since="1.3.0", removal_timeline="in 2.0.0", is_property=True, stacklevel=2)
@deprecate_func(since="1.3.0", removal_timeline="in 2.0.0", is_property=True)
def condition(self):
"""The classical condition on the instruction."""
return self._condition
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
deprecations_circuits:
- |
Deprecated the :attr:`.Instruction.condition` and the
:meth:`.Instruction.c_if` method. This attribute and method will be removed
in Qiskit 2.0 and along with any other uses of this in the Qiskit data
model. This functionality has been superseded by the :class:`.IfElseOp`
which can be used to describe a classically condition in a circuit. For
example, a circuit using :attr:`.Instruction.condition` like::
Deprecated the :attr:`.Instruction.condition` attribute and the
:meth:`.Instruction.c_if` method. They will be removed
in Qiskit 2.0, along with any uses in the Qiskit data
model. This functionality has been superseded by the :class:`.IfElseOp` class
which can be used to describe a classical condition in a circuit. For
example, a circuit using :meth:`.Instruction.c_if` like::
from qiskit.circuit import QuantumCircuit
Expand All @@ -17,7 +17,7 @@ deprecations_circuits:
qc.measure(0, 0)
qc.measure(1, 1)
can be rewritten using as::
can be rewritten as::
qc = QuantumCircuit(2, 2)
qc.h(0)
Expand Down

0 comments on commit 576b523

Please sign in to comment.