pygsti.tools.basistools.is_cvxpy_expression#
- is_cvxpy_expression(obj)#
Whether obj is a CVXPY Expression.
Returns False whenever cvxpy is not installed, and – more usefully – whenever cvxpy has simply not been imported yet. This check is preferred since cvxpy imports can be expensive.
- Parameters:
obj (object) – The object to test.
- Return type:
bool