You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In symbolic expressions, it is often desirable to use LaTeX strings as a symbol name, so that the symbols are rendered nicely in a notebook. For example,
k = symbols("\kappa", positive=True)
When such a symbol is defined and translated to QSD code, there is a resulting C++ line
double \kappa = 2;
which is not valid C++ code. All symbol names must be sanitized to contain only word characters (alphanumeric ASCII symbols and underscores)
The text was updated successfully, but these errors were encountered:
True, but I frequently like to use more complex LaTeX code such as '\chi^{(1)}_0' for symbol names. In any case, the symbol names can be arbitrary unicode strings, while valid C++ variable names are only a subset of ASCII. So, we can't get around doing some sanitation while deriving variable names from symbol names.
In symbolic expressions, it is often desirable to use LaTeX strings as a symbol name, so that the symbols are rendered nicely in a notebook. For example,
When such a symbol is defined and translated to QSD code, there is a resulting C++ line
which is not valid C++ code. All symbol names must be sanitized to contain only word characters (alphanumeric ASCII symbols and underscores)
The text was updated successfully, but these errors were encountered: