class_docstr: Tests for the Local Hilbert-Schmidt template.
docstr: Test that we cannot pass a non quantum function to the HS operation
docstr_tok: ["Test","that","we","can","not","pass","a","non","quantum","function","to","the","HS","operation"]
code: def test_v_not_quantum_function(self):
      """Test that we cannot pass a non quantum function to the HS operation"""
  
      with qml.queuing.AnnotatedQueue() as q_U:
          qml.Hadamard(wires=0)
  
      U = qml.tape.QuantumScript.from_queue(q_U)
      with qml.queuing.AnnotatedQueue() as q_v_circuit:
          qml.RZ(0.1, wires=1)
  
      v_circuit = qml.tape.QuantumScript.from_queue(q_v_circuit)
      with pytest.raises(
          qml.QuantumFunctionError,
          match="The argument v_function must be a callable quantum "
          "function.",
      ):
          qml.LocalHilbertSchmidt(
              [0.1], v_function=v_circuit, v_wires=[1], u_tape=U
          )
  
imports: import pytest
  import pennylane
label_desc: Use image node_id 5 for calling the TestLocalHilbertSchmidt obj's underlying member method code with example usage: obj.test_v_not_quantum_function() without return types