qiskit-documentation/docs/api/qiskit/0.35/qiskit.utils.deprecate_func...

28 lines
750 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: deprecate_function
description: API reference for qiskit.utils.deprecate_function
in_page_toc_min_heading_level: 1
python_api_type: function
python_api_name: qiskit.utils.deprecate_function
---
# qiskit.utils.deprecate\_function
<Function id="qiskit.utils.deprecate_function" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.20/qiskit/utils/deprecation.py" signature="deprecate_function(msg, stacklevel=2)">
Emit a warning prior to calling decorated function.
**Parameters**
* **msg** (*str*) Warning message to emit.
* **stacklevel** (*int*) The warning stackevel to use, defaults to 2.
**Returns**
The decorated, deprecated callable.
**Return type**
Callable
</Function>