Skip to main contentIBM Quantum Documentation
This page is from an old version of Qiskit SDK and does not exist in the latest version. We recommend you migrate to the latest version. See the release notes for more information.

qiskit.providers.ibmq.utils.to_python_identifier

to_python_identifier(name)

GitHub

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.

Was this page helpful?
Report a bug or request content on GitHub.