quri_parts.core.utils.deprecation module

deprecated_kwarg(old_name, new_name)

Build a decorator that accepts old_name as a deprecated alias for new_name.

Parameters:
  • old_name (str)

  • new_name (str)

Return type:

Callable[[_F], _F]

deprecated_shots_kwarg(func)

Accept the old n_shots keyword as a deprecated alias for shots.

Parameters:

func (_F)

Return type:

_F

deprecated_measurement_cnt_kwarg(func)

Accept the old measurement_cnt keyword as a deprecated alias for shots.

Parameters:

func (_F)

Return type:

_F