Skip to content

Commit

Permalink
remove deprecated aquire alignment (#11553)
Browse files Browse the repository at this point in the history
* remove deprecated "aquire_alignment"

* added release notes

* linting
  • Loading branch information
ewinston authored Jan 12, 2024
1 parent 52affa5 commit fc567f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 29 deletions.
29 changes: 0 additions & 29 deletions qiskit/transpiler/target.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
from qiskit.transpiler.timing_constraints import TimingConstraints
from qiskit.providers.exceptions import BackendPropertyError
from qiskit.pulse.exceptions import PulseError, UnassignedDurationError
from qiskit.utils.deprecation import deprecate_arg, deprecate_func
from qiskit.exceptions import QiskitError

# import QubitProperties here to provide convenience alias for building a
Expand Down Expand Up @@ -242,12 +241,6 @@ class Target(Mapping):
"concurrent_measurements",
)

@deprecate_arg(
"aquire_alignment",
new_alias="acquire_alignment",
since="0.23.0",
package_name="qiskit-terra",
)
def __init__(
self,
description=None,
Expand Down Expand Up @@ -1143,28 +1136,6 @@ def get_non_global_operation_names(self, strict_direction=False):
self._non_global_basis = incomplete_basis_gates
return incomplete_basis_gates

@property
@deprecate_func(
additional_msg="Use the property ``acquire_alignment`` instead.",
since="0.24.0",
is_property=True,
package_name="qiskit-terra",
)
def aquire_alignment(self):
"""Alias of deprecated name. This will be removed."""
return self.acquire_alignment

@aquire_alignment.setter
@deprecate_func(
additional_msg="Use the property ``acquire_alignment`` instead.",
since="0.24.0",
is_property=True,
package_name="qiskit-terra",
)
def aquire_alignment(self, new_value: int):
"""Alias of deprecated name. This will be removed."""
self.acquire_alignment = new_value

def __iter__(self):
return iter(self._gate_map)

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
upgrade:
- |
The method ``qiskit.transpiler.target.Target.aquire_alignment``, deprecated in 0.24, has been removed. The method ``qiskit.transpiler.target.Target.acquire_alignment`` should be used instead.

0 comments on commit fc567f0

Please sign in to comment.