Skip to content

Commit

Permalink
Remove deprecated IntegerComparator.num_ancilla_qubits (Qiskit#11306)
Browse files Browse the repository at this point in the history
* remove deprecated IntegerComparator.num_ancilla_qubits

* reno
  • Loading branch information
1ucian0 authored and FabianBrings committed Nov 27, 2023
1 parent 038e7f2 commit 357983e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
11 changes: 0 additions & 11 deletions qiskit/circuit/library/arithmetic/integer_comparator.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"""Integer Comparator."""

from __future__ import annotations
import warnings
import numpy as np

from qiskit.circuit import QuantumCircuit, QuantumRegister, AncillaRegister
Expand Down Expand Up @@ -100,16 +99,6 @@ def geq(self, geq: bool) -> None:
self._invalidate()
self._geq = geq

@property
def num_ancilla_qubits(self):
"""Deprecated. Use num_ancillas instead."""
warnings.warn(
"The IntegerComparator.num_ancilla_qubits property is deprecated "
"as of 0.16.0. It will be removed no earlier than 3 months after the release "
"date. You should use the num_ancillas property instead."
)
return self.num_ancillas

@property
def num_state_qubits(self) -> int:
"""The number of qubits encoding the state for the comparison.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
upgrade:
- |
The property ``IntegerComparator.num_ancilla_qubits`` is removed, which was
deprecated in Qiskit 0.23 (released on Oct 2020). Its functionality is fully covered
by :attr:`.IntegerComparator.num_ancilla`.

0 comments on commit 357983e

Please sign in to comment.