class_docstr: Tests for the ScalarSymbolicOp class.
class_docstr_tok: ["Tests","for","the","ScalarSymbolicOp","class","."]
docstr: Test that a hash correctly identifies ScalarSymbolicOps.
docstr_tok: ["Test","that","a","hash","correctly","identifies","ScalarSymbolicOps","."]
code: def test_hash(self):
      """Test that a hash correctly identifies ScalarSymbolicOps."""
      op0 = TempScalar(Operator(1.1, wires=[0]), 0.3)
      op1 = TempScalar(Operator(1.1, wires=[0]), 0.3)
      op2 = TempScalar(Operator(1.1, wires=[0]), 0.6)
      op3 = TempScalar(Operator(1.2, wires=[0]), 0.3)
      op4 = TempScalarCopy(Operator(1.1, wires=[0]), 0.3)
      assert op0.hash == op1.hash
      for second_op in [op2, op3, op4]:
          assert op0.hash != second_op.hash
  
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 3 for calling the TestScalarSymbolicOp obj's underlying member method code with example usage: obj.test_hash() without return types