Skip to main contentIBM Quantum Documentation
You are viewing the API reference for an old version of Qiskit SDK. Switch to latest version

to_python_identifier

to_python_identifier(name) GitHub(opens in a new tab)

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?