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

30 lines
821 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 (v0.31)
description: API reference for qiskit.utils.deprecate_function in qiskit v0.31
in_page_toc_min_heading_level: 1
python_api_type: function
python_api_name: qiskit.utils.deprecate_function
---
<span id="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.18/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>