class_docstr: Test that the user-defined dtype of the device is preserved for QNode
  evaluation
class_docstr_tok: ["Test","that","the","user-defined","dtype","of","the","device","is","preserved","for","QNode","evaluation"]
docstr: Test that the default qubit plugin returns the correct
  complex data type for a simple broadcasted circuit
docstr_tok: ["Test","that","the","default","qubit","plugin","returns","the","correct","complex","data","type","for","a","simple","broadcasted","circuit"]
code: def test_complex_dtype_broadcasted(self, c_dtype):
      """Test that the default qubit plugin returns the correct
      complex data type for a simple broadcasted circuit"""
      p = np.array([0.543, 0.21, 1.6])
  
      dev = qml.device("default.qubit.autograd", wires=3)
      dev.C_DTYPE = c_dtype
  
      measurement = qml.state()
  
      @qml.qnode(dev, diff_method="backprop")
      def circuit(x):
          qml.RX(x, wires=0)
          return qml.apply(measurement)
  
      res = circuit(p)
      assert res.dtype == c_dtype
  
imports: import pytest
  import pennylane
  from pennylane import numpy
  from pennylane.devices.default_qubit_autograd import DefaultQubitAutograd
  from pennylane import DeviceError
label_desc: Use image node_id 4 for calling the TestDtypePreserved obj's underlying member method code with example usage: obj.test_complex_dtype_broadcasted(c_dtype) and returns: qml