class_docstr: Tests for Fidelity function between two QNodes.
docstr: Test the fidelity between RX and state(1,0).
code: def test_fidelity_qnodes_rx_state(self, device):
      """Test the fidelity 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()
  
      fid = qml.qinfo.fidelity(
          circuit0, circuit1, wires0=[0], wires1=[0]
      )((np.pi))
      assert qml.math.allclose(fid, 0.0)
  
imports: import pytest
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 4 for calling the TestFidelityQnode obj's underlying member method code with example usage: obj.test_fidelity_qnodes_rx_state(device) and returns: qml, qml