qml.operation.active_new_opmath¶
-
active_new_opmath
()[source]¶ Function that checks if the new arithmetic operator dunders are active
- Returns
Returns
True
if the new arithmetic operator dunders are active- Return type
bool
Example
>>> qml.operation.active_new_opmath() False >>> qml.operation.enable_new_opmath() >>> qml.operation.active_new_opmath() True
code/api/pennylane.operation.active_new_opmath
Download Python script
Download Notebook
View on GitHub