Skip to main contentIBM Quantum Documentation

to_python_identifier

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.

Was this page helpful?