class_docstr: Tests a basic circuit with one rx gate and two simple expectation values.
docstr: Test execution with a basic circuit.
docstr_tok: ["Test","execution","with","a","basic","circuit","."]
code: def test_basic_circuit_numpy(self):
      """Test execution with a basic circuit."""
      phi = np.array(0.397)
      qs = qml.tape.QuantumScript(
          [qml.RX(phi, wires=0)],
          [qml.expval(qml.PauliY(0)), qml.expval(qml.PauliZ(0))],
      )
      result = simulate(qs)
  
      assert isinstance(result, tuple)
      assert len(result) == 2
  
      assert np.allclose(result[0], -np.sin(phi))
      assert np.allclose(result[1], np.cos(phi))
  
      state, is_state_batched = get_final_state(qs)
      result = measure_final_state(qs, state, is_state_batched)
  
      assert np.allclose(
          state, np.array([np.cos(phi / 2), -1j * np.sin(phi / 2)])
      )
      assert not is_state_batched
  
      assert isinstance(result, tuple)
      assert len(result) == 2
      assert np.allclose(result[0], -np.sin(phi))
      assert np.allclose(result[1], np.cos(phi))
  
imports: import pytest
  import numpy
  import pennylane
  from pennylane.devices.qubit import simulate, get_final_state, measure_final_state
label_desc: Use image node_id 1 for calling the TestBasicCircuit obj's underlying member method code with example usage: obj.test_basic_circuit_numpy() without return types