class_docstr: Test that the device integrates with PennyLane's wire management.
class_docstr_tok: ["Test","that","the","device","integrates","with","PennyLane","'s","wire","management","."]
docstr: Test that the expectation of a circuit is independent from the wire labels used.
docstr_tok: ["Test","that","the","expectation","of","a","circuit","is","independent","from","the","wire","labels","used","."]
code: def test_wires_expval(
      self, device, circuit_factory, wires1, wires2, tol
  ):  # pylint: disable=too-many-arguments
      """Test that the expectation of a circuit is independent from the wire labels used."""
      dev1 = device(wires1)
      dev2 = device(wires2)
  
      circuit1 = circuit_factory(dev1, wires1)
      circuit2 = circuit_factory(dev2, wires2)
  
      assert np.allclose(circuit1(), circuit2(), atol=tol(dev1.shots))
  
imports: import pytest
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 1 for calling the TestWiresIntegration obj's underlying member method code with example usage: obj.test_wires_expval(device, circuit_factory, wires1, wires2, tol) without return types