class_docstr: Unit tests for jax execution
class_docstr_tok: ["Unit","tests","for","jax","execution"]
docstr: Test that an error is raised if the interface is unknown
docstr_tok: ["Test","that","an","error","is","raised","if","the","interface","is","unknown"]
code: def test_unknown_interface(self):
      """Test that an error is raised if the interface is unknown"""
      a = jax.numpy.array([0.1, 0.2])
  
      dev = qml.device("default.qubit.legacy", wires=1)
  
      def cost(a, device):
          with qml.queuing.AnnotatedQueue() as q:
              qml.RY(a[0], wires=0)
              qml.RX(a[1], wires=0)
              qml.expval(qml.PauliZ(0))
  
          tape = qml.tape.QuantumScript.from_queue(q)
  
          return execute(
              [tape],
              device,
              gradient_fn=param_shift,
              interface="None",
          )[0]
  
      with pytest.raises(ValueError, match="Unknown interface"):
          cost(a, device=dev)
  
imports: import pytest
  import numpy
  import pennylane
  from pennylane.gradients import param_shift
  from pennylane import execute
label_desc: Use image node_id 3 for calling the TestJaxExecuteUnitTests obj's underlying member method code with example usage: obj.test_unknown_interface() and returns: execute