Skip to content

Commit

Permalink
Update shifting_field.py
Browse files Browse the repository at this point in the history
  • Loading branch information
AbeCoull authored Apr 8, 2024
1 parent aabdbf2 commit bdd9a44
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/braket/ir/ahs/shifting_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@
# ANY KIND, either express or implied. See the License for the specific
# language governing permissions and limitations under the License.

from warnings import deprecated
from braket.ir.ahs.local_detuning import LocalDetuning

# The class `ShiftingField` is deprecated. Please use `LocalDetuning` instead.
# This file and class will be removed in a future version.
# We are retaining this now to avoid breaking backwards compatibility for users already
# utilizing this nomenclature.
@deprecated("The class `ShiftingField` is deprecated. Please use `LocalDetuning` instead.")
ShiftingField = LocalDetuning

0 comments on commit bdd9a44

Please sign in to comment.