qiskit.utils.deprecate_function¶
- deprecate_function(msg, stacklevel=2, category=<class 'DeprecationWarning'>)[소스]¶
Emit a warning prior to calling decorated function.
- 매개변수
msg (
str
) – Warning message to emit.stacklevel (
int
) – The warning stackevel to use, defaults to 2.category (
Type
[Warning
]) – warning category, defaults to DeprecationWarning
- 반환
The decorated, deprecated callable.
- 반환 형식
Callable