class_docstr: Test that single measurements return behavior does not change.
class_docstr_tok: ["Test","that","single","measurements","return","behavior","does","not","change","."]
docstr: Return state with default.qubit.
docstr_tok: ["Return","state","with","default.qubit","."]
code: def test_state_default(self, wires, interface, shots):
      """Return state with default.qubit."""
      dev = qml.device("default.qubit", wires=wires, shots=shots)
  
      def circuit(x):
          qml.Hadamard(wires=[0])
          qml.CRX(x, wires=[0, 1])
          return qml.state()
  
      qnode = qml.QNode(circuit, dev)
      qnode.construct([0.5], {})
  
      if dev.shots:
          pytest.skip(
              "cannot return analytic measurements with finite shots."
          )
      program, _ = dev.preprocess()
      res = qml.execute(
          tapes=[qnode.tape],
          device=dev,
          gradient_fn=None,
          interface=interface,
          transform_program=program,
      )
  
      assert res[0].shape == (2**wires,)
      assert isinstance(res[0], (np.ndarray, np.float64))
  
imports: import numpy
  import pytest
  import pennylane
  from pennylane.measurements import MeasurementProcess
label_desc: Use image node_id 1 for calling the TestSingleReturnExecute obj's underlying member method code with example usage: obj.test_state_default(wires, interface, shots) and returns: qml