class_docstr: Tests for the tensor.unwrap() and tensor.numpy() methods
class_docstr_tok: ["Tests","for","the","tensor.unwrap","(",")","and","tensor.numpy","(",")","methods"]
docstr: Test that when supplied a PennyLane tensor, a QNode passes an
  unwrapped tensor as the argument to a gate taking a single parameter
docstr_tok: ["Test","that","when","supplied","a","PennyLane","tensor",",","a","QNode","passes","an","unwrapped","tensor","as","the","argument","to","a","gate","taking","a","single","parameter"]
code: def test_single_gate_parameter(self):
      """Test that when supplied a PennyLane tensor, a QNode passes an
      unwrapped tensor as the argument to a gate taking a single parameter
      """
      dev = qml.device("default.qubit", wires=4)
  
      @qml.qnode(dev, diff_method="parameter-shift")
      def circuit(phi=None):
          for y in phi:
              for idx, x in enumerate(y):
                  qml.RX(x, wires=idx)
          return qml.expval(qml.PauliZ(0))
  
      phi = np.tensor(
          [[0.04439891, 0.14490549, 3.29725643, 2.51240058]]
      )
  
      circuit(phi=phi)
  
      ops = circuit.tape.operations
      assert len(ops) == 4
      for op, p in zip(ops, phi[0]):
          # Test each rotation applied
          assert op.name == "RX"
          assert op.parameters == [p]
  
imports: import numpy
  import pytest
  from autograd.numpy.numpy_boxes import ArrayBox
  import pennylane
  from pennylane import numpy
  from pennylane.numpy.tensor import tensor_to_arraybox
label_desc: Use image node_id 3 for calling the TestNumpyConversion obj's underlying member method code with example usage: obj.test_single_gate_parameter() and returns: qml