class_docstr: Tests for the Local Hilbert-Schmidt template.
docstr: Test if the LHS operation is correctly decomposed with custom wires.
docstr_tok: ["Test","if","the","LHS","operation","is","correctly","decomposed","with","custom","wires","."]
code: def test_lhs_decomposition_1_qubit_custom_wires(self):
      """Test if the LHS operation is correctly decomposed with custom wires."""
      with qml.queuing.AnnotatedQueue() as q_U:
          qml.Hadamard(wires="a")
  
      U = qml.tape.QuantumScript.from_queue(q_U)
  
      def v_circuit(params):
          qml.RZ(params[0], wires="b")
  
      op = qml.LocalHilbertSchmidt(
          [0.1], v_function=v_circuit, v_wires=["b"], u_tape=U
      )
  
      with qml.queuing.AnnotatedQueue() as q_tape_dec:
          op.decomposition()
  
      tape_dec = qml.tape.QuantumScript.from_queue(q_tape_dec)
      expected_operations = [
          qml.Hadamard(wires=["a"]),
          qml.CNOT(wires=["a", "b"]),
          qml.Hadamard(wires=["a"]),
          qml.RZ(-0.1, wires=["b"]),
          qml.CNOT(wires=["a", "b"]),
          qml.Hadamard(wires=["a"]),
      ]
  
      for i, j in zip(tape_dec.operations, expected_operations):
          assert i.name == j.name
          assert i.data == j.data
          assert i.wires == j.wires
  
imports: import pytest
  import pennylane
label_desc: Use image node_id 2 for calling the TestLocalHilbertSchmidt obj's underlying member method code with example usage: obj.test_lhs_decomposition_1_qubit_custom_wires() without return types