Skip to content

Commit

Permalink
Removal of deprecated property num_ancilla_qubits (#10793)
Browse files Browse the repository at this point in the history
* Removal: Removing num_ancilla_qubits property from PolynomialPauliRotations class
removed function and deprecate_func from polynomial_pauli_rotations.py
added release note with upgrade notice

* Fixing release note to properly resolve property

* Fix release notes

Co-authored-by: Matthew Treinish <mtreinish@kortar.org>

---------

Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
  • Loading branch information
danielleodigie and mtreinish authored Sep 7, 2023
1 parent 59bf15a commit 031c0a2
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/polynomial_pauli_rotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

from qiskit.circuit import QuantumRegister, QuantumCircuit
from qiskit.circuit.exceptions import CircuitError
from qiskit.utils.deprecation import deprecate_func

from .functional_pauli_rotations import FunctionalPauliRotations

Expand Down Expand Up @@ -224,16 +223,6 @@ def degree(self) -> int:
return len(self.coeffs) - 1
return 0

@property
@deprecate_func(
is_property=True,
since="0.16.0",
additional_msg="Instead, use the property :attr:`~num_ancillas`.",
)
def num_ancilla_qubits(self):
"""Deprecated. Use num_ancillas instead."""
return self.num_ancillas

def _reset_registers(self, num_state_qubits):
"""Reset the registers."""
if num_state_qubits is not None:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
upgrade:
- |
The property ``num_ancilla_qubits`` from the class :class:`.PolynomialPauliRotations`
has been removed, as deprecated in Qiskit 0.23.0.
Instead, use the property :attr:`.PolynomialPauliRotations.num_ancillas`.

0 comments on commit 031c0a2

Please sign in to comment.