class_docstr: Test the properties of the symbolic op.
class_docstr_tok: ["Test","the","properties","of","the","symbolic","op","."]
docstr: Test that the data property for symbolic ops allows for the getting
  and setting of the base operator's data.
docstr_tok: ["Test","that","the","data","property","for","symbolic","ops","allows","for","the","getting","and","setting","of","the","base","operator","'s","data","."]
code: def test_data(self):
      """Test that the data property for symbolic ops allows for the getting
      and setting of the base operator's data."""
      x = np.array(1.234)
  
      base = Operator(x, "a")
      op = SymbolicOp(base)
  
      assert op.data == (x,)
  
      # update parameters through op
      x_new = np.array(2.345)
      op.data = (x_new,)
      assert base.data == (x_new,)
      assert op.data == (x_new,)
  
      # update base data updates symbolic data
      x_new2 = np.array(3.45)
      base.data = (x_new2,)
      assert op.data == (x_new2,)
  
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 1 for calling the TestProperties obj's underlying member method code with example usage: obj.test_data() without return types