Skip to content

Commit e0da163

Browse files
authored
Update version in deprecation message for CircuitInstruction iteration. (#14059)
* Update version in message. * Add release note.
1 parent 0715eff commit e0da163

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

crates/circuit/src/circuit_instruction.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ fn warn_on_legacy_circuit_instruction_iteration(py: Python) -> PyResult<()> {
698698
py,
699699
concat!(
700700
"Treating CircuitInstruction as an iterable is deprecated legacy behavior",
701-
" since Qiskit 1.2, and will be removed in Qiskit 2.0.",
701+
" since Qiskit 1.2, and will be removed in Qiskit 3.0.",
702702
" Instead, use the `operation`, `qubits` and `clbits` named attributes."
703703
)
704704
),
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
deprecations_circuits:
3+
- |
4+
The deprecated tuple-like interface for :class:`~.circuit.CircuitInstruction` was not
5+
removed in this release as originally planned. It will be removed in Qiskit 3.0.0
6+
instead. Instead, use the
7+
:class:`~.circuit.CircuitInstruction.operation`,
8+
:class:`~.circuit.CircuitInstruction.qubits`, and
9+
:class:`~.circuit.CircuitInstruction.clbits` named attributes.

0 commit comments

Comments
 (0)