3.8.1. qupulse.utils.sympy

qupulse.utils.sympy.sympify(expr, **kwargs)[source]
Return type

Expr

qupulse.utils.sympy.substitute_with_eval(expression, substitutions)[source]

Substitutes only sympy.Symbols. Workaround for numpy like array behaviour. ~Factor 3 slower compared to subs

Return type

Expr

qupulse.utils.sympy.to_numpy(sympy_array)[source]
Return type

ndarray

qupulse.utils.sympy.get_variables(expression)[source]
Return type

Sequence[str]

qupulse.utils.sympy.get_free_symbols(expression)[source]
Return type

Sequence[Symbol]

qupulse.utils.sympy.recursive_substitution(expression, substitutions)[source]
Return type

Expr

qupulse.utils.sympy.evaluate_lambdified(expression, variables, parameters, lambdified)[source]
Return type

Tuple[Any, Any]

qupulse.utils.sympy.get_most_simple_representation(expression)[source]
Return type

Union[str, int, float]