Module: cirq_google.arg_func_langs

Functions

arg_from_proto(...): Extracts a python value from an argument value proto.

arg_to_proto(...): Writes an argument value into an Arg proto.

Type Aliases

ARG_LIKE: The central part of internal API.

LANGUAGE_ORDER ['', 'linear', 'exp']
SUPPORTED_FUNCTIONS_FOR_LANGUAGE

{
 '': frozenset(),
 'exp': frozenset({'pow', 'mul', 'add'}),
 'linear': frozenset({'mul', 'add'}),
 None: frozenset({'pow', 'mul', 'add'})
}

SUPPORTED_SYMPY_OPS (<class 'sympy.core.symbol.Symbol'>, <class 'sympy.core.add.Add'>, <class 'sympy.core.mul.Mul'>, <class 'sympy.core.power.Pow'>)