qiskit-documentation/docs/api/qiskit-ibm-provider/qiskit_ibm_provider.utils.t...

29 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: to_python_identifier
description: API reference for qiskit_ibm_provider.utils.to_python_identifier
in_page_toc_min_heading_level: 1
python_api_type: function
python_api_name: qiskit_ibm_provider.utils.to_python_identifier
---
<span id="to-python-identifier" />
# to\_python\_identifier
<Function id="qiskit_ibm_provider.utils.to_python_identifier" isDedicatedPage={true} github="https://github.com/Qiskit/qiskit-ibm-provider/tree/stable/0.11/qiskit_ibm_provider/utils/utils.py#L66-L89" signature="to_python_identifier(name)">
Convert a name to a valid Python identifier.
**Parameters**
**name** (`str`) Name to be converted.
**Return type**
`str`
**Returns**
Name that is a valid Python identifier.
</Function>