qml.operation.active_new_opmath¶
- active_new_opmath()[source]¶
Function that checks if the new arithmetic operator dunders are active
Warning
Using legacy operator arithmetic is deprecated, and will be removed in PennyLane v0.40. For further details, see Updated Operators.
- 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