class_docstr: Tests for the Trace Distance function between two QNodes.
docstr: Test the trace distance between Rx and PauliZ circuits with multiple interfaces.
docstr_tok: ["Test","the","trace","distance","between","Rx","and","PauliZ","circuits","with","multiple","interfaces","."]
code: def test_trace_distance_qnodes_rx_pauliz(
      self, device, param, wire, interface_func
  ):
      """Test the trace distance between Rx and PauliZ circuits with multiple interfaces."""
      interface, func = interface_func
  
      if device == "lightning.qubit" and interface == "jax-jit":
          pytest.skip("Can't use lightning.qubit device with JAX JIT.")
  
      dev = qml.device(device, wires=wire)
  
      @qml.qnode(dev, interface=interface)
      def circuit0(x):
          qml.RX(x, wires=wire - 1)
          return qml.state()
  
      @qml.qnode(dev, interface=interface)
      def circuit1():
          qml.PauliZ(wires=wire - 1)
          return qml.state()
  
      td = qml.qinfo.trace_distance(
          circuit0, circuit1, wires0=[wire - 1], wires1=[wire - 1]
      )(func(param))
      expected_td = expected_trace_distance_rx_pauliz(param)
      assert qml.math.allclose(td, expected_td)
  
      td = qml.qinfo.trace_distance(
          circuit1, circuit0, wires0=[wire - 1], wires1=[wire - 1]
      )(None, func(param))
      assert qml.math.allclose(td, expected_td)
  
imports: import pytest
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 7 for calling the TestTraceDistanceQnode obj's underlying member method code with example usage: obj.test_trace_distance_qnodes_rx_pauliz(device, param, wire, interface_func) and returns: qml, qml