class_docstr: Test the Hadamard gradient transform and edge cases such as non diff parameters, auxiliary wires, etc...
class_docstr_tok: ["Test","the","Hadamard","gradient","transform","and","edge","cases","such","as","non","diff","parameters",",","auxiliary","wires",",","etc","..."]
docstr: Test the aux wire is available.
code: def test_aux_wire(self, aux_wire, device_wires):
      """Test the aux wire is available."""
      # One qubit is added to the device 2 + 1
      dev = qml.device("default.qubit", wires=device_wires)
      x = 0.543
      y = -0.654
  
      with qml.queuing.AnnotatedQueue() as q:
          qml.RX(x, wires=[0])
          qml.RY(y, wires=[1])
          qml.CNOT(wires=[0, 1])
          qml.expval(qml.PauliZ(0) @ qml.PauliX(1))
  
      tape = qml.tape.QuantumScript.from_queue(q)
  
      tapes, _ = qml.gradients.hadamard_grad(
          tape, aux_wire=aux_wire, device_wires=dev.wires
      )
      assert len(tapes) == 2
      tapes, _ = qml.gradients.hadamard_grad(tape, aux_wire=aux_wire)
      assert len(tapes) == 2
  
imports: import pytest
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 1 for calling the TestHadamardGradEdgeCases obj's underlying member method code with example usage: obj.test_aux_wire(aux_wire, device_wires) without return types