class_docstr: Test the properties of the symbolic op.
class_docstr_tok: ["Test","the","properties","of","the","symbolic","op","."]
docstr: Test that it has a matrix if the base is a hamiltonian.
docstr_tok: ["Test","that","it","has","a","matrix","if","the","base","is","a","hamiltonian","."]
code: def test_has_matrix_hamiltonian(self):
      """Test that it has a matrix if the base is a hamiltonian."""
  
      H = qml.Hamiltonian([1.0], [qml.PauliX(0)])
      op = TempScalar(H, 2)
      assert op.has_matrix
  
imports: from copy import copy
  import pytest
  import pennylane
  from pennylane import numpy
  from pennylane.operation import Operator
  from pennylane.ops.op_math import SymbolicOp, ScalarSymbolicOp
  from pennylane.wires import Wires
label_desc: Use image node_id 5 for calling the TestProperties obj's underlying member method code with example usage: obj.test_has_matrix_hamiltonian() without return types