class_docstr: Tests for the Trace Distance function between two QNodes.
docstr: Test the trace distance between RX and state (1, 0).
docstr_tok: ["Test","the","trace","distance","between","RX","and","state","(","1",",","0",")","."]
code: def test_trace_distance_qnodes_rx_state(self, device):
      """Test the trace distance between RX and state (1, 0)."""
      dev = qml.device(device, wires=1)
  
      @qml.qnode(dev)
      def circuit0(x):
          qml.RX(x, wires=0)
          return qml.state()
  
      @qml.qnode(dev)
      def circuit1():
          return qml.state()
  
      td = qml.qinfo.trace_distance(
          circuit0, circuit1, wires0=[0], wires1=[0]
      )(np.pi, None)
      assert qml.math.allclose(td, 1.0)
  
      td = qml.qinfo.trace_distance(
          circuit1, circuit0, wires0=[0], wires1=[0]
      )(None, np.pi)
      assert qml.math.allclose(td, 1.0)
  
imports: import pytest
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 2 for calling the TestTraceDistanceQnode obj's underlying member method code with example usage: obj.test_trace_distance_qnodes_rx_state(device) and returns: qml, qml