docstr: Test an operator arithmetic circuit with non-integer wires with numpy.
docstr_tok: ["Test","an","operator","arithmetic","circuit","with","non-integer","wires","with","numpy","."]
code: def test_numpy_op_arithmetic(self):
      """Test an operator arithmetic circuit with non-integer wires with numpy."""
      phi = 1.2
      ops = [
          qml.PauliX("a"),
          qml.PauliX("b"),
          qml.ctrl(
              qml.RX(phi, "target") ** 2,
              ("a", "b", -3),
              control_values=[1, 1, 0],
          ),
      ]
  
      qs = qml.tape.QuantumScript(
          ops,
          [
              qml.expval(
                  qml.sum(qml.PauliY("target"), qml.PauliZ("b"))
              ),
              qml.expval(qml.s_prod(3, qml.PauliZ("target"))),
          ],
      )
  
      results = simulate(qs)
      assert qml.math.allclose(results[0], -np.sin(2 * phi) - 1)
      assert qml.math.allclose(results[1], 3 * np.cos(2 * 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 TestOperatorArithmetic obj's underlying member method code with example usage: obj.test_numpy_op_arithmetic() without return types