Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecated IntegerComparator.num_ancilla_qubits #11306

Merged
merged 2 commits into from
Nov 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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`.