qml.operation.convert_to_opmath¶
- convert_to_opmath(op)[source]¶
Converts
Hamiltonian
andTensor
instances into arithmetic operators. Objects of any other type are returned directly.
code/api/pennylane.operation.convert_to_opmath
Download Python script
Download Notebook
View on GitHub